@connectedxm/client 7.0.11 → 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 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
- declare const JoinMeetingViaCode: ({ meetingId, code, clientApiParams, }: JoinMeetingViaCodeParams) => Promise<ConnectedXMResponse<string>>;
3738
- declare const useJoinMeetingViaCode: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof JoinMeetingViaCode>>, Omit<JoinMeetingViaCodeParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaCodeParams, "queryClient" | "clientApiParams">, unknown>;
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">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaEventParams, "queryClient" | "clientApiParams">, unknown>;
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">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<string>, axios.AxiosError<ConnectedXMResponse<string>, any>, Omit<JoinMeetingViaGroupParams, "queryClient" | "clientApiParams">, unknown>;
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;
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) onMutationError(error, variables, context);
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(JoinMeetingViaCode, options);
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(JoinMeetingViaEvent, options);
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(JoinMeetingViaGroup, options);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "7.0.11",
3
+ "version": "7.0.12",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",