@workos-inc/widgets 1.8.2 → 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 +11 -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/api-provider.cjs.map +1 -1
- package/dist/cjs/api/api-provider.d.cts +1 -1
- package/dist/cjs/api/endpoint.cjs +741 -771
- package/dist/cjs/api/endpoint.cjs.map +1 -1
- package/dist/cjs/api/endpoint.d.cts +860 -813
- package/dist/cjs/directory-sync.client.cjs +156 -0
- package/dist/cjs/directory-sync.client.cjs.map +1 -0
- package/dist/cjs/directory-sync.client.d.cts +26 -0
- package/dist/cjs/experimental/api/fetch.cjs +327 -411
- package/dist/cjs/experimental/api/fetch.cjs.map +1 -1
- package/dist/cjs/experimental/api/fetch.d.cts +832 -798
- package/dist/cjs/experimental/api/react-query.cjs +747 -777
- package/dist/cjs/experimental/api/react-query.cjs.map +1 -1
- package/dist/cjs/experimental/api/react-query.d.cts +1378 -1263
- package/dist/cjs/experimental/api/swr.cjs +720 -742
- package/dist/cjs/experimental/api/swr.cjs.map +1 -1
- package/dist/cjs/experimental/api/swr.d.cts +1218 -1175
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -0
- 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/api-keys/api-keys-context.cjs +1 -1
- package/dist/cjs/lib/api-keys/api-keys-context.cjs.map +1 -1
- package/dist/cjs/lib/api-keys/api-keys-table.cjs +7 -5
- package/dist/cjs/lib/api-keys/api-keys-table.cjs.map +1 -1
- package/dist/cjs/lib/directory-sync.cjs +288 -0
- package/dist/cjs/lib/directory-sync.cjs.map +1 -0
- package/dist/cjs/lib/directory-sync.d.cts +72 -0
- package/dist/cjs/lib/identity-providers.cjs +57 -1
- package/dist/cjs/lib/identity-providers.cjs.map +1 -1
- package/dist/cjs/lib/identity-providers.d.cts +5 -3
- package/dist/cjs/lib/pipes.cjs +9 -9
- package/dist/cjs/lib/pipes.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.cjs.map +1 -1
- package/dist/cjs/lib/provider-icon.d.cts +2 -2
- package/dist/cjs/lib/reset-mfa-dialog.cjs +2 -1
- package/dist/cjs/lib/reset-mfa-dialog.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.cjs.map +1 -1
- package/dist/cjs/lib/use-permissions.d.cts +1 -1
- package/dist/cjs/lib/users-management-context.cjs +1 -1
- package/dist/cjs/lib/users-management-context.cjs.map +1 -1
- package/dist/cjs/lib/users-management.cjs +3 -3
- package/dist/cjs/lib/users-management.cjs.map +1 -1
- package/dist/cjs/lib/utils.cjs +9 -0
- package/dist/cjs/lib/utils.cjs.map +1 -1
- package/dist/cjs/lib/utils.d.cts +16 -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/api-provider.d.ts +1 -1
- package/dist/esm/api/api-provider.js.map +1 -1
- package/dist/esm/api/endpoint.d.ts +860 -813
- package/dist/esm/api/endpoint.js +727 -751
- package/dist/esm/api/endpoint.js.map +1 -1
- package/dist/esm/directory-sync.client.d.ts +26 -0
- package/dist/esm/directory-sync.client.js +134 -0
- package/dist/esm/directory-sync.client.js.map +1 -0
- package/dist/esm/experimental/api/fetch.d.ts +832 -798
- package/dist/esm/experimental/api/fetch.js +319 -391
- package/dist/esm/experimental/api/fetch.js.map +1 -1
- package/dist/esm/experimental/api/react-query.d.ts +1378 -1263
- package/dist/esm/experimental/api/react-query.js +730 -757
- package/dist/esm/experimental/api/react-query.js.map +1 -1
- package/dist/esm/experimental/api/swr.d.ts +1218 -1175
- package/dist/esm/experimental/api/swr.js +706 -722
- package/dist/esm/experimental/api/swr.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.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/api-keys/api-keys-context.js +1 -1
- package/dist/esm/lib/api-keys/api-keys-context.js.map +1 -1
- package/dist/esm/lib/api-keys/api-keys-table.js +7 -5
- package/dist/esm/lib/api-keys/api-keys-table.js.map +1 -1
- package/dist/esm/lib/directory-sync.d.ts +72 -0
- package/dist/esm/lib/directory-sync.js +259 -0
- package/dist/esm/lib/directory-sync.js.map +1 -0
- package/dist/esm/lib/identity-providers.d.ts +5 -3
- package/dist/esm/lib/identity-providers.js +55 -1
- package/dist/esm/lib/identity-providers.js.map +1 -1
- package/dist/esm/lib/pipes.js +9 -10
- package/dist/esm/lib/pipes.js.map +1 -1
- package/dist/esm/lib/provider-icon.d.ts +2 -2
- package/dist/esm/lib/provider-icon.js.map +1 -1
- package/dist/esm/lib/reset-mfa-dialog.js +2 -1
- package/dist/esm/lib/reset-mfa-dialog.js.map +1 -1
- package/dist/esm/lib/use-permissions.d.ts +1 -1
- package/dist/esm/lib/use-permissions.js.map +1 -1
- package/dist/esm/lib/users-management-context.js +1 -1
- package/dist/esm/lib/users-management-context.js.map +1 -1
- package/dist/esm/lib/users-management.js +5 -4
- package/dist/esm/lib/users-management.js.map +1 -1
- package/dist/esm/lib/utils.d.ts +16 -2
- package/dist/esm/lib/utils.js +8 -0
- package/dist/esm/lib/utils.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 +2 -2
|
@@ -18,18 +18,8 @@ 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
|
-
|
|
22
|
-
|
|
23
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordProvider: () => AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
|
|
24
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject: () => CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
25
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject: () => CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
26
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType: () => CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
27
|
-
DataInstallationObject: () => DataInstallationObject,
|
|
28
|
-
DataInstallationState: () => DataInstallationState,
|
|
29
|
-
DataIntegrationCredentialsType: () => DataIntegrationCredentialsType,
|
|
30
|
-
DataIntegrationIntegrationType: () => DataIntegrationIntegrationType,
|
|
31
|
-
DataIntegrationObject: () => DataIntegrationObject,
|
|
32
|
-
DataIntegrationOwnership: () => DataIntegrationOwnership,
|
|
21
|
+
DirectoryState: () => DirectoryState,
|
|
22
|
+
DirectoryType: () => DirectoryType,
|
|
33
23
|
DomainVerificationNameServer: () => DomainVerificationNameServer,
|
|
34
24
|
GenerateAdminPortalLinkIntent: () => GenerateAdminPortalLinkIntent,
|
|
35
25
|
MemberActionsItem: () => MemberActionsItem,
|
|
@@ -37,18 +27,13 @@ __export(endpoint_exports, {
|
|
|
37
27
|
OidcSessionState: () => OidcSessionState,
|
|
38
28
|
OrganizationDomainState: () => OrganizationDomainState,
|
|
39
29
|
SamlSessionState: () => SamlSessionState,
|
|
40
|
-
SendVerificationResponseType: () => SendVerificationResponseType,
|
|
41
|
-
SettingsResponseObject: () => SettingsResponseObject,
|
|
42
|
-
SsoConnectionAnyOfEightAllOfProviderTag: () => SsoConnectionAnyOfEightAllOfProviderTag,
|
|
43
|
-
SsoConnectionAnyOfEightAllOfState: () => SsoConnectionAnyOfEightAllOfState,
|
|
44
|
-
SsoConnectionAnyOfEightAllOfType: () => SsoConnectionAnyOfEightAllOfType,
|
|
45
|
-
SsoConnectionAnyOfProviderTag: () => SsoConnectionAnyOfProviderTag,
|
|
46
|
-
SsoConnectionAnyOfState: () => SsoConnectionAnyOfState,
|
|
47
|
-
SsoConnectionAnyOfType: () => SsoConnectionAnyOfType,
|
|
48
30
|
SsoConnectionSessionJSONState: () => SsoConnectionSessionJSONState,
|
|
49
31
|
getAuthenticationInformationQueryKey: () => getAuthenticationInformationQueryKey,
|
|
32
|
+
getGetAuditLogStreamQueryKey: () => getGetAuditLogStreamQueryKey,
|
|
50
33
|
getGetDataInstallationAuthorizationStatusQueryKey: () => getGetDataInstallationAuthorizationStatusQueryKey,
|
|
51
34
|
getGetDataIntegrationAuthorizeUrlQueryKey: () => getGetDataIntegrationAuthorizeUrlQueryKey,
|
|
35
|
+
getGetDirectoryQueryKey: () => getGetDirectoryQueryKey,
|
|
36
|
+
getListDirectoriesQueryKey: () => getListDirectoriesQueryKey,
|
|
52
37
|
getListOrganizationApiKeyPermissionsQueryKey: () => getListOrganizationApiKeyPermissionsQueryKey,
|
|
53
38
|
getListOrganizationApiKeysQueryKey: () => getListOrganizationApiKeysQueryKey,
|
|
54
39
|
getListOrganizationDomainsQueryKey: () => getListOrganizationDomainsQueryKey,
|
|
@@ -91,15 +76,24 @@ __export(endpoint_exports, {
|
|
|
91
76
|
useGenerateAdminPortalLink: () => useGenerateAdminPortalLink,
|
|
92
77
|
useGenerateAdminPortalLinkHook: () => useGenerateAdminPortalLinkHook,
|
|
93
78
|
useGenerateAdminPortalLinkMutationOptions: () => useGenerateAdminPortalLinkMutationOptions,
|
|
79
|
+
useGetAuditLogStream: () => useGetAuditLogStream,
|
|
80
|
+
useGetAuditLogStreamHook: () => useGetAuditLogStreamHook,
|
|
81
|
+
useGetAuditLogStreamQueryOptions: () => useGetAuditLogStreamQueryOptions,
|
|
94
82
|
useGetDataInstallationAuthorizationStatus: () => useGetDataInstallationAuthorizationStatus,
|
|
95
83
|
useGetDataInstallationAuthorizationStatusHook: () => useGetDataInstallationAuthorizationStatusHook,
|
|
96
84
|
useGetDataInstallationAuthorizationStatusQueryOptions: () => useGetDataInstallationAuthorizationStatusQueryOptions,
|
|
97
85
|
useGetDataIntegrationAuthorizeUrl: () => useGetDataIntegrationAuthorizeUrl,
|
|
98
86
|
useGetDataIntegrationAuthorizeUrlHook: () => useGetDataIntegrationAuthorizeUrlHook,
|
|
99
87
|
useGetDataIntegrationAuthorizeUrlQueryOptions: () => useGetDataIntegrationAuthorizeUrlQueryOptions,
|
|
88
|
+
useGetDirectory: () => useGetDirectory,
|
|
89
|
+
useGetDirectoryHook: () => useGetDirectoryHook,
|
|
90
|
+
useGetDirectoryQueryOptions: () => useGetDirectoryQueryOptions,
|
|
100
91
|
useInviteMember: () => useInviteMember,
|
|
101
92
|
useInviteMemberHook: () => useInviteMemberHook,
|
|
102
93
|
useInviteMemberMutationOptions: () => useInviteMemberMutationOptions,
|
|
94
|
+
useListDirectories: () => useListDirectories,
|
|
95
|
+
useListDirectoriesHook: () => useListDirectoriesHook,
|
|
96
|
+
useListDirectoriesQueryOptions: () => useListDirectoriesQueryOptions,
|
|
103
97
|
useListOrganizationApiKeyPermissions: () => useListOrganizationApiKeyPermissions,
|
|
104
98
|
useListOrganizationApiKeyPermissionsHook: () => useListOrganizationApiKeyPermissionsHook,
|
|
105
99
|
useListOrganizationApiKeyPermissionsQueryOptions: () => useListOrganizationApiKeyPermissionsQueryOptions,
|
|
@@ -197,33 +191,6 @@ const MemberActionsItem = {
|
|
|
197
191
|
"revoke-invite": "revoke-invite",
|
|
198
192
|
"revoke-membership": "revoke-membership"
|
|
199
193
|
};
|
|
200
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfObject = {
|
|
201
|
-
authentication_factor: "authentication_factor"
|
|
202
|
-
};
|
|
203
|
-
const CreateTotpFactorResponseAuthenticationFactorAllOfType = {
|
|
204
|
-
generic_otp: "generic_otp",
|
|
205
|
-
sms: "sms",
|
|
206
|
-
totp: "totp",
|
|
207
|
-
webauthn: "webauthn"
|
|
208
|
-
};
|
|
209
|
-
const CreateTotpFactorResponseAuthenticationChallengeAllOfObject = {
|
|
210
|
-
authentication_challenge: "authentication_challenge"
|
|
211
|
-
};
|
|
212
|
-
const AuthenticationInformationResponseDataVerificationMethodsMfaProvider = {
|
|
213
|
-
MFA: "MFA"
|
|
214
|
-
};
|
|
215
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasswordProvider = {
|
|
216
|
-
Password: "Password"
|
|
217
|
-
};
|
|
218
|
-
const AuthenticationInformationResponseDataVerificationMethodsPasskeyProvider = {
|
|
219
|
-
Passkey: "Passkey"
|
|
220
|
-
};
|
|
221
|
-
const SendVerificationResponseType = {
|
|
222
|
-
EmailVerification: "EmailVerification"
|
|
223
|
-
};
|
|
224
|
-
const SettingsResponseObject = {
|
|
225
|
-
settings: "settings"
|
|
226
|
-
};
|
|
227
194
|
const OrganizationDomainState = {
|
|
228
195
|
Failed: "Failed",
|
|
229
196
|
LegacyVerified: "LegacyVerified",
|
|
@@ -256,150 +223,100 @@ const SsoConnectionSessionJSONState = {
|
|
|
256
223
|
...SamlSessionState,
|
|
257
224
|
...OidcSessionState
|
|
258
225
|
};
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
Active: "Active",
|
|
292
|
-
Deleting: "Deleting"
|
|
293
|
-
};
|
|
294
|
-
const SsoConnectionAnyOfProviderTag = {
|
|
295
|
-
Saml: "Saml"
|
|
296
|
-
};
|
|
297
|
-
const SsoConnectionAnyOfEightAllOfState = {
|
|
298
|
-
Inactive: "Inactive",
|
|
299
|
-
Validating: "Validating",
|
|
300
|
-
Active: "Active",
|
|
301
|
-
Deleting: "Deleting"
|
|
302
|
-
};
|
|
303
|
-
const SsoConnectionAnyOfEightAllOfType = {
|
|
304
|
-
AdpOidc: "AdpOidc",
|
|
305
|
-
Auth0Migration: "Auth0Migration",
|
|
306
|
-
CleverOidc: "CleverOidc",
|
|
307
|
-
EntraIdOidc: "EntraIdOidc",
|
|
308
|
-
GenericOidc: "GenericOidc",
|
|
309
|
-
GoogleOidc: "GoogleOidc",
|
|
310
|
-
OktaOidc: "OktaOidc",
|
|
311
|
-
LoginGovOidc: "LoginGovOidc"
|
|
312
|
-
};
|
|
313
|
-
const SsoConnectionAnyOfEightAllOfProviderTag = {
|
|
314
|
-
OpenIdConnect: "OpenIdConnect"
|
|
315
|
-
};
|
|
316
|
-
const DataInstallationObject = {
|
|
317
|
-
data_installation: "data_installation",
|
|
318
|
-
connected_account: "connected_account"
|
|
319
|
-
};
|
|
320
|
-
const DataInstallationState = {
|
|
321
|
-
connected: "connected",
|
|
322
|
-
needs_reauthorization: "needs_reauthorization"
|
|
323
|
-
};
|
|
324
|
-
const DataIntegrationObject = {
|
|
325
|
-
data_integration: "data_integration"
|
|
326
|
-
};
|
|
327
|
-
const DataIntegrationIntegrationType = {
|
|
328
|
-
asana: "asana",
|
|
329
|
-
box: "box",
|
|
330
|
-
"cal-dot-com": "cal-dot-com",
|
|
331
|
-
calendly: "calendly",
|
|
332
|
-
confluence: "confluence",
|
|
333
|
-
dropbox: "dropbox",
|
|
334
|
-
"frame-io": "frame-io",
|
|
335
|
-
front: "front",
|
|
336
|
-
github: "github",
|
|
337
|
-
gitlab: "gitlab",
|
|
338
|
-
gmail: "gmail",
|
|
339
|
-
google: "google",
|
|
340
|
-
"google-calendar": "google-calendar",
|
|
341
|
-
"google-drive": "google-drive",
|
|
342
|
-
helpscout: "helpscout",
|
|
343
|
-
hubspot: "hubspot",
|
|
344
|
-
intercom: "intercom",
|
|
345
|
-
jira: "jira",
|
|
346
|
-
linear: "linear",
|
|
347
|
-
microsoft: "microsoft",
|
|
348
|
-
"microsoft-onedrive": "microsoft-onedrive",
|
|
349
|
-
"microsoft-onenote": "microsoft-onenote",
|
|
350
|
-
"microsoft-outlook": "microsoft-outlook",
|
|
351
|
-
"microsoft-outlook-calendar": "microsoft-outlook-calendar",
|
|
352
|
-
"microsoft-sharepoint": "microsoft-sharepoint",
|
|
353
|
-
"microsoft-teams": "microsoft-teams",
|
|
354
|
-
"microsoft-todo": "microsoft-todo",
|
|
355
|
-
notion: "notion",
|
|
356
|
-
prefect: "prefect",
|
|
357
|
-
"pydantic-logfire": "pydantic-logfire",
|
|
358
|
-
salesforce: "salesforce",
|
|
359
|
-
sentry: "sentry",
|
|
360
|
-
slack: "slack",
|
|
361
|
-
snowflake: "snowflake",
|
|
362
|
-
stripe: "stripe",
|
|
363
|
-
xero: "xero",
|
|
364
|
-
zendesk: "zendesk"
|
|
365
|
-
};
|
|
366
|
-
const DataIntegrationOwnership = {
|
|
367
|
-
userland_user: "userland_user",
|
|
368
|
-
organization: "organization"
|
|
369
|
-
};
|
|
370
|
-
const DataIntegrationCredentialsType = {
|
|
371
|
-
shared: "shared",
|
|
372
|
-
custom: "custom"
|
|
226
|
+
const DirectoryType = {
|
|
227
|
+
azure_scim_v20: "azure scim v2.0",
|
|
228
|
+
bamboohr: "bamboohr",
|
|
229
|
+
breathe_hr: "breathe hr",
|
|
230
|
+
cezanne_hr: "cezanne hr",
|
|
231
|
+
cyberark_scim_v20: "cyberark scim v2.0",
|
|
232
|
+
fourth_hr: "fourth hr",
|
|
233
|
+
generic_scim_v20: "generic scim v2.0",
|
|
234
|
+
gsuite_directory: "gsuite directory",
|
|
235
|
+
gusto: "gusto",
|
|
236
|
+
hibob: "hibob",
|
|
237
|
+
jump_cloud_scim_v20: "jump cloud scim v2.0",
|
|
238
|
+
okta_scim_v20: "okta scim v2.0",
|
|
239
|
+
onelogin_scim_v20: "onelogin scim v2.0",
|
|
240
|
+
people_hr: "people hr",
|
|
241
|
+
personio: "personio",
|
|
242
|
+
pingfederate_scim_v20: "pingfederate scim v2.0",
|
|
243
|
+
rippling: "rippling",
|
|
244
|
+
rippling_scim_v20: "rippling scim v2.0",
|
|
245
|
+
s3: "s3",
|
|
246
|
+
sailpoint_scim_v20: "sailpoint scim v2.0",
|
|
247
|
+
sftp: "sftp",
|
|
248
|
+
sftp_workday: "sftp workday",
|
|
249
|
+
workday: "workday"
|
|
250
|
+
};
|
|
251
|
+
const DirectoryState = {
|
|
252
|
+
requires_type: "requires_type",
|
|
253
|
+
linked: "linked",
|
|
254
|
+
validating: "validating",
|
|
255
|
+
invalid_credentials: "invalid_credentials",
|
|
256
|
+
unlinked: "unlinked",
|
|
257
|
+
deleting: "deleting"
|
|
373
258
|
};
|
|
374
259
|
const GenerateAdminPortalLinkIntent = {
|
|
375
260
|
domain_verification: "domain_verification",
|
|
376
|
-
sso: "sso"
|
|
261
|
+
sso: "sso",
|
|
262
|
+
log_streams: "log_streams"
|
|
377
263
|
};
|
|
378
|
-
const
|
|
379
|
-
const
|
|
264
|
+
const useCreateOrganizationApiKeyHook = () => {
|
|
265
|
+
const createOrganizationApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
266
|
+
return (0, import_react.useCallback)(
|
|
267
|
+
(createOrganizationApiKeyRequest, signal) => {
|
|
268
|
+
return createOrganizationApiKey({
|
|
269
|
+
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
270
|
+
method: "POST",
|
|
271
|
+
headers: { "Content-Type": "application/json" },
|
|
272
|
+
data: createOrganizationApiKeyRequest,
|
|
273
|
+
signal
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
[createOrganizationApiKey]
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
const useCreateOrganizationApiKeyMutationOptions = (options) => {
|
|
280
|
+
const mutationKey = ["createOrganizationApiKey"];
|
|
281
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
282
|
+
const createOrganizationApiKey = useCreateOrganizationApiKeyHook();
|
|
283
|
+
const mutationFn = (props) => {
|
|
284
|
+
const { data } = props ?? {};
|
|
285
|
+
return createOrganizationApiKey(data);
|
|
286
|
+
};
|
|
287
|
+
return { mutationFn, ...mutationOptions };
|
|
288
|
+
};
|
|
289
|
+
const useCreateOrganizationApiKey = (options, queryClient) => {
|
|
290
|
+
return (0, import_react_query.useMutation)(
|
|
291
|
+
useCreateOrganizationApiKeyMutationOptions(options),
|
|
292
|
+
queryClient
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
const useListOrganizationApiKeysHook = () => {
|
|
296
|
+
const listOrganizationApiKeys = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
380
297
|
return (0, import_react.useCallback)(
|
|
381
298
|
(params, signal) => {
|
|
382
|
-
return
|
|
383
|
-
url: `/_widgets/
|
|
299
|
+
return listOrganizationApiKeys({
|
|
300
|
+
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
384
301
|
method: "GET",
|
|
385
302
|
params,
|
|
386
303
|
signal
|
|
387
304
|
});
|
|
388
305
|
},
|
|
389
|
-
[
|
|
306
|
+
[listOrganizationApiKeys]
|
|
390
307
|
);
|
|
391
308
|
};
|
|
392
|
-
const
|
|
309
|
+
const getListOrganizationApiKeysQueryKey = (params) => {
|
|
393
310
|
return [
|
|
394
|
-
`/_widgets/
|
|
311
|
+
`/_widgets/ApiKeys/organization-api-keys`,
|
|
395
312
|
...params ? [params] : []
|
|
396
313
|
];
|
|
397
314
|
};
|
|
398
|
-
const
|
|
315
|
+
const useListOrganizationApiKeysQueryOptions = (params, options) => {
|
|
399
316
|
const { query: queryOptions } = options ?? {};
|
|
400
|
-
const queryKey = queryOptions?.queryKey ??
|
|
401
|
-
const
|
|
402
|
-
const queryFn = ({ signal }) =>
|
|
317
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeysQueryKey(params);
|
|
318
|
+
const listOrganizationApiKeys = useListOrganizationApiKeysHook();
|
|
319
|
+
const queryFn = ({ signal }) => listOrganizationApiKeys(params, signal);
|
|
403
320
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
404
321
|
...queryOptions,
|
|
405
322
|
queryKey,
|
|
@@ -407,33 +324,36 @@ const useMembersQueryOptions = (params, options) => {
|
|
|
407
324
|
});
|
|
408
325
|
return customOptions;
|
|
409
326
|
};
|
|
410
|
-
function
|
|
411
|
-
const queryOptions =
|
|
327
|
+
function useListOrganizationApiKeys(params, options, queryClient) {
|
|
328
|
+
const queryOptions = useListOrganizationApiKeysQueryOptions(params, options);
|
|
412
329
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
413
|
-
query
|
|
414
|
-
return query;
|
|
330
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
415
331
|
}
|
|
416
|
-
const
|
|
417
|
-
const
|
|
332
|
+
const useListOrganizationApiKeyPermissionsHook = () => {
|
|
333
|
+
const listOrganizationApiKeyPermissions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
418
334
|
return (0, import_react.useCallback)(
|
|
419
|
-
(signal) => {
|
|
420
|
-
return
|
|
421
|
-
url: `/_widgets/
|
|
335
|
+
(params, signal) => {
|
|
336
|
+
return listOrganizationApiKeyPermissions({
|
|
337
|
+
url: `/_widgets/ApiKeys/permissions`,
|
|
422
338
|
method: "GET",
|
|
339
|
+
params,
|
|
423
340
|
signal
|
|
424
341
|
});
|
|
425
342
|
},
|
|
426
|
-
[
|
|
343
|
+
[listOrganizationApiKeyPermissions]
|
|
427
344
|
);
|
|
428
345
|
};
|
|
429
|
-
const
|
|
430
|
-
return [
|
|
346
|
+
const getListOrganizationApiKeyPermissionsQueryKey = (params) => {
|
|
347
|
+
return [
|
|
348
|
+
`/_widgets/ApiKeys/permissions`,
|
|
349
|
+
...params ? [params] : []
|
|
350
|
+
];
|
|
431
351
|
};
|
|
432
|
-
const
|
|
352
|
+
const useListOrganizationApiKeyPermissionsQueryOptions = (params, options) => {
|
|
433
353
|
const { query: queryOptions } = options ?? {};
|
|
434
|
-
const queryKey = queryOptions?.queryKey ??
|
|
435
|
-
const
|
|
436
|
-
const queryFn = ({ signal }) =>
|
|
354
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeyPermissionsQueryKey(params);
|
|
355
|
+
const listOrganizationApiKeyPermissions = useListOrganizationApiKeyPermissionsHook();
|
|
356
|
+
const queryFn = ({ signal }) => listOrganizationApiKeyPermissions(params, signal);
|
|
437
357
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
438
358
|
...queryOptions,
|
|
439
359
|
queryKey,
|
|
@@ -441,33 +361,93 @@ const useRolesQueryOptions = (options) => {
|
|
|
441
361
|
});
|
|
442
362
|
return customOptions;
|
|
443
363
|
};
|
|
444
|
-
function
|
|
445
|
-
const queryOptions =
|
|
364
|
+
function useListOrganizationApiKeyPermissions(params, options, queryClient) {
|
|
365
|
+
const queryOptions = useListOrganizationApiKeyPermissionsQueryOptions(
|
|
366
|
+
params,
|
|
367
|
+
options
|
|
368
|
+
);
|
|
446
369
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
447
|
-
query
|
|
448
|
-
return query;
|
|
370
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
449
371
|
}
|
|
450
|
-
const
|
|
451
|
-
const
|
|
372
|
+
const useDeleteOrganizationApiKeyHook = () => {
|
|
373
|
+
const deleteOrganizationApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
374
|
+
return (0, import_react.useCallback)(
|
|
375
|
+
(apiKeyId, signal) => {
|
|
376
|
+
return deleteOrganizationApiKey({
|
|
377
|
+
url: `/_widgets/ApiKeys/${apiKeyId}`,
|
|
378
|
+
method: "DELETE",
|
|
379
|
+
signal
|
|
380
|
+
});
|
|
381
|
+
},
|
|
382
|
+
[deleteOrganizationApiKey]
|
|
383
|
+
);
|
|
384
|
+
};
|
|
385
|
+
const useDeleteOrganizationApiKeyMutationOptions = (options) => {
|
|
386
|
+
const mutationKey = ["deleteOrganizationApiKey"];
|
|
387
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
388
|
+
const deleteOrganizationApiKey = useDeleteOrganizationApiKeyHook();
|
|
389
|
+
const mutationFn = (props) => {
|
|
390
|
+
const { apiKeyId } = props ?? {};
|
|
391
|
+
return deleteOrganizationApiKey(apiKeyId);
|
|
392
|
+
};
|
|
393
|
+
return { mutationFn, ...mutationOptions };
|
|
394
|
+
};
|
|
395
|
+
const useDeleteOrganizationApiKey = (options, queryClient) => {
|
|
396
|
+
return (0, import_react_query.useMutation)(
|
|
397
|
+
useDeleteOrganizationApiKeyMutationOptions(options),
|
|
398
|
+
queryClient
|
|
399
|
+
);
|
|
400
|
+
};
|
|
401
|
+
const useDeleteDataInstallationHook = () => {
|
|
402
|
+
const deleteDataInstallation = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
403
|
+
return (0, import_react.useCallback)(
|
|
404
|
+
(installationId, signal) => {
|
|
405
|
+
return deleteDataInstallation({
|
|
406
|
+
url: `/_widgets/DataIntegrations/installations/${installationId}`,
|
|
407
|
+
method: "DELETE",
|
|
408
|
+
signal
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
[deleteDataInstallation]
|
|
412
|
+
);
|
|
413
|
+
};
|
|
414
|
+
const useDeleteDataInstallationMutationOptions = (options) => {
|
|
415
|
+
const mutationKey = ["deleteDataInstallation"];
|
|
416
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
417
|
+
const deleteDataInstallation = useDeleteDataInstallationHook();
|
|
418
|
+
const mutationFn = (props) => {
|
|
419
|
+
const { installationId } = props ?? {};
|
|
420
|
+
return deleteDataInstallation(installationId);
|
|
421
|
+
};
|
|
422
|
+
return { mutationFn, ...mutationOptions };
|
|
423
|
+
};
|
|
424
|
+
const useDeleteDataInstallation = (options, queryClient) => {
|
|
425
|
+
return (0, import_react_query.useMutation)(
|
|
426
|
+
useDeleteDataInstallationMutationOptions(options),
|
|
427
|
+
queryClient
|
|
428
|
+
);
|
|
429
|
+
};
|
|
430
|
+
const useMyDataIntegrationsHook = () => {
|
|
431
|
+
const myDataIntegrations = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
452
432
|
return (0, import_react.useCallback)(
|
|
453
433
|
(signal) => {
|
|
454
|
-
return
|
|
455
|
-
url: `/_widgets/
|
|
434
|
+
return myDataIntegrations({
|
|
435
|
+
url: `/_widgets/DataIntegrations/mine`,
|
|
456
436
|
method: "GET",
|
|
457
437
|
signal
|
|
458
438
|
});
|
|
459
439
|
},
|
|
460
|
-
[
|
|
440
|
+
[myDataIntegrations]
|
|
461
441
|
);
|
|
462
442
|
};
|
|
463
|
-
const
|
|
464
|
-
return [`/_widgets/
|
|
443
|
+
const getMyDataIntegrationsQueryKey = () => {
|
|
444
|
+
return [`/_widgets/DataIntegrations/mine`];
|
|
465
445
|
};
|
|
466
|
-
const
|
|
446
|
+
const useMyDataIntegrationsQueryOptions = (options) => {
|
|
467
447
|
const { query: queryOptions } = options ?? {};
|
|
468
|
-
const queryKey = queryOptions?.queryKey ??
|
|
469
|
-
const
|
|
470
|
-
const queryFn = ({ signal }) =>
|
|
448
|
+
const queryKey = queryOptions?.queryKey ?? getMyDataIntegrationsQueryKey();
|
|
449
|
+
const myDataIntegrations = useMyDataIntegrationsHook();
|
|
450
|
+
const queryFn = ({ signal }) => myDataIntegrations(signal);
|
|
471
451
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
472
452
|
...queryOptions,
|
|
473
453
|
queryKey,
|
|
@@ -475,11 +455,90 @@ const useRolesAndConfigQueryOptions = (options) => {
|
|
|
475
455
|
});
|
|
476
456
|
return customOptions;
|
|
477
457
|
};
|
|
478
|
-
function
|
|
479
|
-
const queryOptions =
|
|
458
|
+
function useMyDataIntegrations(options, queryClient) {
|
|
459
|
+
const queryOptions = useMyDataIntegrationsQueryOptions(options);
|
|
460
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
461
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
462
|
+
}
|
|
463
|
+
const useGetDataInstallationAuthorizationStatusHook = () => {
|
|
464
|
+
const getDataInstallationAuthorizationStatus = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
465
|
+
return (0, import_react.useCallback)(
|
|
466
|
+
(dataIntegrationId, state, signal) => {
|
|
467
|
+
return getDataInstallationAuthorizationStatus({
|
|
468
|
+
url: `/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`,
|
|
469
|
+
method: "GET",
|
|
470
|
+
signal
|
|
471
|
+
});
|
|
472
|
+
},
|
|
473
|
+
[getDataInstallationAuthorizationStatus]
|
|
474
|
+
);
|
|
475
|
+
};
|
|
476
|
+
const getGetDataInstallationAuthorizationStatusQueryKey = (dataIntegrationId, state) => {
|
|
477
|
+
return [
|
|
478
|
+
`/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`
|
|
479
|
+
];
|
|
480
|
+
};
|
|
481
|
+
const useGetDataInstallationAuthorizationStatusQueryOptions = (dataIntegrationId, state, options) => {
|
|
482
|
+
const { query: queryOptions } = options ?? {};
|
|
483
|
+
const queryKey = queryOptions?.queryKey ?? getGetDataInstallationAuthorizationStatusQueryKey(dataIntegrationId, state);
|
|
484
|
+
const getDataInstallationAuthorizationStatus = useGetDataInstallationAuthorizationStatusHook();
|
|
485
|
+
const queryFn = ({ signal }) => getDataInstallationAuthorizationStatus(dataIntegrationId, state, signal);
|
|
486
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
487
|
+
...queryOptions,
|
|
488
|
+
queryKey,
|
|
489
|
+
queryFn
|
|
490
|
+
});
|
|
491
|
+
return customOptions;
|
|
492
|
+
};
|
|
493
|
+
function useGetDataInstallationAuthorizationStatus(dataIntegrationId, state, options, queryClient) {
|
|
494
|
+
const queryOptions = useGetDataInstallationAuthorizationStatusQueryOptions(
|
|
495
|
+
dataIntegrationId,
|
|
496
|
+
state,
|
|
497
|
+
options
|
|
498
|
+
);
|
|
499
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
500
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
501
|
+
}
|
|
502
|
+
const useGetDataIntegrationAuthorizeUrlHook = () => {
|
|
503
|
+
const getDataIntegrationAuthorizeUrl = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
504
|
+
return (0, import_react.useCallback)(
|
|
505
|
+
(slug, params, signal) => {
|
|
506
|
+
return getDataIntegrationAuthorizeUrl({
|
|
507
|
+
url: `/_widgets/DataIntegrations/${slug}/authorize`,
|
|
508
|
+
method: "GET",
|
|
509
|
+
params,
|
|
510
|
+
signal
|
|
511
|
+
});
|
|
512
|
+
},
|
|
513
|
+
[getDataIntegrationAuthorizeUrl]
|
|
514
|
+
);
|
|
515
|
+
};
|
|
516
|
+
const getGetDataIntegrationAuthorizeUrlQueryKey = (slug, params) => {
|
|
517
|
+
return [
|
|
518
|
+
`/_widgets/DataIntegrations/${slug}/authorize`,
|
|
519
|
+
...params ? [params] : []
|
|
520
|
+
];
|
|
521
|
+
};
|
|
522
|
+
const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, params, options) => {
|
|
523
|
+
const { query: queryOptions } = options ?? {};
|
|
524
|
+
const queryKey = queryOptions?.queryKey ?? getGetDataIntegrationAuthorizeUrlQueryKey(slug, params);
|
|
525
|
+
const getDataIntegrationAuthorizeUrl = useGetDataIntegrationAuthorizeUrlHook();
|
|
526
|
+
const queryFn = ({ signal }) => getDataIntegrationAuthorizeUrl(slug, params, signal);
|
|
527
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
528
|
+
...queryOptions,
|
|
529
|
+
queryKey,
|
|
530
|
+
queryFn
|
|
531
|
+
});
|
|
532
|
+
return customOptions;
|
|
533
|
+
};
|
|
534
|
+
function useGetDataIntegrationAuthorizeUrl(slug, params, options, queryClient) {
|
|
535
|
+
const queryOptions = useGetDataIntegrationAuthorizeUrlQueryOptions(
|
|
536
|
+
slug,
|
|
537
|
+
params,
|
|
538
|
+
options
|
|
539
|
+
);
|
|
480
540
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
481
|
-
query
|
|
482
|
-
return query;
|
|
541
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
483
542
|
}
|
|
484
543
|
const useInviteMemberHook = () => {
|
|
485
544
|
const inviteMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -507,8 +566,33 @@ const useInviteMemberMutationOptions = (options) => {
|
|
|
507
566
|
return { mutationFn, ...mutationOptions };
|
|
508
567
|
};
|
|
509
568
|
const useInviteMember = (options, queryClient) => {
|
|
510
|
-
|
|
511
|
-
|
|
569
|
+
return (0, import_react_query.useMutation)(useInviteMemberMutationOptions(options), queryClient);
|
|
570
|
+
};
|
|
571
|
+
const useRevokeInviteHook = () => {
|
|
572
|
+
const revokeInvite = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
573
|
+
return (0, import_react.useCallback)(
|
|
574
|
+
(userId, signal) => {
|
|
575
|
+
return revokeInvite({
|
|
576
|
+
url: `/_widgets/UserManagement/invites/${userId}`,
|
|
577
|
+
method: "DELETE",
|
|
578
|
+
signal
|
|
579
|
+
});
|
|
580
|
+
},
|
|
581
|
+
[revokeInvite]
|
|
582
|
+
);
|
|
583
|
+
};
|
|
584
|
+
const useRevokeInviteMutationOptions = (options) => {
|
|
585
|
+
const mutationKey = ["revokeInvite"];
|
|
586
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
587
|
+
const revokeInvite = useRevokeInviteHook();
|
|
588
|
+
const mutationFn = (props) => {
|
|
589
|
+
const { userId } = props ?? {};
|
|
590
|
+
return revokeInvite(userId);
|
|
591
|
+
};
|
|
592
|
+
return { mutationFn, ...mutationOptions };
|
|
593
|
+
};
|
|
594
|
+
const useRevokeInvite = (options, queryClient) => {
|
|
595
|
+
return (0, import_react_query.useMutation)(useRevokeInviteMutationOptions(options), queryClient);
|
|
512
596
|
};
|
|
513
597
|
const useResendInviteHook = () => {
|
|
514
598
|
const resendInvite = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -534,42 +618,53 @@ const useResendInviteMutationOptions = (options) => {
|
|
|
534
618
|
return { mutationFn, ...mutationOptions };
|
|
535
619
|
};
|
|
536
620
|
const useResendInvite = (options, queryClient) => {
|
|
537
|
-
|
|
538
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
621
|
+
return (0, import_react_query.useMutation)(useResendInviteMutationOptions(options), queryClient);
|
|
539
622
|
};
|
|
540
|
-
const
|
|
541
|
-
const
|
|
623
|
+
const useMembersHook = () => {
|
|
624
|
+
const members = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
542
625
|
return (0, import_react.useCallback)(
|
|
543
|
-
(
|
|
544
|
-
return
|
|
545
|
-
url: `/_widgets/UserManagement/
|
|
546
|
-
method: "
|
|
626
|
+
(params, signal) => {
|
|
627
|
+
return members({
|
|
628
|
+
url: `/_widgets/UserManagement/members`,
|
|
629
|
+
method: "GET",
|
|
630
|
+
params,
|
|
631
|
+
signal
|
|
547
632
|
});
|
|
548
633
|
},
|
|
549
|
-
[
|
|
634
|
+
[members]
|
|
550
635
|
);
|
|
551
636
|
};
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
const { userId } = props ?? {};
|
|
558
|
-
return revokeInvite(userId);
|
|
559
|
-
};
|
|
560
|
-
return { mutationFn, ...mutationOptions };
|
|
637
|
+
const getMembersQueryKey = (params) => {
|
|
638
|
+
return [
|
|
639
|
+
`/_widgets/UserManagement/members`,
|
|
640
|
+
...params ? [params] : []
|
|
641
|
+
];
|
|
561
642
|
};
|
|
562
|
-
const
|
|
563
|
-
const
|
|
564
|
-
|
|
643
|
+
const useMembersQueryOptions = (params, options) => {
|
|
644
|
+
const { query: queryOptions } = options ?? {};
|
|
645
|
+
const queryKey = queryOptions?.queryKey ?? getMembersQueryKey(params);
|
|
646
|
+
const members = useMembersHook();
|
|
647
|
+
const queryFn = ({ signal }) => members(params, signal);
|
|
648
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
649
|
+
...queryOptions,
|
|
650
|
+
queryKey,
|
|
651
|
+
queryFn
|
|
652
|
+
});
|
|
653
|
+
return customOptions;
|
|
565
654
|
};
|
|
655
|
+
function useMembers(params, options, queryClient) {
|
|
656
|
+
const queryOptions = useMembersQueryOptions(params, options);
|
|
657
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
658
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
659
|
+
}
|
|
566
660
|
const useRemoveMemberHook = () => {
|
|
567
661
|
const removeMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
568
662
|
return (0, import_react.useCallback)(
|
|
569
|
-
(userId) => {
|
|
663
|
+
(userId, signal) => {
|
|
570
664
|
return removeMember({
|
|
571
665
|
url: `/_widgets/UserManagement/members/${userId}`,
|
|
572
|
-
method: "DELETE"
|
|
666
|
+
method: "DELETE",
|
|
667
|
+
signal
|
|
573
668
|
});
|
|
574
669
|
},
|
|
575
670
|
[removeMember]
|
|
@@ -586,8 +681,7 @@ const useRemoveMemberMutationOptions = (options) => {
|
|
|
586
681
|
return { mutationFn, ...mutationOptions };
|
|
587
682
|
};
|
|
588
683
|
const useRemoveMember = (options, queryClient) => {
|
|
589
|
-
|
|
590
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
684
|
+
return (0, import_react_query.useMutation)(useRemoveMemberMutationOptions(options), queryClient);
|
|
591
685
|
};
|
|
592
686
|
const useUpdateMemberHook = () => {
|
|
593
687
|
const updateMember = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -615,8 +709,7 @@ const useUpdateMemberMutationOptions = (options) => {
|
|
|
615
709
|
return { mutationFn, ...mutationOptions };
|
|
616
710
|
};
|
|
617
711
|
const useUpdateMember = (options, queryClient) => {
|
|
618
|
-
|
|
619
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
712
|
+
return (0, import_react_query.useMutation)(useUpdateMemberMutationOptions(options), queryClient);
|
|
620
713
|
};
|
|
621
714
|
const useOrganizationsHook = () => {
|
|
622
715
|
const organizations = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -649,26 +742,29 @@ const useOrganizationsQueryOptions = (options) => {
|
|
|
649
742
|
function useOrganizations(options, queryClient) {
|
|
650
743
|
const queryOptions = useOrganizationsQueryOptions(options);
|
|
651
744
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
652
|
-
query
|
|
653
|
-
return query;
|
|
745
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
654
746
|
}
|
|
655
|
-
const
|
|
656
|
-
const
|
|
747
|
+
const useRolesHook = () => {
|
|
748
|
+
const roles = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
657
749
|
return (0, import_react.useCallback)(
|
|
658
750
|
(signal) => {
|
|
659
|
-
return
|
|
751
|
+
return roles({
|
|
752
|
+
url: `/_widgets/UserManagement/roles`,
|
|
753
|
+
method: "GET",
|
|
754
|
+
signal
|
|
755
|
+
});
|
|
660
756
|
},
|
|
661
|
-
[
|
|
757
|
+
[roles]
|
|
662
758
|
);
|
|
663
759
|
};
|
|
664
|
-
const
|
|
665
|
-
return [`/_widgets/
|
|
760
|
+
const getRolesQueryKey = () => {
|
|
761
|
+
return [`/_widgets/UserManagement/roles`];
|
|
666
762
|
};
|
|
667
|
-
const
|
|
763
|
+
const useRolesQueryOptions = (options) => {
|
|
668
764
|
const { query: queryOptions } = options ?? {};
|
|
669
|
-
const queryKey = queryOptions?.queryKey ??
|
|
670
|
-
const
|
|
671
|
-
const queryFn = ({ signal }) =>
|
|
765
|
+
const queryKey = queryOptions?.queryKey ?? getRolesQueryKey();
|
|
766
|
+
const roles = useRolesHook();
|
|
767
|
+
const queryFn = ({ signal }) => roles(signal);
|
|
672
768
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
673
769
|
...queryOptions,
|
|
674
770
|
queryKey,
|
|
@@ -676,40 +772,104 @@ const useMeQueryOptions = (options) => {
|
|
|
676
772
|
});
|
|
677
773
|
return customOptions;
|
|
678
774
|
};
|
|
679
|
-
function
|
|
680
|
-
const queryOptions =
|
|
775
|
+
function useRoles(options, queryClient) {
|
|
776
|
+
const queryOptions = useRolesQueryOptions(options);
|
|
681
777
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
682
|
-
query
|
|
683
|
-
return query;
|
|
778
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
684
779
|
}
|
|
685
|
-
const
|
|
686
|
-
const
|
|
780
|
+
const useRolesAndConfigHook = () => {
|
|
781
|
+
const rolesAndConfig = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
687
782
|
return (0, import_react.useCallback)(
|
|
688
|
-
(
|
|
689
|
-
return
|
|
690
|
-
url: `/_widgets/
|
|
783
|
+
(signal) => {
|
|
784
|
+
return rolesAndConfig({
|
|
785
|
+
url: `/_widgets/UserManagement/roles-and-config`,
|
|
786
|
+
method: "GET",
|
|
787
|
+
signal
|
|
788
|
+
});
|
|
789
|
+
},
|
|
790
|
+
[rolesAndConfig]
|
|
791
|
+
);
|
|
792
|
+
};
|
|
793
|
+
const getRolesAndConfigQueryKey = () => {
|
|
794
|
+
return [`/_widgets/UserManagement/roles-and-config`];
|
|
795
|
+
};
|
|
796
|
+
const useRolesAndConfigQueryOptions = (options) => {
|
|
797
|
+
const { query: queryOptions } = options ?? {};
|
|
798
|
+
const queryKey = queryOptions?.queryKey ?? getRolesAndConfigQueryKey();
|
|
799
|
+
const rolesAndConfig = useRolesAndConfigHook();
|
|
800
|
+
const queryFn = ({ signal }) => rolesAndConfig(signal);
|
|
801
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
802
|
+
...queryOptions,
|
|
803
|
+
queryKey,
|
|
804
|
+
queryFn
|
|
805
|
+
});
|
|
806
|
+
return customOptions;
|
|
807
|
+
};
|
|
808
|
+
function useRolesAndConfig(options, queryClient) {
|
|
809
|
+
const queryOptions = useRolesAndConfigQueryOptions(options);
|
|
810
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
811
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
812
|
+
}
|
|
813
|
+
const useAuthenticationInformationHook = () => {
|
|
814
|
+
const authenticationInformation = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
815
|
+
return (0, import_react.useCallback)(
|
|
816
|
+
(signal) => {
|
|
817
|
+
return authenticationInformation({
|
|
818
|
+
url: `/_widgets/UserProfile/authentication-information`,
|
|
819
|
+
method: "GET",
|
|
820
|
+
signal
|
|
821
|
+
});
|
|
822
|
+
},
|
|
823
|
+
[authenticationInformation]
|
|
824
|
+
);
|
|
825
|
+
};
|
|
826
|
+
const getAuthenticationInformationQueryKey = () => {
|
|
827
|
+
return [`/_widgets/UserProfile/authentication-information`];
|
|
828
|
+
};
|
|
829
|
+
const useAuthenticationInformationQueryOptions = (options) => {
|
|
830
|
+
const { query: queryOptions } = options ?? {};
|
|
831
|
+
const queryKey = queryOptions?.queryKey ?? getAuthenticationInformationQueryKey();
|
|
832
|
+
const authenticationInformation = useAuthenticationInformationHook();
|
|
833
|
+
const queryFn = ({ signal }) => authenticationInformation(signal);
|
|
834
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
835
|
+
...queryOptions,
|
|
836
|
+
queryKey,
|
|
837
|
+
queryFn
|
|
838
|
+
});
|
|
839
|
+
return customOptions;
|
|
840
|
+
};
|
|
841
|
+
function useAuthenticationInformation(options, queryClient) {
|
|
842
|
+
const queryOptions = useAuthenticationInformationQueryOptions(options);
|
|
843
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
844
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
845
|
+
}
|
|
846
|
+
const useCreatePasswordHook = () => {
|
|
847
|
+
const createPassword = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
848
|
+
return (0, import_react.useCallback)(
|
|
849
|
+
(createPasswordRequest, signal) => {
|
|
850
|
+
return createPassword({
|
|
851
|
+
url: `/_widgets/UserProfile/create-password`,
|
|
691
852
|
method: "POST",
|
|
692
853
|
headers: { "Content-Type": "application/json" },
|
|
693
|
-
data:
|
|
854
|
+
data: createPasswordRequest,
|
|
694
855
|
signal
|
|
695
856
|
});
|
|
696
857
|
},
|
|
697
|
-
[
|
|
858
|
+
[createPassword]
|
|
698
859
|
);
|
|
699
860
|
};
|
|
700
|
-
const
|
|
701
|
-
const mutationKey = ["
|
|
861
|
+
const useCreatePasswordMutationOptions = (options) => {
|
|
862
|
+
const mutationKey = ["createPassword"];
|
|
702
863
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
703
|
-
const
|
|
864
|
+
const createPassword = useCreatePasswordHook();
|
|
704
865
|
const mutationFn = (props) => {
|
|
705
866
|
const { data } = props ?? {};
|
|
706
|
-
return
|
|
867
|
+
return createPassword(data);
|
|
707
868
|
};
|
|
708
869
|
return { mutationFn, ...mutationOptions };
|
|
709
870
|
};
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
871
|
+
const useCreatePassword = (options, queryClient) => {
|
|
872
|
+
return (0, import_react_query.useMutation)(useCreatePasswordMutationOptions(options), queryClient);
|
|
713
873
|
};
|
|
714
874
|
const useCreateTotpFactorHook = () => {
|
|
715
875
|
const createTotpFactor = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -734,161 +894,212 @@ const useCreateTotpFactorMutationOptions = (options) => {
|
|
|
734
894
|
return { mutationFn, ...mutationOptions };
|
|
735
895
|
};
|
|
736
896
|
const useCreateTotpFactor = (options, queryClient) => {
|
|
737
|
-
|
|
738
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
897
|
+
return (0, import_react_query.useMutation)(useCreateTotpFactorMutationOptions(options), queryClient);
|
|
739
898
|
};
|
|
740
|
-
const
|
|
741
|
-
const
|
|
899
|
+
const useMeHook = () => {
|
|
900
|
+
const me = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
742
901
|
return (0, import_react.useCallback)(
|
|
743
|
-
(
|
|
744
|
-
return
|
|
745
|
-
|
|
902
|
+
(signal) => {
|
|
903
|
+
return me({ url: `/_widgets/UserProfile/me`, method: "GET", signal });
|
|
904
|
+
},
|
|
905
|
+
[me]
|
|
906
|
+
);
|
|
907
|
+
};
|
|
908
|
+
const getMeQueryKey = () => {
|
|
909
|
+
return [`/_widgets/UserProfile/me`];
|
|
910
|
+
};
|
|
911
|
+
const useMeQueryOptions = (options) => {
|
|
912
|
+
const { query: queryOptions } = options ?? {};
|
|
913
|
+
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
|
914
|
+
const me = useMeHook();
|
|
915
|
+
const queryFn = ({ signal }) => me(signal);
|
|
916
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
917
|
+
...queryOptions,
|
|
918
|
+
queryKey,
|
|
919
|
+
queryFn
|
|
920
|
+
});
|
|
921
|
+
return customOptions;
|
|
922
|
+
};
|
|
923
|
+
function useMe(options, queryClient) {
|
|
924
|
+
const queryOptions = useMeQueryOptions(options);
|
|
925
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
926
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
927
|
+
}
|
|
928
|
+
const useUpdateMeHook = () => {
|
|
929
|
+
const updateMe = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
930
|
+
return (0, import_react.useCallback)(
|
|
931
|
+
(updateMeInput, signal) => {
|
|
932
|
+
return updateMe({
|
|
933
|
+
url: `/_widgets/UserProfile/me`,
|
|
746
934
|
method: "POST",
|
|
747
935
|
headers: { "Content-Type": "application/json" },
|
|
748
|
-
data:
|
|
936
|
+
data: updateMeInput,
|
|
749
937
|
signal
|
|
750
938
|
});
|
|
751
939
|
},
|
|
752
|
-
[
|
|
940
|
+
[updateMe]
|
|
753
941
|
);
|
|
754
942
|
};
|
|
755
|
-
const
|
|
756
|
-
const mutationKey = ["
|
|
943
|
+
const useUpdateMeMutationOptions = (options) => {
|
|
944
|
+
const mutationKey = ["updateMe"];
|
|
757
945
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
758
|
-
const
|
|
946
|
+
const updateMe = useUpdateMeHook();
|
|
759
947
|
const mutationFn = (props) => {
|
|
760
948
|
const { data } = props ?? {};
|
|
761
|
-
return
|
|
949
|
+
return updateMe(data);
|
|
762
950
|
};
|
|
763
951
|
return { mutationFn, ...mutationOptions };
|
|
764
952
|
};
|
|
765
|
-
const
|
|
766
|
-
|
|
767
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
953
|
+
const useUpdateMe = (options, queryClient) => {
|
|
954
|
+
return (0, import_react_query.useMutation)(useUpdateMeMutationOptions(options), queryClient);
|
|
768
955
|
};
|
|
769
|
-
const
|
|
770
|
-
const
|
|
771
|
-
return (0, import_react.useCallback)(
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
956
|
+
const useRegisterPasskeyHook = () => {
|
|
957
|
+
const registerPasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
958
|
+
return (0, import_react.useCallback)(
|
|
959
|
+
(signal) => {
|
|
960
|
+
return registerPasskey({
|
|
961
|
+
url: `/_widgets/UserProfile/passkeys`,
|
|
962
|
+
method: "POST",
|
|
963
|
+
signal
|
|
964
|
+
});
|
|
965
|
+
},
|
|
966
|
+
[registerPasskey]
|
|
967
|
+
);
|
|
777
968
|
};
|
|
778
|
-
const
|
|
779
|
-
const mutationKey = ["
|
|
969
|
+
const useRegisterPasskeyMutationOptions = (options) => {
|
|
970
|
+
const mutationKey = ["registerPasskey"];
|
|
780
971
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
781
|
-
const
|
|
972
|
+
const registerPasskey = useRegisterPasskeyHook();
|
|
782
973
|
const mutationFn = () => {
|
|
783
|
-
return
|
|
974
|
+
return registerPasskey();
|
|
784
975
|
};
|
|
785
976
|
return { mutationFn, ...mutationOptions };
|
|
786
977
|
};
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
978
|
+
const useRegisterPasskey = (options, queryClient) => {
|
|
979
|
+
return (0, import_react_query.useMutation)(useRegisterPasskeyMutationOptions(options), queryClient);
|
|
790
980
|
};
|
|
791
|
-
const
|
|
792
|
-
const
|
|
981
|
+
const useVerifyPasskeyHook = () => {
|
|
982
|
+
const verifyPasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
793
983
|
return (0, import_react.useCallback)(
|
|
794
|
-
(signal) => {
|
|
795
|
-
return
|
|
796
|
-
url: `/_widgets/UserProfile/
|
|
797
|
-
method: "
|
|
984
|
+
(verifyPasskeyRequest, signal) => {
|
|
985
|
+
return verifyPasskey({
|
|
986
|
+
url: `/_widgets/UserProfile/passkeys/verify`,
|
|
987
|
+
method: "POST",
|
|
988
|
+
headers: { "Content-Type": "application/json" },
|
|
989
|
+
data: verifyPasskeyRequest,
|
|
798
990
|
signal
|
|
799
991
|
});
|
|
800
992
|
},
|
|
801
|
-
[
|
|
993
|
+
[verifyPasskey]
|
|
802
994
|
);
|
|
803
995
|
};
|
|
804
|
-
const
|
|
805
|
-
|
|
996
|
+
const useVerifyPasskeyMutationOptions = (options) => {
|
|
997
|
+
const mutationKey = ["verifyPasskey"];
|
|
998
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
999
|
+
const verifyPasskey = useVerifyPasskeyHook();
|
|
1000
|
+
const mutationFn = (props) => {
|
|
1001
|
+
const { data } = props ?? {};
|
|
1002
|
+
return verifyPasskey(data);
|
|
1003
|
+
};
|
|
1004
|
+
return { mutationFn, ...mutationOptions };
|
|
806
1005
|
};
|
|
807
|
-
const
|
|
808
|
-
|
|
809
|
-
const queryKey = queryOptions?.queryKey ?? getAuthenticationInformationQueryKey();
|
|
810
|
-
const authenticationInformation = useAuthenticationInformationHook();
|
|
811
|
-
const queryFn = ({ signal }) => authenticationInformation(signal);
|
|
812
|
-
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
813
|
-
...queryOptions,
|
|
814
|
-
queryKey,
|
|
815
|
-
queryFn
|
|
816
|
-
});
|
|
817
|
-
return customOptions;
|
|
1006
|
+
const useVerifyPasskey = (options, queryClient) => {
|
|
1007
|
+
return (0, import_react_query.useMutation)(useVerifyPasskeyMutationOptions(options), queryClient);
|
|
818
1008
|
};
|
|
819
|
-
|
|
820
|
-
const
|
|
821
|
-
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
822
|
-
query.queryKey = queryOptions.queryKey;
|
|
823
|
-
return query;
|
|
824
|
-
}
|
|
825
|
-
const useCreatePasswordHook = () => {
|
|
826
|
-
const createPassword = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1009
|
+
const useDeletePasskeyHook = () => {
|
|
1010
|
+
const deletePasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
827
1011
|
return (0, import_react.useCallback)(
|
|
828
|
-
(
|
|
829
|
-
return
|
|
830
|
-
url: `/_widgets/UserProfile/
|
|
831
|
-
method: "
|
|
832
|
-
headers: { "Content-Type": "application/json" },
|
|
833
|
-
data: createPasswordRequest,
|
|
1012
|
+
(passkeyId, signal) => {
|
|
1013
|
+
return deletePasskey({
|
|
1014
|
+
url: `/_widgets/UserProfile/passkeys/${passkeyId}`,
|
|
1015
|
+
method: "DELETE",
|
|
834
1016
|
signal
|
|
835
1017
|
});
|
|
836
1018
|
},
|
|
837
|
-
[
|
|
1019
|
+
[deletePasskey]
|
|
838
1020
|
);
|
|
839
1021
|
};
|
|
840
|
-
const
|
|
841
|
-
const mutationKey = ["
|
|
1022
|
+
const useDeletePasskeyMutationOptions = (options) => {
|
|
1023
|
+
const mutationKey = ["deletePasskey"];
|
|
842
1024
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
843
|
-
const
|
|
1025
|
+
const deletePasskey = useDeletePasskeyHook();
|
|
844
1026
|
const mutationFn = (props) => {
|
|
845
|
-
const {
|
|
846
|
-
return
|
|
1027
|
+
const { passkeyId } = props ?? {};
|
|
1028
|
+
return deletePasskey(passkeyId);
|
|
847
1029
|
};
|
|
848
1030
|
return { mutationFn, ...mutationOptions };
|
|
849
1031
|
};
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1032
|
+
const useDeletePasskey = (options, queryClient) => {
|
|
1033
|
+
return (0, import_react_query.useMutation)(useDeletePasskeyMutationOptions(options), queryClient);
|
|
853
1034
|
};
|
|
854
|
-
const
|
|
855
|
-
const
|
|
1035
|
+
const useSendVerificationHook = () => {
|
|
1036
|
+
const sendVerification = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
856
1037
|
return (0, import_react.useCallback)(
|
|
857
|
-
(
|
|
858
|
-
return
|
|
859
|
-
url: `/_widgets/UserProfile/
|
|
1038
|
+
(signal) => {
|
|
1039
|
+
return sendVerification({
|
|
1040
|
+
url: `/_widgets/UserProfile/send-verification`,
|
|
860
1041
|
method: "POST",
|
|
861
|
-
headers: { "Content-Type": "application/json" },
|
|
862
|
-
data: updatePasswordRequest,
|
|
863
1042
|
signal
|
|
864
1043
|
});
|
|
865
1044
|
},
|
|
866
|
-
[
|
|
1045
|
+
[sendVerification]
|
|
867
1046
|
);
|
|
868
1047
|
};
|
|
869
|
-
const
|
|
870
|
-
const mutationKey = ["
|
|
1048
|
+
const useSendVerificationMutationOptions = (options) => {
|
|
1049
|
+
const mutationKey = ["sendVerification"];
|
|
871
1050
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
872
|
-
const
|
|
873
|
-
const mutationFn = (
|
|
874
|
-
|
|
875
|
-
return updatePassword(data);
|
|
1051
|
+
const sendVerification = useSendVerificationHook();
|
|
1052
|
+
const mutationFn = () => {
|
|
1053
|
+
return sendVerification();
|
|
876
1054
|
};
|
|
877
1055
|
return { mutationFn, ...mutationOptions };
|
|
878
1056
|
};
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
|
|
1057
|
+
const useSendVerification = (options, queryClient) => {
|
|
1058
|
+
return (0, import_react_query.useMutation)(useSendVerificationMutationOptions(options), queryClient);
|
|
1059
|
+
};
|
|
1060
|
+
const useSessionsHook = () => {
|
|
1061
|
+
const sessions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1062
|
+
return (0, import_react.useCallback)(
|
|
1063
|
+
(signal) => {
|
|
1064
|
+
return sessions({
|
|
1065
|
+
url: `/_widgets/UserProfile/sessions`,
|
|
1066
|
+
method: "GET",
|
|
1067
|
+
signal
|
|
1068
|
+
});
|
|
1069
|
+
},
|
|
1070
|
+
[sessions]
|
|
1071
|
+
);
|
|
882
1072
|
};
|
|
1073
|
+
const getSessionsQueryKey = () => {
|
|
1074
|
+
return [`/_widgets/UserProfile/sessions`];
|
|
1075
|
+
};
|
|
1076
|
+
const useSessionsQueryOptions = (options) => {
|
|
1077
|
+
const { query: queryOptions } = options ?? {};
|
|
1078
|
+
const queryKey = queryOptions?.queryKey ?? getSessionsQueryKey();
|
|
1079
|
+
const sessions = useSessionsHook();
|
|
1080
|
+
const queryFn = ({ signal }) => sessions(signal);
|
|
1081
|
+
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1082
|
+
...queryOptions,
|
|
1083
|
+
queryKey,
|
|
1084
|
+
queryFn
|
|
1085
|
+
});
|
|
1086
|
+
return customOptions;
|
|
1087
|
+
};
|
|
1088
|
+
function useSessions(options, queryClient) {
|
|
1089
|
+
const queryOptions = useSessionsQueryOptions(options);
|
|
1090
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1091
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1092
|
+
}
|
|
883
1093
|
const useRevokeAllSessionsHook = () => {
|
|
884
1094
|
const revokeAllSessions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
885
1095
|
return (0, import_react.useCallback)(
|
|
886
|
-
(revokeAllSessionsRequest) => {
|
|
1096
|
+
(revokeAllSessionsRequest, signal) => {
|
|
887
1097
|
return revokeAllSessions({
|
|
888
1098
|
url: `/_widgets/UserProfile/sessions/revoke-all`,
|
|
889
1099
|
method: "DELETE",
|
|
890
1100
|
headers: { "Content-Type": "application/json" },
|
|
891
|
-
data: revokeAllSessionsRequest
|
|
1101
|
+
data: revokeAllSessionsRequest,
|
|
1102
|
+
signal
|
|
892
1103
|
});
|
|
893
1104
|
},
|
|
894
1105
|
[revokeAllSessions]
|
|
@@ -905,16 +1116,16 @@ const useRevokeAllSessionsMutationOptions = (options) => {
|
|
|
905
1116
|
return { mutationFn, ...mutationOptions };
|
|
906
1117
|
};
|
|
907
1118
|
const useRevokeAllSessions = (options, queryClient) => {
|
|
908
|
-
|
|
909
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1119
|
+
return (0, import_react_query.useMutation)(useRevokeAllSessionsMutationOptions(options), queryClient);
|
|
910
1120
|
};
|
|
911
1121
|
const useRevokeSessionHook = () => {
|
|
912
1122
|
const revokeSession = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
913
1123
|
return (0, import_react.useCallback)(
|
|
914
|
-
(sessionId) => {
|
|
1124
|
+
(sessionId, signal) => {
|
|
915
1125
|
return revokeSession({
|
|
916
1126
|
url: `/_widgets/UserProfile/sessions/revoke/${sessionId}`,
|
|
917
|
-
method: "DELETE"
|
|
1127
|
+
method: "DELETE",
|
|
1128
|
+
signal
|
|
918
1129
|
});
|
|
919
1130
|
},
|
|
920
1131
|
[revokeSession]
|
|
@@ -931,68 +1142,60 @@ const useRevokeSessionMutationOptions = (options) => {
|
|
|
931
1142
|
return { mutationFn, ...mutationOptions };
|
|
932
1143
|
};
|
|
933
1144
|
const useRevokeSession = (options, queryClient) => {
|
|
934
|
-
|
|
935
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1145
|
+
return (0, import_react_query.useMutation)(useRevokeSessionMutationOptions(options), queryClient);
|
|
936
1146
|
};
|
|
937
|
-
const
|
|
938
|
-
const
|
|
1147
|
+
const useDeleteTotpFactorsHook = () => {
|
|
1148
|
+
const deleteTotpFactors = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
939
1149
|
return (0, import_react.useCallback)(
|
|
940
1150
|
(signal) => {
|
|
941
|
-
return
|
|
942
|
-
url: `/_widgets/UserProfile/
|
|
943
|
-
method: "
|
|
1151
|
+
return deleteTotpFactors({
|
|
1152
|
+
url: `/_widgets/UserProfile/totp-factors`,
|
|
1153
|
+
method: "DELETE",
|
|
944
1154
|
signal
|
|
945
1155
|
});
|
|
946
1156
|
},
|
|
947
|
-
[
|
|
1157
|
+
[deleteTotpFactors]
|
|
948
1158
|
);
|
|
949
1159
|
};
|
|
950
|
-
const
|
|
951
|
-
|
|
1160
|
+
const useDeleteTotpFactorsMutationOptions = (options) => {
|
|
1161
|
+
const mutationKey = ["deleteTotpFactors"];
|
|
1162
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1163
|
+
const deleteTotpFactors = useDeleteTotpFactorsHook();
|
|
1164
|
+
const mutationFn = () => {
|
|
1165
|
+
return deleteTotpFactors();
|
|
1166
|
+
};
|
|
1167
|
+
return { mutationFn, ...mutationOptions };
|
|
952
1168
|
};
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
const queryKey = queryOptions?.queryKey ?? getSessionsQueryKey();
|
|
956
|
-
const sessions = useSessionsHook();
|
|
957
|
-
const queryFn = ({ signal }) => sessions(signal);
|
|
958
|
-
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
959
|
-
...queryOptions,
|
|
960
|
-
queryKey,
|
|
961
|
-
queryFn
|
|
962
|
-
});
|
|
963
|
-
return customOptions;
|
|
1169
|
+
const useDeleteTotpFactors = (options, queryClient) => {
|
|
1170
|
+
return (0, import_react_query.useMutation)(useDeleteTotpFactorsMutationOptions(options), queryClient);
|
|
964
1171
|
};
|
|
965
|
-
|
|
966
|
-
const
|
|
967
|
-
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
968
|
-
query.queryKey = queryOptions.queryKey;
|
|
969
|
-
return query;
|
|
970
|
-
}
|
|
971
|
-
const useSendVerificationHook = () => {
|
|
972
|
-
const sendVerification = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1172
|
+
const useUpdatePasswordHook = () => {
|
|
1173
|
+
const updatePassword = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
973
1174
|
return (0, import_react.useCallback)(
|
|
974
|
-
(signal) => {
|
|
975
|
-
return
|
|
976
|
-
url: `/_widgets/UserProfile/
|
|
1175
|
+
(updatePasswordRequest, signal) => {
|
|
1176
|
+
return updatePassword({
|
|
1177
|
+
url: `/_widgets/UserProfile/update-password`,
|
|
977
1178
|
method: "POST",
|
|
1179
|
+
headers: { "Content-Type": "application/json" },
|
|
1180
|
+
data: updatePasswordRequest,
|
|
978
1181
|
signal
|
|
979
1182
|
});
|
|
980
1183
|
},
|
|
981
|
-
[
|
|
1184
|
+
[updatePassword]
|
|
982
1185
|
);
|
|
983
1186
|
};
|
|
984
|
-
const
|
|
985
|
-
const mutationKey = ["
|
|
1187
|
+
const useUpdatePasswordMutationOptions = (options) => {
|
|
1188
|
+
const mutationKey = ["updatePassword"];
|
|
986
1189
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
987
|
-
const
|
|
988
|
-
const mutationFn = () => {
|
|
989
|
-
|
|
1190
|
+
const updatePassword = useUpdatePasswordHook();
|
|
1191
|
+
const mutationFn = (props) => {
|
|
1192
|
+
const { data } = props ?? {};
|
|
1193
|
+
return updatePassword(data);
|
|
990
1194
|
};
|
|
991
1195
|
return { mutationFn, ...mutationOptions };
|
|
992
1196
|
};
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1197
|
+
const useUpdatePassword = (options, queryClient) => {
|
|
1198
|
+
return (0, import_react_query.useMutation)(useUpdatePasswordMutationOptions(options), queryClient);
|
|
996
1199
|
};
|
|
997
1200
|
const useVerifyHook = () => {
|
|
998
1201
|
const verify = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1020,107 +1223,57 @@ const useVerifyMutationOptions = (options) => {
|
|
|
1020
1223
|
return { mutationFn, ...mutationOptions };
|
|
1021
1224
|
};
|
|
1022
1225
|
const useVerify = (options, queryClient) => {
|
|
1023
|
-
|
|
1024
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1025
|
-
};
|
|
1026
|
-
const useRegisterPasskeyHook = () => {
|
|
1027
|
-
const registerPasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1028
|
-
return (0, import_react.useCallback)(
|
|
1029
|
-
(signal) => {
|
|
1030
|
-
return registerPasskey({
|
|
1031
|
-
url: `/_widgets/UserProfile/passkeys`,
|
|
1032
|
-
method: "POST",
|
|
1033
|
-
signal
|
|
1034
|
-
});
|
|
1035
|
-
},
|
|
1036
|
-
[registerPasskey]
|
|
1037
|
-
);
|
|
1038
|
-
};
|
|
1039
|
-
const useRegisterPasskeyMutationOptions = (options) => {
|
|
1040
|
-
const mutationKey = ["registerPasskey"];
|
|
1041
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1042
|
-
const registerPasskey = useRegisterPasskeyHook();
|
|
1043
|
-
const mutationFn = () => {
|
|
1044
|
-
return registerPasskey();
|
|
1045
|
-
};
|
|
1046
|
-
return { mutationFn, ...mutationOptions };
|
|
1047
|
-
};
|
|
1048
|
-
const useRegisterPasskey = (options, queryClient) => {
|
|
1049
|
-
const mutationOptions = useRegisterPasskeyMutationOptions(options);
|
|
1050
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1226
|
+
return (0, import_react_query.useMutation)(useVerifyMutationOptions(options), queryClient);
|
|
1051
1227
|
};
|
|
1052
|
-
const
|
|
1053
|
-
const
|
|
1228
|
+
const useVerifyTotpFactorHook = () => {
|
|
1229
|
+
const verifyTotpFactor = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1054
1230
|
return (0, import_react.useCallback)(
|
|
1055
|
-
(
|
|
1056
|
-
return
|
|
1057
|
-
url: `/_widgets/UserProfile/
|
|
1231
|
+
(verifyTotpFactorRequest, signal) => {
|
|
1232
|
+
return verifyTotpFactor({
|
|
1233
|
+
url: `/_widgets/UserProfile/verify-totp-factor`,
|
|
1058
1234
|
method: "POST",
|
|
1059
1235
|
headers: { "Content-Type": "application/json" },
|
|
1060
|
-
data:
|
|
1236
|
+
data: verifyTotpFactorRequest,
|
|
1061
1237
|
signal
|
|
1062
1238
|
});
|
|
1063
1239
|
},
|
|
1064
|
-
[
|
|
1240
|
+
[verifyTotpFactor]
|
|
1065
1241
|
);
|
|
1066
1242
|
};
|
|
1067
|
-
const
|
|
1068
|
-
const mutationKey = ["
|
|
1243
|
+
const useVerifyTotpFactorMutationOptions = (options) => {
|
|
1244
|
+
const mutationKey = ["verifyTotpFactor"];
|
|
1069
1245
|
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1070
|
-
const
|
|
1246
|
+
const verifyTotpFactor = useVerifyTotpFactorHook();
|
|
1071
1247
|
const mutationFn = (props) => {
|
|
1072
1248
|
const { data } = props ?? {};
|
|
1073
|
-
return
|
|
1074
|
-
};
|
|
1075
|
-
return { mutationFn, ...mutationOptions };
|
|
1076
|
-
};
|
|
1077
|
-
const useVerifyPasskey = (options, queryClient) => {
|
|
1078
|
-
const mutationOptions = useVerifyPasskeyMutationOptions(options);
|
|
1079
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1080
|
-
};
|
|
1081
|
-
const useDeletePasskeyHook = () => {
|
|
1082
|
-
const deletePasskey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1083
|
-
return (0, import_react.useCallback)(
|
|
1084
|
-
(passkeyId) => {
|
|
1085
|
-
return deletePasskey({
|
|
1086
|
-
url: `/_widgets/UserProfile/passkeys/${passkeyId}`,
|
|
1087
|
-
method: "DELETE"
|
|
1088
|
-
});
|
|
1089
|
-
},
|
|
1090
|
-
[deletePasskey]
|
|
1091
|
-
);
|
|
1092
|
-
};
|
|
1093
|
-
const useDeletePasskeyMutationOptions = (options) => {
|
|
1094
|
-
const mutationKey = ["deletePasskey"];
|
|
1095
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1096
|
-
const deletePasskey = useDeletePasskeyHook();
|
|
1097
|
-
const mutationFn = (props) => {
|
|
1098
|
-
const { passkeyId } = props ?? {};
|
|
1099
|
-
return deletePasskey(passkeyId);
|
|
1249
|
+
return verifyTotpFactor(data);
|
|
1100
1250
|
};
|
|
1101
1251
|
return { mutationFn, ...mutationOptions };
|
|
1102
1252
|
};
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1105
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1253
|
+
const useVerifyTotpFactor = (options, queryClient) => {
|
|
1254
|
+
return (0, import_react_query.useMutation)(useVerifyTotpFactorMutationOptions(options), queryClient);
|
|
1106
1255
|
};
|
|
1107
|
-
const
|
|
1108
|
-
const
|
|
1256
|
+
const useGetAuditLogStreamHook = () => {
|
|
1257
|
+
const getAuditLogStream = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1109
1258
|
return (0, import_react.useCallback)(
|
|
1110
1259
|
(signal) => {
|
|
1111
|
-
return
|
|
1260
|
+
return getAuditLogStream({
|
|
1261
|
+
url: `/_widgets/admin-portal/audit-log-stream`,
|
|
1262
|
+
method: "GET",
|
|
1263
|
+
signal
|
|
1264
|
+
});
|
|
1112
1265
|
},
|
|
1113
|
-
[
|
|
1266
|
+
[getAuditLogStream]
|
|
1114
1267
|
);
|
|
1115
1268
|
};
|
|
1116
|
-
const
|
|
1117
|
-
return [`/_widgets/
|
|
1269
|
+
const getGetAuditLogStreamQueryKey = () => {
|
|
1270
|
+
return [`/_widgets/admin-portal/audit-log-stream`];
|
|
1118
1271
|
};
|
|
1119
|
-
const
|
|
1272
|
+
const useGetAuditLogStreamQueryOptions = (options) => {
|
|
1120
1273
|
const { query: queryOptions } = options ?? {};
|
|
1121
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1122
|
-
const
|
|
1123
|
-
const queryFn = ({ signal }) =>
|
|
1274
|
+
const queryKey = queryOptions?.queryKey ?? getGetAuditLogStreamQueryKey();
|
|
1275
|
+
const getAuditLogStream = useGetAuditLogStreamHook();
|
|
1276
|
+
const queryFn = ({ signal }) => getAuditLogStream(signal);
|
|
1124
1277
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1125
1278
|
...queryOptions,
|
|
1126
1279
|
queryKey,
|
|
@@ -1128,12 +1281,41 @@ const useSettingsQueryOptions = (options) => {
|
|
|
1128
1281
|
});
|
|
1129
1282
|
return customOptions;
|
|
1130
1283
|
};
|
|
1131
|
-
function
|
|
1132
|
-
const queryOptions =
|
|
1133
|
-
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1134
|
-
query
|
|
1135
|
-
|
|
1136
|
-
|
|
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
|
+
}
|
|
1289
|
+
const useGenerateAdminPortalLinkHook = () => {
|
|
1290
|
+
const generateAdminPortalLink = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1291
|
+
return (0, import_react.useCallback)(
|
|
1292
|
+
(params, signal) => {
|
|
1293
|
+
return generateAdminPortalLink({
|
|
1294
|
+
url: `/_widgets/admin-portal/generate-link`,
|
|
1295
|
+
method: "POST",
|
|
1296
|
+
params,
|
|
1297
|
+
signal
|
|
1298
|
+
});
|
|
1299
|
+
},
|
|
1300
|
+
[generateAdminPortalLink]
|
|
1301
|
+
);
|
|
1302
|
+
};
|
|
1303
|
+
const useGenerateAdminPortalLinkMutationOptions = (options) => {
|
|
1304
|
+
const mutationKey = ["generateAdminPortalLink"];
|
|
1305
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1306
|
+
const generateAdminPortalLink = useGenerateAdminPortalLinkHook();
|
|
1307
|
+
const mutationFn = (props) => {
|
|
1308
|
+
const { params } = props ?? {};
|
|
1309
|
+
return generateAdminPortalLink(params);
|
|
1310
|
+
};
|
|
1311
|
+
return { mutationFn, ...mutationOptions };
|
|
1312
|
+
};
|
|
1313
|
+
const useGenerateAdminPortalLink = (options, queryClient) => {
|
|
1314
|
+
return (0, import_react_query.useMutation)(
|
|
1315
|
+
useGenerateAdminPortalLinkMutationOptions(options),
|
|
1316
|
+
queryClient
|
|
1317
|
+
);
|
|
1318
|
+
};
|
|
1137
1319
|
const useListOrganizationDomainsHook = () => {
|
|
1138
1320
|
const listOrganizationDomains = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1139
1321
|
return (0, import_react.useCallback)(
|
|
@@ -1165,44 +1347,16 @@ const useListOrganizationDomainsQueryOptions = (options) => {
|
|
|
1165
1347
|
function useListOrganizationDomains(options, queryClient) {
|
|
1166
1348
|
const queryOptions = useListOrganizationDomainsQueryOptions(options);
|
|
1167
1349
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1168
|
-
query
|
|
1169
|
-
return query;
|
|
1350
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1170
1351
|
}
|
|
1171
|
-
const useGenerateAdminPortalLinkHook = () => {
|
|
1172
|
-
const generateAdminPortalLink = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1173
|
-
return (0, import_react.useCallback)(
|
|
1174
|
-
(params, signal) => {
|
|
1175
|
-
return generateAdminPortalLink({
|
|
1176
|
-
url: `/_widgets/admin-portal/generate-link`,
|
|
1177
|
-
method: "POST",
|
|
1178
|
-
params,
|
|
1179
|
-
signal
|
|
1180
|
-
});
|
|
1181
|
-
},
|
|
1182
|
-
[generateAdminPortalLink]
|
|
1183
|
-
);
|
|
1184
|
-
};
|
|
1185
|
-
const useGenerateAdminPortalLinkMutationOptions = (options) => {
|
|
1186
|
-
const mutationKey = ["generateAdminPortalLink"];
|
|
1187
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1188
|
-
const generateAdminPortalLink = useGenerateAdminPortalLinkHook();
|
|
1189
|
-
const mutationFn = (props) => {
|
|
1190
|
-
const { params } = props ?? {};
|
|
1191
|
-
return generateAdminPortalLink(params);
|
|
1192
|
-
};
|
|
1193
|
-
return { mutationFn, ...mutationOptions };
|
|
1194
|
-
};
|
|
1195
|
-
const useGenerateAdminPortalLink = (options, queryClient) => {
|
|
1196
|
-
const mutationOptions = useGenerateAdminPortalLinkMutationOptions(options);
|
|
1197
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1198
|
-
};
|
|
1199
1352
|
const useDeleteOrganizationDomainHook = () => {
|
|
1200
1353
|
const deleteOrganizationDomain = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1201
1354
|
return (0, import_react.useCallback)(
|
|
1202
|
-
(domainId) => {
|
|
1355
|
+
(domainId, signal) => {
|
|
1203
1356
|
return deleteOrganizationDomain({
|
|
1204
1357
|
url: `/_widgets/admin-portal/organization-domains/${domainId}`,
|
|
1205
|
-
method: "DELETE"
|
|
1358
|
+
method: "DELETE",
|
|
1359
|
+
signal
|
|
1206
1360
|
});
|
|
1207
1361
|
},
|
|
1208
1362
|
[deleteOrganizationDomain]
|
|
@@ -1219,8 +1373,10 @@ const useDeleteOrganizationDomainMutationOptions = (options) => {
|
|
|
1219
1373
|
return { mutationFn, ...mutationOptions };
|
|
1220
1374
|
};
|
|
1221
1375
|
const useDeleteOrganizationDomain = (options, queryClient) => {
|
|
1222
|
-
|
|
1223
|
-
|
|
1376
|
+
return (0, import_react_query.useMutation)(
|
|
1377
|
+
useDeleteOrganizationDomainMutationOptions(options),
|
|
1378
|
+
queryClient
|
|
1379
|
+
);
|
|
1224
1380
|
};
|
|
1225
1381
|
const useReverifyOrganizationDomainHook = () => {
|
|
1226
1382
|
const reverifyOrganizationDomain = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1246,8 +1402,10 @@ const useReverifyOrganizationDomainMutationOptions = (options) => {
|
|
|
1246
1402
|
return { mutationFn, ...mutationOptions };
|
|
1247
1403
|
};
|
|
1248
1404
|
const useReverifyOrganizationDomain = (options, queryClient) => {
|
|
1249
|
-
|
|
1250
|
-
|
|
1405
|
+
return (0, import_react_query.useMutation)(
|
|
1406
|
+
useReverifyOrganizationDomainMutationOptions(options),
|
|
1407
|
+
queryClient
|
|
1408
|
+
);
|
|
1251
1409
|
};
|
|
1252
1410
|
const useListSsoConnectionsHook = () => {
|
|
1253
1411
|
const listSsoConnections = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
@@ -1280,164 +1438,29 @@ const useListSsoConnectionsQueryOptions = (options) => {
|
|
|
1280
1438
|
function useListSsoConnections(options, queryClient) {
|
|
1281
1439
|
const queryOptions = useListSsoConnectionsQueryOptions(options);
|
|
1282
1440
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1283
|
-
query
|
|
1284
|
-
return query;
|
|
1285
|
-
}
|
|
1286
|
-
const useCreateOrganizationApiKeyHook = () => {
|
|
1287
|
-
const createOrganizationApiKey = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1288
|
-
return (0, import_react.useCallback)(
|
|
1289
|
-
(createOrganizationApiKeyRequest, signal) => {
|
|
1290
|
-
return createOrganizationApiKey({
|
|
1291
|
-
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
1292
|
-
method: "POST",
|
|
1293
|
-
headers: { "Content-Type": "application/json" },
|
|
1294
|
-
data: createOrganizationApiKeyRequest,
|
|
1295
|
-
signal
|
|
1296
|
-
});
|
|
1297
|
-
},
|
|
1298
|
-
[createOrganizationApiKey]
|
|
1299
|
-
);
|
|
1300
|
-
};
|
|
1301
|
-
const useCreateOrganizationApiKeyMutationOptions = (options) => {
|
|
1302
|
-
const mutationKey = ["createOrganizationApiKey"];
|
|
1303
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1304
|
-
const createOrganizationApiKey = useCreateOrganizationApiKeyHook();
|
|
1305
|
-
const mutationFn = (props) => {
|
|
1306
|
-
const { data } = props ?? {};
|
|
1307
|
-
return createOrganizationApiKey(data);
|
|
1308
|
-
};
|
|
1309
|
-
return { mutationFn, ...mutationOptions };
|
|
1310
|
-
};
|
|
1311
|
-
const useCreateOrganizationApiKey = (options, queryClient) => {
|
|
1312
|
-
const mutationOptions = useCreateOrganizationApiKeyMutationOptions(options);
|
|
1313
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1314
|
-
};
|
|
1315
|
-
const useListOrganizationApiKeysHook = () => {
|
|
1316
|
-
const listOrganizationApiKeys = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1317
|
-
return (0, import_react.useCallback)(
|
|
1318
|
-
(params, signal) => {
|
|
1319
|
-
return listOrganizationApiKeys({
|
|
1320
|
-
url: `/_widgets/ApiKeys/organization-api-keys`,
|
|
1321
|
-
method: "GET",
|
|
1322
|
-
params,
|
|
1323
|
-
signal
|
|
1324
|
-
});
|
|
1325
|
-
},
|
|
1326
|
-
[listOrganizationApiKeys]
|
|
1327
|
-
);
|
|
1328
|
-
};
|
|
1329
|
-
const getListOrganizationApiKeysQueryKey = (params) => {
|
|
1330
|
-
return [
|
|
1331
|
-
`/_widgets/ApiKeys/organization-api-keys`,
|
|
1332
|
-
...params ? [params] : []
|
|
1333
|
-
];
|
|
1334
|
-
};
|
|
1335
|
-
const useListOrganizationApiKeysQueryOptions = (params, options) => {
|
|
1336
|
-
const { query: queryOptions } = options ?? {};
|
|
1337
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeysQueryKey(params);
|
|
1338
|
-
const listOrganizationApiKeys = useListOrganizationApiKeysHook();
|
|
1339
|
-
const queryFn = ({ signal }) => listOrganizationApiKeys(params, signal);
|
|
1340
|
-
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1341
|
-
...queryOptions,
|
|
1342
|
-
queryKey,
|
|
1343
|
-
queryFn
|
|
1344
|
-
});
|
|
1345
|
-
return customOptions;
|
|
1346
|
-
};
|
|
1347
|
-
function useListOrganizationApiKeys(params, options, queryClient) {
|
|
1348
|
-
const queryOptions = useListOrganizationApiKeysQueryOptions(params, options);
|
|
1349
|
-
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1350
|
-
query.queryKey = queryOptions.queryKey;
|
|
1351
|
-
return query;
|
|
1352
|
-
}
|
|
1353
|
-
const useListOrganizationApiKeyPermissionsHook = () => {
|
|
1354
|
-
const listOrganizationApiKeyPermissions = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1355
|
-
return (0, import_react.useCallback)(
|
|
1356
|
-
(params, signal) => {
|
|
1357
|
-
return listOrganizationApiKeyPermissions({
|
|
1358
|
-
url: `/_widgets/ApiKeys/permissions`,
|
|
1359
|
-
method: "GET",
|
|
1360
|
-
params,
|
|
1361
|
-
signal
|
|
1362
|
-
});
|
|
1363
|
-
},
|
|
1364
|
-
[listOrganizationApiKeyPermissions]
|
|
1365
|
-
);
|
|
1366
|
-
};
|
|
1367
|
-
const getListOrganizationApiKeyPermissionsQueryKey = (params) => {
|
|
1368
|
-
return [
|
|
1369
|
-
`/_widgets/ApiKeys/permissions`,
|
|
1370
|
-
...params ? [params] : []
|
|
1371
|
-
];
|
|
1372
|
-
};
|
|
1373
|
-
const useListOrganizationApiKeyPermissionsQueryOptions = (params, options) => {
|
|
1374
|
-
const { query: queryOptions } = options ?? {};
|
|
1375
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationApiKeyPermissionsQueryKey(params);
|
|
1376
|
-
const listOrganizationApiKeyPermissions = useListOrganizationApiKeyPermissionsHook();
|
|
1377
|
-
const queryFn = ({ signal }) => listOrganizationApiKeyPermissions(params, signal);
|
|
1378
|
-
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1379
|
-
...queryOptions,
|
|
1380
|
-
queryKey,
|
|
1381
|
-
queryFn
|
|
1382
|
-
});
|
|
1383
|
-
return customOptions;
|
|
1384
|
-
};
|
|
1385
|
-
function useListOrganizationApiKeyPermissions(params, options, queryClient) {
|
|
1386
|
-
const queryOptions = useListOrganizationApiKeyPermissionsQueryOptions(
|
|
1387
|
-
params,
|
|
1388
|
-
options
|
|
1389
|
-
);
|
|
1390
|
-
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1391
|
-
query.queryKey = queryOptions.queryKey;
|
|
1392
|
-
return query;
|
|
1441
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1393
1442
|
}
|
|
1394
|
-
const
|
|
1395
|
-
const
|
|
1396
|
-
return (0, import_react.useCallback)(
|
|
1397
|
-
(apiKeyId) => {
|
|
1398
|
-
return deleteOrganizationApiKey({
|
|
1399
|
-
url: `/_widgets/ApiKeys/${apiKeyId}`,
|
|
1400
|
-
method: "DELETE"
|
|
1401
|
-
});
|
|
1402
|
-
},
|
|
1403
|
-
[deleteOrganizationApiKey]
|
|
1404
|
-
);
|
|
1405
|
-
};
|
|
1406
|
-
const useDeleteOrganizationApiKeyMutationOptions = (options) => {
|
|
1407
|
-
const mutationKey = ["deleteOrganizationApiKey"];
|
|
1408
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1409
|
-
const deleteOrganizationApiKey = useDeleteOrganizationApiKeyHook();
|
|
1410
|
-
const mutationFn = (props) => {
|
|
1411
|
-
const { apiKeyId } = props ?? {};
|
|
1412
|
-
return deleteOrganizationApiKey(apiKeyId);
|
|
1413
|
-
};
|
|
1414
|
-
return { mutationFn, ...mutationOptions };
|
|
1415
|
-
};
|
|
1416
|
-
const useDeleteOrganizationApiKey = (options, queryClient) => {
|
|
1417
|
-
const mutationOptions = useDeleteOrganizationApiKeyMutationOptions(options);
|
|
1418
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1419
|
-
};
|
|
1420
|
-
const useMyDataIntegrationsHook = () => {
|
|
1421
|
-
const myDataIntegrations = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1443
|
+
const useListDirectoriesHook = () => {
|
|
1444
|
+
const listDirectories = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1422
1445
|
return (0, import_react.useCallback)(
|
|
1423
1446
|
(signal) => {
|
|
1424
|
-
return
|
|
1425
|
-
url: `/_widgets/
|
|
1447
|
+
return listDirectories({
|
|
1448
|
+
url: `/_widgets/directory-sync/directories`,
|
|
1426
1449
|
method: "GET",
|
|
1427
1450
|
signal
|
|
1428
1451
|
});
|
|
1429
1452
|
},
|
|
1430
|
-
[
|
|
1453
|
+
[listDirectories]
|
|
1431
1454
|
);
|
|
1432
1455
|
};
|
|
1433
|
-
const
|
|
1434
|
-
return [`/_widgets/
|
|
1456
|
+
const getListDirectoriesQueryKey = () => {
|
|
1457
|
+
return [`/_widgets/directory-sync/directories`];
|
|
1435
1458
|
};
|
|
1436
|
-
const
|
|
1459
|
+
const useListDirectoriesQueryOptions = (options) => {
|
|
1437
1460
|
const { query: queryOptions } = options ?? {};
|
|
1438
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1439
|
-
const
|
|
1440
|
-
const queryFn = ({ signal }) =>
|
|
1461
|
+
const queryKey = queryOptions?.queryKey ?? getListDirectoriesQueryKey();
|
|
1462
|
+
const listDirectories = useListDirectoriesHook();
|
|
1463
|
+
const queryFn = ({ signal }) => listDirectories(signal);
|
|
1441
1464
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1442
1465
|
...queryOptions,
|
|
1443
1466
|
queryKey,
|
|
@@ -1445,37 +1468,32 @@ const useMyDataIntegrationsQueryOptions = (options) => {
|
|
|
1445
1468
|
});
|
|
1446
1469
|
return customOptions;
|
|
1447
1470
|
};
|
|
1448
|
-
function
|
|
1449
|
-
const queryOptions =
|
|
1471
|
+
function useListDirectories(options, queryClient) {
|
|
1472
|
+
const queryOptions = useListDirectoriesQueryOptions(options);
|
|
1450
1473
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1451
|
-
query
|
|
1452
|
-
return query;
|
|
1474
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1453
1475
|
}
|
|
1454
|
-
const
|
|
1455
|
-
const
|
|
1476
|
+
const useGetDirectoryHook = () => {
|
|
1477
|
+
const getDirectory = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1456
1478
|
return (0, import_react.useCallback)(
|
|
1457
|
-
(
|
|
1458
|
-
return
|
|
1459
|
-
url: `/_widgets/
|
|
1479
|
+
(directoryId, signal) => {
|
|
1480
|
+
return getDirectory({
|
|
1481
|
+
url: `/_widgets/directory-sync/directories/${directoryId}`,
|
|
1460
1482
|
method: "GET",
|
|
1461
|
-
params,
|
|
1462
1483
|
signal
|
|
1463
1484
|
});
|
|
1464
1485
|
},
|
|
1465
|
-
[
|
|
1486
|
+
[getDirectory]
|
|
1466
1487
|
);
|
|
1467
1488
|
};
|
|
1468
|
-
const
|
|
1469
|
-
return [
|
|
1470
|
-
`/_widgets/DataIntegrations/${slug}/authorize`,
|
|
1471
|
-
...params ? [params] : []
|
|
1472
|
-
];
|
|
1489
|
+
const getGetDirectoryQueryKey = (directoryId) => {
|
|
1490
|
+
return [`/_widgets/directory-sync/directories/${directoryId}`];
|
|
1473
1491
|
};
|
|
1474
|
-
const
|
|
1492
|
+
const useGetDirectoryQueryOptions = (directoryId, options) => {
|
|
1475
1493
|
const { query: queryOptions } = options ?? {};
|
|
1476
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1477
|
-
const
|
|
1478
|
-
const queryFn = ({ signal }) =>
|
|
1494
|
+
const queryKey = queryOptions?.queryKey ?? getGetDirectoryQueryKey(directoryId);
|
|
1495
|
+
const getDirectory = useGetDirectoryHook();
|
|
1496
|
+
const queryFn = ({ signal }) => getDirectory(directoryId, signal);
|
|
1479
1497
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1480
1498
|
...queryOptions,
|
|
1481
1499
|
queryKey,
|
|
@@ -1483,39 +1501,28 @@ const useGetDataIntegrationAuthorizeUrlQueryOptions = (slug, params, options) =>
|
|
|
1483
1501
|
});
|
|
1484
1502
|
return customOptions;
|
|
1485
1503
|
};
|
|
1486
|
-
function
|
|
1487
|
-
const queryOptions =
|
|
1488
|
-
slug,
|
|
1489
|
-
params,
|
|
1490
|
-
options
|
|
1491
|
-
);
|
|
1504
|
+
function useGetDirectory(directoryId, options, queryClient) {
|
|
1505
|
+
const queryOptions = useGetDirectoryQueryOptions(directoryId, options);
|
|
1492
1506
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1493
|
-
query
|
|
1494
|
-
return query;
|
|
1507
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1495
1508
|
}
|
|
1496
|
-
const
|
|
1497
|
-
const
|
|
1509
|
+
const useSettingsHook = () => {
|
|
1510
|
+
const settings = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1498
1511
|
return (0, import_react.useCallback)(
|
|
1499
|
-
(
|
|
1500
|
-
return
|
|
1501
|
-
url: `/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`,
|
|
1502
|
-
method: "GET",
|
|
1503
|
-
signal
|
|
1504
|
-
});
|
|
1512
|
+
(signal) => {
|
|
1513
|
+
return settings({ url: `/_widgets/settings`, method: "GET", signal });
|
|
1505
1514
|
},
|
|
1506
|
-
[
|
|
1515
|
+
[settings]
|
|
1507
1516
|
);
|
|
1508
1517
|
};
|
|
1509
|
-
const
|
|
1510
|
-
return [
|
|
1511
|
-
`/_widgets/DataIntegrations/${dataIntegrationId}/authorization-status/${state}`
|
|
1512
|
-
];
|
|
1518
|
+
const getSettingsQueryKey = () => {
|
|
1519
|
+
return [`/_widgets/settings`];
|
|
1513
1520
|
};
|
|
1514
|
-
const
|
|
1521
|
+
const useSettingsQueryOptions = (options) => {
|
|
1515
1522
|
const { query: queryOptions } = options ?? {};
|
|
1516
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1517
|
-
const
|
|
1518
|
-
const queryFn = ({ signal }) =>
|
|
1523
|
+
const queryKey = queryOptions?.queryKey ?? getSettingsQueryKey();
|
|
1524
|
+
const settings = useSettingsHook();
|
|
1525
|
+
const queryFn = ({ signal }) => settings(signal);
|
|
1519
1526
|
const customOptions = (0, import_widgets_api_client2.useWidgetsApiQueryOptions)({
|
|
1520
1527
|
...queryOptions,
|
|
1521
1528
|
queryKey,
|
|
@@ -1523,56 +1530,15 @@ const useGetDataInstallationAuthorizationStatusQueryOptions = (dataIntegrationId
|
|
|
1523
1530
|
});
|
|
1524
1531
|
return customOptions;
|
|
1525
1532
|
};
|
|
1526
|
-
function
|
|
1527
|
-
const queryOptions =
|
|
1528
|
-
dataIntegrationId,
|
|
1529
|
-
state,
|
|
1530
|
-
options
|
|
1531
|
-
);
|
|
1533
|
+
function useSettings(options, queryClient) {
|
|
1534
|
+
const queryOptions = useSettingsQueryOptions(options);
|
|
1532
1535
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
1533
|
-
query
|
|
1534
|
-
return query;
|
|
1536
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1535
1537
|
}
|
|
1536
|
-
const useDeleteDataInstallationHook = () => {
|
|
1537
|
-
const deleteDataInstallation = (0, import_widgets_api_client.useWidgetsApiClient)();
|
|
1538
|
-
return (0, import_react.useCallback)(
|
|
1539
|
-
(installationId) => {
|
|
1540
|
-
return deleteDataInstallation({
|
|
1541
|
-
url: `/_widgets/DataIntegrations/installations/${installationId}`,
|
|
1542
|
-
method: "DELETE"
|
|
1543
|
-
});
|
|
1544
|
-
},
|
|
1545
|
-
[deleteDataInstallation]
|
|
1546
|
-
);
|
|
1547
|
-
};
|
|
1548
|
-
const useDeleteDataInstallationMutationOptions = (options) => {
|
|
1549
|
-
const mutationKey = ["deleteDataInstallation"];
|
|
1550
|
-
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1551
|
-
const deleteDataInstallation = useDeleteDataInstallationHook();
|
|
1552
|
-
const mutationFn = (props) => {
|
|
1553
|
-
const { installationId } = props ?? {};
|
|
1554
|
-
return deleteDataInstallation(installationId);
|
|
1555
|
-
};
|
|
1556
|
-
return { mutationFn, ...mutationOptions };
|
|
1557
|
-
};
|
|
1558
|
-
const useDeleteDataInstallation = (options, queryClient) => {
|
|
1559
|
-
const mutationOptions = useDeleteDataInstallationMutationOptions(options);
|
|
1560
|
-
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
1561
|
-
};
|
|
1562
1538
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1563
1539
|
0 && (module.exports = {
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
AuthenticationInformationResponseDataVerificationMethodsPasswordProvider,
|
|
1567
|
-
CreateTotpFactorResponseAuthenticationChallengeAllOfObject,
|
|
1568
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfObject,
|
|
1569
|
-
CreateTotpFactorResponseAuthenticationFactorAllOfType,
|
|
1570
|
-
DataInstallationObject,
|
|
1571
|
-
DataInstallationState,
|
|
1572
|
-
DataIntegrationCredentialsType,
|
|
1573
|
-
DataIntegrationIntegrationType,
|
|
1574
|
-
DataIntegrationObject,
|
|
1575
|
-
DataIntegrationOwnership,
|
|
1540
|
+
DirectoryState,
|
|
1541
|
+
DirectoryType,
|
|
1576
1542
|
DomainVerificationNameServer,
|
|
1577
1543
|
GenerateAdminPortalLinkIntent,
|
|
1578
1544
|
MemberActionsItem,
|
|
@@ -1580,18 +1546,13 @@ const useDeleteDataInstallation = (options, queryClient) => {
|
|
|
1580
1546
|
OidcSessionState,
|
|
1581
1547
|
OrganizationDomainState,
|
|
1582
1548
|
SamlSessionState,
|
|
1583
|
-
SendVerificationResponseType,
|
|
1584
|
-
SettingsResponseObject,
|
|
1585
|
-
SsoConnectionAnyOfEightAllOfProviderTag,
|
|
1586
|
-
SsoConnectionAnyOfEightAllOfState,
|
|
1587
|
-
SsoConnectionAnyOfEightAllOfType,
|
|
1588
|
-
SsoConnectionAnyOfProviderTag,
|
|
1589
|
-
SsoConnectionAnyOfState,
|
|
1590
|
-
SsoConnectionAnyOfType,
|
|
1591
1549
|
SsoConnectionSessionJSONState,
|
|
1592
1550
|
getAuthenticationInformationQueryKey,
|
|
1551
|
+
getGetAuditLogStreamQueryKey,
|
|
1593
1552
|
getGetDataInstallationAuthorizationStatusQueryKey,
|
|
1594
1553
|
getGetDataIntegrationAuthorizeUrlQueryKey,
|
|
1554
|
+
getGetDirectoryQueryKey,
|
|
1555
|
+
getListDirectoriesQueryKey,
|
|
1595
1556
|
getListOrganizationApiKeyPermissionsQueryKey,
|
|
1596
1557
|
getListOrganizationApiKeysQueryKey,
|
|
1597
1558
|
getListOrganizationDomainsQueryKey,
|
|
@@ -1634,15 +1595,24 @@ const useDeleteDataInstallation = (options, queryClient) => {
|
|
|
1634
1595
|
useGenerateAdminPortalLink,
|
|
1635
1596
|
useGenerateAdminPortalLinkHook,
|
|
1636
1597
|
useGenerateAdminPortalLinkMutationOptions,
|
|
1598
|
+
useGetAuditLogStream,
|
|
1599
|
+
useGetAuditLogStreamHook,
|
|
1600
|
+
useGetAuditLogStreamQueryOptions,
|
|
1637
1601
|
useGetDataInstallationAuthorizationStatus,
|
|
1638
1602
|
useGetDataInstallationAuthorizationStatusHook,
|
|
1639
1603
|
useGetDataInstallationAuthorizationStatusQueryOptions,
|
|
1640
1604
|
useGetDataIntegrationAuthorizeUrl,
|
|
1641
1605
|
useGetDataIntegrationAuthorizeUrlHook,
|
|
1642
1606
|
useGetDataIntegrationAuthorizeUrlQueryOptions,
|
|
1607
|
+
useGetDirectory,
|
|
1608
|
+
useGetDirectoryHook,
|
|
1609
|
+
useGetDirectoryQueryOptions,
|
|
1643
1610
|
useInviteMember,
|
|
1644
1611
|
useInviteMemberHook,
|
|
1645
1612
|
useInviteMemberMutationOptions,
|
|
1613
|
+
useListDirectories,
|
|
1614
|
+
useListDirectoriesHook,
|
|
1615
|
+
useListDirectoriesQueryOptions,
|
|
1646
1616
|
useListOrganizationApiKeyPermissions,
|
|
1647
1617
|
useListOrganizationApiKeyPermissionsHook,
|
|
1648
1618
|
useListOrganizationApiKeyPermissionsQueryOptions,
|