@useparagon/connect 2.2.8-experimental.2 → 2.2.8-experimental.3
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 +2 -18
- package/dist/src/ConnectSDK.js +1 -1
- package/dist/src/entities/connectCredential.interface.d.ts +0 -7
- package/dist/src/index.js +1 -1
- package/dist/src/types/connect.d.ts +1 -12
- package/dist/src/types/sdk.d.ts +3 -23
- package/dist/src/utils/generic.d.ts +0 -6
- package/package.json +1 -1
package/dist/src/ConnectSDK.d.ts
CHANGED
|
@@ -75,18 +75,6 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
75
75
|
* @param validateIsEnabled boolean
|
|
76
76
|
*/
|
|
77
77
|
validateAction(action: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* Validates that the provided `externalId` and `selectedCredentialId` install options are
|
|
80
|
-
* mutually exclusive, and that the `externalId` is not already in use for the given integration.
|
|
81
|
-
*
|
|
82
|
-
* `selectedCredentialId` accepts either a Paragon credential UUID, a plain `externalId` string,
|
|
83
|
-
* or an `ext:<value>` prefixed string — all resolve to a credential by its customer-supplied `externalId`.
|
|
84
|
-
* The `ext:` prefix is optional and only required when the externalId value itself looks like a UUID.
|
|
85
|
-
*
|
|
86
|
-
* Throws a descriptive error in either case so the developer gets actionable feedback before
|
|
87
|
-
* the OAuth popup opens.
|
|
88
|
-
*/
|
|
89
|
-
private validateExternalIdOptions;
|
|
90
78
|
/**
|
|
91
79
|
* checks if the integration is installed.
|
|
92
80
|
* Assumes that the user is authenticated
|
|
@@ -263,12 +251,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
263
251
|
private getIntegrationForWorkflow;
|
|
264
252
|
private updateLocalState;
|
|
265
253
|
/**
|
|
266
|
-
*
|
|
267
|
-
|
|
268
|
-
private patchUserMetadata;
|
|
269
|
-
/**
|
|
270
|
-
* Gets the user data from api `/sdk/me`.
|
|
271
|
-
* User metadata is set via PATCH after this succeeds when provided in authenticate (see updateLocalState).
|
|
254
|
+
* gets the user data from api `/sdk/me`
|
|
255
|
+
* userMeta header is passed to support user metadata upsert based on authentication options
|
|
272
256
|
*/
|
|
273
257
|
private fetchUserData;
|
|
274
258
|
/**
|