@integration-app/react 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- import { IntegrationAppClient } from '@integration-app/sdk';
2
1
  import { ReactNode } from 'react';
3
2
  interface IntegrationAppProviderProps {
4
3
  token: string;
@@ -6,6 +5,6 @@ interface IntegrationAppProviderProps {
6
5
  uiUri?: string;
7
6
  children: ReactNode;
8
7
  }
9
- export declare const IntegrationAppProvider: ({ token, apiUri, uiUri, children, }: IntegrationAppProviderProps) => JSX.Element;
10
- export declare function useIntegrationApp(): IntegrationAppClient;
8
+ export declare const IntegrationAppProvider: ({ token, apiUri, uiUri, children, }: IntegrationAppProviderProps) => any;
9
+ export declare function useIntegrationApp(): any;
11
10
  export {};
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export default function DataForm(): JSX.Element;
1
+ export default function DataForm(): any;
@@ -1,11 +1,11 @@
1
- import { DataSourceInstance } from '@integration-app/sdk/data-sources';
1
+ import { DataSource } from '@integration-app/sdk/data-sources';
2
2
  export declare function useDataSource(idOrKey: string): {
3
3
  loading: boolean;
4
4
  error?: Error;
5
- create: (data: Partial<DataSourceInstance>) => Promise<DataSourceInstance>;
6
- patch: (data: Partial<DataSourceInstance>) => Promise<DataSourceInstance>;
7
- put: (data: DataSourceInstance) => Promise<DataSourceInstance>;
5
+ create: (data: Partial<DataSource>) => Promise<DataSource>;
6
+ patch: (data: Partial<DataSource>) => Promise<DataSource>;
7
+ put: (data: DataSource) => Promise<DataSource>;
8
8
  archive: () => Promise<void>;
9
9
  refresh: () => void;
10
- dataSource: DataSourceInstance;
10
+ dataSource: DataSource;
11
11
  };
@@ -1,8 +1,7 @@
1
- import { DataCollectionSpec } from '@integration-app/sdk/data-locations';
2
- import { DataSourceInstance } from '@integration-app/sdk/data-sources';
3
- export declare function useDataSourceCollection(dataSource: DataSourceInstance): {
4
- loading: boolean;
5
- error: Error;
1
+ import { DataSource } from '@integration-app/sdk/data-sources';
2
+ export declare function useDataSourceCollection(dataSource: DataSource): {
3
+ loading: any;
4
+ error: any;
6
5
  refresh: () => void;
7
- collection: DataCollectionSpec;
6
+ collection: any;
8
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDataSourceCollection.js","sourceRoot":"","sources":["../../src/data-sources/useDataSourceCollection.ts"],"names":[],"mappings":";;;;AAEA,iFAAuE;AACvE,2EAA0C;AAE1C,SAAgB,uBAAuB,CAAC,UAA8B;IACpE,MAAM,cAAc,GAAG,IAAA,2CAAiB,GAAE,CAAA;IAC1C,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,mBAAS,EAC7C,UAAU,EAAE,EAAE,EACd,GAAG,EAAE,CAAC,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,CACvE,CAAA;IAED,OAAO;QACL,UAAU;QACV,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAXD,0DAWC"}
1
+ {"version":3,"file":"useDataSourceCollection.js","sourceRoot":"","sources":["../../src/data-sources/useDataSourceCollection.ts"],"names":[],"mappings":";;;;AAEA,iFAAuE;AACvE,2EAA0C;AAE1C,SAAgB,uBAAuB,CAAC,UAAsB;IAC5D,MAAM,cAAc,GAAG,IAAA,2CAAiB,GAAE,CAAA;IAC1C,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,mBAAS,EAC7C,UAAU,EAAE,EAAE,EACd,GAAG,EAAE,CAAC,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,CACvE,CAAA;IAED,OAAO;QACL,UAAU;QACV,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAXD,0DAWC"}
@@ -1,10 +1,10 @@
1
- import { DataSourceInstance } from '@integration-app/sdk/data-sources';
2
- export declare function useDataSourceLocations(dataSource: DataSourceInstance, args?: {
1
+ import { DataSource } from '@integration-app/sdk/data-sources';
2
+ export declare function useDataSourceLocations(dataSource: DataSource, args?: {
3
3
  path?: string;
4
4
  cursor?: string;
5
5
  }): {
6
- loading: boolean;
7
- error: Error;
6
+ loading: any;
7
+ error: any;
8
8
  refresh: () => void;
9
- locations: import("@integration-app/sdk/data-locations").DataLocation[];
9
+ locations: any;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDataSourceLocations.js","sourceRoot":"","sources":["../../src/data-sources/useDataSourceLocations.ts"],"names":[],"mappings":";;;;AAEA,iFAAuE;AACvE,2EAA0C;AAE1C,SAAgB,sBAAsB,CACpC,UAA8B,EAC9B,IAGC;IAED,MAAM,cAAc,GAAG,IAAA,2CAAiB,GAAE,CAAA;IAC1C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,mBAAS,EACjC,UAAU,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACjE,GAAG,EAAE,CAAC,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAC1E,CAAA;IAED,OAAO;QACL,SAAS,EAAE,IAAI,EAAE,SAAS,IAAI,EAAE;QAChC,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAjBD,wDAiBC"}
1
+ {"version":3,"file":"useDataSourceLocations.js","sourceRoot":"","sources":["../../src/data-sources/useDataSourceLocations.ts"],"names":[],"mappings":";;;;AAEA,iFAAuE;AACvE,2EAA0C;AAE1C,SAAgB,sBAAsB,CACpC,UAAsB,EACtB,IAGC;IAED,MAAM,cAAc,GAAG,IAAA,2CAAiB,GAAE,CAAA;IAC1C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,mBAAS,EACjC,UAAU,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACjE,GAAG,EAAE,CAAC,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAC1E,CAAA;IAED,OAAO;QACL,SAAS,EAAE,IAAI,EAAE,SAAS,IAAI,EAAE;QAChC,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAjBD,wDAiBC"}
@@ -1,6 +1,6 @@
1
1
  export default function useGetter<Type = any>(key: string, getter: () => Promise<Type>): {
2
- data: Type;
3
- loading: boolean;
4
- error: Error;
2
+ data: any;
3
+ loading: any;
4
+ error: any;
5
5
  refresh: () => void;
6
6
  };
@@ -1,6 +1,5 @@
1
- import { ConnectorSpec } from '@integration-app/sdk/connector-api';
2
1
  export declare function useConnectorSpec(integrationKey: string): {
3
- data: ConnectorSpec;
4
- loading: boolean;
5
- error: Error;
2
+ data: any;
3
+ loading: any;
4
+ error: any;
6
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integration-app/react",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
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.15"
22
+ "@integration-app/sdk": "^0.16.25"
23
23
  },
24
24
  "devDependencies": {
25
25
  "copy": "^0.3.2",