@connectedxm/admin 6.7.1 → 6.7.2

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.cjs CHANGED
@@ -49,6 +49,7 @@ __export(index_exports, {
49
49
  ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY: () => ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
50
50
  ACCOUNT_PAYMENTS_QUERY_KEY: () => ACCOUNT_PAYMENTS_QUERY_KEY,
51
51
  ACCOUNT_QUERY_KEY: () => ACCOUNT_QUERY_KEY,
52
+ ACCOUNT_REGISTRATIONS_QUERY_KEY: () => ACCOUNT_REGISTRATIONS_QUERY_KEY,
52
53
  ACCOUNT_THREADS_QUERY_KEY: () => ACCOUNT_THREADS_QUERY_KEY,
53
54
  ACCOUNT_TIERS_QUERY_KEY: () => ACCOUNT_TIERS_QUERY_KEY,
54
55
  ACTIVITIES_QUERY_KEY: () => ACTIVITIES_QUERY_KEY,
@@ -734,6 +735,7 @@ __export(index_exports, {
734
735
  GetAccountLikes: () => GetAccountLikes,
735
736
  GetAccountNotificationPreferences: () => GetAccountNotificationPreferences,
736
737
  GetAccountPayments: () => GetAccountPayments,
738
+ GetAccountRegistrations: () => GetAccountRegistrations,
737
739
  GetAccountThreads: () => GetAccountThreads,
738
740
  GetAccountTiers: () => GetAccountTiers,
739
741
  GetAccounts: () => GetAccounts,
@@ -1441,6 +1443,7 @@ __export(index_exports, {
1441
1443
  SET_ACCOUNT_PAYMENTS_QUERY_DATA: () => SET_ACCOUNT_PAYMENTS_QUERY_DATA,
1442
1444
  SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
1443
1445
  SET_ACCOUNT_QUERY_DATA: () => SET_ACCOUNT_QUERY_DATA,
1446
+ SET_ACCOUNT_REGISTRATIONS_QUERY_DATA: () => SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
1444
1447
  SET_ACCOUNT_THREADS_QUERY_DATA: () => SET_ACCOUNT_THREADS_QUERY_DATA,
1445
1448
  SET_ACCOUNT_TIERS_QUERY_DATA: () => SET_ACCOUNT_TIERS_QUERY_DATA,
1446
1449
  SET_ACTIVITIES_QUERY_DATA: () => SET_ACTIVITIES_QUERY_DATA,
@@ -2537,6 +2540,7 @@ __export(index_exports, {
2537
2540
  useGetAccountLikes: () => useGetAccountLikes,
2538
2541
  useGetAccountNotificationPreferences: () => useGetAccountNotificationPreferences,
2539
2542
  useGetAccountPayments: () => useGetAccountPayments,
2543
+ useGetAccountRegistrations: () => useGetAccountRegistrations,
2540
2544
  useGetAccountThreads: () => useGetAccountThreads,
2541
2545
  useGetAccountTiers: () => useGetAccountTiers,
2542
2546
  useGetAccounts: () => useGetAccounts,
@@ -5074,6 +5078,45 @@ var useGetAccountPayments = (accountId = "", params = {}, options = {}) => {
5074
5078
  );
5075
5079
  };
5076
5080
 
5081
+ // src/queries/accounts/useGetAccountRegistrations.ts
5082
+ var ACCOUNT_REGISTRATIONS_QUERY_KEY = (accountId) => [
5083
+ ...ACCOUNT_QUERY_KEY(accountId),
5084
+ "REGISTRATIONS"
5085
+ ];
5086
+ var SET_ACCOUNT_REGISTRATIONS_QUERY_DATA = (client, keyParams, response) => {
5087
+ client.setQueryData(ACCOUNT_REGISTRATIONS_QUERY_KEY(...keyParams), response);
5088
+ };
5089
+ var GetAccountRegistrations = async ({
5090
+ accountId,
5091
+ pageParam,
5092
+ pageSize,
5093
+ orderBy,
5094
+ search,
5095
+ adminApiParams
5096
+ }) => {
5097
+ const adminApi = await GetAdminAPI(adminApiParams);
5098
+ const { data } = await adminApi.get(`/accounts/${accountId}/registrations`, {
5099
+ params: {
5100
+ page: pageParam || void 0,
5101
+ pageSize: pageSize || void 0,
5102
+ orderBy: orderBy || void 0,
5103
+ search: search || void 0
5104
+ }
5105
+ });
5106
+ return data;
5107
+ };
5108
+ var useGetAccountRegistrations = (accountId = "", params = {}, options = {}) => {
5109
+ return useConnectedInfiniteQuery(
5110
+ ACCOUNT_REGISTRATIONS_QUERY_KEY(accountId),
5111
+ (params2) => GetAccountRegistrations({ accountId, ...params2 }),
5112
+ params,
5113
+ {
5114
+ ...options,
5115
+ enabled: !!accountId && (options?.enabled ?? true)
5116
+ }
5117
+ );
5118
+ };
5119
+
5077
5120
  // src/queries/accounts/useGetAccountThreads.ts
5078
5121
  var ACCOUNT_THREADS_QUERY_KEY = (accountId) => {
5079
5122
  const keys = ["THREADS", "ACCOUNT", accountId];
@@ -39295,6 +39338,7 @@ var useUpdateVideo = (options = {}) => {
39295
39338
  ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
39296
39339
  ACCOUNT_PAYMENTS_QUERY_KEY,
39297
39340
  ACCOUNT_QUERY_KEY,
39341
+ ACCOUNT_REGISTRATIONS_QUERY_KEY,
39298
39342
  ACCOUNT_THREADS_QUERY_KEY,
39299
39343
  ACCOUNT_TIERS_QUERY_KEY,
39300
39344
  ACTIVITIES_QUERY_KEY,
@@ -39980,6 +40024,7 @@ var useUpdateVideo = (options = {}) => {
39980
40024
  GetAccountLikes,
39981
40025
  GetAccountNotificationPreferences,
39982
40026
  GetAccountPayments,
40027
+ GetAccountRegistrations,
39983
40028
  GetAccountThreads,
39984
40029
  GetAccountTiers,
39985
40030
  GetAccounts,
@@ -40687,6 +40732,7 @@ var useUpdateVideo = (options = {}) => {
40687
40732
  SET_ACCOUNT_PAYMENTS_QUERY_DATA,
40688
40733
  SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
40689
40734
  SET_ACCOUNT_QUERY_DATA,
40735
+ SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
40690
40736
  SET_ACCOUNT_THREADS_QUERY_DATA,
40691
40737
  SET_ACCOUNT_TIERS_QUERY_DATA,
40692
40738
  SET_ACTIVITIES_QUERY_DATA,
@@ -41783,6 +41829,7 @@ var useUpdateVideo = (options = {}) => {
41783
41829
  useGetAccountLikes,
41784
41830
  useGetAccountNotificationPreferences,
41785
41831
  useGetAccountPayments,
41832
+ useGetAccountRegistrations,
41786
41833
  useGetAccountThreads,
41787
41834
  useGetAccountTiers,
41788
41835
  useGetAccounts,