@workos-inc/widgets 1.9.0 → 1.9.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/admin-portal-domain-verification.client.cjs.map +1 -1
- package/dist/cjs/admin-portal-sso-connection.client.cjs +4 -7
- package/dist/cjs/admin-portal-sso-connection.client.cjs.map +1 -1
- package/dist/cjs/api/endpoint.cjs +176 -285
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +345 -379
- package/dist/cjs/directory-sync.client.cjs +16 -3
- package/dist/cjs/directory-sync.client.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.cjs +42 -183
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +325 -369
- package/dist/cjs/experimental/api/react-query.cjs +151 -263
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +380 -370
- package/dist/cjs/experimental/api/swr.cjs +84 -183
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +356 -408
- package/dist/cjs/lib/add-mfa-dialog.cjs +18 -16
- package/dist/cjs/lib/add-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.cjs +0 -8
- package/dist/cjs/lib/admin-portal-sso-connection.cjs.map +1 -1
- package/dist/cjs/lib/admin-portal-sso-connection.d.cts +1 -2
- package/dist/cjs/lib/identity-providers.d.cts +2 -2
- package/dist/cjs/lib/provider-icon.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.d.cts +2 -2
- package/dist/cjs/workos-widgets.client.cjs +13 -1
- package/dist/cjs/workos-widgets.client.cjs.map +1 -1
- package/dist/esm/admin-portal-domain-verification.client.js +2 -2
- package/dist/esm/admin-portal-domain-verification.client.js.map +1 -1
- package/dist/esm/admin-portal-sso-connection.client.js +6 -9
- package/dist/esm/admin-portal-sso-connection.client.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +345 -379
- package/dist/esm/api/endpoint.js +168 -265
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.js +16 -3
- package/dist/esm/directory-sync.client.js.map +1 -1
- package/dist/esm/experimental/api/fetch.d.ts +325 -369
- package/dist/esm/experimental/api/fetch.js +38 -163
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +380 -370
- package/dist/esm/experimental/api/react-query.js +141 -243
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +356 -408
- package/dist/esm/experimental/api/swr.js +76 -163
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/lib/add-mfa-dialog.js +18 -16
- package/dist/esm/lib/add-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/admin-portal-sso-connection.d.ts +1 -2
- package/dist/esm/lib/admin-portal-sso-connection.js +0 -8
- package/dist/esm/lib/admin-portal-sso-connection.js.map +1 -1
- package/dist/esm/lib/identity-providers.d.ts +2 -2
- package/dist/esm/lib/provider-icon.d.ts +2 -2
- package/dist/esm/lib/provider-icon.js.map +1 -1
- package/dist/esm/workos-widgets.client.js +13 -1
- package/dist/esm/workos-widgets.client.js.map +1 -1
- package/package.json +4 -4
|
@@ -18,18 +18,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var endpoint_exports = {};
|
|
20
20
|
__export(endpoint_exports, {
|
|
21
|
-
AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider: () => AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider,
|
|
22
|
-
AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider,
|
|
23
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider,
|
|
24
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject: () => CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
25
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject: () => CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
26
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType: () => CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
27
|
-
DataInstallationAllOfObject: () => DataInstallationAllOfObject,
|
|
28
|
-
DataInstallationAllOfState: () => DataInstallationAllOfState,
|
|
29
|
-
DataIntegrationCredentialsType: () => DataIntegrationCredentialsType,
|
|
30
|
-
DataIntegrationIntegrationType: () => DataIntegrationIntegrationType,
|
|
31
|
-
DataIntegrationObject: () => DataIntegrationObject,
|
|
32
|
-
DataIntegrationOwnership: () => DataIntegrationOwnership,
|
|
33
21
|
DirectoryState: () => DirectoryState,
|
|
34
22
|
DirectoryType: () => DirectoryType,
|
|
35
23
|
DomainVerificationNameServer: () => DomainVerificationNameServer,
|
|
@@ -39,18 +27,12 @@ __export(endpoint_exports, {
|
|
|
39
27
|
OidcSessionState: () => OidcSessionState,
|
|
40
28
|
OrganizationDomainState: () => OrganizationDomainState,
|
|
41
29
|
SamlSessionState: () => SamlSessionState,
|
|
42
|
-
SendVerificationResponseType: () => SendVerificationResponseType,
|
|
43
|
-
SettingsResponseObject: () => SettingsResponseObject,
|
|
44
|
-
SsoConnectionAnyOfEightAllOfProviderTag: () => SsoConnectionAnyOfEightAllOfProviderTag,
|
|
45
|
-
SsoConnectionAnyOfEightAllOfState: () => SsoConnectionAnyOfEightAllOfState,
|
|
46
|
-
SsoConnectionAnyOfEightAllOfType: () => SsoConnectionAnyOfEightAllOfType,
|
|
47
|
-
SsoConnectionAnyOfProviderTag: () => SsoConnectionAnyOfProviderTag,
|
|
48
|
-
SsoConnectionAnyOfState: () => SsoConnectionAnyOfState,
|
|
49
|
-
SsoConnectionAnyOfType: () => SsoConnectionAnyOfType,
|
|
50
30
|
SsoConnectionSessionJSONState: () => SsoConnectionSessionJSONState,
|
|
51
31
|
getAuthenticationInformationQueryKey: () => getAuthenticationInformationQueryKey,
|
|
32
|
+
getGetAuditLogStreamQueryKey: () => getGetAuditLogStreamQueryKey,
|
|
52
33
|
getGetDataInstallationAuthorizationStatusQueryKey: () => getGetDataInstallationAuthorizationStatusQueryKey,
|
|
53
34
|
getGetDataIntegrationAuthorizeUrlQueryKey: () => getGetDataIntegrationAuthorizeUrlQueryKey,
|
|
35
|
+
getGetDirectoryQueryKey: () => getGetDirectoryQueryKey,
|
|
54
36
|
getListDirectoriesQueryKey: () => getListDirectoriesQueryKey,
|
|
55
37
|
getListOrganizationApiKeyPermissionsQueryKey: () => getListOrganizationApiKeyPermissionsQueryKey,
|
|
56
38
|
getListOrganizationApiKeysQueryKey: () => getListOrganizationApiKeysQueryKey,
|
|
@@ -94,12 +76,18 @@ __export(endpoint_exports, {
|
|
|
94
76
|
useGenerateAdminPortalLink: () => useGenerateAdminPortalLink,
|
|
95
77
|
useGenerateAdminPortalLinkHook: () => useGenerateAdminPortalLinkHook,
|
|
96
78
|
useGenerateAdminPortalLinkMutationOptions: () => useGenerateAdminPortalLinkMutationOptions,
|
|
79
|
+
useGetAuditLogStream: () => useGetAuditLogStream,
|
|
80
|
+
useGetAuditLogStreamHook: () => useGetAuditLogStreamHook,
|
|
81
|
+
useGetAuditLogStreamQueryOptions: () => useGetAuditLogStreamQueryOptions,
|
|
97
82
|
useGetDataInstallationAuthorizationStatus: () => useGetDataInstallationAuthorizationStatus,
|
|
98
83
|
useGetDataInstallationAuthorizationStatusHook: () => useGetDataInstallationAuthorizationStatusHook,
|
|
99
84
|
useGetDataInstallationAuthorizationStatusQueryOptions: () => useGetDataInstallationAuthorizationStatusQueryOptions,
|
|
100
85
|
useGetDataIntegrationAuthorizeUrl: () => useGetDataIntegrationAuthorizeUrl,
|
|
101
86
|
useGetDataIntegrationAuthorizeUrlHook: () => useGetDataIntegrationAuthorizeUrlHook,
|
|
102
87
|
useGetDataIntegrationAuthorizeUrlQueryOptions: () => useGetDataIntegrationAuthorizeUrlQueryOptions,
|
|
88
|
+
useGetDirectory: () => useGetDirectory,
|
|
89
|
+
useGetDirectoryHook: () => useGetDirectoryHook,
|
|
90
|
+
useGetDirectoryQueryOptions: () => useGetDirectoryQueryOptions,
|
|
103
91
|
useInviteMember: () => useInviteMember,
|
|
104
92
|
useInviteMemberHook: () => useInviteMemberHook,
|
|
105
93
|
useInviteMemberMutationOptions: () => useInviteMemberMutationOptions,
|
|
@@ -203,33 +191,6 @@ const MemberActionsItem = {
|
|
|
203
191
|
"revoke-invite": "revoke-invite",
|
|
204
192
|
"revoke-membership": "revoke-membership"
|
|
205
193
|
};
|
|
206
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {
|
|
207
|
-
authentication_factor: "authentication_factor"
|
|
208
|
-
};
|
|
209
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
|
|
210
|
-
generic_otp: "generic_otp",
|
|
211
|
-
sms: "sms",
|
|
212
|
-
totp: "totp",
|
|
213
|
-
webauthn: "webauthn"
|
|
214
|
-
};
|
|
215
|
-
const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
|
|
216
|
-
authentication_challenge: "authentication_challenge"
|
|
217
|
-
};
|
|
218
|
-
const AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider = {
|
|
219
|
-
MFA: "MFA"
|
|
220
|
-
};
|
|
221
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider = {
|
|
222
|
-
Password: "Password"
|
|
223
|
-
};
|
|
224
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider = {
|
|
225
|
-
Passkey: "Passkey"
|
|
226
|
-
};
|
|
227
|
-
const SendVerificationResponseType = {
|
|
228
|
-
EmailVerification: "EmailVerification"
|
|
229
|
-
};
|
|
230
|
-
const SettingsResponseObject = {
|
|
231
|
-
settings: "settings"
|
|
232
|
-
};
|
|
233
194
|
const OrganizationDomainState = {
|
|
234
195
|
Failed: "Failed",
|
|
235
196
|
LegacyVerified: "LegacyVerified",
|
|
@@ -262,121 +223,6 @@ const SsoConnectionSessionJSONState = {
|
|
|
262
223
|
...SamlSessionState,
|
|
263
224
|
...OidcSessionState
|
|
264
225
|
};
|
|
265
|
-
const SsoConnectionAnyOfType = {
|
|
266
|
-
AdfsSaml: "AdfsSaml",
|
|
267
|
-
Auth0Saml: "Auth0Saml",
|
|
268
|
-
AzureSaml: "AzureSaml",
|
|
269
|
-
CasSaml: "CasSaml",
|
|
270
|
-
ClassLinkSaml: "ClassLinkSaml",
|
|
271
|
-
CloudflareSaml: "CloudflareSaml",
|
|
272
|
-
CyberArkSaml: "CyberArkSaml",
|
|
273
|
-
DuoSaml: "DuoSaml",
|
|
274
|
-
GenericSaml: "GenericSaml",
|
|
275
|
-
GoogleSaml: "GoogleSaml",
|
|
276
|
-
JumpCloudSaml: "JumpCloudSaml",
|
|
277
|
-
KeycloakSaml: "KeycloakSaml",
|
|
278
|
-
LastPassSaml: "LastPassSaml",
|
|
279
|
-
MiniOrangeSaml: "MiniOrangeSaml",
|
|
280
|
-
NetIqSaml: "NetIqSaml",
|
|
281
|
-
OktaSaml: "OktaSaml",
|
|
282
|
-
OneLoginSaml: "OneLoginSaml",
|
|
283
|
-
OracleSaml: "OracleSaml",
|
|
284
|
-
PingFederateSaml: "PingFederateSaml",
|
|
285
|
-
PingOneSaml: "PingOneSaml",
|
|
286
|
-
RipplingSaml: "RipplingSaml",
|
|
287
|
-
SalesforceSaml: "SalesforceSaml",
|
|
288
|
-
ShibbolethGenericSaml: "ShibbolethGenericSaml",
|
|
289
|
-
ShibbolethSaml: "ShibbolethSaml",
|
|
290
|
-
SimpleSamlPhpSaml: "SimpleSamlPhpSaml",
|
|
291
|
-
TestIdp: "TestIdp",
|
|
292
|
-
VmWareSaml: "VmWareSaml"
|
|
293
|
-
};
|
|
294
|
-
const SsoConnectionAnyOfState = {
|
|
295
|
-
Inactive: "Inactive",
|
|
296
|
-
Validating: "Validating",
|
|
297
|
-
Active: "Active",
|
|
298
|
-
Deleting: "Deleting"
|
|
299
|
-
};
|
|
300
|
-
const SsoConnectionAnyOfProviderTag = {
|
|
301
|
-
Saml: "Saml"
|
|
302
|
-
};
|
|
303
|
-
const SsoConnectionAnyOfEightAllOfState = {
|
|
304
|
-
Inactive: "Inactive",
|
|
305
|
-
Validating: "Validating",
|
|
306
|
-
Active: "Active",
|
|
307
|
-
Deleting: "Deleting"
|
|
308
|
-
};
|
|
309
|
-
const SsoConnectionAnyOfEightAllOfType = {
|
|
310
|
-
AdpOidc: "AdpOidc",
|
|
311
|
-
Auth0Migration: "Auth0Migration",
|
|
312
|
-
CleverOidc: "CleverOidc",
|
|
313
|
-
EntraIdOidc: "EntraIdOidc",
|
|
314
|
-
GenericOidc: "GenericOidc",
|
|
315
|
-
GoogleOidc: "GoogleOidc",
|
|
316
|
-
OktaOidc: "OktaOidc",
|
|
317
|
-
LoginGovOidc: "LoginGovOidc"
|
|
318
|
-
};
|
|
319
|
-
const SsoConnectionAnyOfEightAllOfProviderTag = {
|
|
320
|
-
OpenIdConnect: "OpenIdConnect"
|
|
321
|
-
};
|
|
322
|
-
const DataInstallationAllOfObject = {
|
|
323
|
-
data_installation: "data_installation",
|
|
324
|
-
connected_account: "connected_account"
|
|
325
|
-
};
|
|
326
|
-
const DataInstallationAllOfState = {
|
|
327
|
-
connected: "connected",
|
|
328
|
-
needs_reauthorization: "needs_reauthorization"
|
|
329
|
-
};
|
|
330
|
-
const DataIntegrationObject = {
|
|
331
|
-
data_integration: "data_integration"
|
|
332
|
-
};
|
|
333
|
-
const DataIntegrationIntegrationType = {
|
|
334
|
-
asana: "asana",
|
|
335
|
-
box: "box",
|
|
336
|
-
"cal-dot-com": "cal-dot-com",
|
|
337
|
-
calendly: "calendly",
|
|
338
|
-
confluence: "confluence",
|
|
339
|
-
dropbox: "dropbox",
|
|
340
|
-
"frame-io": "frame-io",
|
|
341
|
-
front: "front",
|
|
342
|
-
github: "github",
|
|
343
|
-
gitlab: "gitlab",
|
|
344
|
-
gmail: "gmail",
|
|
345
|
-
google: "google",
|
|
346
|
-
"google-calendar": "google-calendar",
|
|
347
|
-
"google-drive": "google-drive",
|
|
348
|
-
helpscout: "helpscout",
|
|
349
|
-
hubspot: "hubspot",
|
|
350
|
-
intercom: "intercom",
|
|
351
|
-
jira: "jira",
|
|
352
|
-
linear: "linear",
|
|
353
|
-
microsoft: "microsoft",
|
|
354
|
-
"microsoft-onedrive": "microsoft-onedrive",
|
|
355
|
-
"microsoft-onenote": "microsoft-onenote",
|
|
356
|
-
"microsoft-outlook": "microsoft-outlook",
|
|
357
|
-
"microsoft-outlook-calendar": "microsoft-outlook-calendar",
|
|
358
|
-
"microsoft-sharepoint": "microsoft-sharepoint",
|
|
359
|
-
"microsoft-teams": "microsoft-teams",
|
|
360
|
-
"microsoft-todo": "microsoft-todo",
|
|
361
|
-
notion: "notion",
|
|
362
|
-
prefect: "prefect",
|
|
363
|
-
"pydantic-logfire": "pydantic-logfire",
|
|
364
|
-
salesforce: "salesforce",
|
|
365
|
-
sentry: "sentry",
|
|
366
|
-
slack: "slack",
|
|
367
|
-
snowflake: "snowflake",
|
|
368
|
-
stripe: "stripe",
|
|
369
|
-
xero: "xero",
|
|
370
|
-
zendesk: "zendesk"
|
|
371
|
-
};
|
|
372
|
-
const DataIntegrationOwnership = {
|
|
373
|
-
userland_user: "userland_user",
|
|
374
|
-
organization: "organization"
|
|
375
|
-
};
|
|
376
|
-
const DataIntegrationCredentialsType = {
|
|
377
|
-
shared: "shared",
|
|
378
|
-
custom: "custom"
|
|
379
|
-
};
|
|
380
226
|
const DirectoryType = {
|
|
381
227
|
azure_scim_v20: "azure scim v2.0",
|
|
382
228
|
bamboohr: "bamboohr",
|
|
@@ -412,7 +258,8 @@ const DirectoryState = {
|
|
|
412
258
|
};
|
|
413
259
|
const GenerateAdminPortalLinkIntent = {
|
|
414
260
|
domain_verification: "domain_verification",
|
|
415
|
-
sso: "sso"
|
|
261
|
+
sso: "sso",
|
|
262
|
+
log_streams: "log_streams"
|
|
416
263
|
};
|
|
417
264
|
const useCreateOrganizationApiKeyHook = () => {
|
|
418
265
|
const createOrganizationApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -440,8 +287,10 @@ const useCreateOrganizationApiKeyMutationOptions = (options) => {
|
|
|
440
287
|
return { mutationFn, ...mutationOptions };
|
|
441
288
|
};
|
|
442
289
|
const useCreateOrganizationApiKey = (options, queryClient) => {
|
|
443
|
-
|
|
444
|
-
|
|
290
|
+
return (0, import_react_query.useMutation)(
|
|
291
|
+
useCreateOrganizationApiKeyMutationOptions(options),
|
|
292
|
+
queryClient
|
|
293
|
+
);
|
|
445
294
|
};
|
|
446
295
|
const useListOrganizationApiKeysHook = () => {
|
|
447
296
|
const listOrganizationApiKeys = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -478,8 +327,7 @@ const useListOrganizationApiKeysQueryOptions = (params, options) => {
|
|
|
478
327
|
function useListOrganizationApiKeys(params, options, queryClient) {
|
|
479
328
|
const queryOptions = useListOrganizationApiKeysQueryOptions(params, options);
|
|
480
329
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
481
|
-
query
|
|
482
|
-
return query;
|
|
330
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
483
331
|
}
|
|
484
332
|
const useListOrganizationApiKeyPermissionsHook = () => {
|
|
485
333
|
const listOrganizationApiKeyPermissions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -519,16 +367,16 @@ function useListOrganizationApiKeyPermissions(params, options, queryClient) {
|
|
|
519
367
|
options
|
|
520
368
|
);
|
|
521
369
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
522
|
-
query
|
|
523
|
-
return query;
|
|
370
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
524
371
|
}
|
|
525
372
|
const useDeleteOrganizationApiKeyHook = () => {
|
|
526
373
|
const deleteOrganizationApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
527
374
|
return (0, import_react.useCallback)(
|
|
528
|
-
(apiKeyId) => {
|
|
375
|
+
(apiKeyId, signal) => {
|
|
529
376
|
return deleteOrganizationApiKey({
|
|
530
377
|
url: `/_widgets/ApiKeys/${apiKeyId}`,
|
|
531
|
-
method: "DELETE"
|
|
378
|
+
method: "DELETE",
|
|
379
|
+
signal
|
|
532
380
|
});
|
|
533
381
|
},
|
|
534
382
|
[deleteOrganizationApiKey]
|
|
@@ -545,16 +393,19 @@ const useDeleteOrganizationApiKeyMutationOptions = (options) => {
|
|
|
545
393
|
return { mutationFn, ...mutationOptions };
|
|
546
394
|
};
|
|
547
395
|
const useDeleteOrganizationApiKey = (options, queryClient) => {
|
|
548
|
-
|
|
549
|
-
|
|
396
|
+
return (0, import_react_query.useMutation)(
|
|
397
|
+
useDeleteOrganizationApiKeyMutationOptions(options),
|
|
398
|
+
queryClient
|
|
399
|
+
);
|
|
550
400
|
};
|
|
551
401
|
const useDeleteDataInstallationHook = () => {
|
|
552
402
|
const deleteDataInstallation = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
553
403
|
return (0, import_react.useCallback)(
|
|
554
|
-
(installationId) => {
|
|
404
|
+
(installationId, signal) => {
|
|
555
405
|
return deleteDataInstallation({
|
|
556
406
|
url: `/_widgets/DataIntegrations/installations/${installationId}`,
|
|
557
|
-
method: "DELETE"
|
|
407
|
+
method: "DELETE",
|
|
408
|
+
signal
|
|
558
409
|
});
|
|
559
410
|
},
|
|
560
411
|
[deleteDataInstallation]
|
|
@@ -571,8 +422,10 @@ const useDeleteDataInstallationMutationOptions = (options) => {
|
|
|
571
422
|
return { mutationFn, ...mutationOptions };
|
|
572
423
|
};
|
|
573
424
|
const useDeleteDataInstallation = (options, queryClient) => {
|
|
574
|
-
|
|
575
|
-
|
|
425
|
+
return (0, import_react_query.useMutation)(
|
|
426
|
+
useDeleteDataInstallationMutationOptions(options),
|
|
427
|
+
queryClient
|
|
428
|
+
);
|
|
576
429
|
};
|
|
577
430
|
const useMyDataIntegrationsHook = () => {
|
|
578
431
|
const myDataIntegrations = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -605,8 +458,7 @@ const useMyDataIntegrationsQueryOptions = (options) => {
|
|
|
605
458
|
function useMyDataIntegrations(options, queryClient) {
|
|
606
459
|
const queryOptions = useMyDataIntegrationsQueryOptions(options);
|
|
607
460
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
608
|
-
query
|
|
609
|
-
return query;
|
|
461
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
610
462
|
}
|
|
611
463
|
const useGetDataInstallationAuthorizationStatusHook = () => {
|
|
612
464
|
const getDataInstallationAuthorizationStatus = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -645,8 +497,7 @@ function useGetDataInstallationAuthorizationStatus(dataIntegrationId, state, opt
|
|
|
645
497
|
options
|
|
646
498
|
);
|
|
647
499
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
648
|
-
query
|
|
649
|
-
return query;
|
|
500
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
650
501
|
}
|
|
651
502
|
const useGetDataIntegrationAuthorizeUrlHook = () => {
|
|
652
503
|
const getDataIntegrationAuthorizeUrl = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -687,8 +538,7 @@ function useGetDataIntegrationAuthorizeUrl(slug, params, options, queryClient) {
|
|
|
687
538
|
options
|
|
688
539
|
);
|
|
689
540
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
690
|
-
query
|
|
691
|
-
return query;
|
|
541
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
692
542
|
}
|
|
693
543
|
const useInviteMemberHook = () => {
|
|
694
544
|
const inviteMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -716,16 +566,16 @@ const useInviteMemberMutationOptions = (options) => {
|
|
|
716
566
|
return { mutationFn, ...mutationOptions };
|
|
717
567
|
};
|
|
718
568
|
const useInviteMember = (options, queryClient) => {
|
|
719
|
-
|
|
720
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
569
|
+
return (0, import_react_query.useMutation)(useInviteMemberMutationOptions(options), queryClient);
|
|
721
570
|
};
|
|
722
571
|
const useRevokeInviteHook = () => {
|
|
723
572
|
const revokeInvite = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
724
573
|
return (0, import_react.useCallback)(
|
|
725
|
-
(userId) => {
|
|
574
|
+
(userId, signal) => {
|
|
726
575
|
return revokeInvite({
|
|
727
576
|
url: `/_widgets/UserManagement/invites/${userId}`,
|
|
728
|
-
method: "DELETE"
|
|
577
|
+
method: "DELETE",
|
|
578
|
+
signal
|
|
729
579
|
});
|
|
730
580
|
},
|
|
731
581
|
[revokeInvite]
|
|
@@ -742,8 +592,7 @@ const useRevokeInviteMutationOptions = (options) => {
|
|
|
742
592
|
return { mutationFn, ...mutationOptions };
|
|
743
593
|
};
|
|
744
594
|
const useRevokeInvite = (options, queryClient) => {
|
|
745
|
-
|
|
746
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
595
|
+
return (0, import_react_query.useMutation)(useRevokeInviteMutationOptions(options), queryClient);
|
|
747
596
|
};
|
|
748
597
|
const useResendInviteHook = () => {
|
|
749
598
|
const resendInvite = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -769,8 +618,7 @@ const useResendInviteMutationOptions = (options) => {
|
|
|
769
618
|
return { mutationFn, ...mutationOptions };
|
|
770
619
|
};
|
|
771
620
|
const useResendInvite = (options, queryClient) => {
|
|
772
|
-
|
|
773
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
621
|
+
return (0, import_react_query.useMutation)(useResendInviteMutationOptions(options), queryClient);
|
|
774
622
|
};
|
|
775
623
|
const useMembersHook = () => {
|
|
776
624
|
const members = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -807,16 +655,16 @@ const useMembersQueryOptions = (params, options) => {
|
|
|
807
655
|
function useMembers(params, options, queryClient) {
|
|
808
656
|
const queryOptions = useMembersQueryOptions(params, options);
|
|
809
657
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
810
|
-
query
|
|
811
|
-
return query;
|
|
658
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
812
659
|
}
|
|
813
660
|
const useRemoveMemberHook = () => {
|
|
814
661
|
const removeMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
815
662
|
return (0, import_react.useCallback)(
|
|
816
|
-
(userId) => {
|
|
663
|
+
(userId, signal) => {
|
|
817
664
|
return removeMember({
|
|
818
665
|
url: `/_widgets/UserManagement/members/${userId}`,
|
|
819
|
-
method: "DELETE"
|
|
666
|
+
method: "DELETE",
|
|
667
|
+
signal
|
|
820
668
|
});
|
|
821
669
|
},
|
|
822
670
|
[removeMember]
|
|
@@ -833,8 +681,7 @@ const useRemoveMemberMutationOptions = (options) => {
|
|
|
833
681
|
return { mutationFn, ...mutationOptions };
|
|
834
682
|
};
|
|
835
683
|
const useRemoveMember = (options, queryClient) => {
|
|
836
|
-
|
|
837
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
684
|
+
return (0, import_react_query.useMutation)(useRemoveMemberMutationOptions(options), queryClient);
|
|
838
685
|
};
|
|
839
686
|
const useUpdateMemberHook = () => {
|
|
840
687
|
const updateMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -862,8 +709,7 @@ const useUpdateMemberMutationOptions = (options) => {
|
|
|
862
709
|
return { mutationFn, ...mutationOptions };
|
|
863
710
|
};
|
|
864
711
|
const useUpdateMember = (options, queryClient) => {
|
|
865
|
-
|
|
866
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
712
|
+
return (0, import_react_query.useMutation)(useUpdateMemberMutationOptions(options), queryClient);
|
|
867
713
|
};
|
|
868
714
|
const useOrganizationsHook = () => {
|
|
869
715
|
const organizations = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -896,8 +742,7 @@ const useOrganizationsQueryOptions = (options) => {
|
|
|
896
742
|
function useOrganizations(options, queryClient) {
|
|
897
743
|
const queryOptions = useOrganizationsQueryOptions(options);
|
|
898
744
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
899
|
-
query
|
|
900
|
-
return query;
|
|
745
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
901
746
|
}
|
|
902
747
|
const useRolesHook = () => {
|
|
903
748
|
const roles = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -930,8 +775,7 @@ const useRolesQueryOptions = (options) => {
|
|
|
930
775
|
function useRoles(options, queryClient) {
|
|
931
776
|
const queryOptions = useRolesQueryOptions(options);
|
|
932
777
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
933
|
-
query
|
|
934
|
-
return query;
|
|
778
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
935
779
|
}
|
|
936
780
|
const useRolesAndConfigHook = () => {
|
|
937
781
|
const rolesAndConfig = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -964,8 +808,7 @@ const useRolesAndConfigQueryOptions = (options) => {
|
|
|
964
808
|
function useRolesAndConfig(options, queryClient) {
|
|
965
809
|
const queryOptions = useRolesAndConfigQueryOptions(options);
|
|
966
810
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
967
|
-
query
|
|
968
|
-
return query;
|
|
811
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
969
812
|
}
|
|
970
813
|
const useAuthenticationInformationHook = () => {
|
|
971
814
|
const authenticationInformation = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -998,8 +841,7 @@ const useAuthenticationInformationQueryOptions = (options) => {
|
|
|
998
841
|
function useAuthenticationInformation(options, queryClient) {
|
|
999
842
|
const queryOptions = useAuthenticationInformationQueryOptions(options);
|
|
1000
843
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1001
|
-
query
|
|
1002
|
-
return query;
|
|
844
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1003
845
|
}
|
|
1004
846
|
const useCreatePasswordHook = () => {
|
|
1005
847
|
const createPassword = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1027,8 +869,7 @@ const useCreatePasswordMutationOptions = (options) => {
|
|
|
1027
869
|
return { mutationFn, ...mutationOptions };
|
|
1028
870
|
};
|
|
1029
871
|
const useCreatePassword = (options, queryClient) => {
|
|
1030
|
-
|
|
1031
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
872
|
+
return (0, import_react_query.useMutation)(useCreatePasswordMutationOptions(options), queryClient);
|
|
1032
873
|
};
|
|
1033
874
|
const useCreateTotpFactorHook = () => {
|
|
1034
875
|
const createTotpFactor = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1053,8 +894,7 @@ const useCreateTotpFactorMutationOptions = (options) => {
|
|
|
1053
894
|
return { mutationFn, ...mutationOptions };
|
|
1054
895
|
};
|
|
1055
896
|
const useCreateTotpFactor = (options, queryClient) => {
|
|
1056
|
-
|
|
1057
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
897
|
+
return (0, import_react_query.useMutation)(useCreateTotpFactorMutationOptions(options), queryClient);
|
|
1058
898
|
};
|
|
1059
899
|
const useMeHook = () => {
|
|
1060
900
|
const me = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1083,8 +923,7 @@ const useMeQueryOptions = (options) => {
|
|
|
1083
923
|
function useMe(options, queryClient) {
|
|
1084
924
|
const queryOptions = useMeQueryOptions(options);
|
|
1085
925
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1086
|
-
query
|
|
1087
|
-
return query;
|
|
926
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1088
927
|
}
|
|
1089
928
|
const useUpdateMeHook = () => {
|
|
1090
929
|
const updateMe = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1112,8 +951,7 @@ const useUpdateMeMutationOptions = (options) => {
|
|
|
1112
951
|
return { mutationFn, ...mutationOptions };
|
|
1113
952
|
};
|
|
1114
953
|
const useUpdateMe = (options, queryClient) => {
|
|
1115
|
-
|
|
1116
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
954
|
+
return (0, import_react_query.useMutation)(useUpdateMeMutationOptions(options), queryClient);
|
|
1117
955
|
};
|
|
1118
956
|
const useRegisterPasskeyHook = () => {
|
|
1119
957
|
const registerPasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1138,8 +976,7 @@ const useRegisterPasskeyMutationOptions = (options) => {
|
|
|
1138
976
|
return { mutationFn, ...mutationOptions };
|
|
1139
977
|
};
|
|
1140
978
|
const useRegisterPasskey = (options, queryClient) => {
|
|
1141
|
-
|
|
1142
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
979
|
+
return (0, import_react_query.useMutation)(useRegisterPasskeyMutationOptions(options), queryClient);
|
|
1143
980
|
};
|
|
1144
981
|
const useVerifyPasskeyHook = () => {
|
|
1145
982
|
const verifyPasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1167,16 +1004,16 @@ const useVerifyPasskeyMutationOptions = (options) => {
|
|
|
1167
1004
|
return { mutationFn, ...mutationOptions };
|
|
1168
1005
|
};
|
|
1169
1006
|
const useVerifyPasskey = (options, queryClient) => {
|
|
1170
|
-
|
|
1171
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1007
|
+
return (0, import_react_query.useMutation)(useVerifyPasskeyMutationOptions(options), queryClient);
|
|
1172
1008
|
};
|
|
1173
1009
|
const useDeletePasskeyHook = () => {
|
|
1174
1010
|
const deletePasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1175
1011
|
return (0, import_react.useCallback)(
|
|
1176
|
-
(passkeyId) => {
|
|
1012
|
+
(passkeyId, signal) => {
|
|
1177
1013
|
return deletePasskey({
|
|
1178
1014
|
url: `/_widgets/UserProfile/passkeys/${passkeyId}`,
|
|
1179
|
-
method: "DELETE"
|
|
1015
|
+
method: "DELETE",
|
|
1016
|
+
signal
|
|
1180
1017
|
});
|
|
1181
1018
|
},
|
|
1182
1019
|
[deletePasskey]
|
|
@@ -1193,8 +1030,7 @@ const useDeletePasskeyMutationOptions = (options) => {
|
|
|
1193
1030
|
return { mutationFn, ...mutationOptions };
|
|
1194
1031
|
};
|
|
1195
1032
|
const useDeletePasskey = (options, queryClient) => {
|
|
1196
|
-
|
|
1197
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1033
|
+
return (0, import_react_query.useMutation)(useDeletePasskeyMutationOptions(options), queryClient);
|
|
1198
1034
|
};
|
|
1199
1035
|
const useSendVerificationHook = () => {
|
|
1200
1036
|
const sendVerification = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1219,8 +1055,7 @@ const useSendVerificationMutationOptions = (options) => {
|
|
|
1219
1055
|
return { mutationFn, ...mutationOptions };
|
|
1220
1056
|
};
|
|
1221
1057
|
const useSendVerification = (options, queryClient) => {
|
|
1222
|
-
|
|
1223
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1058
|
+
return (0, import_react_query.useMutation)(useSendVerificationMutationOptions(options), queryClient);
|
|
1224
1059
|
};
|
|
1225
1060
|
const useSessionsHook = () => {
|
|
1226
1061
|
const sessions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1253,18 +1088,18 @@ const useSessionsQueryOptions = (options) => {
|
|
|
1253
1088
|
function useSessions(options, queryClient) {
|
|
1254
1089
|
const queryOptions = useSessionsQueryOptions(options);
|
|
1255
1090
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1256
|
-
query
|
|
1257
|
-
return query;
|
|
1091
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1258
1092
|
}
|
|
1259
1093
|
const useRevokeAllSessionsHook = () => {
|
|
1260
1094
|
const revokeAllSessions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1261
1095
|
return (0, import_react.useCallback)(
|
|
1262
|
-
(revokeAllSessionsRequest) => {
|
|
1096
|
+
(revokeAllSessionsRequest, signal) => {
|
|
1263
1097
|
return revokeAllSessions({
|
|
1264
1098
|
url: `/_widgets/UserProfile/sessions/revoke-all`,
|
|
1265
1099
|
method: "DELETE",
|
|
1266
1100
|
headers: { "Content-Type": "application/json" },
|
|
1267
|
-
data: revokeAllSessionsRequest
|
|
1101
|
+
data: revokeAllSessionsRequest,
|
|
1102
|
+
signal
|
|
1268
1103
|
});
|
|
1269
1104
|
},
|
|
1270
1105
|
[revokeAllSessions]
|
|
@@ -1281,16 +1116,16 @@ const useRevokeAllSessionsMutationOptions = (options) => {
|
|
|
1281
1116
|
return { mutationFn, ...mutationOptions };
|
|
1282
1117
|
};
|
|
1283
1118
|
const useRevokeAllSessions = (options, queryClient) => {
|
|
1284
|
-
|
|
1285
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1119
|
+
return (0, import_react_query.useMutation)(useRevokeAllSessionsMutationOptions(options), queryClient);
|
|
1286
1120
|
};
|
|
1287
1121
|
const useRevokeSessionHook = () => {
|
|
1288
1122
|
const revokeSession = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1289
1123
|
return (0, import_react.useCallback)(
|
|
1290
|
-
(sessionId) => {
|
|
1124
|
+
(sessionId, signal) => {
|
|
1291
1125
|
return revokeSession({
|
|
1292
1126
|
url: `/_widgets/UserProfile/sessions/revoke/${sessionId}`,
|
|
1293
|
-
method: "DELETE"
|
|
1127
|
+
method: "DELETE",
|
|
1128
|
+
signal
|
|
1294
1129
|
});
|
|
1295
1130
|
},
|
|
1296
1131
|
[revokeSession]
|
|
@@ -1307,17 +1142,20 @@ const useRevokeSessionMutationOptions = (options) => {
|
|
|
1307
1142
|
return { mutationFn, ...mutationOptions };
|
|
1308
1143
|
};
|
|
1309
1144
|
const useRevokeSession = (options, queryClient) => {
|
|
1310
|
-
|
|
1311
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1145
|
+
return (0, import_react_query.useMutation)(useRevokeSessionMutationOptions(options), queryClient);
|
|
1312
1146
|
};
|
|
1313
1147
|
const useDeleteTotpFactorsHook = () => {
|
|
1314
1148
|
const deleteTotpFactors = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1315
|
-
return (0, import_react.useCallback)(
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1149
|
+
return (0, import_react.useCallback)(
|
|
1150
|
+
(signal) => {
|
|
1151
|
+
return deleteTotpFactors({
|
|
1152
|
+
url: `/_widgets/UserProfile/totp-factors`,
|
|
1153
|
+
method: "DELETE",
|
|
1154
|
+
signal
|
|
1155
|
+
});
|
|
1156
|
+
},
|
|
1157
|
+
[deleteTotpFactors]
|
|
1158
|
+
);
|
|
1321
1159
|
};
|
|
1322
1160
|
const useDeleteTotpFactorsMutationOptions = (options) => {
|
|
1323
1161
|
const mutationKey = ["deleteTotpFactors"];
|
|
@@ -1329,8 +1167,7 @@ const useDeleteTotpFactorsMutationOptions = (options) => {
|
|
|
1329
1167
|
return { mutationFn, ...mutationOptions };
|
|
1330
1168
|
};
|
|
1331
1169
|
const useDeleteTotpFactors = (options, queryClient) => {
|
|
1332
|
-
|
|
1333
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1170
|
+
return (0, import_react_query.useMutation)(useDeleteTotpFactorsMutationOptions(options), queryClient);
|
|
1334
1171
|
};
|
|
1335
1172
|
const useUpdatePasswordHook = () => {
|
|
1336
1173
|
const updatePassword = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1358,8 +1195,7 @@ const useUpdatePasswordMutationOptions = (options) => {
|
|
|
1358
1195
|
return { mutationFn, ...mutationOptions };
|
|
1359
1196
|
};
|
|
1360
1197
|
const useUpdatePassword = (options, queryClient) => {
|
|
1361
|
-
|
|
1362
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1198
|
+
return (0, import_react_query.useMutation)(useUpdatePasswordMutationOptions(options), queryClient);
|
|
1363
1199
|
};
|
|
1364
1200
|
const useVerifyHook = () => {
|
|
1365
1201
|
const verify = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1387,8 +1223,7 @@ const useVerifyMutationOptions = (options) => {
|
|
|
1387
1223
|
return { mutationFn, ...mutationOptions };
|
|
1388
1224
|
};
|
|
1389
1225
|
const useVerify = (options, queryClient) => {
|
|
1390
|
-
|
|
1391
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1226
|
+
return (0, import_react_query.useMutation)(useVerifyMutationOptions(options), queryClient);
|
|
1392
1227
|
};
|
|
1393
1228
|
const useVerifyTotpFactorHook = () => {
|
|
1394
1229
|
const verifyTotpFactor = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1416,9 +1251,41 @@ const useVerifyTotpFactorMutationOptions = (options) => {
|
|
|
1416
1251
|
return { mutationFn, ...mutationOptions };
|
|
1417
1252
|
};
|
|
1418
1253
|
const useVerifyTotpFactor = (options, queryClient) => {
|
|
1419
|
-
|
|
1420
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1254
|
+
return (0, import_react_query.useMutation)(useVerifyTotpFactorMutationOptions(options), queryClient);
|
|
1421
1255
|
};
|
|
1256
|
+
const useGetAuditLogStreamHook = () => {
|
|
1257
|
+
const getAuditLogStream = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1258
|
+
return (0, import_react.useCallback)(
|
|
1259
|
+
(signal) => {
|
|
1260
|
+
return getAuditLogStream({
|
|
1261
|
+
url: `/_widgets/admin-portal/audit-log-stream`,
|
|
1262
|
+
method: "GET",
|
|
1263
|
+
signal
|
|
1264
|
+
});
|
|
1265
|
+
},
|
|
1266
|
+
[getAuditLogStream]
|
|
1267
|
+
);
|
|
1268
|
+
};
|
|
1269
|
+
const getGetAuditLogStreamQueryKey = () => {
|
|
1270
|
+
return [`/_widgets/admin-portal/audit-log-stream`];
|
|
1271
|
+
};
|
|
1272
|
+
const useGetAuditLogStreamQueryOptions = (options) => {
|
|
1273
|
+
const { query: queryOptions } = options ?? {};
|
|
1274
|
+
const queryKey = queryOptions?.queryKey ?? getGetAuditLogStreamQueryKey();
|
|
1275
|
+
const getAuditLogStream = useGetAuditLogStreamHook();
|
|
1276
|
+
const queryFn = ({ signal }) => getAuditLogStream(signal);
|
|
1277
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1278
|
+
...queryOptions,
|
|
1279
|
+
queryKey,
|
|
1280
|
+
queryFn
|
|
1281
|
+
});
|
|
1282
|
+
return customOptions;
|
|
1283
|
+
};
|
|
1284
|
+
function useGetAuditLogStream(options, queryClient) {
|
|
1285
|
+
const queryOptions = useGetAuditLogStreamQueryOptions(options);
|
|
1286
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1287
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1288
|
+
}
|
|
1422
1289
|
const useGenerateAdminPortalLinkHook = () => {
|
|
1423
1290
|
const generateAdminPortalLink = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1424
1291
|
return (0, import_react.useCallback)(
|
|
@@ -1444,8 +1311,10 @@ const useGenerateAdminPortalLinkMutationOptions = (options) => {
|
|
|
1444
1311
|
return { mutationFn, ...mutationOptions };
|
|
1445
1312
|
};
|
|
1446
1313
|
const useGenerateAdminPortalLink = (options, queryClient) => {
|
|
1447
|
-
|
|
1448
|
-
|
|
1314
|
+
return (0, import_react_query.useMutation)(
|
|
1315
|
+
useGenerateAdminPortalLinkMutationOptions(options),
|
|
1316
|
+
queryClient
|
|
1317
|
+
);
|
|
1449
1318
|
};
|
|
1450
1319
|
const useListOrganizationDomainsHook = () => {
|
|
1451
1320
|
const listOrganizationDomains = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1478,16 +1347,16 @@ const useListOrganizationDomainsQueryOptions = (options) => {
|
|
|
1478
1347
|
function useListOrganizationDomains(options, queryClient) {
|
|
1479
1348
|
const queryOptions = useListOrganizationDomainsQueryOptions(options);
|
|
1480
1349
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1481
|
-
query
|
|
1482
|
-
return query;
|
|
1350
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1483
1351
|
}
|
|
1484
1352
|
const useDeleteOrganizationDomainHook = () => {
|
|
1485
1353
|
const deleteOrganizationDomain = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1486
1354
|
return (0, import_react.useCallback)(
|
|
1487
|
-
(domainId) => {
|
|
1355
|
+
(domainId, signal) => {
|
|
1488
1356
|
return deleteOrganizationDomain({
|
|
1489
1357
|
url: `/_widgets/admin-portal/organization-domains/${domainId}`,
|
|
1490
|
-
method: "DELETE"
|
|
1358
|
+
method: "DELETE",
|
|
1359
|
+
signal
|
|
1491
1360
|
});
|
|
1492
1361
|
},
|
|
1493
1362
|
[deleteOrganizationDomain]
|
|
@@ -1504,8 +1373,10 @@ const useDeleteOrganizationDomainMutationOptions = (options) => {
|
|
|
1504
1373
|
return { mutationFn, ...mutationOptions };
|
|
1505
1374
|
};
|
|
1506
1375
|
const useDeleteOrganizationDomain = (options, queryClient) => {
|
|
1507
|
-
|
|
1508
|
-
|
|
1376
|
+
return (0, import_react_query.useMutation)(
|
|
1377
|
+
useDeleteOrganizationDomainMutationOptions(options),
|
|
1378
|
+
queryClient
|
|
1379
|
+
);
|
|
1509
1380
|
};
|
|
1510
1381
|
const useReverifyOrganizationDomainHook = () => {
|
|
1511
1382
|
const reverifyOrganizationDomain = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1531,8 +1402,10 @@ const useReverifyOrganizationDomainMutationOptions = (options) => {
|
|
|
1531
1402
|
return { mutationFn, ...mutationOptions };
|
|
1532
1403
|
};
|
|
1533
1404
|
const useReverifyOrganizationDomain = (options, queryClient) => {
|
|
1534
|
-
|
|
1535
|
-
|
|
1405
|
+
return (0, import_react_query.useMutation)(
|
|
1406
|
+
useReverifyOrganizationDomainMutationOptions(options),
|
|
1407
|
+
queryClient
|
|
1408
|
+
);
|
|
1536
1409
|
};
|
|
1537
1410
|
const useListSsoConnectionsHook = () => {
|
|
1538
1411
|
const listSsoConnections = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1565,8 +1438,7 @@ const useListSsoConnectionsQueryOptions = (options) => {
|
|
|
1565
1438
|
function useListSsoConnections(options, queryClient) {
|
|
1566
1439
|
const queryOptions = useListSsoConnectionsQueryOptions(options);
|
|
1567
1440
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1568
|
-
query
|
|
1569
|
-
return query;
|
|
1441
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1570
1442
|
}
|
|
1571
1443
|
const useListDirectoriesHook = () => {
|
|
1572
1444
|
const listDirectories = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1599,8 +1471,40 @@ const useListDirectoriesQueryOptions = (options) => {
|
|
|
1599
1471
|
function useListDirectories(options, queryClient) {
|
|
1600
1472
|
const queryOptions = useListDirectoriesQueryOptions(options);
|
|
1601
1473
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1602
|
-
query
|
|
1603
|
-
|
|
1474
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1475
|
+
}
|
|
1476
|
+
const useGetDirectoryHook = () => {
|
|
1477
|
+
const getDirectory = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1478
|
+
return (0, import_react.useCallback)(
|
|
1479
|
+
(directoryId, signal) => {
|
|
1480
|
+
return getDirectory({
|
|
1481
|
+
url: `/_widgets/directory-sync/directories/${directoryId}`,
|
|
1482
|
+
method: "GET",
|
|
1483
|
+
signal
|
|
1484
|
+
});
|
|
1485
|
+
},
|
|
1486
|
+
[getDirectory]
|
|
1487
|
+
);
|
|
1488
|
+
};
|
|
1489
|
+
const getGetDirectoryQueryKey = (directoryId) => {
|
|
1490
|
+
return [`/_widgets/directory-sync/directories/${directoryId}`];
|
|
1491
|
+
};
|
|
1492
|
+
const useGetDirectoryQueryOptions = (directoryId, options) => {
|
|
1493
|
+
const { query: queryOptions } = options ?? {};
|
|
1494
|
+
const queryKey = queryOptions?.queryKey ?? getGetDirectoryQueryKey(directoryId);
|
|
1495
|
+
const getDirectory = useGetDirectoryHook();
|
|
1496
|
+
const queryFn = ({ signal }) => getDirectory(directoryId, signal);
|
|
1497
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1498
|
+
...queryOptions,
|
|
1499
|
+
queryKey,
|
|
1500
|
+
queryFn
|
|
1501
|
+
});
|
|
1502
|
+
return customOptions;
|
|
1503
|
+
};
|
|
1504
|
+
function useGetDirectory(directoryId, options, queryClient) {
|
|
1505
|
+
const queryOptions = useGetDirectoryQueryOptions(directoryId, options);
|
|
1506
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1507
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1604
1508
|
}
|
|
1605
1509
|
const useSettingsHook = () => {
|
|
1606
1510
|
const settings = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1629,23 +1533,10 @@ const useSettingsQueryOptions = (options) => {
|
|
|
1629
1533
|
function useSettings(options, queryClient) {
|
|
1630
1534
|
const queryOptions = useSettingsQueryOptions(options);
|
|
1631
1535
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1632
|
-
query
|
|
1633
|
-
return query;
|
|
1536
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1634
1537
|
}
|
|
1635
1538
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1636
1539
|
0 && (module.exports = {
|
|
1637
|
-
AuthenticationInformationResponseDataVerificationMethodsMfaOneOfProvider,
|
|
1638
|
-
AuthenticationInformationResponseDataVerificationMethodsPasskeyOneOfProvider,
|
|
1639
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordOneOfProvider,
|
|
1640
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
1641
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
1642
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
1643
|
-
DataInstallationAllOfObject,
|
|
1644
|
-
DataInstallationAllOfState,
|
|
1645
|
-
DataIntegrationCredentialsType,
|
|
1646
|
-
DataIntegrationIntegrationType,
|
|
1647
|
-
DataIntegrationObject,
|
|
1648
|
-
DataIntegrationOwnership,
|
|
1649
1540
|
DirectoryState,
|
|
1650
1541
|
DirectoryType,
|
|
1651
1542
|
DomainVerificationNameServer,
|
|
@@ -1655,18 +1546,12 @@ function useSettings(options, queryClient) {
|
|
|
1655
1546
|
OidcSessionState,
|
|
1656
1547
|
OrganizationDomainState,
|
|
1657
1548
|
SamlSessionState,
|
|
1658
|
-
SendVerificationResponseType,
|
|
1659
|
-
SettingsResponseObject,
|
|
1660
|
-
SsoConnectionAnyOfEightAllOfProviderTag,
|
|
1661
|
-
SsoConnectionAnyOfEightAllOfState,
|
|
1662
|
-
SsoConnectionAnyOfEightAllOfType,
|
|
1663
|
-
SsoConnectionAnyOfProviderTag,
|
|
1664
|
-
SsoConnectionAnyOfState,
|
|
1665
|
-
SsoConnectionAnyOfType,
|
|
1666
1549
|
SsoConnectionSessionJSONState,
|
|
1667
1550
|
getAuthenticationInformationQueryKey,
|
|
1551
|
+
getGetAuditLogStreamQueryKey,
|
|
1668
1552
|
getGetDataInstallationAuthorizationStatusQueryKey,
|
|
1669
1553
|
getGetDataIntegrationAuthorizeUrlQueryKey,
|
|
1554
|
+
getGetDirectoryQueryKey,
|
|
1670
1555
|
getListDirectoriesQueryKey,
|
|
1671
1556
|
getListOrganizationApiKeyPermissionsQueryKey,
|
|
1672
1557
|
getListOrganizationApiKeysQueryKey,
|
|
@@ -1710,12 +1595,18 @@ function useSettings(options, queryClient) {
|
|
|
1710
1595
|
useGenerateAdminPortalLink,
|
|
1711
1596
|
useGenerateAdminPortalLinkHook,
|
|
1712
1597
|
useGenerateAdminPortalLinkMutationOptions,
|
|
1598
|
+
useGetAuditLogStream,
|
|
1599
|
+
useGetAuditLogStreamHook,
|
|
1600
|
+
useGetAuditLogStreamQueryOptions,
|
|
1713
1601
|
useGetDataInstallationAuthorizationStatus,
|
|
1714
1602
|
useGetDataInstallationAuthorizationStatusHook,
|
|
1715
1603
|
useGetDataInstallationAuthorizationStatusQueryOptions,
|
|
1716
1604
|
useGetDataIntegrationAuthorizeUrl,
|
|
1717
1605
|
useGetDataIntegrationAuthorizeUrlHook,
|
|
1718
1606
|
useGetDataIntegrationAuthorizeUrlQueryOptions,
|
|
1607
|
+
useGetDirectory,
|
|
1608
|
+
useGetDirectoryHook,
|
|
1609
|
+
useGetDirectoryQueryOptions,
|
|
1719
1610
|
useInviteMember,
|
|
1720
1611
|
useInviteMemberHook,
|
|
1721
1612
|
useInviteMemberMutationOptions,
|