@integration-app/react 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-events/useAppEventSubscriptions.d.ts +8 -0
- package/app-events/useAppEventSubscriptions.js +12 -0
- package/app-events/useAppEventSubscriptions.js.map +1 -0
- package/app-events/useAppEventTypes.d.ts +8 -0
- package/app-events/useAppEventTypes.js +12 -0
- package/app-events/useAppEventTypes.js.map +1 -0
- package/index.d.ts +3 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/integrations/useConnection.d.ts +2 -4
- package/integrations/useConnection.js +2 -2
- package/integrations/useConnection.js.map +1 -1
- package/package.json +2 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
import { AppEventSubscription, FindAppEventSubscriptionsQuery } from '@integration-app/sdk';
|
2
|
+
export declare function useAppEventSubscriptions(query?: FindAppEventSubscriptionsQuery): {
|
3
|
+
items: AppEventSubscription[];
|
4
|
+
loading: boolean;
|
5
|
+
error?: Error;
|
6
|
+
refresh(): Promise<void>;
|
7
|
+
loadMore(): Promise<void>;
|
8
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useAppEventSubscriptions = void 0;
|
4
|
+
const useElements_1 = require("../hooks/useElements");
|
5
|
+
function useAppEventSubscriptions(query) {
|
6
|
+
const { ...rest } = (0, useElements_1.useElements)(query, (integrationApp) => integrationApp.appEventSubscriptions);
|
7
|
+
return {
|
8
|
+
...rest,
|
9
|
+
};
|
10
|
+
}
|
11
|
+
exports.useAppEventSubscriptions = useAppEventSubscriptions;
|
12
|
+
//# sourceMappingURL=useAppEventSubscriptions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAppEventSubscriptions.js","sourceRoot":"","sources":["../../src/app-events/useAppEventSubscriptions.ts"],"names":[],"mappings":";;;AAIA,sDAAkD;AAElD,SAAgB,wBAAwB,CACtC,KAAsC;IAEtC,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,yBAAW,EAG7B,KAAK,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAA;IAElE,OAAO;QACL,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAXD,4DAWC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { AppEventType, FindAppEventTypesQuery } from '@integration-app/sdk';
|
2
|
+
export declare function useAppEventTypes(query?: FindAppEventTypesQuery): {
|
3
|
+
items: AppEventType[];
|
4
|
+
loading: boolean;
|
5
|
+
error?: Error;
|
6
|
+
refresh(): Promise<void>;
|
7
|
+
loadMore(): Promise<void>;
|
8
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useAppEventTypes = void 0;
|
4
|
+
const useElements_1 = require("../hooks/useElements");
|
5
|
+
function useAppEventTypes(query) {
|
6
|
+
const { ...rest } = (0, useElements_1.useElements)(query, (integrationApp) => integrationApp.appEventTypes);
|
7
|
+
return {
|
8
|
+
...rest,
|
9
|
+
};
|
10
|
+
}
|
11
|
+
exports.useAppEventTypes = useAppEventTypes;
|
12
|
+
//# sourceMappingURL=useAppEventTypes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAppEventTypes.js","sourceRoot":"","sources":["../../src/app-events/useAppEventTypes.ts"],"names":[],"mappings":";;;AACA,sDAAkD;AAElD,SAAgB,gBAAgB,CAAC,KAA8B;IAC7D,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,yBAAW,EAC7B,KAAK,EACL,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,aAAa,CACjD,CAAA;IAED,OAAO;QACL,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AATD,4CASC"}
|
package/index.d.ts
CHANGED
@@ -14,9 +14,11 @@ export { useDataSourceInstance } from './data-sources/useDataSourceInstance.js';
|
|
14
14
|
export { useDataSourceInstanceCollection as useDataSourceCollection } from './data-sources/useDataSourceInstanceCollection.js';
|
15
15
|
export { useDataSourceInstanceLocations as useDataSourceLocations } from './data-sources/useDataSourceInstanceLocations.js';
|
16
16
|
export { useDataSourceEvents } from './data-sources/useDataSourceEvents.js';
|
17
|
+
export { useAppEvents } from './app-events/useAppEvents.js';
|
17
18
|
export { useAppEventType } from './app-events/useAppEventType.js';
|
19
|
+
export { useAppEventTypes } from './app-events/useAppEventTypes.js';
|
18
20
|
export { useAppEventSubscription } from './app-events/useAppEventSubscription.js';
|
19
|
-
export {
|
21
|
+
export { useAppEventSubscriptions } from './app-events/useAppEventSubscriptions.js';
|
20
22
|
export { useFlow } from './flows/useFlow.js';
|
21
23
|
export { useFlows } from './flows/useFlows.js';
|
22
24
|
export { useFlowInstance } from './flows/useFlowInstance.js';
|
package/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DataForm = exports.useFlowRun = exports.useFlowInstances = exports.useFlowInstance = exports.useFlows = exports.useFlow = exports.
|
3
|
+
exports.DataForm = exports.useFlowRun = exports.useFlowInstances = exports.useFlowInstance = exports.useFlows = exports.useFlow = exports.useAppEventSubscriptions = exports.useAppEventSubscription = exports.useAppEventTypes = exports.useAppEventType = exports.useAppEvents = 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;
|
4
4
|
var integration_app_context_js_1 = require("./contexts/integration-app-context.js");
|
5
5
|
Object.defineProperty(exports, "useIntegrationApp", { enumerable: true, get: function () { return integration_app_context_js_1.useIntegrationApp; } });
|
6
6
|
Object.defineProperty(exports, "IntegrationAppProvider", { enumerable: true, get: function () { return integration_app_context_js_1.IntegrationAppProvider; } });
|
@@ -34,12 +34,16 @@ var useDataSourceInstanceLocations_js_1 = require("./data-sources/useDataSourceI
|
|
34
34
|
Object.defineProperty(exports, "useDataSourceLocations", { enumerable: true, get: function () { return useDataSourceInstanceLocations_js_1.useDataSourceInstanceLocations; } });
|
35
35
|
var useDataSourceEvents_js_1 = require("./data-sources/useDataSourceEvents.js");
|
36
36
|
Object.defineProperty(exports, "useDataSourceEvents", { enumerable: true, get: function () { return useDataSourceEvents_js_1.useDataSourceEvents; } });
|
37
|
+
var useAppEvents_js_1 = require("./app-events/useAppEvents.js");
|
38
|
+
Object.defineProperty(exports, "useAppEvents", { enumerable: true, get: function () { return useAppEvents_js_1.useAppEvents; } });
|
37
39
|
var useAppEventType_js_1 = require("./app-events/useAppEventType.js");
|
38
40
|
Object.defineProperty(exports, "useAppEventType", { enumerable: true, get: function () { return useAppEventType_js_1.useAppEventType; } });
|
41
|
+
var useAppEventTypes_js_1 = require("./app-events/useAppEventTypes.js");
|
42
|
+
Object.defineProperty(exports, "useAppEventTypes", { enumerable: true, get: function () { return useAppEventTypes_js_1.useAppEventTypes; } });
|
39
43
|
var useAppEventSubscription_js_1 = require("./app-events/useAppEventSubscription.js");
|
40
44
|
Object.defineProperty(exports, "useAppEventSubscription", { enumerable: true, get: function () { return useAppEventSubscription_js_1.useAppEventSubscription; } });
|
41
|
-
var
|
42
|
-
Object.defineProperty(exports, "
|
45
|
+
var useAppEventSubscriptions_js_1 = require("./app-events/useAppEventSubscriptions.js");
|
46
|
+
Object.defineProperty(exports, "useAppEventSubscriptions", { enumerable: true, get: function () { return useAppEventSubscriptions_js_1.useAppEventSubscriptions; } });
|
43
47
|
var useFlow_js_1 = require("./flows/useFlow.js");
|
44
48
|
Object.defineProperty(exports, "useFlow", { enumerable: true, get: function () { return useFlow_js_1.useFlow; } });
|
45
49
|
var useFlows_js_1 = require("./flows/useFlows.js");
|
package/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;AAAA,oFAG8C;AAF5C,+HAAA,iBAAiB,OAAA;AACjB,oIAAA,sBAAsB,OAAA;AAGxB,4EAAsE;AAA7D,wHAAA,gBAAgB,OAAA;AACzB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AACvB,wEAAmE;AAA1D,qHAAA,eAAe,OAAA;AACxB,oEAA+D;AAAtD,iHAAA,aAAa,OAAA;AACtB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AAEvB,0EAAqE;AAA5D,qHAAA,eAAe,OAAA;AACxB,4EAAuE;AAA9D,uHAAA,gBAAgB,OAAA;AAEzB,0FAAqF;AAA5E,qIAAA,uBAAuB,OAAA;AAChC,4FAAuF;AAA9E,uIAAA,wBAAwB,OAAA;AAEjC,oEAA+D;AAAtD,iHAAA,aAAa,OAAA;AACtB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AACvB,oFAA+E;AAAtE,iIAAA,qBAAqB,OAAA;AAC9B,wGAA8H;AAArH,6IAAA,+BAA+B,OAA2B;AACnE,sGAA2H;AAAlH,2IAAA,8BAA8B,OAA0B;AACjE,gFAA2E;AAAlE,6HAAA,mBAAmB,OAAA;AAE5B,sEAAiE;AAAxD,qHAAA,eAAe,OAAA;AACxB,sFAAiF;AAAxE,qIAAA,uBAAuB,OAAA;AAChC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;AAAA,oFAG8C;AAF5C,+HAAA,iBAAiB,OAAA;AACjB,oIAAA,sBAAsB,OAAA;AAGxB,4EAAsE;AAA7D,wHAAA,gBAAgB,OAAA;AACzB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AACvB,wEAAmE;AAA1D,qHAAA,eAAe,OAAA;AACxB,oEAA+D;AAAtD,iHAAA,aAAa,OAAA;AACtB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AAEvB,0EAAqE;AAA5D,qHAAA,eAAe,OAAA;AACxB,4EAAuE;AAA9D,uHAAA,gBAAgB,OAAA;AAEzB,0FAAqF;AAA5E,qIAAA,uBAAuB,OAAA;AAChC,4FAAuF;AAA9E,uIAAA,wBAAwB,OAAA;AAEjC,oEAA+D;AAAtD,iHAAA,aAAa,OAAA;AACtB,sEAAiE;AAAxD,mHAAA,cAAc,OAAA;AACvB,oFAA+E;AAAtE,iIAAA,qBAAqB,OAAA;AAC9B,wGAA8H;AAArH,6IAAA,+BAA+B,OAA2B;AACnE,sGAA2H;AAAlH,2IAAA,8BAA8B,OAA0B;AACjE,gFAA2E;AAAlE,6HAAA,mBAAmB,OAAA;AAE5B,gEAA2D;AAAlD,+GAAA,YAAY,OAAA;AACrB,sEAAiE;AAAxD,qHAAA,eAAe,OAAA;AACxB,wEAAmE;AAA1D,uHAAA,gBAAgB,OAAA;AACzB,sFAAiF;AAAxE,qIAAA,uBAAuB,OAAA;AAChC,wFAAmF;AAA1E,uIAAA,wBAAwB,OAAA;AAEjC,iDAA4C;AAAnC,qGAAA,OAAO,OAAA;AAChB,mDAA8C;AAArC,uGAAA,QAAQ,OAAA;AAEjB,iEAA4D;AAAnD,qHAAA,eAAe,OAAA;AACxB,mEAA8D;AAArD,uHAAA,gBAAgB,OAAA;AAEzB,uDAAkD;AAAzC,2GAAA,UAAU,OAAA;AAEnB,4CAA+C;AAAtC,+FAAA,QAAQ,OAAA"}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import { Connection, ConnectionAccessor
|
2
|
-
export declare function useConnection(
|
3
|
-
id: string;
|
4
|
-
}): {
|
1
|
+
import { Connection, ConnectionAccessor } from '@integration-app/sdk';
|
2
|
+
export declare function useConnection(id: string): {
|
5
3
|
loading: boolean;
|
6
4
|
error?: Error;
|
7
5
|
create: (data: Partial<Connection>) => Promise<Connection>;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.useConnection = void 0;
|
4
4
|
const useElement_1 = require("../hooks/useElement");
|
5
|
-
function useConnection(
|
6
|
-
const { data: connection, ...rest } = (0, useElement_1.useElement)(
|
5
|
+
function useConnection(id) {
|
6
|
+
const { data: connection, ...rest } = (0, useElement_1.useElement)(id, (integrationApp) => integrationApp.connection.bind(integrationApp));
|
7
7
|
return { connection, ...rest };
|
8
8
|
}
|
9
9
|
exports.useConnection = useConnection;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useConnection.js","sourceRoot":"","sources":["../../src/integrations/useConnection.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"useConnection.js","sourceRoot":"","sources":["../../src/integrations/useConnection.ts"],"names":[],"mappings":";;;AACA,oDAAgD;AAEhD,SAAgB,aAAa,CAAC,EAAU;IACtC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,uBAAU,EAI9C,EAAE,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAA;IAEzE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,CAAA;AAChC,CAAC;AARD,sCAQC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@integration-app/react",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.23",
|
4
4
|
"description": "React SDK for building native integrations.",
|
5
5
|
"author": "integration.app",
|
6
6
|
"scripts": {
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"main": "index.js",
|
20
20
|
"types": "index.d.ts",
|
21
21
|
"dependencies": {
|
22
|
-
"@integration-app/sdk": "^0.16.
|
22
|
+
"@integration-app/sdk": "^0.16.40"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"copy": "^0.3.2",
|