@connectedxm/admin 3.1.0 → 3.1.1

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
@@ -711,7 +711,6 @@ __export(index_exports, {
711
711
  ExportAccount: () => ExportAccount,
712
712
  ExportStatus: () => ExportStatus,
713
713
  FEATURED_CHANNELS_QUERY_KEY: () => FEATURED_CHANNELS_QUERY_KEY,
714
- FEATURED_EVENTS_QUERY_KEY: () => FEATURED_EVENTS_QUERY_KEY,
715
714
  FILES_QUERY_KEY: () => FILES_QUERY_KEY,
716
715
  FILE_QUERY_KEY: () => FILE_QUERY_KEY,
717
716
  FileSource: () => FileSource,
@@ -1039,7 +1038,6 @@ __export(index_exports, {
1039
1038
  GetEventZplTemplateBadgeFields: () => GetEventZplTemplateBadgeFields,
1040
1039
  GetEvents: () => GetEvents,
1041
1040
  GetFeaturedChannels: () => GetFeaturedChannels,
1042
- GetFeaturedEvents: () => GetFeaturedEvents,
1043
1041
  GetFile: () => GetFile,
1044
1042
  GetFiles: () => GetFiles,
1045
1043
  GetGroup: () => GetGroup,
@@ -1662,7 +1660,6 @@ __export(index_exports, {
1662
1660
  SET_EVENT_ZPL_TEMPLATE_BADGE_FIELDS_QUERY_DATA: () => SET_EVENT_ZPL_TEMPLATE_BADGE_FIELDS_QUERY_DATA,
1663
1661
  SET_EVENT_ZPL_TEMPLATE_BADGE_FIELD_QUERY_DATA: () => SET_EVENT_ZPL_TEMPLATE_BADGE_FIELD_QUERY_DATA,
1664
1662
  SET_FEATURED_CHANNELS_QUERY_DATA: () => SET_FEATURED_CHANNELS_QUERY_DATA,
1665
- SET_FEATURED_EVENTS_QUERY_DATA: () => SET_FEATURED_EVENTS_QUERY_DATA,
1666
1663
  SET_FILES_QUERY_DATA: () => SET_FILES_QUERY_DATA,
1667
1664
  SET_FILE_QUERY_DATA: () => SET_FILE_QUERY_DATA,
1668
1665
  SET_GROUPS_QUERY_DATA: () => SET_GROUPS_QUERY_DATA,
@@ -2731,7 +2728,6 @@ __export(index_exports, {
2731
2728
  useGetEventZplTemplateBadgeFields: () => useGetEventZplTemplateBadgeFields,
2732
2729
  useGetEvents: () => useGetEvents,
2733
2730
  useGetFeaturedChannels: () => useGetFeaturedChannels,
2734
- useGetFeaturedEvents: () => useGetFeaturedEvents,
2735
2731
  useGetFile: () => useGetFile,
2736
2732
  useGetFiles: () => useGetFiles,
2737
2733
  useGetGroup: () => useGetGroup,
@@ -7036,9 +7032,11 @@ var useGetEmailReceipt = (emailReceiptId = "", options = {}) => {
7036
7032
  };
7037
7033
 
7038
7034
  // src/queries/events/useGetEvents.ts
7039
- var EVENTS_QUERY_KEY = (past) => {
7035
+ var EVENTS_QUERY_KEY = (past, featured) => {
7040
7036
  let keys = ["EVENTS"];
7041
7037
  if (typeof past !== "undefined") keys = [...keys, past ? "PAST" : "UPCOMING"];
7038
+ if (typeof featured !== "undefined")
7039
+ keys = [...keys, featured ? "FEATURED" : "NOT_FEATURED"];
7042
7040
  return keys;
7043
7041
  };
7044
7042
  var SET_EVENTS_QUERY_DATA = (client, keyParams, response) => {
@@ -7049,26 +7047,29 @@ var GetEvents = async ({
7049
7047
  pageSize,
7050
7048
  orderBy,
7051
7049
  past,
7050
+ featured,
7052
7051
  search,
7053
7052
  adminApiParams
7054
7053
  }) => {
7055
7054
  const adminApi = await GetAdminAPI(adminApiParams);
7056
7055
  const { data } = await adminApi.get(`/events`, {
7057
7056
  params: {
7058
- past: typeof past !== "undefined" ? past ? "true" : "false" : void 0,
7059
7057
  page: pageParam || void 0,
7060
7058
  pageSize: pageSize || void 0,
7061
7059
  orderBy: orderBy || void 0,
7062
- search: search || void 0
7060
+ search: search || void 0,
7061
+ past: typeof past !== "undefined" ? past ? "true" : "false" : void 0,
7062
+ featured: typeof featured !== "undefined" ? featured ? "true" : "false" : void 0
7063
7063
  }
7064
7064
  });
7065
7065
  return data;
7066
7066
  };
7067
- var useGetEvents = (past, params = {}, options = {}) => {
7067
+ var useGetEvents = (past, featured, params = {}, options = {}) => {
7068
7068
  return useConnectedInfiniteQuery(
7069
- EVENTS_QUERY_KEY(past),
7069
+ EVENTS_QUERY_KEY(past, featured),
7070
7070
  (params2) => GetEvents({
7071
7071
  ...params2,
7072
+ featured,
7072
7073
  past
7073
7074
  }),
7074
7075
  params,
@@ -15903,42 +15904,6 @@ var useGetEventThreads = (eventId, params = {}, options = {}) => {
15903
15904
  );
15904
15905
  };
15905
15906
 
15906
- // src/queries/events/useGetFeaturedEvents.ts
15907
- var FEATURED_EVENTS_QUERY_KEY = () => [
15908
- ...EVENTS_QUERY_KEY(),
15909
- "FEATURED"
15910
- ];
15911
- var SET_FEATURED_EVENTS_QUERY_DATA = (client, keyParams, response) => {
15912
- client.setQueryData(FEATURED_EVENTS_QUERY_KEY(...keyParams), response);
15913
- };
15914
- var GetFeaturedEvents = async ({
15915
- pageParam,
15916
- pageSize,
15917
- orderBy,
15918
- search,
15919
- adminApiParams
15920
- }) => {
15921
- const adminApi = await GetAdminAPI(adminApiParams);
15922
- const { data } = await adminApi.get(`/events/featured`, {
15923
- params: {
15924
- page: pageParam || void 0,
15925
- pageSize: pageSize || void 0,
15926
- orderBy: orderBy || void 0,
15927
- search: search || void 0
15928
- }
15929
- });
15930
- return data;
15931
- };
15932
- var useGetFeaturedEvents = (params = {}, options = {}) => {
15933
- return useConnectedInfiniteQuery(
15934
- FEATURED_EVENTS_QUERY_KEY(),
15935
- (params2) => GetFeaturedEvents(params2),
15936
- params,
15937
- options,
15938
- "events"
15939
- );
15940
- };
15941
-
15942
15907
  // src/queries/files/useGetFiles.ts
15943
15908
  var FILES_QUERY_KEY = (source) => {
15944
15909
  const keys = ["FILES"];
@@ -41089,7 +41054,6 @@ var useUploadVideoCaptions = (options = {}) => {
41089
41054
  ExportAccount,
41090
41055
  ExportStatus,
41091
41056
  FEATURED_CHANNELS_QUERY_KEY,
41092
- FEATURED_EVENTS_QUERY_KEY,
41093
41057
  FILES_QUERY_KEY,
41094
41058
  FILE_QUERY_KEY,
41095
41059
  FileSource,
@@ -41417,7 +41381,6 @@ var useUploadVideoCaptions = (options = {}) => {
41417
41381
  GetEventZplTemplateBadgeFields,
41418
41382
  GetEvents,
41419
41383
  GetFeaturedChannels,
41420
- GetFeaturedEvents,
41421
41384
  GetFile,
41422
41385
  GetFiles,
41423
41386
  GetGroup,
@@ -42040,7 +42003,6 @@ var useUploadVideoCaptions = (options = {}) => {
42040
42003
  SET_EVENT_ZPL_TEMPLATE_BADGE_FIELDS_QUERY_DATA,
42041
42004
  SET_EVENT_ZPL_TEMPLATE_BADGE_FIELD_QUERY_DATA,
42042
42005
  SET_FEATURED_CHANNELS_QUERY_DATA,
42043
- SET_FEATURED_EVENTS_QUERY_DATA,
42044
42006
  SET_FILES_QUERY_DATA,
42045
42007
  SET_FILE_QUERY_DATA,
42046
42008
  SET_GROUPS_QUERY_DATA,
@@ -43109,7 +43071,6 @@ var useUploadVideoCaptions = (options = {}) => {
43109
43071
  useGetEventZplTemplateBadgeFields,
43110
43072
  useGetEvents,
43111
43073
  useGetFeaturedChannels,
43112
- useGetFeaturedEvents,
43113
43074
  useGetFile,
43114
43075
  useGetFiles,
43115
43076
  useGetGroup,