@connectedxm/admin 1.4.17 → 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.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
- ConfirmAccountCognitoUser: () => ConfirmAccountCognitoUser,
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
- useConfirmAccountCognitoUser: () => useConfirmAccountCognitoUser,
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/useGetAccountCognitoUsers.ts
2569
- var ACCOUNT_COGNITO_USERS_QUERY_KEY = (accountId) => [
2570
+ // src/queries/accounts/useGetAccountLogins.ts
2571
+ var ACCOUNT_LOGINS_QUERY_KEY = (accountId) => [
2570
2572
  ...ACCOUNT_QUERY_KEY(accountId),
2571
- "COGNITO_USERS"
2573
+ "LOGINS"
2572
2574
  ];
2573
- var GetAccountCognitoUsers = async ({
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 useGetAccountCognitoUsers = (accountId = "", params = {}, options = {}) => {
2594
+ var useGetAccountLogins = (accountId = "", params = {}, options = {}) => {
2593
2595
  return useConnectedInfiniteQuery(
2594
- ACCOUNT_COGNITO_USERS_QUERY_KEY(accountId),
2595
- (params2) => GetAccountCognitoUsers({ accountId, ...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/useGetAccountCognitoUser.ts
2606
- var ACCOUNT_COGNITO_USER_QUERY_KEY = (accountId, username) => [...ACCOUNT_COGNITO_USERS_QUERY_KEY(accountId), username];
2607
- var GetAccountCognitoUser = async ({
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 useGetAccountCognitoUser = (accountId = "", username = "", options = {}) => {
2620
+ var useGetAccountLogin = (accountId = "", username = "", options = {}) => {
2619
2621
  return useConnectedSingleQuery(
2620
- ACCOUNT_COGNITO_USER_QUERY_KEY(accountId, username),
2621
- (params) => GetAccountCognitoUser({ accountId, username, ...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/useConfirmAccountCognitoUser.ts
15554
- var ConfirmAccountCognitoUser = async ({
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: ACCOUNT_COGNITO_USERS_QUERY_KEY(accountId)
15568
+ queryKey: ACCOUNT_LOGINS_QUERY_KEY(accountId)
15567
15569
  });
15568
15570
  queryClient.invalidateQueries({
15569
- queryKey: ACCOUNT_COGNITO_USER_QUERY_KEY(accountId, username)
15571
+ queryKey: ACCOUNT_LOGIN_QUERY_KEY(accountId, username)
15570
15572
  });
15571
15573
  }
15572
15574
  return data;
15573
15575
  };
15574
- var useConfirmAccountCognitoUser = (options = {}) => {
15575
- return useConnectedMutation(ConfirmAccountCognitoUser, options, {
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/useUpdateAccountCognitoUserPassword.ts
15955
- var UpdateAccountCognitoUserPassword = async ({
15956
+ // src/mutations/account/useUpdateAccountLead.ts
15957
+ var UpdateAccountLead = async ({
15956
15958
  accountId,
15957
- username,
15958
- password,
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}/cognito/${username}/password`,
15965
- { password }
15966
+ `/accounts/${accountId}/leads/${leadId}`,
15967
+ lead
15966
15968
  );
15967
15969
  if (queryClient && data.status === "ok") {
15968
- UpdateAccountCognitoUserPassword({
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 useUpdateAccountCognitoUserPassword = (options = {}) => {
15978
- return useConnectedMutation(UpdateAccountCognitoUserPassword, options, {
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/useUpdateAccountLead.ts
15985
- var UpdateAccountLead = async ({
15983
+ // src/mutations/account/useUpdateLoginEmail.ts
15984
+ var UpdateLoginEmail = async ({
15986
15985
  accountId,
15987
- leadId,
15988
- lead,
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}/leads/${leadId}`,
15995
- lead
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 useUpdateAccountLead = (options = {}) => {
16005
- return useConnectedMutation(UpdateAccountLead, options, {
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
  });
@@ -20180,7 +20194,7 @@ var UpdateEventPassResponse = async ({
20180
20194
  }) => {
20181
20195
  const connectedXM = await GetAdminAPI(adminApiParams);
20182
20196
  const { data } = await connectedXM.put(
20183
- `/events/${eventId}/purchases/${passId}/responses/${questionId}`,
20197
+ `/events/${eventId}/passes/${passId}/responses/${questionId}`,
20184
20198
  response
20185
20199
  );
20186
20200
  if (queryClient && data.status === "ok") {
@@ -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
- ConfirmAccountCognitoUser,
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
- useConfirmAccountCognitoUser,
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,