@workos-inc/widgets 1.7.0 → 1.7.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.
@@ -146,26 +146,34 @@ const DataIntegrationIntegrationType = {
146
146
  box: "box",
147
147
  confluence: "confluence",
148
148
  dropbox: "dropbox",
149
+ "frame-io": "frame-io",
150
+ front: "front",
149
151
  github: "github",
150
152
  gitlab: "gitlab",
151
153
  gmail: "gmail",
152
154
  google: "google",
153
155
  "google-calendar": "google-calendar",
154
156
  "google-drive": "google-drive",
157
+ helpscout: "helpscout",
155
158
  hubspot: "hubspot",
156
159
  intercom: "intercom",
157
160
  jira: "jira",
158
161
  linear: "linear",
159
162
  microsoft: "microsoft",
160
163
  "microsoft-onedrive": "microsoft-onedrive",
164
+ "microsoft-onenote": "microsoft-onenote",
161
165
  "microsoft-outlook": "microsoft-outlook",
162
166
  "microsoft-outlook-calendar": "microsoft-outlook-calendar",
167
+ "microsoft-sharepoint": "microsoft-sharepoint",
168
+ "microsoft-teams": "microsoft-teams",
169
+ "microsoft-todo": "microsoft-todo",
163
170
  notion: "notion",
164
171
  prefect: "prefect",
165
172
  "pydantic-logfire": "pydantic-logfire",
166
173
  salesforce: "salesforce",
167
174
  sentry: "sentry",
168
175
  slack: "slack",
176
+ snowflake: "snowflake",
169
177
  stripe: "stripe",
170
178
  zendesk: "zendesk"
171
179
  };
@@ -1260,24 +1268,28 @@ function useMyDataIntegrations(options, queryClient) {
1260
1268
  const useGetDataIntegrationAuthorizeUrlHook = () => {
1261
1269
  const getDataIntegrationAuthorizeUrl = useWidgetsApiClient();
1262
1270
  return useCallback(
1263
- (slug, signal) => {
1271
+ (slug, params, signal) => {
1264
1272
  return getDataIntegrationAuthorizeUrl({
1265
1273
  url: `/_widgets/DataIntegrations/${slug}/authorize`,
1266
1274
  method: "GET",
1275
+ params,
1267
1276
  signal
1268
1277
  });
1269
1278
  },
1270
1279
  [getDataIntegrationAuthorizeUrl]
1271
1280
  );
1272
1281
  };
1273
- const getGetDataIntegrationAuthorizeUrlQueryKey = (slug) => {
1274
- return [`/_widgets/DataIntegrations/${slug}/authorize`];
1282
+ const getGetDataIntegrationAuthorizeUrlQueryKey = (slug, params) => {
1283
+ return [
1284
+ `/_widgets/DataIntegrations/${slug}/authorize`,
1285
+ ...params ? [params] : []
1286
+ ];
1275
1287
  };
1276
- const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, options) => {
1288
+ const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, params, options) => {
1277
1289
  const { query: queryOptions } = options ?? {};
1278
- const queryKey = queryOptions?.queryKey ?? getGetDataIntegrationAuthorizeUrlQueryKey(slug);
1290
+ const queryKey = queryOptions?.queryKey ?? getGetDataIntegrationAuthorizeUrlQueryKey(slug, params);
1279
1291
  const getDataIntegrationAuthorizeUrl = useGetDataIntegrationAuthorizeUrlHook();
1280
- const queryFn = ({ signal }) => getDataIntegrationAuthorizeUrl(slug, signal);
1292
+ const queryFn = ({ signal }) => getDataIntegrationAuthorizeUrl(slug, params, signal);
1281
1293
  const customOptions = useWidgetsApiQueryOptions({
1282
1294
  ...queryOptions,
1283
1295
  queryKey,
@@ -1285,9 +1297,10 @@ const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, options) => {
1285
1297
  });
1286
1298
  return customOptions;
1287
1299
  };
1288
- function useGetDataIntegrationAuthorizeUrl(slug, options, queryClient) {
1300
+ function useGetDataIntegrationAuthorizeUrl(slug, params, options, queryClient) {
1289
1301
  const queryOptions = useGetDataIntegrationAuthorizeUrlQueryOptions(
1290
1302
  slug,
1303
+ params,
1291
1304
  options
1292
1305
  );
1293
1306
  const query = useQuery(queryOptions, queryClient);