@connectedxm/admin 6.5.3 → 6.5.4

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
@@ -15544,7 +15544,9 @@ var GetNotifications = async ({
15544
15544
  page: pageParam || void 0,
15545
15545
  pageSize: pageSize || void 0,
15546
15546
  orderBy: orderBy || void 0,
15547
- filters: filters ? JSON.stringify(filters) : void 0,
15547
+ read: typeof filters?.read !== "undefined" ? filters.read ? "true" : "false" : void 0,
15548
+ source: filters?.source || void 0,
15549
+ type: filters?.type || void 0,
15548
15550
  search: search || void 0
15549
15551
  }
15550
15552
  });
@@ -15575,7 +15577,9 @@ var GetNotificationCount = async ({
15575
15577
  const adminApi = await GetAdminAPI(adminApiParams);
15576
15578
  const { data } = await adminApi.get(`/notifications/count`, {
15577
15579
  params: {
15578
- filters: filters ? JSON.stringify(filters) : void 0
15580
+ read: typeof filters?.read !== "undefined" ? filters.read ? "true" : "false" : void 0,
15581
+ source: filters?.source || void 0,
15582
+ type: filters?.type || void 0
15579
15583
  }
15580
15584
  });
15581
15585
  return data;
@@ -15591,6 +15595,26 @@ var useGetNotificationCount = (filters, options = {}) => {
15591
15595
  );
15592
15596
  };
15593
15597
 
15598
+ // src/queries/notifications/useGetNotificationStats.ts
15599
+ var NOTIFICATION_STATS_QUERY_KEY = () => ["NOTIFICATIONS", "STATS"];
15600
+ var SET_NOTIFICATION_STATS_QUERY_DATA = (client, keyParams, response) => {
15601
+ client.setQueryData(NOTIFICATION_STATS_QUERY_KEY(...keyParams), response);
15602
+ };
15603
+ var GetNotificationStats = async ({
15604
+ adminApiParams
15605
+ }) => {
15606
+ const adminApi = await GetAdminAPI(adminApiParams);
15607
+ const { data } = await adminApi.get(`/notifications/stats`);
15608
+ return data;
15609
+ };
15610
+ var useGetNotificationStats = (options = {}) => {
15611
+ return useConnectedSingleQuery(
15612
+ NOTIFICATION_STATS_QUERY_KEY(),
15613
+ (params) => GetNotificationStats({ ...params }),
15614
+ options
15615
+ );
15616
+ };
15617
+
15594
15618
  // src/queries/organization/integrations/useGetIntegrations.ts
15595
15619
  var INTEGRATIONS_QUERY_KEY = () => ["INTEGRATIONS"];
15596
15620
  var SET_INTEGRATIONS_QUERY_DATA = (client, keyParams, response) => {
@@ -18062,11 +18086,7 @@ var useGetSupportTicketNotes = (supportTicketId = "", params = {}, options = {})
18062
18086
  };
18063
18087
 
18064
18088
  // src/queries/supportTickets/useGetSupportTickets.ts
18065
- var SUPPORT_TICKETS_QUERY_KEY = (type, state) => [
18066
- "SUPPORT_TICKETS",
18067
- type,
18068
- state
18069
- ];
18089
+ var SUPPORT_TICKETS_QUERY_KEY = (type, state, assignedToMe) => ["SUPPORT_TICKETS", type, state, assignedToMe];
18070
18090
  var SET_SUPPORT_TICKETS_QUERY_DATA = (client, keyParams, response) => {
18071
18091
  client.setQueryData(SUPPORT_TICKETS_QUERY_KEY(...keyParams), response);
18072
18092
  };
@@ -18077,6 +18097,7 @@ var GetSupportTickets = async ({
18077
18097
  search,
18078
18098
  type,
18079
18099
  state,
18100
+ assignedToMe,
18080
18101
  adminApiParams
18081
18102
  }) => {
18082
18103
  const adminApi = await GetAdminAPI(adminApiParams);
@@ -18087,20 +18108,23 @@ var GetSupportTickets = async ({
18087
18108
  orderBy: orderBy || void 0,
18088
18109
  type: type || void 0,
18089
18110
  state: state || void 0,
18111
+ assignedToMe: typeof assignedToMe !== "undefined" ? assignedToMe ? "true" : "false" : void 0,
18090
18112
  search: search || void 0
18091
18113
  }
18092
18114
  });
18093
18115
  return data;
18094
18116
  };
18095
18117
  var useGetSupportTickets = (type, state, params = {}, options = {}) => {
18118
+ const { assignedToMe, ...restParams } = params;
18096
18119
  return useConnectedInfiniteQuery(
18097
- SUPPORT_TICKETS_QUERY_KEY(type, state),
18120
+ SUPPORT_TICKETS_QUERY_KEY(type, state, assignedToMe),
18098
18121
  (params2) => GetSupportTickets({
18099
18122
  type,
18100
18123
  state,
18124
+ assignedToMe,
18101
18125
  ...params2
18102
18126
  }),
18103
- params,
18127
+ restParams,
18104
18128
  options
18105
18129
  );
18106
18130
  };
@@ -36783,6 +36807,7 @@ export {
36783
36807
  GetMeetingSessions,
36784
36808
  GetMeetings,
36785
36809
  GetNotificationCount,
36810
+ GetNotificationStats,
36786
36811
  GetNotifications,
36787
36812
  GetOrganization,
36788
36813
  GetOrganizationAccountAttribute,
@@ -36973,6 +36998,7 @@ export {
36973
36998
  ModerationStatus,
36974
36999
  NOTIFICATIONS_QUERY_KEY,
36975
37000
  NOTIFICATION_COUNT_QUERY_KEY,
37001
+ NOTIFICATION_STATS_QUERY_KEY,
36976
37002
  NotificationType,
36977
37003
  ORGANIZATION_ACCOUNT_ATTRIBUTES_QUERY_KEY,
36978
37004
  ORGANIZATION_ACCOUNT_ATTRIBUTE_QUERY_KEY,
@@ -37474,6 +37500,7 @@ export {
37474
37500
  SET_MEETING_SESSION_TRANSCRIPT_QUERY_DATA,
37475
37501
  SET_NOTIFICATIONS_QUERY_DATA,
37476
37502
  SET_NOTIFICATION_COUNT_QUERY_DATA,
37503
+ SET_NOTIFICATION_STATS_QUERY_DATA,
37477
37504
  SET_ORGANIZATION_ACCOUNT_ATTRIBUTES_QUERY_DATA,
37478
37505
  SET_ORGANIZATION_ACCOUNT_ATTRIBUTE_QUERY_DATA,
37479
37506
  SET_ORGANIZATION_DOMAIN_QUERY_DATA,
@@ -38563,6 +38590,7 @@ export {
38563
38590
  useGetMeetingSessions,
38564
38591
  useGetMeetings,
38565
38592
  useGetNotificationCount,
38593
+ useGetNotificationStats,
38566
38594
  useGetNotifications,
38567
38595
  useGetOrganization,
38568
38596
  useGetOrganizationAccountAttribute,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.5.3",
3
+ "version": "6.5.4",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",