@quiltt/core 3.7.3 → 3.7.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @quiltt/core
2
2
 
3
+ ## 3.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#296](https://github.com/quiltt/quiltt-js/pull/296) [`bff9d1f`](https://github.com/quiltt/quiltt-js/commit/bff9d1fb4f89c9c762de85ca0d8ee9a35dd10f7e) Thanks [@rubendinho](https://github.com/rubendinho)! - Fix typings
8
+
3
9
  ## 3.7.3
4
10
 
5
11
  ### Patch Changes
@@ -203,7 +203,7 @@ import { print } from 'graphql';
203
203
  */ const GlobalStorage = new Storage();
204
204
 
205
205
  var name = "@quiltt/core";
206
- var version$1 = "3.7.3";
206
+ var version$1 = "3.7.4";
207
207
 
208
208
  const QUILTT_API_INSECURE = (()=>{
209
209
  try {
package/dist/index.d.ts CHANGED
@@ -101,13 +101,11 @@ type ConnectorSDKCallbackMetadata = {
101
101
  };
102
102
  /**
103
103
  Options for the standard Connect flow
104
- @param institution The Institution search term or ID to preload
104
+ @param institution The Institution ID or search term to connect
105
105
  */
106
106
  type ConnectorSDKConnectOptions = ConnectorSDKCallbacks & {
107
- /** The Institution search term or ID to preload */
107
+ /** The Institution ID or search term to connect */
108
108
  institution?: string;
109
- /** The ID of the Connection to reconnect */
110
- connectionId?: string;
111
109
  };
112
110
  /**
113
111
  * Options for the Reconnect flow
@@ -118,7 +116,12 @@ type ConnectorSDKReconnectOptions = ConnectorSDKCallbacks & {
118
116
  connectionId: string;
119
117
  };
120
118
  /** Options to initialize Connector */
121
- type ConnectorSDKConnectorOptions = ConnectorSDKConnectOptions | ConnectorSDKConnectOptions;
119
+ type ConnectorSDKConnectorOptions = ConnectorSDKCallbacks & {
120
+ /** The Institution ID or search term to connect */
121
+ institution?: string;
122
+ /** The ID of the Connection to reconnect */
123
+ connectionId?: string;
124
+ };
122
125
 
123
126
  /**
124
127
  * unauthorizedCallback only triggers in the event the token is present, and
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApolloLink, ApolloClient } from '@apollo/client/index.js';
2
2
  export { InMemoryCache, gql, useMutation, useQuery, useSubscription } from '@apollo/client/index.js';
3
- import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-D8TnyRwk.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-D8TnyRwk.js';
3
+ import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-DzYpB3s-.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-DzYpB3s-.js';
5
5
  import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
6
6
  import crossfetch from 'cross-fetch';
7
7
  import { onError } from '@apollo/client/link/error/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -115,13 +115,11 @@ export type ConnectorSDKCallbackMetadata = {
115
115
 
116
116
  /**
117
117
  Options for the standard Connect flow
118
- @param institution The Institution search term or ID to preload
118
+ @param institution The Institution ID or search term to connect
119
119
  */
120
120
  export type ConnectorSDKConnectOptions = ConnectorSDKCallbacks & {
121
- /** The Institution search term or ID to preload */
121
+ /** The Institution ID or search term to connect */
122
122
  institution?: string
123
- /** The ID of the Connection to reconnect */
124
- connectionId?: string
125
123
  }
126
124
 
127
125
  /**
@@ -134,4 +132,11 @@ export type ConnectorSDKReconnectOptions = ConnectorSDKCallbacks & {
134
132
  }
135
133
 
136
134
  /** Options to initialize Connector */
137
- export type ConnectorSDKConnectorOptions = ConnectorSDKConnectOptions | ConnectorSDKConnectOptions
135
+ // @todo: refactor into a union type - it's either or.
136
+ export type ConnectorSDKConnectorOptions = ConnectorSDKCallbacks & {
137
+ /** The Institution ID or search term to connect */
138
+ institution?: string
139
+
140
+ /** The ID of the Connection to reconnect */
141
+ connectionId?: string
142
+ }