@connectedxm/admin 1.4.18 → 1.4.19
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/dist/index.d.mts +44 -23
- package/dist/index.d.ts +44 -23
- package/dist/index.js +83 -67
- package/dist/index.mjs +71 -57
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,8 +35,6 @@ __export(src_exports, {
|
|
|
35
35
|
ACCOUNT_ADDRESSES_QUERY_KEY: () => ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
36
36
|
ACCOUNT_ADDRESS_QUERY_KEY: () => ACCOUNT_ADDRESS_QUERY_KEY,
|
|
37
37
|
ACCOUNT_AUTH_SESSIONS_QUERY_KEY: () => ACCOUNT_AUTH_SESSIONS_QUERY_KEY,
|
|
38
|
-
ACCOUNT_COGNITO_USERS_QUERY_KEY: () => ACCOUNT_COGNITO_USERS_QUERY_KEY,
|
|
39
|
-
ACCOUNT_COGNITO_USER_QUERY_KEY: () => ACCOUNT_COGNITO_USER_QUERY_KEY,
|
|
40
38
|
ACCOUNT_COMMENTS_QUERY_KEY: () => ACCOUNT_COMMENTS_QUERY_KEY,
|
|
41
39
|
ACCOUNT_DELEGATES_QUERY_KEY: () => ACCOUNT_DELEGATES_QUERY_KEY,
|
|
42
40
|
ACCOUNT_DELEGATE_OF_QUERY_KEY: () => ACCOUNT_DELEGATE_OF_QUERY_KEY,
|
|
@@ -50,6 +48,8 @@ __export(src_exports, {
|
|
|
50
48
|
ACCOUNT_LEAD_QUERY_KEY: () => ACCOUNT_LEAD_QUERY_KEY,
|
|
51
49
|
ACCOUNT_LEVELS_QUERY_KEY: () => ACCOUNT_LEVELS_QUERY_KEY,
|
|
52
50
|
ACCOUNT_LIKES_QUERY_KEY: () => ACCOUNT_LIKES_QUERY_KEY,
|
|
51
|
+
ACCOUNT_LOGINS_QUERY_KEY: () => ACCOUNT_LOGINS_QUERY_KEY,
|
|
52
|
+
ACCOUNT_LOGIN_QUERY_KEY: () => ACCOUNT_LOGIN_QUERY_KEY,
|
|
53
53
|
ACCOUNT_PAYMENTS_QUERY_KEY: () => ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
54
54
|
ACCOUNT_QUERY_KEY: () => ACCOUNT_QUERY_KEY,
|
|
55
55
|
ACCOUNT_RESHARES_QUERY_KEY: () => ACCOUNT_RESHARES_QUERY_KEY,
|
|
@@ -165,7 +165,7 @@ __export(src_exports, {
|
|
|
165
165
|
ChannelFormat: () => ChannelFormat,
|
|
166
166
|
CheckinAllAttendeePasses: () => CheckinAllAttendeePasses,
|
|
167
167
|
CloneEvent: () => CloneEvent,
|
|
168
|
-
|
|
168
|
+
ConfirmAccountLogin: () => ConfirmAccountLogin,
|
|
169
169
|
ConnectedXMProvider: () => ConnectedXMProvider,
|
|
170
170
|
ContentGuestType: () => ContentGuestType,
|
|
171
171
|
ContentStatus: () => ContentStatus,
|
|
@@ -514,8 +514,6 @@ __export(src_exports, {
|
|
|
514
514
|
GetAccountAddress: () => GetAccountAddress,
|
|
515
515
|
GetAccountAddresses: () => GetAccountAddresses,
|
|
516
516
|
GetAccountAuthSessions: () => GetAccountAuthSessions,
|
|
517
|
-
GetAccountCognitoUser: () => GetAccountCognitoUser,
|
|
518
|
-
GetAccountCognitoUsers: () => GetAccountCognitoUsers,
|
|
519
517
|
GetAccountComments: () => GetAccountComments,
|
|
520
518
|
GetAccountDelegateOf: () => GetAccountDelegateOf,
|
|
521
519
|
GetAccountDelegates: () => GetAccountDelegates,
|
|
@@ -528,6 +526,8 @@ __export(src_exports, {
|
|
|
528
526
|
GetAccountLeads: () => GetAccountLeads,
|
|
529
527
|
GetAccountLevels: () => GetAccountLevels,
|
|
530
528
|
GetAccountLikes: () => GetAccountLikes,
|
|
529
|
+
GetAccountLogin: () => GetAccountLogin,
|
|
530
|
+
GetAccountLogins: () => GetAccountLogins,
|
|
531
531
|
GetAccountPayments: () => GetAccountPayments,
|
|
532
532
|
GetAccountReshares: () => GetAccountReshares,
|
|
533
533
|
GetAccountSubscriptions: () => GetAccountSubscriptions,
|
|
@@ -1325,7 +1325,6 @@ __export(src_exports, {
|
|
|
1325
1325
|
UNAPPROVED_EVENTS_QUERY_KEY: () => UNAPPROVED_EVENTS_QUERY_KEY,
|
|
1326
1326
|
UpdateAccount: () => UpdateAccount,
|
|
1327
1327
|
UpdateAccountAddress: () => UpdateAccountAddress,
|
|
1328
|
-
UpdateAccountCognitoUserPassword: () => UpdateAccountCognitoUserPassword,
|
|
1329
1328
|
UpdateAccountLead: () => UpdateAccountLead,
|
|
1330
1329
|
UpdateActivity: () => UpdateActivity,
|
|
1331
1330
|
UpdateAdvertisement: () => UpdateAdvertisement,
|
|
@@ -1404,6 +1403,8 @@ __export(src_exports, {
|
|
|
1404
1403
|
UpdateInvoiceLineItem: () => UpdateInvoiceLineItem,
|
|
1405
1404
|
UpdateLevel: () => UpdateLevel,
|
|
1406
1405
|
UpdateLevelTranslation: () => UpdateLevelTranslation,
|
|
1406
|
+
UpdateLoginEmail: () => UpdateLoginEmail,
|
|
1407
|
+
UpdateLoginPassword: () => UpdateLoginPassword,
|
|
1407
1408
|
UpdateOrganization: () => UpdateOrganization,
|
|
1408
1409
|
UpdateOrganizationDomain: () => UpdateOrganizationDomain,
|
|
1409
1410
|
UpdateOrganizationIntegrations: () => UpdateOrganizationIntegrations,
|
|
@@ -1492,7 +1493,7 @@ __export(src_exports, {
|
|
|
1492
1493
|
useCancelSubscription: () => useCancelSubscription,
|
|
1493
1494
|
useCheckinAllAttendeePasses: () => useCheckinAllAttendeePasses,
|
|
1494
1495
|
useCloneEvent: () => useCloneEvent,
|
|
1495
|
-
|
|
1496
|
+
useConfirmAccountLogin: () => useConfirmAccountLogin,
|
|
1496
1497
|
useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
|
|
1497
1498
|
useConnectedMutation: () => useConnectedMutation,
|
|
1498
1499
|
useConnectedSingleQuery: () => useConnectedSingleQuery,
|
|
@@ -1680,8 +1681,6 @@ __export(src_exports, {
|
|
|
1680
1681
|
useGetAccountAddress: () => useGetAccountAddress,
|
|
1681
1682
|
useGetAccountAddresses: () => useGetAccountAddresses,
|
|
1682
1683
|
useGetAccountAuthSessions: () => useGetAccountAuthSessions,
|
|
1683
|
-
useGetAccountCognitoUser: () => useGetAccountCognitoUser,
|
|
1684
|
-
useGetAccountCognitoUsers: () => useGetAccountCognitoUsers,
|
|
1685
1684
|
useGetAccountComments: () => useGetAccountComments,
|
|
1686
1685
|
useGetAccountDelegateOf: () => useGetAccountDelegateOf,
|
|
1687
1686
|
useGetAccountDelegates: () => useGetAccountDelegates,
|
|
@@ -1694,6 +1693,8 @@ __export(src_exports, {
|
|
|
1694
1693
|
useGetAccountLeads: () => useGetAccountLeads,
|
|
1695
1694
|
useGetAccountLevels: () => useGetAccountLevels,
|
|
1696
1695
|
useGetAccountLikes: () => useGetAccountLikes,
|
|
1696
|
+
useGetAccountLogin: () => useGetAccountLogin,
|
|
1697
|
+
useGetAccountLogins: () => useGetAccountLogins,
|
|
1697
1698
|
useGetAccountPayments: () => useGetAccountPayments,
|
|
1698
1699
|
useGetAccountReshares: () => useGetAccountReshares,
|
|
1699
1700
|
useGetAccountSubscriptions: () => useGetAccountSubscriptions,
|
|
@@ -2054,7 +2055,6 @@ __export(src_exports, {
|
|
|
2054
2055
|
useTransferEventPass: () => useTransferEventPass,
|
|
2055
2056
|
useUpdateAccount: () => useUpdateAccount,
|
|
2056
2057
|
useUpdateAccountAddress: () => useUpdateAccountAddress,
|
|
2057
|
-
useUpdateAccountCognitoUserPassword: () => useUpdateAccountCognitoUserPassword,
|
|
2058
2058
|
useUpdateAccountLead: () => useUpdateAccountLead,
|
|
2059
2059
|
useUpdateActivity: () => useUpdateActivity,
|
|
2060
2060
|
useUpdateAdvertisement: () => useUpdateAdvertisement,
|
|
@@ -2133,6 +2133,8 @@ __export(src_exports, {
|
|
|
2133
2133
|
useUpdateInvoiceLineItem: () => useUpdateInvoiceLineItem,
|
|
2134
2134
|
useUpdateLevel: () => useUpdateLevel,
|
|
2135
2135
|
useUpdateLevelTranslation: () => useUpdateLevelTranslation,
|
|
2136
|
+
useUpdateLoginEmail: () => useUpdateLoginEmail,
|
|
2137
|
+
useUpdateLoginPassword: () => useUpdateLoginPassword,
|
|
2136
2138
|
useUpdateOrganization: () => useUpdateOrganization,
|
|
2137
2139
|
useUpdateOrganizationDomain: () => useUpdateOrganizationDomain,
|
|
2138
2140
|
useUpdateOrganizationIntegrations: () => useUpdateOrganizationIntegrations,
|
|
@@ -2565,12 +2567,12 @@ var useGetAccountAuthSessions = (accountId = "", params = {}, options = {}) => {
|
|
|
2565
2567
|
);
|
|
2566
2568
|
};
|
|
2567
2569
|
|
|
2568
|
-
// src/queries/accounts/
|
|
2569
|
-
var
|
|
2570
|
+
// src/queries/accounts/useGetAccountLogins.ts
|
|
2571
|
+
var ACCOUNT_LOGINS_QUERY_KEY = (accountId) => [
|
|
2570
2572
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
2571
|
-
"
|
|
2573
|
+
"LOGINS"
|
|
2572
2574
|
];
|
|
2573
|
-
var
|
|
2575
|
+
var GetAccountLogins = async ({
|
|
2574
2576
|
accountId,
|
|
2575
2577
|
pageParam,
|
|
2576
2578
|
pageSize,
|
|
@@ -2589,10 +2591,10 @@ var GetAccountCognitoUsers = async ({
|
|
|
2589
2591
|
});
|
|
2590
2592
|
return data;
|
|
2591
2593
|
};
|
|
2592
|
-
var
|
|
2594
|
+
var useGetAccountLogins = (accountId = "", params = {}, options = {}) => {
|
|
2593
2595
|
return useConnectedInfiniteQuery(
|
|
2594
|
-
|
|
2595
|
-
(params2) =>
|
|
2596
|
+
ACCOUNT_LOGINS_QUERY_KEY(accountId),
|
|
2597
|
+
(params2) => GetAccountLogins({ accountId, ...params2 }),
|
|
2596
2598
|
params,
|
|
2597
2599
|
{
|
|
2598
2600
|
...options,
|
|
@@ -2602,9 +2604,9 @@ var useGetAccountCognitoUsers = (accountId = "", params = {}, options = {}) => {
|
|
|
2602
2604
|
);
|
|
2603
2605
|
};
|
|
2604
2606
|
|
|
2605
|
-
// src/queries/accounts/
|
|
2606
|
-
var
|
|
2607
|
-
var
|
|
2607
|
+
// src/queries/accounts/useGetAccountLogin.ts
|
|
2608
|
+
var ACCOUNT_LOGIN_QUERY_KEY = (accountId, username) => [...ACCOUNT_LOGINS_QUERY_KEY(accountId), username];
|
|
2609
|
+
var GetAccountLogin = async ({
|
|
2608
2610
|
accountId,
|
|
2609
2611
|
username,
|
|
2610
2612
|
adminApiParams
|
|
@@ -2615,10 +2617,10 @@ var GetAccountCognitoUser = async ({
|
|
|
2615
2617
|
);
|
|
2616
2618
|
return data;
|
|
2617
2619
|
};
|
|
2618
|
-
var
|
|
2620
|
+
var useGetAccountLogin = (accountId = "", username = "", options = {}) => {
|
|
2619
2621
|
return useConnectedSingleQuery(
|
|
2620
|
-
|
|
2621
|
-
(params) =>
|
|
2622
|
+
ACCOUNT_LOGIN_QUERY_KEY(accountId, username),
|
|
2623
|
+
(params) => GetAccountLogin({ accountId, username, ...params }),
|
|
2622
2624
|
{
|
|
2623
2625
|
...options,
|
|
2624
2626
|
enabled: !!accountId && !!username && (options?.enabled ?? true)
|
|
@@ -15550,8 +15552,8 @@ var useAddAccountTier = (options = {}) => {
|
|
|
15550
15552
|
});
|
|
15551
15553
|
};
|
|
15552
15554
|
|
|
15553
|
-
// src/mutations/account/
|
|
15554
|
-
var
|
|
15555
|
+
// src/mutations/account/useConfirmAccountLogin.ts
|
|
15556
|
+
var ConfirmAccountLogin = async ({
|
|
15555
15557
|
accountId,
|
|
15556
15558
|
username,
|
|
15557
15559
|
adminApiParams,
|
|
@@ -15563,16 +15565,16 @@ var ConfirmAccountCognitoUser = async ({
|
|
|
15563
15565
|
);
|
|
15564
15566
|
if (queryClient && data.status === "ok") {
|
|
15565
15567
|
queryClient.invalidateQueries({
|
|
15566
|
-
queryKey:
|
|
15568
|
+
queryKey: ACCOUNT_LOGINS_QUERY_KEY(accountId)
|
|
15567
15569
|
});
|
|
15568
15570
|
queryClient.invalidateQueries({
|
|
15569
|
-
queryKey:
|
|
15571
|
+
queryKey: ACCOUNT_LOGIN_QUERY_KEY(accountId, username)
|
|
15570
15572
|
});
|
|
15571
15573
|
}
|
|
15572
15574
|
return data;
|
|
15573
15575
|
};
|
|
15574
|
-
var
|
|
15575
|
-
return useConnectedMutation(
|
|
15576
|
+
var useConfirmAccountLogin = (options = {}) => {
|
|
15577
|
+
return useConnectedMutation(ConfirmAccountLogin, options, {
|
|
15576
15578
|
domain: "accounts",
|
|
15577
15579
|
type: "update"
|
|
15578
15580
|
});
|
|
@@ -15951,58 +15953,70 @@ var useUpdateAccountAddress = (options = {}) => {
|
|
|
15951
15953
|
});
|
|
15952
15954
|
};
|
|
15953
15955
|
|
|
15954
|
-
// src/mutations/account/
|
|
15955
|
-
var
|
|
15956
|
+
// src/mutations/account/useUpdateAccountLead.ts
|
|
15957
|
+
var UpdateAccountLead = async ({
|
|
15956
15958
|
accountId,
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
+
leadId,
|
|
15960
|
+
lead,
|
|
15959
15961
|
adminApiParams,
|
|
15960
15962
|
queryClient
|
|
15961
15963
|
}) => {
|
|
15962
15964
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
15963
15965
|
const { data } = await connectedXM.put(
|
|
15964
|
-
`/accounts/${accountId}/
|
|
15965
|
-
|
|
15966
|
+
`/accounts/${accountId}/leads/${leadId}`,
|
|
15967
|
+
lead
|
|
15966
15968
|
);
|
|
15967
15969
|
if (queryClient && data.status === "ok") {
|
|
15968
|
-
|
|
15969
|
-
accountId
|
|
15970
|
-
username,
|
|
15971
|
-
password,
|
|
15972
|
-
adminApiParams
|
|
15970
|
+
queryClient.invalidateQueries({
|
|
15971
|
+
queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
|
|
15973
15972
|
});
|
|
15974
15973
|
}
|
|
15975
15974
|
return data;
|
|
15976
15975
|
};
|
|
15977
|
-
var
|
|
15978
|
-
return useConnectedMutation(
|
|
15976
|
+
var useUpdateAccountLead = (options = {}) => {
|
|
15977
|
+
return useConnectedMutation(UpdateAccountLead, options, {
|
|
15979
15978
|
domain: "accounts",
|
|
15980
15979
|
type: "update"
|
|
15981
15980
|
});
|
|
15982
15981
|
};
|
|
15983
15982
|
|
|
15984
|
-
// src/mutations/account/
|
|
15985
|
-
var
|
|
15983
|
+
// src/mutations/account/useUpdateLoginEmail.ts
|
|
15984
|
+
var UpdateLoginEmail = async ({
|
|
15986
15985
|
accountId,
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
adminApiParams
|
|
15990
|
-
queryClient
|
|
15986
|
+
username,
|
|
15987
|
+
email,
|
|
15988
|
+
adminApiParams
|
|
15991
15989
|
}) => {
|
|
15992
15990
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
15993
15991
|
const { data } = await connectedXM.put(
|
|
15994
|
-
`/accounts/${accountId}/
|
|
15995
|
-
|
|
15992
|
+
`/accounts/${accountId}/cognito/${username}/email`,
|
|
15993
|
+
{ email }
|
|
15996
15994
|
);
|
|
15997
|
-
if (queryClient && data.status === "ok") {
|
|
15998
|
-
queryClient.invalidateQueries({
|
|
15999
|
-
queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
|
|
16000
|
-
});
|
|
16001
|
-
}
|
|
16002
15995
|
return data;
|
|
16003
15996
|
};
|
|
16004
|
-
var
|
|
16005
|
-
return useConnectedMutation(
|
|
15997
|
+
var useUpdateLoginEmail = (options = {}) => {
|
|
15998
|
+
return useConnectedMutation(UpdateLoginEmail, options, {
|
|
15999
|
+
domain: "accounts",
|
|
16000
|
+
type: "update"
|
|
16001
|
+
});
|
|
16002
|
+
};
|
|
16003
|
+
|
|
16004
|
+
// src/mutations/account/useUpdateLoginPassword.ts
|
|
16005
|
+
var UpdateLoginPassword = async ({
|
|
16006
|
+
accountId,
|
|
16007
|
+
username,
|
|
16008
|
+
password,
|
|
16009
|
+
adminApiParams
|
|
16010
|
+
}) => {
|
|
16011
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
16012
|
+
const { data } = await connectedXM.put(
|
|
16013
|
+
`/accounts/${accountId}/cognito/${username}/password`,
|
|
16014
|
+
{ password }
|
|
16015
|
+
);
|
|
16016
|
+
return data;
|
|
16017
|
+
};
|
|
16018
|
+
var useUpdateLoginPassword = (options = {}) => {
|
|
16019
|
+
return useConnectedMutation(UpdateLoginPassword, options, {
|
|
16006
16020
|
domain: "accounts",
|
|
16007
16021
|
type: "update"
|
|
16008
16022
|
});
|
|
@@ -26934,8 +26948,6 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26934
26948
|
ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
26935
26949
|
ACCOUNT_ADDRESS_QUERY_KEY,
|
|
26936
26950
|
ACCOUNT_AUTH_SESSIONS_QUERY_KEY,
|
|
26937
|
-
ACCOUNT_COGNITO_USERS_QUERY_KEY,
|
|
26938
|
-
ACCOUNT_COGNITO_USER_QUERY_KEY,
|
|
26939
26951
|
ACCOUNT_COMMENTS_QUERY_KEY,
|
|
26940
26952
|
ACCOUNT_DELEGATES_QUERY_KEY,
|
|
26941
26953
|
ACCOUNT_DELEGATE_OF_QUERY_KEY,
|
|
@@ -26949,6 +26961,8 @@ var useUpdateVideo = (options = {}) => {
|
|
|
26949
26961
|
ACCOUNT_LEAD_QUERY_KEY,
|
|
26950
26962
|
ACCOUNT_LEVELS_QUERY_KEY,
|
|
26951
26963
|
ACCOUNT_LIKES_QUERY_KEY,
|
|
26964
|
+
ACCOUNT_LOGINS_QUERY_KEY,
|
|
26965
|
+
ACCOUNT_LOGIN_QUERY_KEY,
|
|
26952
26966
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
26953
26967
|
ACCOUNT_QUERY_KEY,
|
|
26954
26968
|
ACCOUNT_RESHARES_QUERY_KEY,
|
|
@@ -27064,7 +27078,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27064
27078
|
ChannelFormat,
|
|
27065
27079
|
CheckinAllAttendeePasses,
|
|
27066
27080
|
CloneEvent,
|
|
27067
|
-
|
|
27081
|
+
ConfirmAccountLogin,
|
|
27068
27082
|
ConnectedXMProvider,
|
|
27069
27083
|
ContentGuestType,
|
|
27070
27084
|
ContentStatus,
|
|
@@ -27413,8 +27427,6 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27413
27427
|
GetAccountAddress,
|
|
27414
27428
|
GetAccountAddresses,
|
|
27415
27429
|
GetAccountAuthSessions,
|
|
27416
|
-
GetAccountCognitoUser,
|
|
27417
|
-
GetAccountCognitoUsers,
|
|
27418
27430
|
GetAccountComments,
|
|
27419
27431
|
GetAccountDelegateOf,
|
|
27420
27432
|
GetAccountDelegates,
|
|
@@ -27427,6 +27439,8 @@ var useUpdateVideo = (options = {}) => {
|
|
|
27427
27439
|
GetAccountLeads,
|
|
27428
27440
|
GetAccountLevels,
|
|
27429
27441
|
GetAccountLikes,
|
|
27442
|
+
GetAccountLogin,
|
|
27443
|
+
GetAccountLogins,
|
|
27430
27444
|
GetAccountPayments,
|
|
27431
27445
|
GetAccountReshares,
|
|
27432
27446
|
GetAccountSubscriptions,
|
|
@@ -28224,7 +28238,6 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28224
28238
|
UNAPPROVED_EVENTS_QUERY_KEY,
|
|
28225
28239
|
UpdateAccount,
|
|
28226
28240
|
UpdateAccountAddress,
|
|
28227
|
-
UpdateAccountCognitoUserPassword,
|
|
28228
28241
|
UpdateAccountLead,
|
|
28229
28242
|
UpdateActivity,
|
|
28230
28243
|
UpdateAdvertisement,
|
|
@@ -28303,6 +28316,8 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28303
28316
|
UpdateInvoiceLineItem,
|
|
28304
28317
|
UpdateLevel,
|
|
28305
28318
|
UpdateLevelTranslation,
|
|
28319
|
+
UpdateLoginEmail,
|
|
28320
|
+
UpdateLoginPassword,
|
|
28306
28321
|
UpdateOrganization,
|
|
28307
28322
|
UpdateOrganizationDomain,
|
|
28308
28323
|
UpdateOrganizationIntegrations,
|
|
@@ -28391,7 +28406,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28391
28406
|
useCancelSubscription,
|
|
28392
28407
|
useCheckinAllAttendeePasses,
|
|
28393
28408
|
useCloneEvent,
|
|
28394
|
-
|
|
28409
|
+
useConfirmAccountLogin,
|
|
28395
28410
|
useConnectedInfiniteQuery,
|
|
28396
28411
|
useConnectedMutation,
|
|
28397
28412
|
useConnectedSingleQuery,
|
|
@@ -28579,8 +28594,6 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28579
28594
|
useGetAccountAddress,
|
|
28580
28595
|
useGetAccountAddresses,
|
|
28581
28596
|
useGetAccountAuthSessions,
|
|
28582
|
-
useGetAccountCognitoUser,
|
|
28583
|
-
useGetAccountCognitoUsers,
|
|
28584
28597
|
useGetAccountComments,
|
|
28585
28598
|
useGetAccountDelegateOf,
|
|
28586
28599
|
useGetAccountDelegates,
|
|
@@ -28593,6 +28606,8 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28593
28606
|
useGetAccountLeads,
|
|
28594
28607
|
useGetAccountLevels,
|
|
28595
28608
|
useGetAccountLikes,
|
|
28609
|
+
useGetAccountLogin,
|
|
28610
|
+
useGetAccountLogins,
|
|
28596
28611
|
useGetAccountPayments,
|
|
28597
28612
|
useGetAccountReshares,
|
|
28598
28613
|
useGetAccountSubscriptions,
|
|
@@ -28953,7 +28968,6 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28953
28968
|
useTransferEventPass,
|
|
28954
28969
|
useUpdateAccount,
|
|
28955
28970
|
useUpdateAccountAddress,
|
|
28956
|
-
useUpdateAccountCognitoUserPassword,
|
|
28957
28971
|
useUpdateAccountLead,
|
|
28958
28972
|
useUpdateActivity,
|
|
28959
28973
|
useUpdateAdvertisement,
|
|
@@ -29032,6 +29046,8 @@ var useUpdateVideo = (options = {}) => {
|
|
|
29032
29046
|
useUpdateInvoiceLineItem,
|
|
29033
29047
|
useUpdateLevel,
|
|
29034
29048
|
useUpdateLevelTranslation,
|
|
29049
|
+
useUpdateLoginEmail,
|
|
29050
|
+
useUpdateLoginPassword,
|
|
29035
29051
|
useUpdateOrganization,
|
|
29036
29052
|
useUpdateOrganizationDomain,
|
|
29037
29053
|
useUpdateOrganizationIntegrations,
|
package/dist/index.mjs
CHANGED
|
@@ -407,12 +407,12 @@ var useGetAccountAuthSessions = (accountId = "", params = {}, options = {}) => {
|
|
|
407
407
|
);
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
// src/queries/accounts/
|
|
411
|
-
var
|
|
410
|
+
// src/queries/accounts/useGetAccountLogins.ts
|
|
411
|
+
var ACCOUNT_LOGINS_QUERY_KEY = (accountId) => [
|
|
412
412
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
413
|
-
"
|
|
413
|
+
"LOGINS"
|
|
414
414
|
];
|
|
415
|
-
var
|
|
415
|
+
var GetAccountLogins = async ({
|
|
416
416
|
accountId,
|
|
417
417
|
pageParam,
|
|
418
418
|
pageSize,
|
|
@@ -431,10 +431,10 @@ var GetAccountCognitoUsers = async ({
|
|
|
431
431
|
});
|
|
432
432
|
return data;
|
|
433
433
|
};
|
|
434
|
-
var
|
|
434
|
+
var useGetAccountLogins = (accountId = "", params = {}, options = {}) => {
|
|
435
435
|
return useConnectedInfiniteQuery(
|
|
436
|
-
|
|
437
|
-
(params2) =>
|
|
436
|
+
ACCOUNT_LOGINS_QUERY_KEY(accountId),
|
|
437
|
+
(params2) => GetAccountLogins({ accountId, ...params2 }),
|
|
438
438
|
params,
|
|
439
439
|
{
|
|
440
440
|
...options,
|
|
@@ -444,9 +444,9 @@ var useGetAccountCognitoUsers = (accountId = "", params = {}, options = {}) => {
|
|
|
444
444
|
);
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
-
// src/queries/accounts/
|
|
448
|
-
var
|
|
449
|
-
var
|
|
447
|
+
// src/queries/accounts/useGetAccountLogin.ts
|
|
448
|
+
var ACCOUNT_LOGIN_QUERY_KEY = (accountId, username) => [...ACCOUNT_LOGINS_QUERY_KEY(accountId), username];
|
|
449
|
+
var GetAccountLogin = async ({
|
|
450
450
|
accountId,
|
|
451
451
|
username,
|
|
452
452
|
adminApiParams
|
|
@@ -457,10 +457,10 @@ var GetAccountCognitoUser = async ({
|
|
|
457
457
|
);
|
|
458
458
|
return data;
|
|
459
459
|
};
|
|
460
|
-
var
|
|
460
|
+
var useGetAccountLogin = (accountId = "", username = "", options = {}) => {
|
|
461
461
|
return useConnectedSingleQuery(
|
|
462
|
-
|
|
463
|
-
(params) =>
|
|
462
|
+
ACCOUNT_LOGIN_QUERY_KEY(accountId, username),
|
|
463
|
+
(params) => GetAccountLogin({ accountId, username, ...params }),
|
|
464
464
|
{
|
|
465
465
|
...options,
|
|
466
466
|
enabled: !!accountId && !!username && (options?.enabled ?? true)
|
|
@@ -13395,8 +13395,8 @@ var useAddAccountTier = (options = {}) => {
|
|
|
13395
13395
|
});
|
|
13396
13396
|
};
|
|
13397
13397
|
|
|
13398
|
-
// src/mutations/account/
|
|
13399
|
-
var
|
|
13398
|
+
// src/mutations/account/useConfirmAccountLogin.ts
|
|
13399
|
+
var ConfirmAccountLogin = async ({
|
|
13400
13400
|
accountId,
|
|
13401
13401
|
username,
|
|
13402
13402
|
adminApiParams,
|
|
@@ -13408,16 +13408,16 @@ var ConfirmAccountCognitoUser = async ({
|
|
|
13408
13408
|
);
|
|
13409
13409
|
if (queryClient && data.status === "ok") {
|
|
13410
13410
|
queryClient.invalidateQueries({
|
|
13411
|
-
queryKey:
|
|
13411
|
+
queryKey: ACCOUNT_LOGINS_QUERY_KEY(accountId)
|
|
13412
13412
|
});
|
|
13413
13413
|
queryClient.invalidateQueries({
|
|
13414
|
-
queryKey:
|
|
13414
|
+
queryKey: ACCOUNT_LOGIN_QUERY_KEY(accountId, username)
|
|
13415
13415
|
});
|
|
13416
13416
|
}
|
|
13417
13417
|
return data;
|
|
13418
13418
|
};
|
|
13419
|
-
var
|
|
13420
|
-
return useConnectedMutation(
|
|
13419
|
+
var useConfirmAccountLogin = (options = {}) => {
|
|
13420
|
+
return useConnectedMutation(ConfirmAccountLogin, options, {
|
|
13421
13421
|
domain: "accounts",
|
|
13422
13422
|
type: "update"
|
|
13423
13423
|
});
|
|
@@ -13796,58 +13796,70 @@ var useUpdateAccountAddress = (options = {}) => {
|
|
|
13796
13796
|
});
|
|
13797
13797
|
};
|
|
13798
13798
|
|
|
13799
|
-
// src/mutations/account/
|
|
13800
|
-
var
|
|
13799
|
+
// src/mutations/account/useUpdateAccountLead.ts
|
|
13800
|
+
var UpdateAccountLead = async ({
|
|
13801
13801
|
accountId,
|
|
13802
|
-
|
|
13803
|
-
|
|
13802
|
+
leadId,
|
|
13803
|
+
lead,
|
|
13804
13804
|
adminApiParams,
|
|
13805
13805
|
queryClient
|
|
13806
13806
|
}) => {
|
|
13807
13807
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
13808
13808
|
const { data } = await connectedXM.put(
|
|
13809
|
-
`/accounts/${accountId}/
|
|
13810
|
-
|
|
13809
|
+
`/accounts/${accountId}/leads/${leadId}`,
|
|
13810
|
+
lead
|
|
13811
13811
|
);
|
|
13812
13812
|
if (queryClient && data.status === "ok") {
|
|
13813
|
-
|
|
13814
|
-
accountId
|
|
13815
|
-
username,
|
|
13816
|
-
password,
|
|
13817
|
-
adminApiParams
|
|
13813
|
+
queryClient.invalidateQueries({
|
|
13814
|
+
queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
|
|
13818
13815
|
});
|
|
13819
13816
|
}
|
|
13820
13817
|
return data;
|
|
13821
13818
|
};
|
|
13822
|
-
var
|
|
13823
|
-
return useConnectedMutation(
|
|
13819
|
+
var useUpdateAccountLead = (options = {}) => {
|
|
13820
|
+
return useConnectedMutation(UpdateAccountLead, options, {
|
|
13824
13821
|
domain: "accounts",
|
|
13825
13822
|
type: "update"
|
|
13826
13823
|
});
|
|
13827
13824
|
};
|
|
13828
13825
|
|
|
13829
|
-
// src/mutations/account/
|
|
13830
|
-
var
|
|
13826
|
+
// src/mutations/account/useUpdateLoginEmail.ts
|
|
13827
|
+
var UpdateLoginEmail = async ({
|
|
13831
13828
|
accountId,
|
|
13832
|
-
|
|
13833
|
-
|
|
13834
|
-
adminApiParams
|
|
13835
|
-
queryClient
|
|
13829
|
+
username,
|
|
13830
|
+
email,
|
|
13831
|
+
adminApiParams
|
|
13836
13832
|
}) => {
|
|
13837
13833
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
13838
13834
|
const { data } = await connectedXM.put(
|
|
13839
|
-
`/accounts/${accountId}/
|
|
13840
|
-
|
|
13835
|
+
`/accounts/${accountId}/cognito/${username}/email`,
|
|
13836
|
+
{ email }
|
|
13841
13837
|
);
|
|
13842
|
-
if (queryClient && data.status === "ok") {
|
|
13843
|
-
queryClient.invalidateQueries({
|
|
13844
|
-
queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
|
|
13845
|
-
});
|
|
13846
|
-
}
|
|
13847
13838
|
return data;
|
|
13848
13839
|
};
|
|
13849
|
-
var
|
|
13850
|
-
return useConnectedMutation(
|
|
13840
|
+
var useUpdateLoginEmail = (options = {}) => {
|
|
13841
|
+
return useConnectedMutation(UpdateLoginEmail, options, {
|
|
13842
|
+
domain: "accounts",
|
|
13843
|
+
type: "update"
|
|
13844
|
+
});
|
|
13845
|
+
};
|
|
13846
|
+
|
|
13847
|
+
// src/mutations/account/useUpdateLoginPassword.ts
|
|
13848
|
+
var UpdateLoginPassword = async ({
|
|
13849
|
+
accountId,
|
|
13850
|
+
username,
|
|
13851
|
+
password,
|
|
13852
|
+
adminApiParams
|
|
13853
|
+
}) => {
|
|
13854
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
13855
|
+
const { data } = await connectedXM.put(
|
|
13856
|
+
`/accounts/${accountId}/cognito/${username}/password`,
|
|
13857
|
+
{ password }
|
|
13858
|
+
);
|
|
13859
|
+
return data;
|
|
13860
|
+
};
|
|
13861
|
+
var useUpdateLoginPassword = (options = {}) => {
|
|
13862
|
+
return useConnectedMutation(UpdateLoginPassword, options, {
|
|
13851
13863
|
domain: "accounts",
|
|
13852
13864
|
type: "update"
|
|
13853
13865
|
});
|
|
@@ -24778,8 +24790,6 @@ export {
|
|
|
24778
24790
|
ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
24779
24791
|
ACCOUNT_ADDRESS_QUERY_KEY,
|
|
24780
24792
|
ACCOUNT_AUTH_SESSIONS_QUERY_KEY,
|
|
24781
|
-
ACCOUNT_COGNITO_USERS_QUERY_KEY,
|
|
24782
|
-
ACCOUNT_COGNITO_USER_QUERY_KEY,
|
|
24783
24793
|
ACCOUNT_COMMENTS_QUERY_KEY,
|
|
24784
24794
|
ACCOUNT_DELEGATES_QUERY_KEY,
|
|
24785
24795
|
ACCOUNT_DELEGATE_OF_QUERY_KEY,
|
|
@@ -24793,6 +24803,8 @@ export {
|
|
|
24793
24803
|
ACCOUNT_LEAD_QUERY_KEY,
|
|
24794
24804
|
ACCOUNT_LEVELS_QUERY_KEY,
|
|
24795
24805
|
ACCOUNT_LIKES_QUERY_KEY,
|
|
24806
|
+
ACCOUNT_LOGINS_QUERY_KEY,
|
|
24807
|
+
ACCOUNT_LOGIN_QUERY_KEY,
|
|
24796
24808
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
24797
24809
|
ACCOUNT_QUERY_KEY,
|
|
24798
24810
|
ACCOUNT_RESHARES_QUERY_KEY,
|
|
@@ -24908,7 +24920,7 @@ export {
|
|
|
24908
24920
|
ChannelFormat,
|
|
24909
24921
|
CheckinAllAttendeePasses,
|
|
24910
24922
|
CloneEvent,
|
|
24911
|
-
|
|
24923
|
+
ConfirmAccountLogin,
|
|
24912
24924
|
ConnectedXMProvider,
|
|
24913
24925
|
ContentGuestType,
|
|
24914
24926
|
ContentStatus,
|
|
@@ -25257,8 +25269,6 @@ export {
|
|
|
25257
25269
|
GetAccountAddress,
|
|
25258
25270
|
GetAccountAddresses,
|
|
25259
25271
|
GetAccountAuthSessions,
|
|
25260
|
-
GetAccountCognitoUser,
|
|
25261
|
-
GetAccountCognitoUsers,
|
|
25262
25272
|
GetAccountComments,
|
|
25263
25273
|
GetAccountDelegateOf,
|
|
25264
25274
|
GetAccountDelegates,
|
|
@@ -25271,6 +25281,8 @@ export {
|
|
|
25271
25281
|
GetAccountLeads,
|
|
25272
25282
|
GetAccountLevels,
|
|
25273
25283
|
GetAccountLikes,
|
|
25284
|
+
GetAccountLogin,
|
|
25285
|
+
GetAccountLogins,
|
|
25274
25286
|
GetAccountPayments,
|
|
25275
25287
|
GetAccountReshares,
|
|
25276
25288
|
GetAccountSubscriptions,
|
|
@@ -26068,7 +26080,6 @@ export {
|
|
|
26068
26080
|
UNAPPROVED_EVENTS_QUERY_KEY,
|
|
26069
26081
|
UpdateAccount,
|
|
26070
26082
|
UpdateAccountAddress,
|
|
26071
|
-
UpdateAccountCognitoUserPassword,
|
|
26072
26083
|
UpdateAccountLead,
|
|
26073
26084
|
UpdateActivity,
|
|
26074
26085
|
UpdateAdvertisement,
|
|
@@ -26147,6 +26158,8 @@ export {
|
|
|
26147
26158
|
UpdateInvoiceLineItem,
|
|
26148
26159
|
UpdateLevel,
|
|
26149
26160
|
UpdateLevelTranslation,
|
|
26161
|
+
UpdateLoginEmail,
|
|
26162
|
+
UpdateLoginPassword,
|
|
26150
26163
|
UpdateOrganization,
|
|
26151
26164
|
UpdateOrganizationDomain,
|
|
26152
26165
|
UpdateOrganizationIntegrations,
|
|
@@ -26235,7 +26248,7 @@ export {
|
|
|
26235
26248
|
useCancelSubscription,
|
|
26236
26249
|
useCheckinAllAttendeePasses,
|
|
26237
26250
|
useCloneEvent,
|
|
26238
|
-
|
|
26251
|
+
useConfirmAccountLogin,
|
|
26239
26252
|
useConnectedInfiniteQuery,
|
|
26240
26253
|
useConnectedMutation,
|
|
26241
26254
|
useConnectedSingleQuery,
|
|
@@ -26423,8 +26436,6 @@ export {
|
|
|
26423
26436
|
useGetAccountAddress,
|
|
26424
26437
|
useGetAccountAddresses,
|
|
26425
26438
|
useGetAccountAuthSessions,
|
|
26426
|
-
useGetAccountCognitoUser,
|
|
26427
|
-
useGetAccountCognitoUsers,
|
|
26428
26439
|
useGetAccountComments,
|
|
26429
26440
|
useGetAccountDelegateOf,
|
|
26430
26441
|
useGetAccountDelegates,
|
|
@@ -26437,6 +26448,8 @@ export {
|
|
|
26437
26448
|
useGetAccountLeads,
|
|
26438
26449
|
useGetAccountLevels,
|
|
26439
26450
|
useGetAccountLikes,
|
|
26451
|
+
useGetAccountLogin,
|
|
26452
|
+
useGetAccountLogins,
|
|
26440
26453
|
useGetAccountPayments,
|
|
26441
26454
|
useGetAccountReshares,
|
|
26442
26455
|
useGetAccountSubscriptions,
|
|
@@ -26797,7 +26810,6 @@ export {
|
|
|
26797
26810
|
useTransferEventPass,
|
|
26798
26811
|
useUpdateAccount,
|
|
26799
26812
|
useUpdateAccountAddress,
|
|
26800
|
-
useUpdateAccountCognitoUserPassword,
|
|
26801
26813
|
useUpdateAccountLead,
|
|
26802
26814
|
useUpdateActivity,
|
|
26803
26815
|
useUpdateAdvertisement,
|
|
@@ -26876,6 +26888,8 @@ export {
|
|
|
26876
26888
|
useUpdateInvoiceLineItem,
|
|
26877
26889
|
useUpdateLevel,
|
|
26878
26890
|
useUpdateLevelTranslation,
|
|
26891
|
+
useUpdateLoginEmail,
|
|
26892
|
+
useUpdateLoginPassword,
|
|
26879
26893
|
useUpdateOrganization,
|
|
26880
26894
|
useUpdateOrganizationDomain,
|
|
26881
26895
|
useUpdateOrganizationIntegrations,
|