@veltdev/react 4.0.0-beta.3 → 4.0.0-beta.4

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.
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "4.0.0-beta.3";
1
+ export declare const VELT_SDK_VERSION = "4.0.0-beta.4";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,80 +1,80 @@
1
- import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentAnnotationsCountRequest, GetCommentAnnotationsCountResponse, GetCommentAnnotationsRequest, GetCommentAnnotationsResponse, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
1
+ import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CommentRequestQuery, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
2
2
  export declare function useAddCommentAnnotation(): {
3
- addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
3
+ addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
4
4
  };
5
5
  export declare function useApproveCommentAnnotation(): {
6
- approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
6
+ approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
7
7
  };
8
8
  export declare function useRejectCommentAnnotation(): {
9
- rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
9
+ rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
10
10
  };
11
11
  export declare function useSubscribeCommentAnnotation(): {
12
- subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
12
+ subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
13
13
  };
14
14
  export declare function useUnsubscribeCommentAnnotation(): {
15
- unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
15
+ unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
16
16
  };
17
17
  export declare function useDeleteCommentAnnotation(): {
18
- deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
18
+ deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
19
19
  };
20
- export declare function useGetCommentAnnotations(getCommentAnnotationsRequest?: GetCommentAnnotationsRequest): GetCommentAnnotationsResponse;
21
- export declare function useCommentAnnotationsCount(getCommentAnnotationsCountRequest?: GetCommentAnnotationsCountRequest): GetCommentAnnotationsCountResponse;
20
+ export declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
21
+ export declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
22
22
  export declare function useAssignUser(): {
23
- assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
23
+ assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
24
24
  };
25
25
  export declare function useUpdatePriority(): {
26
- updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
26
+ updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
27
27
  };
28
28
  export declare function useUpdateStatus(): {
29
- updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
29
+ updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
30
30
  };
31
31
  export declare function useUpdateAccess(): {
32
- updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
32
+ updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
33
33
  };
34
34
  export declare function useResolveCommentAnnotation(): {
35
- resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
35
+ resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
36
36
  };
37
37
  export declare function useGetLink(): {
38
- getLink: (config: GetLinkRequest) => Promise<GetLinkResponse | null>;
38
+ getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
39
39
  };
40
40
  export declare function useCopyLink(): {
41
- copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
41
+ copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
42
42
  };
43
43
  export declare function useAddComment(): {
44
- addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
44
+ addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
45
45
  };
46
46
  export declare function useUpdateComment(): {
47
- updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
47
+ updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
48
48
  };
49
49
  export declare function useDeleteComment(): {
50
- deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
50
+ deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
51
51
  };
52
52
  export declare function useGetComment(): {
53
- getComment: (config: GetCommentRequest) => Promise<Comment[]>;
53
+ getComment: (request: GetCommentRequest) => Promise<Comment[]>;
54
54
  };
55
55
  export declare function useAddAttachment(): {
56
- addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
56
+ addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
57
57
  };
58
58
  export declare function useDeleteAttachment(): {
59
- deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
59
+ deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
60
60
  };
61
61
  export declare function useGetAttachment(): {
62
- getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[] | null>;
62
+ getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
63
63
  };
64
64
  export declare function useDeleteRecording(): {
65
- deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
65
+ deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
66
66
  };
67
67
  export declare function useGetRecording(): {
68
- getRecording: (config: GetRecordingRequest) => Promise<RecordedData[] | null>;
68
+ getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
69
69
  };
70
70
  export declare function useAddReaction(): {
71
- addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
71
+ addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
72
72
  };
73
73
  export declare function useDeleteReaction(): {
74
- deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
74
+ deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
75
75
  };
76
76
  export declare function useToggleReaction(): {
77
- toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
77
+ toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
78
78
  };
79
79
  /**
80
80
  * @deprecated Use useCommentEventCallback hook instead.
package/esm/index.js CHANGED
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
132
132
  }
133
133
  };
134
134
 
135
- var VELT_SDK_VERSION = '4.0.0-beta.3';
135
+ var VELT_SDK_VERSION = '4.0.0-beta.4';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
@@ -4767,11 +4767,11 @@ function useCommentSidebarData() {
4767
4767
  function useAddCommentAnnotation() {
4768
4768
  var commentElement = useCommentUtils();
4769
4769
  return {
4770
- addCommentAnnotation: function (config) {
4770
+ addCommentAnnotation: function (request) {
4771
4771
  return new Promise(function (resolve, reject) {
4772
4772
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addCommentAnnotation))
4773
4773
  return reject(new Error('Velt SDK is not initialized.'));
4774
- commentElement.addCommentAnnotation(config).then(resolve).catch(reject);
4774
+ commentElement.addCommentAnnotation(request).then(resolve).catch(reject);
4775
4775
  });
4776
4776
  }
4777
4777
  };
@@ -4779,11 +4779,11 @@ function useAddCommentAnnotation() {
4779
4779
  function useApproveCommentAnnotation() {
4780
4780
  var commentElement = useCommentUtils();
4781
4781
  return {
4782
- approveCommentAnnotation: function (config) {
4782
+ approveCommentAnnotation: function (request) {
4783
4783
  return new Promise(function (resolve, reject) {
4784
4784
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.approveCommentAnnotation))
4785
4785
  return reject(new Error('Velt SDK is not initialized.'));
4786
- commentElement.approveCommentAnnotation(config).then(resolve).catch(reject);
4786
+ commentElement.approveCommentAnnotation(request).then(resolve).catch(reject);
4787
4787
  });
4788
4788
  }
4789
4789
  };
@@ -4791,11 +4791,11 @@ function useApproveCommentAnnotation() {
4791
4791
  function useRejectCommentAnnotation() {
4792
4792
  var commentElement = useCommentUtils();
4793
4793
  return {
4794
- rejectCommentAnnotation: function (config) {
4794
+ rejectCommentAnnotation: function (request) {
4795
4795
  return new Promise(function (resolve, reject) {
4796
4796
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectCommentAnnotation))
4797
4797
  return reject(new Error('Velt SDK is not initialized.'));
4798
- commentElement.rejectCommentAnnotation(config).then(resolve).catch(reject);
4798
+ commentElement.rejectCommentAnnotation(request).then(resolve).catch(reject);
4799
4799
  });
4800
4800
  }
4801
4801
  };
@@ -4803,11 +4803,11 @@ function useRejectCommentAnnotation() {
4803
4803
  function useSubscribeCommentAnnotation() {
4804
4804
  var commentElement = useCommentUtils();
4805
4805
  return {
4806
- subscribeCommentAnnotation: function (config) {
4806
+ subscribeCommentAnnotation: function (request) {
4807
4807
  return new Promise(function (resolve, reject) {
4808
4808
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
4809
4809
  return reject(new Error('Velt SDK is not initialized.'));
4810
- commentElement.subscribeCommentAnnotation(config).then(resolve).catch(reject);
4810
+ commentElement.subscribeCommentAnnotation(request).then(resolve).catch(reject);
4811
4811
  });
4812
4812
  }
4813
4813
  };
@@ -4815,11 +4815,11 @@ function useSubscribeCommentAnnotation() {
4815
4815
  function useUnsubscribeCommentAnnotation() {
4816
4816
  var commentElement = useCommentUtils();
4817
4817
  return {
4818
- unsubscribeCommentAnnotation: function (config) {
4818
+ unsubscribeCommentAnnotation: function (request) {
4819
4819
  return new Promise(function (resolve, reject) {
4820
4820
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
4821
4821
  return reject(new Error('Velt SDK is not initialized.'));
4822
- commentElement.unsubscribeCommentAnnotation(config).then(resolve).catch(reject);
4822
+ commentElement.unsubscribeCommentAnnotation(request).then(resolve).catch(reject);
4823
4823
  });
4824
4824
  }
4825
4825
  };
@@ -4827,23 +4827,23 @@ function useUnsubscribeCommentAnnotation() {
4827
4827
  function useDeleteCommentAnnotation() {
4828
4828
  var commentElement = useCommentUtils();
4829
4829
  return {
4830
- deleteCommentAnnotation: function (config) {
4830
+ deleteCommentAnnotation: function (request) {
4831
4831
  return new Promise(function (resolve, reject) {
4832
4832
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteCommentAnnotation))
4833
4833
  return reject(new Error('Velt SDK is not initialized.'));
4834
- commentElement.deleteCommentAnnotation(config).then(resolve).catch(reject);
4834
+ commentElement.deleteCommentAnnotation(request).then(resolve).catch(reject);
4835
4835
  });
4836
4836
  }
4837
4837
  };
4838
4838
  }
4839
- function useGetCommentAnnotations(getCommentAnnotationsRequest) {
4839
+ function useGetCommentAnnotations(query) {
4840
4840
  var commentElement = useCommentUtils();
4841
4841
  var _a = useState({ data: null }), data = _a[0], setData = _a[1];
4842
4842
  var subscriptionRef = useRef();
4843
4843
  // Memoize the inputs
4844
4844
  var memoizedData = useMemo(function () {
4845
- return getCommentAnnotationsRequest;
4846
- }, [JSON.stringify(getCommentAnnotationsRequest)]);
4845
+ return query;
4846
+ }, [JSON.stringify(query)]);
4847
4847
  useEffect(function () {
4848
4848
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations))
4849
4849
  return;
@@ -4871,14 +4871,14 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
4871
4871
  }, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations, memoizedData]);
4872
4872
  return data;
4873
4873
  }
4874
- function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
4874
+ function useCommentAnnotationsCount(query) {
4875
4875
  var commentElement = useCommentUtils();
4876
4876
  var _a = useState({ data: null }), data = _a[0], setData = _a[1];
4877
4877
  var subscriptionRef = useRef();
4878
4878
  // Memoize the inputs
4879
4879
  var memoizedData = useMemo(function () {
4880
- return getCommentAnnotationsCountRequest;
4881
- }, [JSON.stringify(getCommentAnnotationsCountRequest)]);
4880
+ return query;
4881
+ }, [JSON.stringify(query)]);
4882
4882
  useEffect(function () {
4883
4883
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount))
4884
4884
  return;
@@ -4909,11 +4909,11 @@ function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
4909
4909
  function useAssignUser() {
4910
4910
  var commentElement = useCommentUtils();
4911
4911
  return {
4912
- assignUser: function (config) {
4912
+ assignUser: function (request) {
4913
4913
  return new Promise(function (resolve, reject) {
4914
4914
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
4915
4915
  return reject(new Error('Velt SDK is not initialized.'));
4916
- commentElement.assignUser(config).then(resolve).catch(reject);
4916
+ commentElement.assignUser(request).then(resolve).catch(reject);
4917
4917
  });
4918
4918
  }
4919
4919
  };
@@ -4921,11 +4921,11 @@ function useAssignUser() {
4921
4921
  function useUpdatePriority() {
4922
4922
  var commentElement = useCommentUtils();
4923
4923
  return {
4924
- updatePriority: function (config) {
4924
+ updatePriority: function (request) {
4925
4925
  return new Promise(function (resolve, reject) {
4926
4926
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updatePriority))
4927
4927
  return reject(new Error('Velt SDK is not initialized.'));
4928
- commentElement.updatePriority(config).then(resolve).catch(reject);
4928
+ commentElement.updatePriority(request).then(resolve).catch(reject);
4929
4929
  });
4930
4930
  }
4931
4931
  };
@@ -4933,11 +4933,11 @@ function useUpdatePriority() {
4933
4933
  function useUpdateStatus() {
4934
4934
  var commentElement = useCommentUtils();
4935
4935
  return {
4936
- updateStatus: function (config) {
4936
+ updateStatus: function (request) {
4937
4937
  return new Promise(function (resolve, reject) {
4938
4938
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateStatus))
4939
4939
  return reject(new Error('Velt SDK is not initialized.'));
4940
- commentElement.updateStatus(config).then(resolve).catch(reject);
4940
+ commentElement.updateStatus(request).then(resolve).catch(reject);
4941
4941
  });
4942
4942
  }
4943
4943
  };
@@ -4945,11 +4945,11 @@ function useUpdateStatus() {
4945
4945
  function useUpdateAccess() {
4946
4946
  var commentElement = useCommentUtils();
4947
4947
  return {
4948
- updateAccess: function (config) {
4948
+ updateAccess: function (request) {
4949
4949
  return new Promise(function (resolve, reject) {
4950
4950
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateAccess))
4951
4951
  return reject(new Error('Velt SDK is not initialized.'));
4952
- commentElement.updateAccess(config).then(resolve).catch(reject);
4952
+ commentElement.updateAccess(request).then(resolve).catch(reject);
4953
4953
  });
4954
4954
  }
4955
4955
  };
@@ -4957,11 +4957,11 @@ function useUpdateAccess() {
4957
4957
  function useResolveCommentAnnotation() {
4958
4958
  var commentElement = useCommentUtils();
4959
4959
  return {
4960
- resolveCommentAnnotation: function (config) {
4960
+ resolveCommentAnnotation: function (request) {
4961
4961
  return new Promise(function (resolve, reject) {
4962
4962
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.resolveCommentAnnotation))
4963
4963
  return reject(new Error('Velt SDK is not initialized.'));
4964
- commentElement.resolveCommentAnnotation(config).then(resolve).catch(reject);
4964
+ commentElement.resolveCommentAnnotation(request).then(resolve).catch(reject);
4965
4965
  });
4966
4966
  }
4967
4967
  };
@@ -4969,11 +4969,11 @@ function useResolveCommentAnnotation() {
4969
4969
  function useGetLink() {
4970
4970
  var commentElement = useCommentUtils();
4971
4971
  return {
4972
- getLink: function (config) {
4972
+ getLink: function (request) {
4973
4973
  return new Promise(function (resolve, reject) {
4974
4974
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getLink))
4975
4975
  return reject(new Error('Velt SDK is not initialized.'));
4976
- commentElement.getLink(config).then(resolve).catch(reject);
4976
+ commentElement.getLink(request).then(resolve).catch(reject);
4977
4977
  });
4978
4978
  }
4979
4979
  };
@@ -4981,11 +4981,11 @@ function useGetLink() {
4981
4981
  function useCopyLink() {
4982
4982
  var commentElement = useCommentUtils();
4983
4983
  return {
4984
- copyLink: function (config) {
4984
+ copyLink: function (request) {
4985
4985
  return new Promise(function (resolve, reject) {
4986
4986
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.copyLink))
4987
4987
  return reject(new Error('Velt SDK is not initialized.'));
4988
- commentElement.copyLink(config).then(resolve).catch(reject);
4988
+ commentElement.copyLink(request).then(resolve).catch(reject);
4989
4989
  });
4990
4990
  }
4991
4991
  };
@@ -4993,11 +4993,11 @@ function useCopyLink() {
4993
4993
  function useAddComment() {
4994
4994
  var commentElement = useCommentUtils();
4995
4995
  return {
4996
- addComment: function (config) {
4996
+ addComment: function (request) {
4997
4997
  return new Promise(function (resolve, reject) {
4998
4998
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addComment))
4999
4999
  return reject(new Error('Velt SDK is not initialized.'));
5000
- commentElement.addComment(config).then(resolve).catch(reject);
5000
+ commentElement.addComment(request).then(resolve).catch(reject);
5001
5001
  });
5002
5002
  }
5003
5003
  };
@@ -5005,11 +5005,11 @@ function useAddComment() {
5005
5005
  function useUpdateComment() {
5006
5006
  var commentElement = useCommentUtils();
5007
5007
  return {
5008
- updateComment: function (config) {
5008
+ updateComment: function (request) {
5009
5009
  return new Promise(function (resolve, reject) {
5010
5010
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateComment))
5011
5011
  return reject(new Error('Velt SDK is not initialized.'));
5012
- commentElement.updateComment(config).then(resolve).catch(reject);
5012
+ commentElement.updateComment(request).then(resolve).catch(reject);
5013
5013
  });
5014
5014
  }
5015
5015
  };
@@ -5017,11 +5017,11 @@ function useUpdateComment() {
5017
5017
  function useDeleteComment() {
5018
5018
  var commentElement = useCommentUtils();
5019
5019
  return {
5020
- deleteComment: function (config) {
5020
+ deleteComment: function (request) {
5021
5021
  return new Promise(function (resolve, reject) {
5022
5022
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteComment))
5023
5023
  return reject(new Error('Velt SDK is not initialized.'));
5024
- commentElement.deleteComment(config).then(resolve).catch(reject);
5024
+ commentElement.deleteComment(request).then(resolve).catch(reject);
5025
5025
  });
5026
5026
  }
5027
5027
  };
@@ -5029,11 +5029,11 @@ function useDeleteComment() {
5029
5029
  function useGetComment() {
5030
5030
  var commentElement = useCommentUtils();
5031
5031
  return {
5032
- getComment: function (config) {
5032
+ getComment: function (request) {
5033
5033
  return new Promise(function (resolve, reject) {
5034
5034
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getComment))
5035
5035
  return reject(new Error('Velt SDK is not initialized.'));
5036
- commentElement.getComment(config).then(resolve).catch(reject);
5036
+ commentElement.getComment(request).then(resolve).catch(reject);
5037
5037
  });
5038
5038
  }
5039
5039
  };
@@ -5041,11 +5041,11 @@ function useGetComment() {
5041
5041
  function useAddAttachment() {
5042
5042
  var commentElement = useCommentUtils();
5043
5043
  return {
5044
- addAttachment: function (config) {
5044
+ addAttachment: function (request) {
5045
5045
  return new Promise(function (resolve, reject) {
5046
5046
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addAttachment))
5047
5047
  return reject(new Error('Velt SDK is not initialized.'));
5048
- commentElement.addAttachment(config).then(resolve).catch(reject);
5048
+ commentElement.addAttachment(request).then(resolve).catch(reject);
5049
5049
  });
5050
5050
  }
5051
5051
  };
@@ -5053,11 +5053,11 @@ function useAddAttachment() {
5053
5053
  function useDeleteAttachment() {
5054
5054
  var commentElement = useCommentUtils();
5055
5055
  return {
5056
- deleteAttachment: function (config) {
5056
+ deleteAttachment: function (request) {
5057
5057
  return new Promise(function (resolve, reject) {
5058
5058
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteAttachment))
5059
5059
  return reject(new Error('Velt SDK is not initialized.'));
5060
- commentElement.deleteAttachment(config).then(resolve).catch(reject);
5060
+ commentElement.deleteAttachment(request).then(resolve).catch(reject);
5061
5061
  });
5062
5062
  }
5063
5063
  };
@@ -5065,11 +5065,11 @@ function useDeleteAttachment() {
5065
5065
  function useGetAttachment() {
5066
5066
  var commentElement = useCommentUtils();
5067
5067
  return {
5068
- getAttachment: function (config) {
5068
+ getAttachment: function (request) {
5069
5069
  return new Promise(function (resolve, reject) {
5070
5070
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAttachment))
5071
5071
  return reject(new Error('Velt SDK is not initialized.'));
5072
- commentElement.getAttachment(config).then(resolve).catch(reject);
5072
+ commentElement.getAttachment(request).then(resolve).catch(reject);
5073
5073
  });
5074
5074
  }
5075
5075
  };
@@ -5077,11 +5077,11 @@ function useGetAttachment() {
5077
5077
  function useDeleteRecording() {
5078
5078
  var commentElement = useCommentUtils();
5079
5079
  return {
5080
- deleteRecording: function (config) {
5080
+ deleteRecording: function (request) {
5081
5081
  return new Promise(function (resolve, reject) {
5082
5082
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteRecording))
5083
5083
  return reject(new Error('Velt SDK is not initialized.'));
5084
- commentElement.deleteRecording(config).then(resolve).catch(reject);
5084
+ commentElement.deleteRecording(request).then(resolve).catch(reject);
5085
5085
  });
5086
5086
  }
5087
5087
  };
@@ -5089,11 +5089,11 @@ function useDeleteRecording() {
5089
5089
  function useGetRecording() {
5090
5090
  var commentElement = useCommentUtils();
5091
5091
  return {
5092
- getRecording: function (config) {
5092
+ getRecording: function (request) {
5093
5093
  return new Promise(function (resolve, reject) {
5094
5094
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getRecording))
5095
5095
  return reject(new Error('Velt SDK is not initialized.'));
5096
- commentElement.getRecording(config).then(resolve).catch(reject);
5096
+ commentElement.getRecording(request).then(resolve).catch(reject);
5097
5097
  });
5098
5098
  }
5099
5099
  };
@@ -5101,11 +5101,11 @@ function useGetRecording() {
5101
5101
  function useAddReaction() {
5102
5102
  var commentElement = useCommentUtils();
5103
5103
  return {
5104
- addReaction: function (config) {
5104
+ addReaction: function (request) {
5105
5105
  return new Promise(function (resolve, reject) {
5106
5106
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addReaction))
5107
5107
  return reject(new Error('Velt SDK is not initialized.'));
5108
- commentElement.addReaction(config).then(resolve).catch(reject);
5108
+ commentElement.addReaction(request).then(resolve).catch(reject);
5109
5109
  });
5110
5110
  }
5111
5111
  };
@@ -5113,11 +5113,11 @@ function useAddReaction() {
5113
5113
  function useDeleteReaction() {
5114
5114
  var commentElement = useCommentUtils();
5115
5115
  return {
5116
- deleteReaction: function (config) {
5116
+ deleteReaction: function (request) {
5117
5117
  return new Promise(function (resolve, reject) {
5118
5118
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteReaction))
5119
5119
  return reject(new Error('Velt SDK is not initialized.'));
5120
- commentElement.deleteReaction(config).then(resolve).catch(reject);
5120
+ commentElement.deleteReaction(request).then(resolve).catch(reject);
5121
5121
  });
5122
5122
  }
5123
5123
  };
@@ -5125,11 +5125,11 @@ function useDeleteReaction() {
5125
5125
  function useToggleReaction() {
5126
5126
  var commentElement = useCommentUtils();
5127
5127
  return {
5128
- toggleReaction: function (config) {
5128
+ toggleReaction: function (request) {
5129
5129
  return new Promise(function (resolve, reject) {
5130
5130
  if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.toggleReaction))
5131
5131
  return reject(new Error('Velt SDK is not initialized.'));
5132
- commentElement.toggleReaction(config).then(resolve).catch(reject);
5132
+ commentElement.toggleReaction(request).then(resolve).catch(reject);
5133
5133
  });
5134
5134
  }
5135
5135
  };