@useparagon/connect 1.0.1 → 1.0.2
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/changelog.md +4 -0
- package/dist/src/ConnectSDK.d.ts +3 -2
- package/dist/src/index.js +16 -5
- package/dist/src/types/sdk.d.ts +3 -3
- package/package.json +1 -1
package/dist/src/types/sdk.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export type SDKFunctionErrorMessage = {
|
|
|
45
45
|
export type SDKReceivedMessage = SDKFunctionInvocationMessage;
|
|
46
46
|
export interface IConnectSDK {
|
|
47
47
|
authenticate(projectId: string, token: string, options?: AuthenticateOptions): Promise<void>;
|
|
48
|
-
connect(action: string): void;
|
|
48
|
+
connect(action: string, options: ConnectParams): void;
|
|
49
49
|
getUser(): ConnectUser;
|
|
50
50
|
/**
|
|
51
51
|
* **Do not call this function directly.**
|
|
@@ -66,7 +66,7 @@ export interface IConnectSDK {
|
|
|
66
66
|
* Install Options:
|
|
67
67
|
* `{showPortalAfterInstall: boolean}` decides wether to show portal with configuration view after the installation is completed
|
|
68
68
|
*/
|
|
69
|
-
installIntegration(name: string, options: InstallOptions): Promise<void>;
|
|
69
|
+
installIntegration(name: string, options: Partial<Omit<InstallOptions, 'isApiInstallation'>>): Promise<void>;
|
|
70
70
|
/**
|
|
71
71
|
* uninstalls an integration for connected user.
|
|
72
72
|
*/
|
|
@@ -187,7 +187,7 @@ export type UserProvidedIntegrationConfig = {
|
|
|
187
187
|
[objectName: string]: DynamicMappingField[] | DynamicMappingOptions;
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
export type ConnectParams = CallbackMap & UserProvidedIntegrationConfig
|
|
190
|
+
export type ConnectParams = CallbackMap & UserProvidedIntegrationConfig;
|
|
191
191
|
export type EventInfo = {
|
|
192
192
|
type: SDK_EVENT;
|
|
193
193
|
integrationId: string;
|