@useparagon/connect 2.1.2-experimental.8 → 2.1.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.
@@ -179,11 +179,7 @@ export interface IConnectSDK {
179
179
  * @param path request path
180
180
  * @param init request initialization options {method: httpMethod, body:RequestBody, header}
181
181
  */
182
- request<TResponse>(action: string, path: string, init: {
183
- method: RequestInit['method'];
184
- body: RequestInit['body'] | object;
185
- headers: RequestInit['headers'];
186
- }): Promise<TResponse | undefined>;
182
+ request<TResponse>(action: string, path: string, init: ProxyRequestOptions): Promise<TResponse | undefined>;
187
183
  /**
188
184
  * listen on connect sdk events
189
185
  * @param eventName SDKEVENTS
@@ -438,7 +434,6 @@ export type FilePickerOptions = {
438
434
  googledrive?: {
439
435
  viewMode?: google.picker.DocsViewMode;
440
436
  includeFolders?: boolean;
441
- enableSharedDrives?: boolean;
442
437
  };
443
438
  box?: {
444
439
  container?: string;
@@ -487,4 +482,10 @@ export type UpdateWorkflowStateResponse = {
487
482
  user: ConnectUser;
488
483
  errors: UpdateWorkflowStateError[];
489
484
  };
485
+ export type ProxyRequestOptions = {
486
+ selectedCredentialId?: string;
487
+ method: RequestInit['method'];
488
+ body: RequestInit['body'] | object;
489
+ headers: RequestInit['headers'];
490
+ };
490
491
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.1.2-experimental.8",
3
+ "version": "2.1.2",
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",