@integration-app/react 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -570,14 +570,14 @@ declare function useDataCollectionSpec({ path, key, integrationId, }: {
570
570
  }): DataCollectionSpec | undefined;
571
571
 
572
572
  declare function useExternalEventSubscriptions(query?: FindExternalEventSubscriptionsQuery): {
573
- items: DataSourceInstance[];
573
+ items: ExternalEventSubscription[];
574
574
  refresh: () => Promise<void>;
575
575
  refreshing: boolean;
576
576
  loadMore: () => Promise<void>;
577
577
  loadingMore: boolean;
578
578
  loading: boolean;
579
579
  error: any;
580
- externalEventSubscriptions: DataSourceInstance[];
580
+ externalEventSubscriptions: ExternalEventSubscription[];
581
581
  };
582
582
 
583
583
  declare function useExternalEventSubscription(id: string | undefined): {
@@ -570,14 +570,14 @@ declare function useDataCollectionSpec({ path, key, integrationId, }: {
570
570
  }): DataCollectionSpec | undefined;
571
571
 
572
572
  declare function useExternalEventSubscriptions(query?: FindExternalEventSubscriptionsQuery): {
573
- items: DataSourceInstance[];
573
+ items: ExternalEventSubscription[];
574
574
  refresh: () => Promise<void>;
575
575
  refreshing: boolean;
576
576
  loadMore: () => Promise<void>;
577
577
  loadingMore: boolean;
578
578
  loading: boolean;
579
579
  error: any;
580
- externalEventSubscriptions: DataSourceInstance[];
580
+ externalEventSubscriptions: ExternalEventSubscription[];
581
581
  };
582
582
 
583
583
  declare function useExternalEventSubscription(id: string | undefined): {
@@ -570,14 +570,14 @@ declare function useDataCollectionSpec({ path, key, integrationId, }: {
570
570
  }): DataCollectionSpec | undefined;
571
571
 
572
572
  declare function useExternalEventSubscriptions(query?: FindExternalEventSubscriptionsQuery): {
573
- items: DataSourceInstance[];
573
+ items: ExternalEventSubscription[];
574
574
  refresh: () => Promise<void>;
575
575
  refreshing: boolean;
576
576
  loadMore: () => Promise<void>;
577
577
  loadingMore: boolean;
578
578
  loading: boolean;
579
579
  error: any;
580
- externalEventSubscriptions: DataSourceInstance[];
580
+ externalEventSubscriptions: ExternalEventSubscription[];
581
581
  };
582
582
 
583
583
  declare function useExternalEventSubscription(id: string | undefined): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integration-app/react",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "author": "Integration.app",
6
6
  "source": "src/index.ts",
@@ -34,7 +34,7 @@
34
34
  "version": "npm version"
35
35
  },
36
36
  "dependencies": {
37
- "@integration-app/sdk": "^1.2.1",
37
+ "@integration-app/sdk": "^1.2.2",
38
38
  "awesome-debounce-promise": "^2.1.0",
39
39
  "query-string": "^7.1.1",
40
40
  "swr": "^2.2.0"
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FindExternalEventSubscriptionsQuery,
3
- DataSourceInstance,
3
+ ExternalEventSubscription,
4
4
  } from '@integration-app/sdk'
5
5
  import { useElements } from '../hooks/useElements'
6
6
 
7
7
  export function useExternalEventSubscriptions(
8
8
  query?: FindExternalEventSubscriptionsQuery,
9
9
  ) {
10
- const { ...rest } = useElements<DataSourceInstance>(
10
+ const { ...rest } = useElements<ExternalEventSubscription>(
11
11
  'external-event-subscriptions',
12
12
  query,
13
13
  )