@connectedxm/admin 6.7.0 → 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,
@@ -3519,6 +3523,7 @@ var SupportTicketState = /* @__PURE__ */ ((SupportTicketState2) => {
3519
3523
  SupportTicketState2["inProgress"] = "inProgress";
3520
3524
  SupportTicketState2["resolved"] = "resolved";
3521
3525
  SupportTicketState2["spam"] = "spam";
3526
+ SupportTicketState2["archived"] = "archived";
3522
3527
  return SupportTicketState2;
3523
3528
  })(SupportTicketState || {});
3524
3529
  var SupportTicketActivityType = /* @__PURE__ */ ((SupportTicketActivityType2) => {
@@ -5073,6 +5078,45 @@ var useGetAccountPayments = (accountId = "", params = {}, options = {}) => {
5073
5078
  );
5074
5079
  };
5075
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
+
5076
5120
  // src/queries/accounts/useGetAccountThreads.ts
5077
5121
  var ACCOUNT_THREADS_QUERY_KEY = (accountId) => {
5078
5122
  const keys = ["THREADS", "ACCOUNT", accountId];
@@ -39294,6 +39338,7 @@ var useUpdateVideo = (options = {}) => {
39294
39338
  ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
39295
39339
  ACCOUNT_PAYMENTS_QUERY_KEY,
39296
39340
  ACCOUNT_QUERY_KEY,
39341
+ ACCOUNT_REGISTRATIONS_QUERY_KEY,
39297
39342
  ACCOUNT_THREADS_QUERY_KEY,
39298
39343
  ACCOUNT_TIERS_QUERY_KEY,
39299
39344
  ACTIVITIES_QUERY_KEY,
@@ -39979,6 +40024,7 @@ var useUpdateVideo = (options = {}) => {
39979
40024
  GetAccountLikes,
39980
40025
  GetAccountNotificationPreferences,
39981
40026
  GetAccountPayments,
40027
+ GetAccountRegistrations,
39982
40028
  GetAccountThreads,
39983
40029
  GetAccountTiers,
39984
40030
  GetAccounts,
@@ -40686,6 +40732,7 @@ var useUpdateVideo = (options = {}) => {
40686
40732
  SET_ACCOUNT_PAYMENTS_QUERY_DATA,
40687
40733
  SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
40688
40734
  SET_ACCOUNT_QUERY_DATA,
40735
+ SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
40689
40736
  SET_ACCOUNT_THREADS_QUERY_DATA,
40690
40737
  SET_ACCOUNT_TIERS_QUERY_DATA,
40691
40738
  SET_ACTIVITIES_QUERY_DATA,
@@ -41782,6 +41829,7 @@ var useUpdateVideo = (options = {}) => {
41782
41829
  useGetAccountLikes,
41783
41830
  useGetAccountNotificationPreferences,
41784
41831
  useGetAccountPayments,
41832
+ useGetAccountRegistrations,
41785
41833
  useGetAccountThreads,
41786
41834
  useGetAccountTiers,
41787
41835
  useGetAccounts,