@connectedxm/client 7.0.10 → 7.0.12
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 +43 -21
- package/dist/index.js +44 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -345,20 +345,6 @@ interface Group extends BaseGroup {
|
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
declare const isTypeGroup: (group: BaseGroup | Group) => group is Group;
|
|
348
|
-
interface BaseEvent {
|
|
349
|
-
id: string;
|
|
350
|
-
slug: string;
|
|
351
|
-
name: string;
|
|
352
|
-
shortDescription: string;
|
|
353
|
-
featured: boolean;
|
|
354
|
-
timezone: string | null;
|
|
355
|
-
eventStart: string;
|
|
356
|
-
eventEnd: string;
|
|
357
|
-
image: BaseImage | null;
|
|
358
|
-
squareImage: BaseImage | null;
|
|
359
|
-
series: BaseSeries | null;
|
|
360
|
-
paymentIntegration: BasePaymentIntegration | null;
|
|
361
|
-
}
|
|
362
348
|
interface BasePaymentIntegration {
|
|
363
349
|
id: number;
|
|
364
350
|
currencyCode: string;
|
|
@@ -373,6 +359,19 @@ declare enum EventType {
|
|
|
373
359
|
virtual = "virtual",
|
|
374
360
|
hybrid = "hybrid"
|
|
375
361
|
}
|
|
362
|
+
interface BaseEvent {
|
|
363
|
+
id: string;
|
|
364
|
+
slug: string;
|
|
365
|
+
name: string;
|
|
366
|
+
shortDescription: string;
|
|
367
|
+
featured: boolean;
|
|
368
|
+
timezone: string | null;
|
|
369
|
+
eventStart: string;
|
|
370
|
+
eventEnd: string;
|
|
371
|
+
image: BaseImage | null;
|
|
372
|
+
squareImage: BaseImage | null;
|
|
373
|
+
series: BaseSeries | null;
|
|
374
|
+
}
|
|
376
375
|
interface Event extends BaseEvent {
|
|
377
376
|
eventType: EventType;
|
|
378
377
|
longDescription: string | null;
|
|
@@ -418,6 +417,7 @@ interface Event extends BaseEvent {
|
|
|
418
417
|
options: Record<string, any> | null;
|
|
419
418
|
meeting: BaseMeeting | null;
|
|
420
419
|
streams: BaseStreamInput[];
|
|
420
|
+
paymentIntegration: BasePaymentIntegration | null;
|
|
421
421
|
_count: {
|
|
422
422
|
activations: number;
|
|
423
423
|
sessions: number;
|
|
@@ -441,6 +441,7 @@ interface RegistrationEventDetails extends BaseEvent {
|
|
|
441
441
|
splitPaymentPercentage: number;
|
|
442
442
|
splitPaymentNetDays: number | null;
|
|
443
443
|
splitPaymentDueDate: string | null;
|
|
444
|
+
paymentIntegration: BasePaymentIntegration | null;
|
|
444
445
|
tickets: {
|
|
445
446
|
enableCoupons: boolean;
|
|
446
447
|
}[];
|
|
@@ -3729,26 +3730,47 @@ interface RemoveLoginParams extends MutationParams {
|
|
|
3729
3730
|
declare const RemoveLogin: ({ username, clientApiParams, queryClient, }: RemoveLoginParams) => Promise<ConnectedXMResponse<null>>;
|
|
3730
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>;
|
|
3731
3732
|
|
|
3733
|
+
/**
|
|
3734
|
+
* @category Params
|
|
3735
|
+
* @group Meetings
|
|
3736
|
+
*/
|
|
3732
3737
|
interface JoinMeetingViaCodeParams extends MutationParams {
|
|
3733
3738
|
meetingId: string;
|
|
3734
3739
|
code: string;
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
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>;
|
|
3738
3754
|
|
|
3739
3755
|
interface JoinMeetingViaEventParams extends MutationParams {
|
|
3740
3756
|
meetingId: string;
|
|
3741
3757
|
eventId: string;
|
|
3758
|
+
simulateRateLimit?: boolean;
|
|
3742
3759
|
}
|
|
3743
|
-
declare const JoinMeetingViaEvent: ({ meetingId, eventId, clientApiParams, }: JoinMeetingViaEventParams) => Promise<ConnectedXMResponse<string>>;
|
|
3744
|
-
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>;
|
|
3745
3764
|
|
|
3746
3765
|
interface JoinMeetingViaGroupParams extends MutationParams {
|
|
3747
3766
|
meetingId: string;
|
|
3748
3767
|
groupId: string;
|
|
3768
|
+
simulateRateLimit?: boolean;
|
|
3749
3769
|
}
|
|
3750
|
-
declare const JoinMeetingViaGroup: ({ meetingId, groupId, clientApiParams, }: JoinMeetingViaGroupParams) => Promise<ConnectedXMResponse<string>>;
|
|
3751
|
-
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>;
|
|
3752
3774
|
|
|
3753
3775
|
interface UploadFileParams extends MutationParams {
|
|
3754
3776
|
dataUri: string;
|
package/dist/index.js
CHANGED
|
@@ -7956,7 +7956,9 @@ var useConnectedMutation = (mutation, options) => {
|
|
|
7956
7956
|
),
|
|
7957
7957
|
...options,
|
|
7958
7958
|
onError: (error, variables, onMutateResult, context) => {
|
|
7959
|
-
if (onMutationError
|
|
7959
|
+
if (onMutationError && options?.throwOnError !== false) {
|
|
7960
|
+
onMutationError(error, variables, context);
|
|
7961
|
+
}
|
|
7960
7962
|
if (options?.onError)
|
|
7961
7963
|
options.onError(error, variables, onMutateResult, context);
|
|
7962
7964
|
}
|
|
@@ -11580,46 +11582,81 @@ var useRemoveLogin = (options = {}) => {
|
|
|
11580
11582
|
var JoinMeetingViaCode = async ({
|
|
11581
11583
|
meetingId,
|
|
11582
11584
|
code,
|
|
11585
|
+
simulateRateLimit,
|
|
11583
11586
|
clientApiParams
|
|
11584
11587
|
}) => {
|
|
11585
11588
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11586
|
-
const { data } = await clientApi.get(`/meetings/${meetingId}/code/${code}
|
|
11589
|
+
const { data } = await clientApi.get(`/meetings/${meetingId}/code/${code}`, {
|
|
11590
|
+
params: {
|
|
11591
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11592
|
+
}
|
|
11593
|
+
});
|
|
11587
11594
|
return data;
|
|
11588
11595
|
};
|
|
11589
11596
|
var useJoinMeetingViaCode = (options = {}) => {
|
|
11590
|
-
return useConnectedMutation_default(
|
|
11597
|
+
return useConnectedMutation_default(
|
|
11598
|
+
(params) => JoinMeetingViaCode({
|
|
11599
|
+
...params,
|
|
11600
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11601
|
+
}),
|
|
11602
|
+
options
|
|
11603
|
+
);
|
|
11591
11604
|
};
|
|
11592
11605
|
|
|
11593
11606
|
// src/mutations/meetings/useJoinMeetingViaEvent.tsx
|
|
11594
11607
|
var JoinMeetingViaEvent = async ({
|
|
11595
11608
|
meetingId,
|
|
11596
11609
|
eventId,
|
|
11610
|
+
simulateRateLimit,
|
|
11597
11611
|
clientApiParams
|
|
11598
11612
|
}) => {
|
|
11599
11613
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11600
11614
|
const { data } = await clientApi.get(
|
|
11601
|
-
`/meetings/${meetingId}/event/${eventId}
|
|
11615
|
+
`/meetings/${meetingId}/event/${eventId}`,
|
|
11616
|
+
{
|
|
11617
|
+
params: {
|
|
11618
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11619
|
+
}
|
|
11620
|
+
}
|
|
11602
11621
|
);
|
|
11603
11622
|
return data;
|
|
11604
11623
|
};
|
|
11605
11624
|
var useJoinMeetingViaEvent = (options = {}) => {
|
|
11606
|
-
return useConnectedMutation_default(
|
|
11625
|
+
return useConnectedMutation_default(
|
|
11626
|
+
(params) => JoinMeetingViaEvent({
|
|
11627
|
+
...params,
|
|
11628
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11629
|
+
}),
|
|
11630
|
+
options
|
|
11631
|
+
);
|
|
11607
11632
|
};
|
|
11608
11633
|
|
|
11609
11634
|
// src/mutations/meetings/useJoinMeetingViaGroup.tsx
|
|
11610
11635
|
var JoinMeetingViaGroup = async ({
|
|
11611
11636
|
meetingId,
|
|
11612
11637
|
groupId,
|
|
11638
|
+
simulateRateLimit,
|
|
11613
11639
|
clientApiParams
|
|
11614
11640
|
}) => {
|
|
11615
11641
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
11616
11642
|
const { data } = await clientApi.get(
|
|
11617
|
-
`/meetings/${meetingId}/group/${groupId}
|
|
11643
|
+
`/meetings/${meetingId}/group/${groupId}`,
|
|
11644
|
+
{
|
|
11645
|
+
params: {
|
|
11646
|
+
simulateRateLimit: simulateRateLimit ? "true" : "false"
|
|
11647
|
+
}
|
|
11648
|
+
}
|
|
11618
11649
|
);
|
|
11619
11650
|
return data;
|
|
11620
11651
|
};
|
|
11621
11652
|
var useJoinMeetingViaGroup = (options = {}) => {
|
|
11622
|
-
return useConnectedMutation_default(
|
|
11653
|
+
return useConnectedMutation_default(
|
|
11654
|
+
(params) => JoinMeetingViaGroup({
|
|
11655
|
+
...params,
|
|
11656
|
+
simulateRateLimit: options.simulateRateLimit
|
|
11657
|
+
}),
|
|
11658
|
+
options
|
|
11659
|
+
);
|
|
11623
11660
|
};
|
|
11624
11661
|
|
|
11625
11662
|
// src/mutations/storage/useUploadFile.ts
|