@connectedxm/admin 2.8.15 → 2.8.16
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 +26 -14
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +26 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15025,15 +15025,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
|
|
|
15025
15025
|
};
|
|
15026
15026
|
|
|
15027
15027
|
// src/queries/events/useGetEventActivities.ts
|
|
15028
|
-
var EVENT_ACTIVITIES_QUERY_KEY = (eventId) =>
|
|
15029
|
-
...EVENT_QUERY_KEY(eventId),
|
|
15030
|
-
|
|
15031
|
-
|
|
15028
|
+
var EVENT_ACTIVITIES_QUERY_KEY = (eventId, featured) => {
|
|
15029
|
+
const key = [...EVENT_QUERY_KEY(eventId), "ACTIVITIES"];
|
|
15030
|
+
if (featured) {
|
|
15031
|
+
key.push("FEATURED");
|
|
15032
|
+
}
|
|
15033
|
+
return key;
|
|
15034
|
+
};
|
|
15032
15035
|
var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
15033
15036
|
client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
15034
15037
|
};
|
|
15035
15038
|
var GetEventActivities = async ({
|
|
15036
15039
|
eventId,
|
|
15040
|
+
featured,
|
|
15037
15041
|
pageParam,
|
|
15038
15042
|
pageSize,
|
|
15039
15043
|
orderBy,
|
|
@@ -15046,16 +15050,18 @@ var GetEventActivities = async ({
|
|
|
15046
15050
|
page: pageParam || void 0,
|
|
15047
15051
|
pageSize: pageSize || void 0,
|
|
15048
15052
|
orderBy: orderBy || void 0,
|
|
15049
|
-
search: search || void 0
|
|
15053
|
+
search: search || void 0,
|
|
15054
|
+
featured: featured || void 0
|
|
15050
15055
|
}
|
|
15051
15056
|
});
|
|
15052
15057
|
return data;
|
|
15053
15058
|
};
|
|
15054
|
-
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
15059
|
+
var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
|
|
15055
15060
|
return useConnectedInfiniteQuery(
|
|
15056
|
-
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
15061
|
+
EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
|
|
15057
15062
|
(params2) => GetEventActivities({
|
|
15058
15063
|
eventId,
|
|
15064
|
+
featured,
|
|
15059
15065
|
...params2
|
|
15060
15066
|
}),
|
|
15061
15067
|
params,
|
|
@@ -15361,15 +15367,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
|
|
|
15361
15367
|
};
|
|
15362
15368
|
|
|
15363
15369
|
// src/queries/groups/useGetGroupActivities.ts
|
|
15364
|
-
var GROUP_ACTIVITIES_QUERY_KEY = (groupId) =>
|
|
15365
|
-
...GROUP_QUERY_KEY(groupId),
|
|
15366
|
-
|
|
15367
|
-
|
|
15370
|
+
var GROUP_ACTIVITIES_QUERY_KEY = (groupId, featured) => {
|
|
15371
|
+
const key = [...GROUP_QUERY_KEY(groupId), "ACTIVITIES"];
|
|
15372
|
+
if (featured) {
|
|
15373
|
+
key.push("FEATURED");
|
|
15374
|
+
}
|
|
15375
|
+
return key;
|
|
15376
|
+
};
|
|
15368
15377
|
var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
15369
15378
|
client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
15370
15379
|
};
|
|
15371
15380
|
var GetGroupActivities = async ({
|
|
15372
15381
|
groupId,
|
|
15382
|
+
featured,
|
|
15373
15383
|
pageParam,
|
|
15374
15384
|
pageSize,
|
|
15375
15385
|
orderBy,
|
|
@@ -15382,16 +15392,18 @@ var GetGroupActivities = async ({
|
|
|
15382
15392
|
page: pageParam || void 0,
|
|
15383
15393
|
pageSize: pageSize || void 0,
|
|
15384
15394
|
orderBy: orderBy || void 0,
|
|
15385
|
-
search: search || void 0
|
|
15395
|
+
search: search || void 0,
|
|
15396
|
+
featured: featured || void 0
|
|
15386
15397
|
}
|
|
15387
15398
|
});
|
|
15388
15399
|
return data;
|
|
15389
15400
|
};
|
|
15390
|
-
var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
|
|
15401
|
+
var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
|
|
15391
15402
|
return useConnectedInfiniteQuery(
|
|
15392
|
-
GROUP_ACTIVITIES_QUERY_KEY(groupId),
|
|
15403
|
+
GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
|
|
15393
15404
|
(params2) => GetGroupActivities({
|
|
15394
15405
|
groupId,
|
|
15406
|
+
featured,
|
|
15395
15407
|
...params2
|
|
15396
15408
|
}),
|
|
15397
15409
|
params,
|
package/dist/index.d.cts
CHANGED
|
@@ -12629,7 +12629,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
|
|
|
12629
12629
|
* @category Keys
|
|
12630
12630
|
* @event Events
|
|
12631
12631
|
*/
|
|
12632
|
-
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
12632
|
+
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
|
|
12633
12633
|
/**
|
|
12634
12634
|
* @category Setters
|
|
12635
12635
|
* @event Events
|
|
@@ -12637,17 +12637,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
|
12637
12637
|
declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
|
|
12638
12638
|
interface GetEventActivitiesProps extends InfiniteQueryParams {
|
|
12639
12639
|
eventId: string;
|
|
12640
|
+
featured?: true;
|
|
12640
12641
|
}
|
|
12641
12642
|
/**
|
|
12642
12643
|
* @category Queries
|
|
12643
12644
|
* @event Events
|
|
12644
12645
|
*/
|
|
12645
|
-
declare const GetEventActivities: ({ eventId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12646
|
+
declare const GetEventActivities: ({ eventId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12646
12647
|
/**
|
|
12647
12648
|
* @category Hooks
|
|
12648
12649
|
* @event Events
|
|
12649
12650
|
*/
|
|
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>>;
|
|
12651
|
+
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
12652
|
|
|
12652
12653
|
/**
|
|
12653
12654
|
* @category Keys
|
|
@@ -12845,7 +12846,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
|
|
|
12845
12846
|
* @category Keys
|
|
12846
12847
|
* @group Groups
|
|
12847
12848
|
*/
|
|
12848
|
-
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
12849
|
+
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
|
|
12849
12850
|
/**
|
|
12850
12851
|
* @category Setters
|
|
12851
12852
|
* @group Groups
|
|
@@ -12853,17 +12854,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
|
12853
12854
|
declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
|
|
12854
12855
|
interface GetGroupActivitiesProps extends InfiniteQueryParams {
|
|
12855
12856
|
groupId: string;
|
|
12857
|
+
featured?: true;
|
|
12856
12858
|
}
|
|
12857
12859
|
/**
|
|
12858
12860
|
* @category Queries
|
|
12859
12861
|
* @group Groups
|
|
12860
12862
|
*/
|
|
12861
|
-
declare const GetGroupActivities: ({ groupId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12863
|
+
declare const GetGroupActivities: ({ groupId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12862
12864
|
/**
|
|
12863
12865
|
* @category Hooks
|
|
12864
12866
|
* @group Groups
|
|
12865
12867
|
*/
|
|
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>>;
|
|
12868
|
+
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
12869
|
|
|
12868
12870
|
/**
|
|
12869
12871
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -12629,7 +12629,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
|
|
|
12629
12629
|
* @category Keys
|
|
12630
12630
|
* @event Events
|
|
12631
12631
|
*/
|
|
12632
|
-
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
12632
|
+
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
|
|
12633
12633
|
/**
|
|
12634
12634
|
* @category Setters
|
|
12635
12635
|
* @event Events
|
|
@@ -12637,17 +12637,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
|
12637
12637
|
declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
|
|
12638
12638
|
interface GetEventActivitiesProps extends InfiniteQueryParams {
|
|
12639
12639
|
eventId: string;
|
|
12640
|
+
featured?: true;
|
|
12640
12641
|
}
|
|
12641
12642
|
/**
|
|
12642
12643
|
* @category Queries
|
|
12643
12644
|
* @event Events
|
|
12644
12645
|
*/
|
|
12645
|
-
declare const GetEventActivities: ({ eventId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12646
|
+
declare const GetEventActivities: ({ eventId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetEventActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12646
12647
|
/**
|
|
12647
12648
|
* @category Hooks
|
|
12648
12649
|
* @event Events
|
|
12649
12650
|
*/
|
|
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>>;
|
|
12651
|
+
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
12652
|
|
|
12652
12653
|
/**
|
|
12653
12654
|
* @category Keys
|
|
@@ -12845,7 +12846,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
|
|
|
12845
12846
|
* @category Keys
|
|
12846
12847
|
* @group Groups
|
|
12847
12848
|
*/
|
|
12848
|
-
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
12849
|
+
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
|
|
12849
12850
|
/**
|
|
12850
12851
|
* @category Setters
|
|
12851
12852
|
* @group Groups
|
|
@@ -12853,17 +12854,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
|
12853
12854
|
declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
|
|
12854
12855
|
interface GetGroupActivitiesProps extends InfiniteQueryParams {
|
|
12855
12856
|
groupId: string;
|
|
12857
|
+
featured?: true;
|
|
12856
12858
|
}
|
|
12857
12859
|
/**
|
|
12858
12860
|
* @category Queries
|
|
12859
12861
|
* @group Groups
|
|
12860
12862
|
*/
|
|
12861
|
-
declare const GetGroupActivities: ({ groupId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12863
|
+
declare const GetGroupActivities: ({ groupId, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetGroupActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
12862
12864
|
/**
|
|
12863
12865
|
* @category Hooks
|
|
12864
12866
|
* @group Groups
|
|
12865
12867
|
*/
|
|
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>>;
|
|
12868
|
+
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
12869
|
|
|
12868
12870
|
/**
|
|
12869
12871
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -11997,15 +11997,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
|
|
|
11997
11997
|
};
|
|
11998
11998
|
|
|
11999
11999
|
// src/queries/events/useGetEventActivities.ts
|
|
12000
|
-
var EVENT_ACTIVITIES_QUERY_KEY = (eventId) =>
|
|
12001
|
-
...EVENT_QUERY_KEY(eventId),
|
|
12002
|
-
|
|
12003
|
-
|
|
12000
|
+
var EVENT_ACTIVITIES_QUERY_KEY = (eventId, featured) => {
|
|
12001
|
+
const key = [...EVENT_QUERY_KEY(eventId), "ACTIVITIES"];
|
|
12002
|
+
if (featured) {
|
|
12003
|
+
key.push("FEATURED");
|
|
12004
|
+
}
|
|
12005
|
+
return key;
|
|
12006
|
+
};
|
|
12004
12007
|
var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
12005
12008
|
client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
12006
12009
|
};
|
|
12007
12010
|
var GetEventActivities = async ({
|
|
12008
12011
|
eventId,
|
|
12012
|
+
featured,
|
|
12009
12013
|
pageParam,
|
|
12010
12014
|
pageSize,
|
|
12011
12015
|
orderBy,
|
|
@@ -12018,16 +12022,18 @@ var GetEventActivities = async ({
|
|
|
12018
12022
|
page: pageParam || void 0,
|
|
12019
12023
|
pageSize: pageSize || void 0,
|
|
12020
12024
|
orderBy: orderBy || void 0,
|
|
12021
|
-
search: search || void 0
|
|
12025
|
+
search: search || void 0,
|
|
12026
|
+
featured: featured || void 0
|
|
12022
12027
|
}
|
|
12023
12028
|
});
|
|
12024
12029
|
return data;
|
|
12025
12030
|
};
|
|
12026
|
-
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
12031
|
+
var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
|
|
12027
12032
|
return useConnectedInfiniteQuery(
|
|
12028
|
-
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
12033
|
+
EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
|
|
12029
12034
|
(params2) => GetEventActivities({
|
|
12030
12035
|
eventId,
|
|
12036
|
+
featured,
|
|
12031
12037
|
...params2
|
|
12032
12038
|
}),
|
|
12033
12039
|
params,
|
|
@@ -12333,15 +12339,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
|
|
|
12333
12339
|
};
|
|
12334
12340
|
|
|
12335
12341
|
// src/queries/groups/useGetGroupActivities.ts
|
|
12336
|
-
var GROUP_ACTIVITIES_QUERY_KEY = (groupId) =>
|
|
12337
|
-
...GROUP_QUERY_KEY(groupId),
|
|
12338
|
-
|
|
12339
|
-
|
|
12342
|
+
var GROUP_ACTIVITIES_QUERY_KEY = (groupId, featured) => {
|
|
12343
|
+
const key = [...GROUP_QUERY_KEY(groupId), "ACTIVITIES"];
|
|
12344
|
+
if (featured) {
|
|
12345
|
+
key.push("FEATURED");
|
|
12346
|
+
}
|
|
12347
|
+
return key;
|
|
12348
|
+
};
|
|
12340
12349
|
var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
12341
12350
|
client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
12342
12351
|
};
|
|
12343
12352
|
var GetGroupActivities = async ({
|
|
12344
12353
|
groupId,
|
|
12354
|
+
featured,
|
|
12345
12355
|
pageParam,
|
|
12346
12356
|
pageSize,
|
|
12347
12357
|
orderBy,
|
|
@@ -12354,16 +12364,18 @@ var GetGroupActivities = async ({
|
|
|
12354
12364
|
page: pageParam || void 0,
|
|
12355
12365
|
pageSize: pageSize || void 0,
|
|
12356
12366
|
orderBy: orderBy || void 0,
|
|
12357
|
-
search: search || void 0
|
|
12367
|
+
search: search || void 0,
|
|
12368
|
+
featured: featured || void 0
|
|
12358
12369
|
}
|
|
12359
12370
|
});
|
|
12360
12371
|
return data;
|
|
12361
12372
|
};
|
|
12362
|
-
var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
|
|
12373
|
+
var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
|
|
12363
12374
|
return useConnectedInfiniteQuery(
|
|
12364
|
-
GROUP_ACTIVITIES_QUERY_KEY(groupId),
|
|
12375
|
+
GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
|
|
12365
12376
|
(params2) => GetGroupActivities({
|
|
12366
12377
|
groupId,
|
|
12378
|
+
featured,
|
|
12367
12379
|
...params2
|
|
12368
12380
|
}),
|
|
12369
12381
|
params,
|