@useparagon/connect 2.2.7 → 2.2.8-experimental-18433.1
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/dist/src/ConnectSDK.d.ts
CHANGED
|
@@ -175,6 +175,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
175
175
|
}): Promise<IntegrationInstallEvent | undefined>;
|
|
176
176
|
_oauthErrorCallback(errorMessage: string | object, event?: MessageEvent): Promise<void>;
|
|
177
177
|
customDropdownOptionsLoaders: Record<string, (cursor?: string | undefined, search?: string | undefined) => LoadCustomDropdownOptionsResult>;
|
|
178
|
+
/**
|
|
179
|
+
* Display the Paragon Connect modal
|
|
180
|
+
*/
|
|
178
181
|
_loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
|
|
179
182
|
/**
|
|
180
183
|
* Send a Connect API request. Automatically handles authorization and errors.
|
|
@@ -251,8 +254,12 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
251
254
|
private getIntegrationForWorkflow;
|
|
252
255
|
private updateLocalState;
|
|
253
256
|
/**
|
|
254
|
-
*
|
|
255
|
-
|
|
257
|
+
* Sends user metadata to the API via PATCH /sdk/me (request body supports non-ASCII).
|
|
258
|
+
*/
|
|
259
|
+
private patchUserMetadata;
|
|
260
|
+
/**
|
|
261
|
+
* Gets the user data from api `/sdk/me`.
|
|
262
|
+
* User metadata is set via PATCH after this succeeds when provided in authenticate (see updateLocalState).
|
|
256
263
|
*/
|
|
257
264
|
private fetchUserData;
|
|
258
265
|
/**
|
|
@@ -341,7 +348,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
341
348
|
* @param userSettingsUpdate - A partial map of input IDs <> values to update the workflow's settings
|
|
342
349
|
* @param settings - Optional object with selectedCredentialId or selectedConfigurationId
|
|
343
350
|
* @returns Promise with the new user state and an array of errors, if any were found
|
|
344
|
-
* @throws Error if the workflow
|
|
351
|
+
* @throws Error if the workflow is not enabled or if the integration is not found
|
|
345
352
|
*/
|
|
346
353
|
updateWorkflowUserSettings(integration: string, workflowId: string, userSettingsUpdate: Record<string, any>, settings?: CredentialConfigOptions): Promise<{
|
|
347
354
|
userState: AuthenticatedConnectUser;
|