@useparagon/connect 2.2.1-experimental.1 → 2.2.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.
@@ -1,3 +1,31 @@
1
+ /*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*!
9
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
10
+ *
11
+ * Copyright (c) 2014-2017, Jon Schlinkert.
12
+ * Released under the MIT License.
13
+ */
14
+
15
+ /*!
16
+ * isobject <https://github.com/jonschlinkert/isobject>
17
+ *
18
+ * Copyright (c) 2014-2017, Jon Schlinkert.
19
+ * Released under the MIT License.
20
+ */
21
+
22
+ /*!
23
+ * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
24
+ *
25
+ * Copyright (c) 2015-present, Jon Schlinkert.
26
+ * Released under the MIT License.
27
+ */
28
+
1
29
  /*! *****************************************************************************
2
30
  Copyright (c) Microsoft Corporation.
3
31
 
@@ -12,3 +40,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
41
  PERFORMANCE OF THIS SOFTWARE.
14
42
  ***************************************************************************** */
43
+
44
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -0,0 +1 @@
1
+ export declare function cloneDeep<T>(obj: T): T;
@@ -197,6 +197,7 @@ export type SDKResourceState = {
197
197
  slug: string;
198
198
  credentialId?: string;
199
199
  credentialStatus?: CredentialStatus;
200
+ integrationId?: string;
200
201
  };
201
202
  export type SDKIntegration = {
202
203
  enabled: boolean;
@@ -240,6 +241,7 @@ export type IConnectUserWithProject = IConnectUser & {
240
241
  export declare const INFER_CONTENT_TYPE_FROM_CONNECT_OPTIONS = "auto";
241
242
  export declare const SELECTED_CREDENTIAL_ID_HEADER = "X-Paragon-Credential";
242
243
  export declare const SELECTED_CREDENTIAL_CONFIG_ID_HEADER = "X-Paragon-Configuration-Id";
244
+ export declare const SDK_VERSION_HEADER = "X-Paragon-SDK-Version";
243
245
  export type AccountTypeStage = {
244
246
  stage: 'accountType';
245
247
  options: AccountType[];
@@ -221,6 +221,12 @@ export interface IConnectSDK {
221
221
  * Closing the portal by invoking this method
222
222
  */
223
223
  closePortal(): void;
224
+ /**
225
+ * Get custom webhook user level, manual url
226
+ * @param workflowId
227
+ * @param connectCredentialId
228
+ */
229
+ getCustomWebhookUserManualUrl(workflowId: string, connectCredentialId?: string): Promise<string>;
224
230
  /**
225
231
  * Creates a new configuration using the provided credentials.
226
232
  *
@@ -235,7 +241,7 @@ export interface IConnectSDK {
235
241
  *
236
242
  * @param {DeleteConfigurationOptions} params - An object containing the necessary parameters.
237
243
  * @param {string} params.id - The ID of the configuration to be destroyed.
238
- * @param {string} params.credentialId - The ID of the credential to be destroyed.
244
+ * @param {string} params.credentialId - The ID of the credential to which this configuration belongs.
239
245
  * @returns {Promise<void>} - A promise that resolves when the configuration is successfully destroyed.
240
246
  */
241
247
  destroyConfiguration(params: DeleteConfigurationOptions): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.2.1-experimental.1",
3
+ "version": "2.2.1",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -30,6 +30,7 @@
30
30
  "typecheck": "tsc -p tsconfig.json"
31
31
  },
32
32
  "dependencies": {
33
+ "clone-deep": "^4.0.1",
33
34
  "hash.js": "^1.1.7",
34
35
  "jwt-decode": "^3.1.2",
35
36
  "react": "^17.0.2",
@@ -41,6 +42,7 @@
41
42
  "@babel/preset-react": "^7.12.5",
42
43
  "@testing-library/jest-dom": "^5.14.1",
43
44
  "@testing-library/react": "^12.1.0",
45
+ "@types/clone-deep": "^4.0.4",
44
46
  "@types/gapi": "^0.0.47",
45
47
  "@types/google.picker": "^0.0.42",
46
48
  "@types/jest": "^29.5.1",