@connectedxm/client 7.0.11 → 7.0.13
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.d.ts +36 -13
- package/dist/index.js +64 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3730,26 +3730,47 @@ interface RemoveLoginParams extends MutationParams {
|
|
|
3730
3730
|
declare const RemoveLogin: ({ username, clientApiParams, queryClient, }: RemoveLoginParams) => Promise<ConnectedXMResponse<null>>;
|
|
3731
3731
|
declare const useRemoveLogin: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveLogin>>, Omit<RemoveLoginParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<RemoveLoginParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3732
3732
|
|
|
3733
|
+
/**
|
|
3734
|
+
* @category Params
|
|
3735
|
+
* @group Meetings
|
|
3736
|
+
*/
|
|
3733
3737
|
interface JoinMeetingViaCodeParams extends MutationParams {
|
|
3734
3738
|
meetingId: string;
|
|
3735
3739
|
code: string;
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3740
|
+
simulateRateLimit?: boolean;
|
|
3741
|
+
}
|
|
3742
|
+
/**
|
|
3743
|
+
* @category Methods
|
|
3744
|
+
* @group Meetings
|
|
3745
|
+
*/
|
|
3746
|
+
declare const JoinMeetingViaCode: ({ meetingId, code, simulateRateLimit, clientApiParams, }: JoinMeetingViaCodeParams) => Promise<ConnectedXMResponse<string>>;
|
|
3747
|
+
/**
|
|
3748
|
+
* @category Mutations
|
|
3749
|
+
* @group Meetings
|
|
3750
|
+
*/
|
|
3751
|
+
declare const useJoinMeetingViaCode: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaCode>>, Omit<JoinMeetingViaCodeParams, "queryClient" | "clientApiParams">>, "mutationFn"> & {
|
|
3752
|
+
simulateRateLimit?: boolean;
|
|
3753
|
+
}) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaCodeParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3739
3754
|
|
|
3740
3755
|
interface JoinMeetingViaEventParams extends MutationParams {
|
|
3741
3756
|
meetingId: string;
|
|
3742
3757
|
eventId: string;
|
|
3758
|
+
simulateRateLimit?: boolean;
|
|
3743
3759
|
}
|
|
3744
|
-
declare const JoinMeetingViaEvent: ({ meetingId, eventId, clientApiParams, }: JoinMeetingViaEventParams) => Promise<ConnectedXMResponse<string>>;
|
|
3745
|
-
declare const useJoinMeetingViaEvent: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaEvent>>, Omit<JoinMeetingViaEventParams, "queryClient" | "clientApiParams">>, "mutationFn">
|
|
3760
|
+
declare const JoinMeetingViaEvent: ({ meetingId, eventId, simulateRateLimit, clientApiParams, }: JoinMeetingViaEventParams) => Promise<ConnectedXMResponse<string>>;
|
|
3761
|
+
declare const useJoinMeetingViaEvent: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaEvent>>, Omit<JoinMeetingViaEventParams, "queryClient" | "clientApiParams">>, "mutationFn"> & {
|
|
3762
|
+
simulateRateLimit?: boolean;
|
|
3763
|
+
}) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaEventParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3746
3764
|
|
|
3747
3765
|
interface JoinMeetingViaGroupParams extends MutationParams {
|
|
3748
3766
|
meetingId: string;
|
|
3749
3767
|
groupId: string;
|
|
3768
|
+
simulateRateLimit?: boolean;
|
|
3750
3769
|
}
|
|
3751
|
-
declare const JoinMeetingViaGroup: ({ meetingId, groupId, clientApiParams, }: JoinMeetingViaGroupParams) => Promise<ConnectedXMResponse<string>>;
|
|
3752
|
-
declare const useJoinMeetingViaGroup: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaGroup>>, Omit<JoinMeetingViaGroupParams, "queryClient" | "clientApiParams">>, "mutationFn">
|
|
3770
|
+
declare const JoinMeetingViaGroup: ({ meetingId, groupId, simulateRateLimit, clientApiParams, }: JoinMeetingViaGroupParams) => Promise<ConnectedXMResponse<string>>;
|
|
3771
|
+
declare const useJoinMeetingViaGroup: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaGroup>>, Omit<JoinMeetingViaGroupParams, "queryClient" | "clientApiParams">>, "mutationFn"> & {
|
|
3772
|
+
simulateRateLimit?: boolean;
|
|
3773
|
+
}) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaGroupParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3753
3774
|
|
|
3754
3775
|
interface UploadFileParams extends MutationParams {
|
|
3755
3776
|
dataUri: string;
|
|
@@ -4675,23 +4696,25 @@ interface GetEventSponsorshipProps extends SingleQueryParams {
|
|
|
4675
4696
|
declare const GetEventSponsorship: ({ eventId, sponsorshipId, clientApiParams, }: GetEventSponsorshipProps) => Promise<ConnectedXMResponse<EventSponsorship>>;
|
|
4676
4697
|
declare const useGetEventSponsorship: (eventId?: string, sponsorshipId?: string, options?: SingleQueryOptions<ReturnType<typeof GetEventSponsorship>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventSponsorship>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4677
4698
|
|
|
4678
|
-
declare const EVENT_MEDIA_ITEMS_QUERY_KEY: (eventId: string, type?: string) => QueryKey;
|
|
4699
|
+
declare const EVENT_MEDIA_ITEMS_QUERY_KEY: (eventId: string, passId?: string, type?: string) => QueryKey;
|
|
4679
4700
|
declare const SET_EVENT_MEDIA_ITEMS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_MEDIA_ITEMS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventMediaItems>>, baseKeys?: Parameters<typeof GetBaseInfiniteQueryKeys>) => void;
|
|
4680
4701
|
interface GetEventMediaItemsProps extends InfiniteQueryParams {
|
|
4681
4702
|
eventId: string;
|
|
4703
|
+
passId?: string;
|
|
4682
4704
|
type?: "image" | "video" | "file";
|
|
4683
4705
|
}
|
|
4684
|
-
declare const GetEventMediaItems: ({ eventId, type, pageParam, orderBy, search, clientApiParams, }: GetEventMediaItemsProps) => Promise<ConnectedXMResponse<EventMediaItem[]>>;
|
|
4685
|
-
declare const useGetEventMediaItems: (eventId?: string, type?: "image" | "video" | "file", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventMediaItems>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<EventMediaItem[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
4706
|
+
declare const GetEventMediaItems: ({ eventId, passId, type, pageParam, orderBy, search, clientApiParams, }: GetEventMediaItemsProps) => Promise<ConnectedXMResponse<EventMediaItem[]>>;
|
|
4707
|
+
declare const useGetEventMediaItems: (eventId?: string, passId?: string, type?: "image" | "video" | "file", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetEventMediaItems>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<EventMediaItem[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
4686
4708
|
|
|
4687
|
-
declare const EVENT_MEDIA_ITEM_QUERY_KEY: (eventId: string, mediaItemId: string) => QueryKey;
|
|
4709
|
+
declare const EVENT_MEDIA_ITEM_QUERY_KEY: (eventId: string, mediaItemId: string, passId?: string) => QueryKey;
|
|
4688
4710
|
declare const SET_EVENT_IMAGE_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof EVENT_MEDIA_ITEM_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEventMediaItem>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
|
4689
4711
|
interface GetEventMediaItemProps extends SingleQueryParams {
|
|
4690
4712
|
eventId: string;
|
|
4691
4713
|
mediaItemId: string;
|
|
4714
|
+
passId?: string;
|
|
4692
4715
|
}
|
|
4693
|
-
declare const GetEventMediaItem: ({ eventId, mediaItemId, clientApiParams, }: GetEventMediaItemProps) => Promise<ConnectedXMResponse<EventMediaItem>>;
|
|
4694
|
-
declare const useGetEventMediaItem: (eventId: string | undefined, mediaItemId: string, options?: SingleQueryOptions<ReturnType<typeof GetEventMediaItem>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventMediaItem>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4716
|
+
declare const GetEventMediaItem: ({ eventId, mediaItemId, passId, clientApiParams, }: GetEventMediaItemProps) => Promise<ConnectedXMResponse<EventMediaItem>>;
|
|
4717
|
+
declare const useGetEventMediaItem: (eventId: string | undefined, mediaItemId: string, passId?: string, options?: SingleQueryOptions<ReturnType<typeof GetEventMediaItem>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventMediaItem>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
4695
4718
|
|
|
4696
4719
|
declare const MEETING_QUERY_KEY: (meetingId: string) => QueryKey;
|
|
4697
4720
|
declare const SET_MEETING_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof MEETING_QUERY_KEY>, response: Awaited<ReturnType<typeof GetMeeting>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
package/dist/index.js
CHANGED
|
@@ -3248,8 +3248,11 @@ var useGetEventSponsorship = (eventId = "", sponsorshipId = "", options = {}) =>
|
|
|
3248
3248
|
};
|
|
3249
3249
|
|
|
3250
3250
|
// src/queries/events/useGetEventMediaItems.ts
|
|
3251
|
-
var EVENT_MEDIA_ITEMS_QUERY_KEY = (eventId, type) => {
|
|
3251
|
+
var EVENT_MEDIA_ITEMS_QUERY_KEY = (eventId, passId, type) => {
|
|
3252
3252
|
const key = [...EVENT_QUERY_KEY(eventId), "MEDIA_ITEMS"];
|
|
3253
|
+
if (passId) {
|
|
3254
|
+
key.push(passId);
|
|
3255
|
+
}
|
|
3253
3256
|
if (type) {
|
|
3254
3257
|
key.push(type);
|
|
3255
3258
|
}
|
|
@@ -3266,6 +3269,7 @@ var SET_EVENT_MEDIA_ITEMS_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3266
3269
|
};
|
|
3267
3270
|
var GetEventMediaItems = async ({
|
|
3268
3271
|
eventId,
|
|
3272
|
+
passId,
|
|
3269
3273
|
type,
|
|
3270
3274
|
pageParam,
|
|
3271
3275
|
orderBy,
|
|
@@ -3278,15 +3282,16 @@ var GetEventMediaItems = async ({
|
|
|
3278
3282
|
page: pageParam || void 0,
|
|
3279
3283
|
orderBy: orderBy || void 0,
|
|
3280
3284
|
search: search || void 0,
|
|
3285
|
+
passId: passId || void 0,
|
|
3281
3286
|
type: type || void 0
|
|
3282
3287
|
}
|
|
3283
3288
|
});
|
|
3284
3289
|
return data;
|
|
3285
3290
|
};
|
|
3286
|
-
var useGetEventMediaItems = (eventId = "", type, params = {}, options = {}) => {
|
|
3291
|
+
var useGetEventMediaItems = (eventId = "", passId, type, params = {}, options = {}) => {
|
|
3287
3292
|
return useConnectedInfiniteQuery(
|
|
3288
|
-
EVENT_MEDIA_ITEMS_QUERY_KEY(eventId, type),
|
|
3289
|
-
(params2) => GetEventMediaItems({ eventId, type, ...params2 }),
|
|
3293
|
+
EVENT_MEDIA_ITEMS_QUERY_KEY(eventId, passId, type),
|
|
3294
|
+
(params2) => GetEventMediaItems({ eventId, type, passId, ...params2 }),
|
|
3290
3295
|
params,
|
|
3291
3296
|
{
|
|
3292
3297
|
...options,
|
|
@@ -3296,7 +3301,7 @@ var useGetEventMediaItems = (eventId = "", type, params = {}, options = {}) => {
|
|
|
3296
3301
|
};
|
|
3297
3302
|
|
|
3298
3303
|
// src/queries/events/useGetEventMediaItem.ts
|
|
3299
|
-
var EVENT_MEDIA_ITEM_QUERY_KEY = (eventId, mediaItemId) => [...EVENT_MEDIA_ITEMS_QUERY_KEY(eventId), mediaItemId];
|
|
3304
|
+
var EVENT_MEDIA_ITEM_QUERY_KEY = (eventId, mediaItemId, passId) => [...EVENT_MEDIA_ITEMS_QUERY_KEY(eventId, passId), mediaItemId];
|
|
3300
3305
|
var SET_EVENT_IMAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3301
3306
|
client.setQueryData(
|
|
3302
3307
|
[
|
|
@@ -3309,18 +3314,24 @@ var SET_EVENT_IMAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]
|
|
|
3309
3314
|
var GetEventMediaItem = async ({
|
|
3310
3315
|
eventId,
|
|
3311
3316
|
mediaItemId,
|
|
3317
|
+
passId,
|
|
3312
3318
|
clientApiParams
|
|
3313
3319
|
}) => {
|
|
3314
3320
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
3315
3321
|
const { data } = await clientApi.get(
|
|
3316
|
-
`/events/${eventId}/media/${mediaItemId}
|
|
3322
|
+
`/events/${eventId}/media/${mediaItemId}`,
|
|
3323
|
+
{
|
|
3324
|
+
params: {
|
|
3325
|
+
passId: passId || void 0
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3317
3328
|
);
|
|
3318
3329
|
return data;
|
|
3319
3330
|
};
|
|
3320
|
-
var useGetEventMediaItem = (eventId = "", mediaItemId, options = {}) => {
|
|
3331
|
+
var useGetEventMediaItem = (eventId = "", mediaItemId, passId, options = {}) => {
|
|
3321
3332
|
return useConnectedSingleQuery(
|
|
3322
|
-
EVENT_MEDIA_ITEM_QUERY_KEY(eventId, mediaItemId),
|
|
3323
|
-
(params) => GetEventMediaItem({ eventId, mediaItemId, ...params }),
|
|
3333
|
+
EVENT_MEDIA_ITEM_QUERY_KEY(eventId, mediaItemId, passId),
|
|
3334
|
+
(params) => GetEventMediaItem({ eventId, mediaItemId, passId, ...params }),
|
|
3324
3335
|
{
|
|
3325
3336
|
...options,
|
|
3326
3337
|
enabled: !!eventId && !!mediaItemId && (options?.enabled ?? true)
|
|
@@ -7956,7 +7967,9 @@ var useConnectedMutation = (mutation, options) => {
|
|
|
7956
7967
|
),
|
|
7957
7968
|
...options,
|
|
7958
7969
|
onError: (error, variables, onMutateResult, context) => {
|
|
7959
|
-
if (onMutationError
|
|
7970
|
+
if (onMutationError && options?.throwOnError !== false) {
|
|
7971
|
+
onMutationError(error, variables, context);
|
|
7972
|
+
}
|
|
7960
7973
|
if (options?.onError)
|
|
7961
7974
|
options.onError(error, variables, onMutateResult, context);
|
|
7962
7975
|
}
|
|
@@ -11580,46 +11593,81 @@ var useRemoveLogin = (options = {}) => {
|
|
|
11580
11593
|
var JoinMeetingViaCode = async ({
|
|
11581
11594
|
meetingId,
|
|
11582
11595
|
code,
|
|
11596
|
+
simulateRateLimit,
|
|
11583
11597
|
clientApiParams
|
|
11584
11598
|
}) => {
|
|
11585
11599
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11586
|
-
const { data } = await clientApi.get(`/meetings/${meetingId}/code/${code}
|
|
11600
|
+
const { data } = await clientApi.get(`/meetings/${meetingId}/code/${code}`, {
|
|
11601
|
+
params: {
|
|
11602
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11603
|
+
}
|
|
11604
|
+
});
|
|
11587
11605
|
return data;
|
|
11588
11606
|
};
|
|
11589
11607
|
var useJoinMeetingViaCode = (options = {}) => {
|
|
11590
|
-
return useConnectedMutation_default(
|
|
11608
|
+
return useConnectedMutation_default(
|
|
11609
|
+
(params) => JoinMeetingViaCode({
|
|
11610
|
+
...params,
|
|
11611
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11612
|
+
}),
|
|
11613
|
+
options
|
|
11614
|
+
);
|
|
11591
11615
|
};
|
|
11592
11616
|
|
|
11593
11617
|
// src/mutations/meetings/useJoinMeetingViaEvent.tsx
|
|
11594
11618
|
var JoinMeetingViaEvent = async ({
|
|
11595
11619
|
meetingId,
|
|
11596
11620
|
eventId,
|
|
11621
|
+
simulateRateLimit,
|
|
11597
11622
|
clientApiParams
|
|
11598
11623
|
}) => {
|
|
11599
11624
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11600
11625
|
const { data } = await clientApi.get(
|
|
11601
|
-
`/meetings/${meetingId}/event/${eventId}
|
|
11626
|
+
`/meetings/${meetingId}/event/${eventId}`,
|
|
11627
|
+
{
|
|
11628
|
+
params: {
|
|
11629
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11630
|
+
}
|
|
11631
|
+
}
|
|
11602
11632
|
);
|
|
11603
11633
|
return data;
|
|
11604
11634
|
};
|
|
11605
11635
|
var useJoinMeetingViaEvent = (options = {}) => {
|
|
11606
|
-
return useConnectedMutation_default(
|
|
11636
|
+
return useConnectedMutation_default(
|
|
11637
|
+
(params) => JoinMeetingViaEvent({
|
|
11638
|
+
...params,
|
|
11639
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11640
|
+
}),
|
|
11641
|
+
options
|
|
11642
|
+
);
|
|
11607
11643
|
};
|
|
11608
11644
|
|
|
11609
11645
|
// src/mutations/meetings/useJoinMeetingViaGroup.tsx
|
|
11610
11646
|
var JoinMeetingViaGroup = async ({
|
|
11611
11647
|
meetingId,
|
|
11612
11648
|
groupId,
|
|
11649
|
+
simulateRateLimit,
|
|
11613
11650
|
clientApiParams
|
|
11614
11651
|
}) => {
|
|
11615
11652
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11616
11653
|
const { data } = await clientApi.get(
|
|
11617
|
-
`/meetings/${meetingId}/group/${groupId}
|
|
11654
|
+
`/meetings/${meetingId}/group/${groupId}`,
|
|
11655
|
+
{
|
|
11656
|
+
params: {
|
|
11657
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11658
|
+
}
|
|
11659
|
+
}
|
|
11618
11660
|
);
|
|
11619
11661
|
return data;
|
|
11620
11662
|
};
|
|
11621
11663
|
var useJoinMeetingViaGroup = (options = {}) => {
|
|
11622
|
-
return useConnectedMutation_default(
|
|
11664
|
+
return useConnectedMutation_default(
|
|
11665
|
+
(params) => JoinMeetingViaGroup({
|
|
11666
|
+
...params,
|
|
11667
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11668
|
+
}),
|
|
11669
|
+
options
|
|
11670
|
+
);
|
|
11623
11671
|
};
|
|
11624
11672
|
|
|
11625
11673
|
// src/mutations/storage/useUploadFile.ts
|