@connectedxm/admin 2.8.14 → 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 +36 -19
- package/dist/index.d.cts +17 -9
- package/dist/index.d.ts +17 -9
- package/dist/index.js +36 -19
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4341,11 +4341,14 @@ var useGetAccountTiers = (accountId = "", type, params = {}, options = {}) => {
|
|
|
4341
4341
|
};
|
|
4342
4342
|
|
|
4343
4343
|
// src/queries/activities/useGetActivities.ts
|
|
4344
|
-
var ACTIVITIES_QUERY_KEY = (moderation) => {
|
|
4344
|
+
var ACTIVITIES_QUERY_KEY = (moderation, featured) => {
|
|
4345
4345
|
const key = ["ACTIVITIES"];
|
|
4346
4346
|
if (moderation) {
|
|
4347
4347
|
key.push(moderation);
|
|
4348
4348
|
}
|
|
4349
|
+
if (featured) {
|
|
4350
|
+
key.push("FEATURED");
|
|
4351
|
+
}
|
|
4349
4352
|
return key;
|
|
4350
4353
|
};
|
|
4351
4354
|
var SET_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -4353,6 +4356,7 @@ var SET_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
4353
4356
|
};
|
|
4354
4357
|
var GetActivities = async ({
|
|
4355
4358
|
moderation,
|
|
4359
|
+
featured,
|
|
4356
4360
|
pageParam,
|
|
4357
4361
|
pageSize,
|
|
4358
4362
|
orderBy,
|
|
@@ -4366,15 +4370,16 @@ var GetActivities = async ({
|
|
|
4366
4370
|
pageSize: pageSize || void 0,
|
|
4367
4371
|
orderBy: orderBy || void 0,
|
|
4368
4372
|
search: search || void 0,
|
|
4369
|
-
moderation: moderation || void 0
|
|
4373
|
+
moderation: moderation || void 0,
|
|
4374
|
+
featured: featured || void 0
|
|
4370
4375
|
}
|
|
4371
4376
|
});
|
|
4372
4377
|
return data;
|
|
4373
4378
|
};
|
|
4374
|
-
var useGetActivities = (moderation, params = {}, options = {}) => {
|
|
4379
|
+
var useGetActivities = (moderation, featured, params = {}, options = {}) => {
|
|
4375
4380
|
return useConnectedInfiniteQuery(
|
|
4376
|
-
ACTIVITIES_QUERY_KEY(moderation),
|
|
4377
|
-
(params2) => GetActivities({ ...params2, moderation }),
|
|
4381
|
+
ACTIVITIES_QUERY_KEY(moderation, featured),
|
|
4382
|
+
(params2) => GetActivities({ ...params2, moderation, featured }),
|
|
4378
4383
|
params,
|
|
4379
4384
|
options,
|
|
4380
4385
|
"activities"
|
|
@@ -15020,15 +15025,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
|
|
|
15020
15025
|
};
|
|
15021
15026
|
|
|
15022
15027
|
// src/queries/events/useGetEventActivities.ts
|
|
15023
|
-
var EVENT_ACTIVITIES_QUERY_KEY = (eventId) =>
|
|
15024
|
-
...EVENT_QUERY_KEY(eventId),
|
|
15025
|
-
|
|
15026
|
-
|
|
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
|
+
};
|
|
15027
15035
|
var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
15028
15036
|
client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
15029
15037
|
};
|
|
15030
15038
|
var GetEventActivities = async ({
|
|
15031
15039
|
eventId,
|
|
15040
|
+
featured,
|
|
15032
15041
|
pageParam,
|
|
15033
15042
|
pageSize,
|
|
15034
15043
|
orderBy,
|
|
@@ -15041,16 +15050,18 @@ var GetEventActivities = async ({
|
|
|
15041
15050
|
page: pageParam || void 0,
|
|
15042
15051
|
pageSize: pageSize || void 0,
|
|
15043
15052
|
orderBy: orderBy || void 0,
|
|
15044
|
-
search: search || void 0
|
|
15053
|
+
search: search || void 0,
|
|
15054
|
+
featured: featured || void 0
|
|
15045
15055
|
}
|
|
15046
15056
|
});
|
|
15047
15057
|
return data;
|
|
15048
15058
|
};
|
|
15049
|
-
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
15059
|
+
var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
|
|
15050
15060
|
return useConnectedInfiniteQuery(
|
|
15051
|
-
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
15061
|
+
EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
|
|
15052
15062
|
(params2) => GetEventActivities({
|
|
15053
15063
|
eventId,
|
|
15064
|
+
featured,
|
|
15054
15065
|
...params2
|
|
15055
15066
|
}),
|
|
15056
15067
|
params,
|
|
@@ -15356,15 +15367,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
|
|
|
15356
15367
|
};
|
|
15357
15368
|
|
|
15358
15369
|
// src/queries/groups/useGetGroupActivities.ts
|
|
15359
|
-
var GROUP_ACTIVITIES_QUERY_KEY = (groupId) =>
|
|
15360
|
-
...GROUP_QUERY_KEY(groupId),
|
|
15361
|
-
|
|
15362
|
-
|
|
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
|
+
};
|
|
15363
15377
|
var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
15364
15378
|
client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
15365
15379
|
};
|
|
15366
15380
|
var GetGroupActivities = async ({
|
|
15367
15381
|
groupId,
|
|
15382
|
+
featured,
|
|
15368
15383
|
pageParam,
|
|
15369
15384
|
pageSize,
|
|
15370
15385
|
orderBy,
|
|
@@ -15377,16 +15392,18 @@ var GetGroupActivities = async ({
|
|
|
15377
15392
|
page: pageParam || void 0,
|
|
15378
15393
|
pageSize: pageSize || void 0,
|
|
15379
15394
|
orderBy: orderBy || void 0,
|
|
15380
|
-
search: search || void 0
|
|
15395
|
+
search: search || void 0,
|
|
15396
|
+
featured: featured || void 0
|
|
15381
15397
|
}
|
|
15382
15398
|
});
|
|
15383
15399
|
return data;
|
|
15384
15400
|
};
|
|
15385
|
-
var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
|
|
15401
|
+
var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
|
|
15386
15402
|
return useConnectedInfiniteQuery(
|
|
15387
|
-
GROUP_ACTIVITIES_QUERY_KEY(groupId),
|
|
15403
|
+
GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
|
|
15388
15404
|
(params2) => GetGroupActivities({
|
|
15389
15405
|
groupId,
|
|
15406
|
+
featured,
|
|
15390
15407
|
...params2
|
|
15391
15408
|
}),
|
|
15392
15409
|
params,
|
package/dist/index.d.cts
CHANGED
|
@@ -375,6 +375,7 @@ declare enum ModerationStatus {
|
|
|
375
375
|
interface BaseActivity {
|
|
376
376
|
id: string;
|
|
377
377
|
message: string;
|
|
378
|
+
featured: boolean;
|
|
378
379
|
giphyId: string | null;
|
|
379
380
|
imageId: string | null;
|
|
380
381
|
image: BaseImage | null;
|
|
@@ -3611,6 +3612,7 @@ type ActivityEntityInputs = MentionInputs | LinkInputs | InterestInputs | Segmen
|
|
|
3611
3612
|
interface ActivityCreateInputs {
|
|
3612
3613
|
message: string;
|
|
3613
3614
|
entities?: ActivityEntityInputs[] | null;
|
|
3615
|
+
featured?: boolean;
|
|
3614
3616
|
imageId?: string | null;
|
|
3615
3617
|
videoId?: string | null;
|
|
3616
3618
|
eventId?: string | null;
|
|
@@ -3622,6 +3624,7 @@ interface ActivityUpdateInputs {
|
|
|
3622
3624
|
message?: string | null;
|
|
3623
3625
|
entities?: ActivityEntityInputs[] | null;
|
|
3624
3626
|
moderation?: keyof typeof ModerationStatus | null;
|
|
3627
|
+
featured?: boolean;
|
|
3625
3628
|
imageId?: string | null;
|
|
3626
3629
|
videoId?: string | null;
|
|
3627
3630
|
createdAt?: string | null;
|
|
@@ -4089,12 +4092,14 @@ interface EventPassCreateInputs {
|
|
|
4089
4092
|
status?: PurchaseStatus | null;
|
|
4090
4093
|
location?: string | null;
|
|
4091
4094
|
ticketId?: string | null;
|
|
4095
|
+
usedAt?: string | null;
|
|
4092
4096
|
}
|
|
4093
4097
|
interface EventPassUpdateInputs {
|
|
4094
4098
|
status?: PurchaseStatus | null;
|
|
4095
4099
|
location?: string | null;
|
|
4096
4100
|
ticketId?: string | null;
|
|
4097
4101
|
couponId?: string | null;
|
|
4102
|
+
usedAt?: string | null;
|
|
4098
4103
|
}
|
|
4099
4104
|
interface EventAttendeeUpdateInputs {
|
|
4100
4105
|
}
|
|
@@ -6275,7 +6280,7 @@ declare const useGetAccounts: (accountType?: "account" | "team", params?: Omit<I
|
|
|
6275
6280
|
* @category Keys
|
|
6276
6281
|
* @group Activities
|
|
6277
6282
|
*/
|
|
6278
|
-
declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus) => string[];
|
|
6283
|
+
declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus, featured?: true) => string[];
|
|
6279
6284
|
/**
|
|
6280
6285
|
* @category Setters
|
|
6281
6286
|
* @group Activities
|
|
@@ -6283,17 +6288,18 @@ declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus)
|
|
|
6283
6288
|
declare const SET_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetActivities>>) => void;
|
|
6284
6289
|
interface GetActivitiesProps extends InfiniteQueryParams {
|
|
6285
6290
|
moderation?: keyof typeof ModerationStatus;
|
|
6291
|
+
featured?: true;
|
|
6286
6292
|
}
|
|
6287
6293
|
/**
|
|
6288
6294
|
* @category Queries
|
|
6289
6295
|
* @group Activities
|
|
6290
6296
|
*/
|
|
6291
|
-
declare const GetActivities: ({ moderation, pageParam, pageSize, orderBy, search, adminApiParams, }: GetActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
6297
|
+
declare const GetActivities: ({ moderation, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
6292
6298
|
/**
|
|
6293
6299
|
* @category Hooks
|
|
6294
6300
|
* @group Activities
|
|
6295
6301
|
*/
|
|
6296
|
-
declare const useGetActivities: (moderation?: keyof typeof ModerationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
6302
|
+
declare const useGetActivities: (moderation?: keyof typeof ModerationStatus, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
6297
6303
|
|
|
6298
6304
|
/**
|
|
6299
6305
|
* @category Keys
|
|
@@ -12623,7 +12629,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
|
|
|
12623
12629
|
* @category Keys
|
|
12624
12630
|
* @event Events
|
|
12625
12631
|
*/
|
|
12626
|
-
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
12632
|
+
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
|
|
12627
12633
|
/**
|
|
12628
12634
|
* @category Setters
|
|
12629
12635
|
* @event Events
|
|
@@ -12631,17 +12637,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
|
12631
12637
|
declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
|
|
12632
12638
|
interface GetEventActivitiesProps extends InfiniteQueryParams {
|
|
12633
12639
|
eventId: string;
|
|
12640
|
+
featured?: true;
|
|
12634
12641
|
}
|
|
12635
12642
|
/**
|
|
12636
12643
|
* @category Queries
|
|
12637
12644
|
* @event Events
|
|
12638
12645
|
*/
|
|
12639
|
-
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[]>>;
|
|
12640
12647
|
/**
|
|
12641
12648
|
* @category Hooks
|
|
12642
12649
|
* @event Events
|
|
12643
12650
|
*/
|
|
12644
|
-
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>>;
|
|
12645
12652
|
|
|
12646
12653
|
/**
|
|
12647
12654
|
* @category Keys
|
|
@@ -12839,7 +12846,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
|
|
|
12839
12846
|
* @category Keys
|
|
12840
12847
|
* @group Groups
|
|
12841
12848
|
*/
|
|
12842
|
-
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
12849
|
+
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
|
|
12843
12850
|
/**
|
|
12844
12851
|
* @category Setters
|
|
12845
12852
|
* @group Groups
|
|
@@ -12847,17 +12854,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
|
12847
12854
|
declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
|
|
12848
12855
|
interface GetGroupActivitiesProps extends InfiniteQueryParams {
|
|
12849
12856
|
groupId: string;
|
|
12857
|
+
featured?: true;
|
|
12850
12858
|
}
|
|
12851
12859
|
/**
|
|
12852
12860
|
* @category Queries
|
|
12853
12861
|
* @group Groups
|
|
12854
12862
|
*/
|
|
12855
|
-
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[]>>;
|
|
12856
12864
|
/**
|
|
12857
12865
|
* @category Hooks
|
|
12858
12866
|
* @group Groups
|
|
12859
12867
|
*/
|
|
12860
|
-
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>>;
|
|
12861
12869
|
|
|
12862
12870
|
/**
|
|
12863
12871
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -375,6 +375,7 @@ declare enum ModerationStatus {
|
|
|
375
375
|
interface BaseActivity {
|
|
376
376
|
id: string;
|
|
377
377
|
message: string;
|
|
378
|
+
featured: boolean;
|
|
378
379
|
giphyId: string | null;
|
|
379
380
|
imageId: string | null;
|
|
380
381
|
image: BaseImage | null;
|
|
@@ -3611,6 +3612,7 @@ type ActivityEntityInputs = MentionInputs | LinkInputs | InterestInputs | Segmen
|
|
|
3611
3612
|
interface ActivityCreateInputs {
|
|
3612
3613
|
message: string;
|
|
3613
3614
|
entities?: ActivityEntityInputs[] | null;
|
|
3615
|
+
featured?: boolean;
|
|
3614
3616
|
imageId?: string | null;
|
|
3615
3617
|
videoId?: string | null;
|
|
3616
3618
|
eventId?: string | null;
|
|
@@ -3622,6 +3624,7 @@ interface ActivityUpdateInputs {
|
|
|
3622
3624
|
message?: string | null;
|
|
3623
3625
|
entities?: ActivityEntityInputs[] | null;
|
|
3624
3626
|
moderation?: keyof typeof ModerationStatus | null;
|
|
3627
|
+
featured?: boolean;
|
|
3625
3628
|
imageId?: string | null;
|
|
3626
3629
|
videoId?: string | null;
|
|
3627
3630
|
createdAt?: string | null;
|
|
@@ -4089,12 +4092,14 @@ interface EventPassCreateInputs {
|
|
|
4089
4092
|
status?: PurchaseStatus | null;
|
|
4090
4093
|
location?: string | null;
|
|
4091
4094
|
ticketId?: string | null;
|
|
4095
|
+
usedAt?: string | null;
|
|
4092
4096
|
}
|
|
4093
4097
|
interface EventPassUpdateInputs {
|
|
4094
4098
|
status?: PurchaseStatus | null;
|
|
4095
4099
|
location?: string | null;
|
|
4096
4100
|
ticketId?: string | null;
|
|
4097
4101
|
couponId?: string | null;
|
|
4102
|
+
usedAt?: string | null;
|
|
4098
4103
|
}
|
|
4099
4104
|
interface EventAttendeeUpdateInputs {
|
|
4100
4105
|
}
|
|
@@ -6275,7 +6280,7 @@ declare const useGetAccounts: (accountType?: "account" | "team", params?: Omit<I
|
|
|
6275
6280
|
* @category Keys
|
|
6276
6281
|
* @group Activities
|
|
6277
6282
|
*/
|
|
6278
|
-
declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus) => string[];
|
|
6283
|
+
declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus, featured?: true) => string[];
|
|
6279
6284
|
/**
|
|
6280
6285
|
* @category Setters
|
|
6281
6286
|
* @group Activities
|
|
@@ -6283,17 +6288,18 @@ declare const ACTIVITIES_QUERY_KEY: (moderation?: keyof typeof ModerationStatus)
|
|
|
6283
6288
|
declare const SET_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetActivities>>) => void;
|
|
6284
6289
|
interface GetActivitiesProps extends InfiniteQueryParams {
|
|
6285
6290
|
moderation?: keyof typeof ModerationStatus;
|
|
6291
|
+
featured?: true;
|
|
6286
6292
|
}
|
|
6287
6293
|
/**
|
|
6288
6294
|
* @category Queries
|
|
6289
6295
|
* @group Activities
|
|
6290
6296
|
*/
|
|
6291
|
-
declare const GetActivities: ({ moderation, pageParam, pageSize, orderBy, search, adminApiParams, }: GetActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
6297
|
+
declare const GetActivities: ({ moderation, featured, pageParam, pageSize, orderBy, search, adminApiParams, }: GetActivitiesProps) => Promise<ConnectedXMResponse<Activity[]>>;
|
|
6292
6298
|
/**
|
|
6293
6299
|
* @category Hooks
|
|
6294
6300
|
* @group Activities
|
|
6295
6301
|
*/
|
|
6296
|
-
declare const useGetActivities: (moderation?: keyof typeof ModerationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
6302
|
+
declare const useGetActivities: (moderation?: keyof typeof ModerationStatus, featured?: true, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetActivities>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Activity[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
6297
6303
|
|
|
6298
6304
|
/**
|
|
6299
6305
|
* @category Keys
|
|
@@ -12623,7 +12629,7 @@ declare const useGetEvent: (eventId?: string, options?: SingleQueryOptions<Retur
|
|
|
12623
12629
|
* @category Keys
|
|
12624
12630
|
* @event Events
|
|
12625
12631
|
*/
|
|
12626
|
-
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
12632
|
+
declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string, featured?: true) => string[];
|
|
12627
12633
|
/**
|
|
12628
12634
|
* @category Setters
|
|
12629
12635
|
* @event Events
|
|
@@ -12631,17 +12637,18 @@ declare const EVENT_ACTIVITIES_QUERY_KEY: (eventId: string) => string[];
|
|
|
12631
12637
|
declare const SET_EVENT_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventActivities>>) => void;
|
|
12632
12638
|
interface GetEventActivitiesProps extends InfiniteQueryParams {
|
|
12633
12639
|
eventId: string;
|
|
12640
|
+
featured?: true;
|
|
12634
12641
|
}
|
|
12635
12642
|
/**
|
|
12636
12643
|
* @category Queries
|
|
12637
12644
|
* @event Events
|
|
12638
12645
|
*/
|
|
12639
|
-
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[]>>;
|
|
12640
12647
|
/**
|
|
12641
12648
|
* @category Hooks
|
|
12642
12649
|
* @event Events
|
|
12643
12650
|
*/
|
|
12644
|
-
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>>;
|
|
12645
12652
|
|
|
12646
12653
|
/**
|
|
12647
12654
|
* @category Keys
|
|
@@ -12839,7 +12846,7 @@ declare const useGetGroup: (groupId?: string, options?: SingleQueryOptions<Retur
|
|
|
12839
12846
|
* @category Keys
|
|
12840
12847
|
* @group Groups
|
|
12841
12848
|
*/
|
|
12842
|
-
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
12849
|
+
declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string, featured?: true) => string[];
|
|
12843
12850
|
/**
|
|
12844
12851
|
* @category Setters
|
|
12845
12852
|
* @group Groups
|
|
@@ -12847,17 +12854,18 @@ declare const GROUP_ACTIVITIES_QUERY_KEY: (groupId: string) => string[];
|
|
|
12847
12854
|
declare const SET_GROUP_ACTIVITIES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof GROUP_ACTIVITIES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetGroupActivities>>) => void;
|
|
12848
12855
|
interface GetGroupActivitiesProps extends InfiniteQueryParams {
|
|
12849
12856
|
groupId: string;
|
|
12857
|
+
featured?: true;
|
|
12850
12858
|
}
|
|
12851
12859
|
/**
|
|
12852
12860
|
* @category Queries
|
|
12853
12861
|
* @group Groups
|
|
12854
12862
|
*/
|
|
12855
|
-
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[]>>;
|
|
12856
12864
|
/**
|
|
12857
12865
|
* @category Hooks
|
|
12858
12866
|
* @group Groups
|
|
12859
12867
|
*/
|
|
12860
|
-
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>>;
|
|
12861
12869
|
|
|
12862
12870
|
/**
|
|
12863
12871
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -1313,11 +1313,14 @@ var useGetAccountTiers = (accountId = "", type, params = {}, options = {}) => {
|
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
1315
1315
|
// src/queries/activities/useGetActivities.ts
|
|
1316
|
-
var ACTIVITIES_QUERY_KEY = (moderation) => {
|
|
1316
|
+
var ACTIVITIES_QUERY_KEY = (moderation, featured) => {
|
|
1317
1317
|
const key = ["ACTIVITIES"];
|
|
1318
1318
|
if (moderation) {
|
|
1319
1319
|
key.push(moderation);
|
|
1320
1320
|
}
|
|
1321
|
+
if (featured) {
|
|
1322
|
+
key.push("FEATURED");
|
|
1323
|
+
}
|
|
1321
1324
|
return key;
|
|
1322
1325
|
};
|
|
1323
1326
|
var SET_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -1325,6 +1328,7 @@ var SET_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
1325
1328
|
};
|
|
1326
1329
|
var GetActivities = async ({
|
|
1327
1330
|
moderation,
|
|
1331
|
+
featured,
|
|
1328
1332
|
pageParam,
|
|
1329
1333
|
pageSize,
|
|
1330
1334
|
orderBy,
|
|
@@ -1338,15 +1342,16 @@ var GetActivities = async ({
|
|
|
1338
1342
|
pageSize: pageSize || void 0,
|
|
1339
1343
|
orderBy: orderBy || void 0,
|
|
1340
1344
|
search: search || void 0,
|
|
1341
|
-
moderation: moderation || void 0
|
|
1345
|
+
moderation: moderation || void 0,
|
|
1346
|
+
featured: featured || void 0
|
|
1342
1347
|
}
|
|
1343
1348
|
});
|
|
1344
1349
|
return data;
|
|
1345
1350
|
};
|
|
1346
|
-
var useGetActivities = (moderation, params = {}, options = {}) => {
|
|
1351
|
+
var useGetActivities = (moderation, featured, params = {}, options = {}) => {
|
|
1347
1352
|
return useConnectedInfiniteQuery(
|
|
1348
|
-
ACTIVITIES_QUERY_KEY(moderation),
|
|
1349
|
-
(params2) => GetActivities({ ...params2, moderation }),
|
|
1353
|
+
ACTIVITIES_QUERY_KEY(moderation, featured),
|
|
1354
|
+
(params2) => GetActivities({ ...params2, moderation, featured }),
|
|
1350
1355
|
params,
|
|
1351
1356
|
options,
|
|
1352
1357
|
"activities"
|
|
@@ -11992,15 +11997,19 @@ var useGetEventTranslation = (eventId = "", locale = "", options = {}) => {
|
|
|
11992
11997
|
};
|
|
11993
11998
|
|
|
11994
11999
|
// src/queries/events/useGetEventActivities.ts
|
|
11995
|
-
var EVENT_ACTIVITIES_QUERY_KEY = (eventId) =>
|
|
11996
|
-
...EVENT_QUERY_KEY(eventId),
|
|
11997
|
-
|
|
11998
|
-
|
|
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
|
+
};
|
|
11999
12007
|
var SET_EVENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
12000
12008
|
client.setQueryData(EVENT_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
12001
12009
|
};
|
|
12002
12010
|
var GetEventActivities = async ({
|
|
12003
12011
|
eventId,
|
|
12012
|
+
featured,
|
|
12004
12013
|
pageParam,
|
|
12005
12014
|
pageSize,
|
|
12006
12015
|
orderBy,
|
|
@@ -12013,16 +12022,18 @@ var GetEventActivities = async ({
|
|
|
12013
12022
|
page: pageParam || void 0,
|
|
12014
12023
|
pageSize: pageSize || void 0,
|
|
12015
12024
|
orderBy: orderBy || void 0,
|
|
12016
|
-
search: search || void 0
|
|
12025
|
+
search: search || void 0,
|
|
12026
|
+
featured: featured || void 0
|
|
12017
12027
|
}
|
|
12018
12028
|
});
|
|
12019
12029
|
return data;
|
|
12020
12030
|
};
|
|
12021
|
-
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
12031
|
+
var useGetEventActivities = (eventId = "", featured, params = {}, options = {}) => {
|
|
12022
12032
|
return useConnectedInfiniteQuery(
|
|
12023
|
-
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
12033
|
+
EVENT_ACTIVITIES_QUERY_KEY(eventId, featured),
|
|
12024
12034
|
(params2) => GetEventActivities({
|
|
12025
12035
|
eventId,
|
|
12036
|
+
featured,
|
|
12026
12037
|
...params2
|
|
12027
12038
|
}),
|
|
12028
12039
|
params,
|
|
@@ -12328,15 +12339,19 @@ var useGetGroupTranslation = (groupId = "", locale = "", options = {}) => {
|
|
|
12328
12339
|
};
|
|
12329
12340
|
|
|
12330
12341
|
// src/queries/groups/useGetGroupActivities.ts
|
|
12331
|
-
var GROUP_ACTIVITIES_QUERY_KEY = (groupId) =>
|
|
12332
|
-
...GROUP_QUERY_KEY(groupId),
|
|
12333
|
-
|
|
12334
|
-
|
|
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
|
+
};
|
|
12335
12349
|
var SET_GROUP_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
12336
12350
|
client.setQueryData(GROUP_ACTIVITIES_QUERY_KEY(...keyParams), response);
|
|
12337
12351
|
};
|
|
12338
12352
|
var GetGroupActivities = async ({
|
|
12339
12353
|
groupId,
|
|
12354
|
+
featured,
|
|
12340
12355
|
pageParam,
|
|
12341
12356
|
pageSize,
|
|
12342
12357
|
orderBy,
|
|
@@ -12349,16 +12364,18 @@ var GetGroupActivities = async ({
|
|
|
12349
12364
|
page: pageParam || void 0,
|
|
12350
12365
|
pageSize: pageSize || void 0,
|
|
12351
12366
|
orderBy: orderBy || void 0,
|
|
12352
|
-
search: search || void 0
|
|
12367
|
+
search: search || void 0,
|
|
12368
|
+
featured: featured || void 0
|
|
12353
12369
|
}
|
|
12354
12370
|
});
|
|
12355
12371
|
return data;
|
|
12356
12372
|
};
|
|
12357
|
-
var useGetGroupActivities = (groupId = "", params = {}, options = {}) => {
|
|
12373
|
+
var useGetGroupActivities = (groupId = "", featured, params = {}, options = {}) => {
|
|
12358
12374
|
return useConnectedInfiniteQuery(
|
|
12359
|
-
GROUP_ACTIVITIES_QUERY_KEY(groupId),
|
|
12375
|
+
GROUP_ACTIVITIES_QUERY_KEY(groupId, featured),
|
|
12360
12376
|
(params2) => GetGroupActivities({
|
|
12361
12377
|
groupId,
|
|
12378
|
+
featured,
|
|
12362
12379
|
...params2
|
|
12363
12380
|
}),
|
|
12364
12381
|
params,
|