@connectedxm/admin 2.8.15 → 2.8.17

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
@@ -3218,9 +3218,11 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
3218
3218
  };
3219
3219
 
3220
3220
  // src/queries/accounts/useGetAccounts.ts
3221
- var ACCOUNTS_QUERY_KEY = (accountType) => {
3221
+ var ACCOUNTS_QUERY_KEY = (accountType, verified, online) => {
3222
3222
  const keys = ["ACCOUNTS"];
3223
3223
  if (accountType) keys.push(accountType);
3224
+ if (typeof verified !== "undefined") keys.push(verified ? "VERIFIED" : "UNVERIFIED");
3225
+ if (typeof online !== "undefined") keys.push(online ? "ONLINE" : "OFFLINE");
3224
3226
  return keys;
3225
3227
  };
3226
3228
  var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response) => {
@@ -3232,7 +3234,9 @@ var GetAccounts = async ({
3232
3234
  orderBy,
3233
3235
  accountType,
3234
3236
  search,
3235
- adminApiParams
3237
+ adminApiParams,
3238
+ verified,
3239
+ online
3236
3240
  }) => {
3237
3241
  const adminApi = await GetAdminAPI(adminApiParams);
3238
3242
  const { data } = await adminApi.get(`/accounts`, {
@@ -3241,15 +3245,17 @@ var GetAccounts = async ({
3241
3245
  pageSize: pageSize || void 0,
3242
3246
  orderBy: orderBy || void 0,
3243
3247
  accountType: accountType || void 0,
3244
- search: search || void 0
3248
+ search: search || void 0,
3249
+ verified: verified || void 0,
3250
+ online: online || void 0
3245
3251
  }
3246
3252
  });
3247
3253
  return data;
3248
3254
  };
3249
- var useGetAccounts = (accountType, params = {}, options = {}) => {
3255
+ var useGetAccounts = (accountType, verified, online, params = {}, options = {}) => {
3250
3256
  return useConnectedInfiniteQuery(
3251
- ACCOUNTS_QUERY_KEY(accountType),
3252
- (params2) => GetAccounts({ ...params2, accountType }),
3257
+ ACCOUNTS_QUERY_KEY(accountType, verified, online),
3258
+ (params2) => GetAccounts({ ...params2, accountType, verified, online }),
3253
3259
  params,
3254
3260
  options,
3255
3261
  "accounts"
@@ -15025,15 +15031,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
15025
15031
  };
15026
15032
 
15027
15033
  // src/queries/events/useGetEventActivities.ts
15028
- var EVENT_ACTIVITIES_QUERY_KEY = (eventId) => [
15029
- ...EVENT_QUERY_KEY(eventId),
15030
- "ACTIVITIES"
15031
- ];
15034
+ var EVENT_ACTIVITIES_QUERY_KEY = (eventId, featured) => {
15035
+ const key = [...EVENT_QUERY_KEY(eventId), "ACTIVITIES"];
15036
+ if (featured) {
15037
+ key.push("FEATURED");
15038
+ }
15039
+ return key;
15040
+ };
15032
15041
  var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
15033
15042
  client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
15034
15043
  };
15035
15044
  var GetEventActivities = async ({
15036
15045
  eventId,
15046
+ featured,
15037
15047
  pageParam,
15038
15048
  pageSize,
15039
15049
  orderBy,
@@ -15046,16 +15056,18 @@ var GetEventActivities = async ({
15046
15056
  page: pageParam || void 0,
15047
15057
  pageSize: pageSize || void 0,
15048
15058
  orderBy: orderBy || void 0,
15049
- search: search || void 0
15059
+ search: search || void 0,
15060
+ featured: featured || void 0
15050
15061
  }
15051
15062
  });
15052
15063
  return data;
15053
15064
  };
15054
- var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
15065
+ var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
15055
15066
  return useConnectedInfiniteQuery(
15056
- EVENT_ACTIVITIES_QUERY_KEY(eventId),
15067
+ EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
15057
15068
  (params2) => GetEventActivities({
15058
15069
  eventId,
15070
+ featured,
15059
15071
  ...params2
15060
15072
  }),
15061
15073
  params,
@@ -15361,15 +15373,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
15361
15373
  };
15362
15374
 
15363
15375
  // src/queries/groups/useGetGroupActivities.ts
15364
- var GROUP_ACTIVITIES_QUERY_KEY = (groupId) => [
15365
- ...GROUP_QUERY_KEY(groupId),
15366
- "ACTIVITIES"
15367
- ];
15376
+ var GROUP_ACTIVITIES_QUERY_KEY = (groupId, featured) => {
15377
+ const key = [...GROUP_QUERY_KEY(groupId), "ACTIVITIES"];
15378
+ if (featured) {
15379
+ key.push("FEATURED");
15380
+ }
15381
+ return key;
15382
+ };
15368
15383
  var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
15369
15384
  client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
15370
15385
  };
15371
15386
  var GetGroupActivities = async ({
15372
15387
  groupId,
15388
+ featured,
15373
15389
  pageParam,
15374
15390
  pageSize,
15375
15391
  orderBy,
@@ -15382,16 +15398,18 @@ var GetGroupActivities = async ({
15382
15398
  page: pageParam || void 0,
15383
15399
  pageSize: pageSize || void 0,
15384
15400
  orderBy: orderBy || void 0,
15385
- search: search || void 0
15401
+ search: search || void 0,
15402
+ featured: featured || void 0
15386
15403
  }
15387
15404
  });
15388
15405
  return data;
15389
15406
  };
15390
- var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
15407
+ var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
15391
15408
  return useConnectedInfiniteQuery(
15392
- GROUP_ACTIVITIES_QUERY_KEY(groupId),
15409
+ GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
15393
15410
  (params2) => GetGroupActivities({
15394
15411
  groupId,
15412
+ featured,
15395
15413
  ...params2
15396
15414
  }),
15397
15415
  params,
package/dist/index.d.cts CHANGED
@@ -6256,7 +6256,7 @@ declare const useGetAccountTiers: (accountId?: string, type?: "external" | "inte
6256
6256
  * @category Keys
6257
6257
  * @group Accounts
6258
6258
  */
6259
- declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team") => string[];
6259
+ declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team", verified?: boolean, online?: boolean) => string[];
6260
6260
  /**
6261
6261
  * @category Setters
6262
6262
  * @group Accounts
@@ -6264,17 +6264,19 @@ declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team") => string[]
6264
6264
  declare const SET_ACCOUNTS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ACCOUNTS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetAccounts>>) => void;
6265
6265
  interface GetAccountsProps extends InfiniteQueryParams {
6266
6266
  accountType?: "account" | "team";
6267
+ verified?: boolean;
6268
+ online?: boolean;
6267
6269
  }
6268
6270
  /**
6269
6271
  * @category Queries
6270
6272
  * @group Accounts
6271
6273
  */
6272
- declare const GetAccounts: ({ pageParam, pageSize, orderBy, accountType, search, adminApiParams, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
6274
+ declare const GetAccounts: ({ pageParam, pageSize, orderBy, accountType, search, adminApiParams, verified, online, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
6273
6275
  /**
6274
6276
  * @category Hooks
6275
6277
  * @group Accounts
6276
6278
  */
6277
- declare const useGetAccounts: (accountType?: "account" | "team", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
6279
+ declare const useGetAccounts: (accountType?: "account" | "team", verified?: boolean, online?: boolean, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
6278
6280
 
6279
6281
  /**
6280
6282
  * @category Keys
@@ -12629,7 +12631,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
12629
12631
  * @category Keys
12630
12632
  * @event Events
12631
12633
  */
12632
- declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
12634
+ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
12633
12635
  /**
12634
12636
  * @category Setters
12635
12637
  * @event Events
@@ -12637,17 +12639,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
12637
12639
  declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
12638
12640
  interface GetEventActivitiesProps extends InfiniteQueryParams {
12639
12641
  eventId: string;
12642
+ featured?: true;
12640
12643
  }
12641
12644
  /**
12642
12645
  * @category Queries
12643
12646
  * @event Events
12644
12647
  */
12645
- declare const GetEventActivities: ({ eventId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12648
+ declare const GetEventActivities: ({ eventId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12646
12649
  /**
12647
12650
  * @category Hooks
12648
12651
  * @event Events
12649
12652
  */
12650
- declare const useGetEventActivities: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12653
+ declare const useGetEventActivities: (eventId?: string, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12651
12654
 
12652
12655
  /**
12653
12656
  * @category Keys
@@ -12845,7 +12848,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
12845
12848
  * @category Keys
12846
12849
  * @group Groups
12847
12850
  */
12848
- declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
12851
+ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
12849
12852
  /**
12850
12853
  * @category Setters
12851
12854
  * @group Groups
@@ -12853,17 +12856,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
12853
12856
  declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
12854
12857
  interface GetGroupActivitiesProps extends InfiniteQueryParams {
12855
12858
  groupId: string;
12859
+ featured?: true;
12856
12860
  }
12857
12861
  /**
12858
12862
  * @category Queries
12859
12863
  * @group Groups
12860
12864
  */
12861
- declare const GetGroupActivities: ({ groupId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12865
+ declare const GetGroupActivities: ({ groupId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12862
12866
  /**
12863
12867
  * @category Hooks
12864
12868
  * @group Groups
12865
12869
  */
12866
- declare const useGetGroupActivities: (groupId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetGroupActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12870
+ declare const useGetGroupActivities: (groupId?: string, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetGroupActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12867
12871
 
12868
12872
  /**
12869
12873
  * @category Keys
package/dist/index.d.ts CHANGED
@@ -6256,7 +6256,7 @@ declare const useGetAccountTiers: (accountId?: string, type?: "external" | "inte
6256
6256
  * @category Keys
6257
6257
  * @group Accounts
6258
6258
  */
6259
- declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team") => string[];
6259
+ declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team", verified?: boolean, online?: boolean) => string[];
6260
6260
  /**
6261
6261
  * @category Setters
6262
6262
  * @group Accounts
@@ -6264,17 +6264,19 @@ declare const ACCOUNTS_QUERY_KEY: (accountType?: "account" | "team") => string[]
6264
6264
  declare const SET_ACCOUNTS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ACCOUNTS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetAccounts>>) => void;
6265
6265
  interface GetAccountsProps extends InfiniteQueryParams {
6266
6266
  accountType?: "account" | "team";
6267
+ verified?: boolean;
6268
+ online?: boolean;
6267
6269
  }
6268
6270
  /**
6269
6271
  * @category Queries
6270
6272
  * @group Accounts
6271
6273
  */
6272
- declare const GetAccounts: ({ pageParam, pageSize, orderBy, accountType, search, adminApiParams, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
6274
+ declare const GetAccounts: ({ pageParam, pageSize, orderBy, accountType, search, adminApiParams, verified, online, }: GetAccountsProps) => Promise<ConnectedXMResponse<Account[]>>;
6273
6275
  /**
6274
6276
  * @category Hooks
6275
6277
  * @group Accounts
6276
6278
  */
6277
- declare const useGetAccounts: (accountType?: "account" | "team", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
6279
+ declare const useGetAccounts: (accountType?: "account" | "team", verified?: boolean, online?: boolean, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetAccounts>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Account[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
6278
6280
 
6279
6281
  /**
6280
6282
  * @category Keys
@@ -12629,7 +12631,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
12629
12631
  * @category Keys
12630
12632
  * @event Events
12631
12633
  */
12632
- declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
12634
+ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
12633
12635
  /**
12634
12636
  * @category Setters
12635
12637
  * @event Events
@@ -12637,17 +12639,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
12637
12639
  declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
12638
12640
  interface GetEventActivitiesProps extends InfiniteQueryParams {
12639
12641
  eventId: string;
12642
+ featured?: true;
12640
12643
  }
12641
12644
  /**
12642
12645
  * @category Queries
12643
12646
  * @event Events
12644
12647
  */
12645
- declare const GetEventActivities: ({ eventId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12648
+ declare const GetEventActivities: ({ eventId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12646
12649
  /**
12647
12650
  * @category Hooks
12648
12651
  * @event Events
12649
12652
  */
12650
- declare const useGetEventActivities: (eventId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12653
+ declare const useGetEventActivities: (eventId?: string, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12651
12654
 
12652
12655
  /**
12653
12656
  * @category Keys
@@ -12845,7 +12848,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
12845
12848
  * @category Keys
12846
12849
  * @group Groups
12847
12850
  */
12848
- declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
12851
+ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
12849
12852
  /**
12850
12853
  * @category Setters
12851
12854
  * @group Groups
@@ -12853,17 +12856,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
12853
12856
  declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
12854
12857
  interface GetGroupActivitiesProps extends InfiniteQueryParams {
12855
12858
  groupId: string;
12859
+ featured?: true;
12856
12860
  }
12857
12861
  /**
12858
12862
  * @category Queries
12859
12863
  * @group Groups
12860
12864
  */
12861
- declare const GetGroupActivities: ({ groupId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12865
+ declare const GetGroupActivities: ({ groupId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
12862
12866
  /**
12863
12867
  * @category Hooks
12864
12868
  * @group Groups
12865
12869
  */
12866
- declare const useGetGroupActivities: (groupId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetGroupActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12870
+ declare const useGetGroupActivities: (groupId?: string, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetGroupActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
12867
12871
 
12868
12872
  /**
12869
12873
  * @category Keys
package/dist/index.js CHANGED
@@ -190,9 +190,11 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options = {
190
190
  };
191
191
 
192
192
  // src/queries/accounts/useGetAccounts.ts
193
- var ACCOUNTS_QUERY_KEY = (accountType) => {
193
+ var ACCOUNTS_QUERY_KEY = (accountType, verified, online) => {
194
194
  const keys = ["ACCOUNTS"];
195
195
  if (accountType) keys.push(accountType);
196
+ if (typeof verified !== "undefined") keys.push(verified ? "VERIFIED" : "UNVERIFIED");
197
+ if (typeof online !== "undefined") keys.push(online ? "ONLINE" : "OFFLINE");
196
198
  return keys;
197
199
  };
198
200
  var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response) => {
@@ -204,7 +206,9 @@ var GetAccounts = async ({
204
206
  orderBy,
205
207
  accountType,
206
208
  search,
207
- adminApiParams
209
+ adminApiParams,
210
+ verified,
211
+ online
208
212
  }) => {
209
213
  const adminApi = await GetAdminAPI(adminApiParams);
210
214
  const { data } = await adminApi.get(`/accounts`, {
@@ -213,15 +217,17 @@ var GetAccounts = async ({
213
217
  pageSize: pageSize || void 0,
214
218
  orderBy: orderBy || void 0,
215
219
  accountType: accountType || void 0,
216
- search: search || void 0
220
+ search: search || void 0,
221
+ verified: verified || void 0,
222
+ online: online || void 0
217
223
  }
218
224
  });
219
225
  return data;
220
226
  };
221
- var useGetAccounts = (accountType, params = {}, options = {}) => {
227
+ var useGetAccounts = (accountType, verified, online, params = {}, options = {}) => {
222
228
  return useConnectedInfiniteQuery(
223
- ACCOUNTS_QUERY_KEY(accountType),
224
- (params2) => GetAccounts({ ...params2, accountType }),
229
+ ACCOUNTS_QUERY_KEY(accountType, verified, online),
230
+ (params2) => GetAccounts({ ...params2, accountType, verified, online }),
225
231
  params,
226
232
  options,
227
233
  "accounts"
@@ -11997,15 +12003,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
11997
12003
  };
11998
12004
 
11999
12005
  // src/queries/events/useGetEventActivities.ts
12000
- var EVENT_ACTIVITIES_QUERY_KEY = (eventId) => [
12001
- ...EVENT_QUERY_KEY(eventId),
12002
- "ACTIVITIES"
12003
- ];
12006
+ var EVENT_ACTIVITIES_QUERY_KEY = (eventId, featured) => {
12007
+ const key = [...EVENT_QUERY_KEY(eventId), "ACTIVITIES"];
12008
+ if (featured) {
12009
+ key.push("FEATURED");
12010
+ }
12011
+ return key;
12012
+ };
12004
12013
  var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
12005
12014
  client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
12006
12015
  };
12007
12016
  var GetEventActivities = async ({
12008
12017
  eventId,
12018
+ featured,
12009
12019
  pageParam,
12010
12020
  pageSize,
12011
12021
  orderBy,
@@ -12018,16 +12028,18 @@ var GetEventActivities = async ({
12018
12028
  page: pageParam || void 0,
12019
12029
  pageSize: pageSize || void 0,
12020
12030
  orderBy: orderBy || void 0,
12021
- search: search || void 0
12031
+ search: search || void 0,
12032
+ featured: featured || void 0
12022
12033
  }
12023
12034
  });
12024
12035
  return data;
12025
12036
  };
12026
- var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
12037
+ var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
12027
12038
  return useConnectedInfiniteQuery(
12028
- EVENT_ACTIVITIES_QUERY_KEY(eventId),
12039
+ EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
12029
12040
  (params2) => GetEventActivities({
12030
12041
  eventId,
12042
+ featured,
12031
12043
  ...params2
12032
12044
  }),
12033
12045
  params,
@@ -12333,15 +12345,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
12333
12345
  };
12334
12346
 
12335
12347
  // src/queries/groups/useGetGroupActivities.ts
12336
- var GROUP_ACTIVITIES_QUERY_KEY = (groupId) => [
12337
- ...GROUP_QUERY_KEY(groupId),
12338
- "ACTIVITIES"
12339
- ];
12348
+ var GROUP_ACTIVITIES_QUERY_KEY = (groupId, featured) => {
12349
+ const key = [...GROUP_QUERY_KEY(groupId), "ACTIVITIES"];
12350
+ if (featured) {
12351
+ key.push("FEATURED");
12352
+ }
12353
+ return key;
12354
+ };
12340
12355
  var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
12341
12356
  client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
12342
12357
  };
12343
12358
  var GetGroupActivities = async ({
12344
12359
  groupId,
12360
+ featured,
12345
12361
  pageParam,
12346
12362
  pageSize,
12347
12363
  orderBy,
@@ -12354,16 +12370,18 @@ var GetGroupActivities = async ({
12354
12370
  page: pageParam || void 0,
12355
12371
  pageSize: pageSize || void 0,
12356
12372
  orderBy: orderBy || void 0,
12357
- search: search || void 0
12373
+ search: search || void 0,
12374
+ featured: featured || void 0
12358
12375
  }
12359
12376
  });
12360
12377
  return data;
12361
12378
  };
12362
- var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
12379
+ var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
12363
12380
  return useConnectedInfiniteQuery(
12364
- GROUP_ACTIVITIES_QUERY_KEY(groupId),
12381
+ GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
12365
12382
  (params2) => GetGroupActivities({
12366
12383
  groupId,
12384
+ featured,
12367
12385
  ...params2
12368
12386
  }),
12369
12387
  params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "2.8.15",
3
+ "version": "2.8.17",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",