@connectedxm/client 2.0.0 → 2.2.0

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.js CHANGED
@@ -151,6 +151,13 @@ var isTypeAccount = (account) => {
151
151
  var isSelf = (account) => {
152
152
  return account.email !== void 0;
153
153
  };
154
+ var ActivityEntityType = /* @__PURE__ */ ((ActivityEntityType2) => {
155
+ ActivityEntityType2["mention"] = "mention";
156
+ ActivityEntityType2["interest"] = "interest";
157
+ ActivityEntityType2["link"] = "link";
158
+ ActivityEntityType2["segment"] = "segment";
159
+ return ActivityEntityType2;
160
+ })(ActivityEntityType || {});
154
161
  var isTypeActivity = (activity) => {
155
162
  return activity._count !== void 0;
156
163
  };
@@ -262,12 +269,6 @@ var isTypeSpeaker = (speaker) => {
262
269
  var isTypeSession = (session) => {
263
270
  return session.longDescription !== void 0;
264
271
  };
265
- var SessionPassStatus = /* @__PURE__ */ ((SessionPassStatus2) => {
266
- SessionPassStatus2["draft"] = "draft";
267
- SessionPassStatus2["ready"] = "ready";
268
- SessionPassStatus2["canceled"] = "canceled";
269
- return SessionPassStatus2;
270
- })(SessionPassStatus || {});
271
272
  var isTypeEventPage = (page) => {
272
273
  return page.html !== void 0;
273
274
  };
@@ -6239,19 +6240,19 @@ var useGetSelfEventAttendeeTransferAccounts = (eventId, passId, search, options
6239
6240
  );
6240
6241
  };
6241
6242
 
6242
- // src/queries/self/attendee/sessions/useGetSelfEventRegistrationSessionPassesIntent.ts
6243
- var SELF_EVENT_ATTENDEE_SESSION_PASSES_INTENT_QUERY_KEY = (eventId, sessionId, addressId, sessionPassIds) => [
6243
+ // src/queries/self/attendee/sessions/useGetSelfEventSessionRegistrationIntent.ts
6244
+ var SELF_EVENT_ATTENDEE_SESSION_PASSES_INTENT_QUERY_KEY = (eventId, sessionId, addressId, accessIds) => [
6244
6245
  ...SELF_EVENT_ATTENDEE_QUERY_KEY(eventId),
6245
6246
  sessionId,
6246
6247
  addressId,
6247
6248
  "SESSION_PASSES_INTENT",
6248
- ...sessionPassIds
6249
+ ...accessIds
6249
6250
  ];
6250
- var GetSelfEventAttendeeSessionPassesIntent = async ({
6251
+ var GetSelfEventSessionRegistrationIntent = async ({
6251
6252
  eventId,
6252
6253
  sessionId,
6253
6254
  addressId,
6254
- sessionPasses,
6255
+ accesses,
6255
6256
  clientApiParams
6256
6257
  }) => {
6257
6258
  const clientApi = await GetClientAPI(clientApiParams);
@@ -6259,25 +6260,25 @@ var GetSelfEventAttendeeSessionPassesIntent = async ({
6259
6260
  `/self/events/${eventId}/attendee/sessions/${sessionId}/intent`,
6260
6261
  {
6261
6262
  addressId,
6262
- sessionPasses
6263
+ accesses
6263
6264
  }
6264
6265
  );
6265
6266
  return data;
6266
6267
  };
6267
- var useGetSelfEventAttendeeSessionPassesIntent = (eventId, sessionId, addressId, sessionPasses, options = {}) => {
6268
+ var useGetSelfEventSessionRegistrationIntent = (eventId, sessionId, addressId, accesses, options = {}) => {
6268
6269
  const { authenticated } = useConnectedXM();
6269
6270
  return useConnectedSingleQuery_default(
6270
6271
  SELF_EVENT_ATTENDEE_SESSION_PASSES_INTENT_QUERY_KEY(
6271
6272
  eventId,
6272
6273
  sessionId,
6273
6274
  addressId,
6274
- sessionPasses.map(({ passId }) => passId)
6275
+ accesses.map(({ passId }) => passId)
6275
6276
  ),
6276
- (params) => GetSelfEventAttendeeSessionPassesIntent({
6277
+ (params) => GetSelfEventSessionRegistrationIntent({
6277
6278
  eventId,
6278
6279
  sessionId,
6279
6280
  addressId,
6280
- sessionPasses,
6281
+ accesses,
6281
6282
  ...params
6282
6283
  }),
6283
6284
  {
@@ -6285,7 +6286,7 @@ var useGetSelfEventAttendeeSessionPassesIntent = (eventId, sessionId, addressId,
6285
6286
  retry: false,
6286
6287
  retryOnMount: false,
6287
6288
  ...options,
6288
- enabled: !!authenticated && !!eventId && !!sessionId && !!addressId && !!sessionPasses && (options?.enabled ?? true)
6289
+ enabled: !!authenticated && !!eventId && !!sessionId && !!addressId && !!accesses && (options?.enabled ?? true)
6289
6290
  }
6290
6291
  );
6291
6292
  };
@@ -8612,6 +8613,41 @@ var useGetSurveyQuestionSearchValues = (surveyId = "", questionId = "", params =
8612
8613
  );
8613
8614
  };
8614
8615
 
8616
+ // src/queries/link-previews/useGetLinkPreview.ts
8617
+ var LINK_PREVIEW_QUERY_KEY = (href) => [
8618
+ "LINK_PREVIEW",
8619
+ encodeURIComponent(href)
8620
+ ];
8621
+ var SET_LINK_PREVIEW_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
8622
+ client.setQueryData(
8623
+ [
8624
+ ...LINK_PREVIEW_QUERY_KEY(...keyParams),
8625
+ ...GetBaseSingleQueryKeys(...baseKeys)
8626
+ ],
8627
+ response
8628
+ );
8629
+ };
8630
+ var GetLinkPreview = async ({
8631
+ href,
8632
+ clientApiParams
8633
+ }) => {
8634
+ const clientApi = await GetClientAPI(clientApiParams);
8635
+ const { data } = await clientApi.get(
8636
+ `/storage/link-preview?href=${encodeURIComponent(href)}`
8637
+ );
8638
+ return data;
8639
+ };
8640
+ var useGetLinkPreview = (href = "", options = {}) => {
8641
+ return useConnectedSingleQuery(
8642
+ LINK_PREVIEW_QUERY_KEY(href),
8643
+ (_params) => GetLinkPreview({ href, ..._params }),
8644
+ {
8645
+ ...options,
8646
+ enabled: !!href && (options?.enabled ?? true)
8647
+ }
8648
+ );
8649
+ };
8650
+
8615
8651
  // src/mutations/useConnectedMutation.ts
8616
8652
  import {
8617
8653
  useMutation,
@@ -8790,21 +8826,21 @@ var useUnblockAccount = (options = {}) => {
8790
8826
  return useConnectedMutation_default(UnblockAccount, options);
8791
8827
  };
8792
8828
 
8793
- // src/mutations/activities/optimistic/UpdateReshares.ts
8829
+ // src/mutations/activities/optimistic/UpdateComments.ts
8794
8830
  import { produce as produce4 } from "immer";
8795
- var UpdateResharesSingle = (increment, queryClient, KEY) => {
8831
+ var UpdateCommentsSingle = (increment, queryClient, KEY) => {
8796
8832
  queryClient.setQueryData(
8797
8833
  KEY,
8798
8834
  (originalData) => produce4(originalData, (draft) => {
8799
8835
  if (!draft?.data) {
8800
8836
  return;
8801
8837
  }
8802
- draft.data._count.reshares += increment ? 1 : -1;
8803
- draft.data.reshares = increment ? [{ id: Date.now().toString() }] : [];
8838
+ draft.data._count.comments += increment ? 1 : -1;
8839
+ draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
8804
8840
  })
8805
8841
  );
8806
8842
  };
8807
- var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
8843
+ var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
8808
8844
  queryClient.setQueriesData(
8809
8845
  { queryKey: KEY, exact: false },
8810
8846
  (originalData) => produce4(originalData, (draft) => {
@@ -8814,8 +8850,8 @@ var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
8814
8850
  for (const page of draft.pages) {
8815
8851
  for (const activity of page.data) {
8816
8852
  if (activity.id === activityId) {
8817
- activity._count.reshares += increment ? 1 : -1;
8818
- activity.reshares = increment ? [{ id: Date.now().toString() }] : [];
8853
+ activity._count.comments += increment ? 1 : -1;
8854
+ activity.comments = increment ? [{ id: Date.now().toString() }] : [];
8819
8855
  }
8820
8856
  }
8821
8857
  }
@@ -8823,32 +8859,125 @@ var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
8823
8859
  );
8824
8860
  };
8825
8861
 
8826
- // src/mutations/activities/useDeleteReshare.ts
8827
- var DeleteReshare = async ({
8828
- activityId,
8862
+ // src/mutations/activities/useCreateActivity.ts
8863
+ var CreateActivity = async ({
8864
+ activity,
8829
8865
  clientApiParams,
8830
8866
  queryClient
8831
8867
  }) => {
8832
8868
  if (queryClient) {
8833
- UpdateResharesSingle(false, queryClient, [
8834
- ...ACTIVITY_QUERY_KEY(activityId),
8835
- ...GetBaseSingleQueryKeys(clientApiParams.locale)
8836
- ]);
8837
- UpdateResharesInfinite(
8838
- false,
8839
- queryClient,
8840
- ACTIVITIES_QUERY_KEY(),
8841
- activityId
8842
- );
8869
+ if (activity.commentedId) {
8870
+ UpdateCommentsSingle(true, queryClient, [
8871
+ ...ACTIVITY_QUERY_KEY(activity.commentedId),
8872
+ ...GetBaseSingleQueryKeys(clientApiParams.locale)
8873
+ ]);
8874
+ UpdateCommentsInfinite(
8875
+ true,
8876
+ queryClient,
8877
+ [...ACTIVITIES_QUERY_KEY(), clientApiParams.locale],
8878
+ activity.commentedId
8879
+ );
8880
+ }
8843
8881
  }
8882
+ const clientApi = await GetClientAPI(clientApiParams);
8883
+ const { data } = await clientApi.post(
8884
+ `/self/activities`,
8885
+ activity
8886
+ );
8887
+ if (queryClient && data.status === "ok") {
8888
+ let nested = false;
8889
+ if (activity.commentedId) {
8890
+ nested = true;
8891
+ AppendInfiniteQuery(
8892
+ queryClient,
8893
+ [
8894
+ ...ACTIVITY_COMMENTS_QUERY_KEY(activity.commentedId),
8895
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8896
+ ],
8897
+ data.data
8898
+ );
8899
+ }
8900
+ if (activity.contentId && data.data.content) {
8901
+ nested = true;
8902
+ AppendInfiniteQuery(
8903
+ queryClient,
8904
+ [
8905
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8906
+ data.data.content.channel.slug,
8907
+ activity.contentId
8908
+ ),
8909
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8910
+ ],
8911
+ data.data
8912
+ );
8913
+ AppendInfiniteQuery(
8914
+ queryClient,
8915
+ [
8916
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8917
+ data.data.content.channel.id,
8918
+ activity.contentId
8919
+ ),
8920
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8921
+ ],
8922
+ data.data
8923
+ );
8924
+ }
8925
+ if (activity.eventId) {
8926
+ nested = true;
8927
+ AppendInfiniteQuery(
8928
+ queryClient,
8929
+ [
8930
+ ...EVENT_ACTIVITIES_QUERY_KEY(activity.eventId),
8931
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8932
+ ],
8933
+ data.data
8934
+ );
8935
+ }
8936
+ if (activity.groupId) {
8937
+ nested = true;
8938
+ AppendInfiniteQuery(
8939
+ queryClient,
8940
+ [
8941
+ ...GROUP_ACTIVITIES_QUERY_KEY(activity.groupId),
8942
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8943
+ ],
8944
+ data.data
8945
+ );
8946
+ }
8947
+ if (!nested) {
8948
+ AppendInfiniteQuery(
8949
+ queryClient,
8950
+ [
8951
+ ...ACTIVITIES_QUERY_KEY(),
8952
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8953
+ ],
8954
+ data.data
8955
+ );
8956
+ }
8957
+ }
8958
+ return data;
8959
+ };
8960
+ var useCreateActivity = (options = {}) => {
8961
+ return useConnectedMutation_default(CreateActivity, options);
8962
+ };
8963
+
8964
+ // src/mutations/activities/useDeleteActivity.ts
8965
+ var DeleteActivity = async ({
8966
+ activityId,
8967
+ clientApiParams,
8968
+ queryClient
8969
+ }) => {
8844
8970
  const clientApi = await GetClientAPI(clientApiParams);
8845
8971
  const { data } = await clientApi.delete(
8846
- `/self/activities/${activityId}/reshares`
8972
+ `/activities/${activityId}`
8847
8973
  );
8974
+ if (queryClient && data.status === "ok") {
8975
+ queryClient.invalidateQueries({ queryKey: ACTIVITIES_QUERY_KEY() });
8976
+ }
8848
8977
  return data;
8849
8978
  };
8850
- var useDeleteReshare = (options = {}) => {
8851
- return useConnectedMutation_default(DeleteReshare, options);
8979
+ var useDeleteActivity = (options = {}) => {
8980
+ return useConnectedMutation_default(DeleteActivity, options);
8852
8981
  };
8853
8982
 
8854
8983
  // src/mutations/activities/optimistic/UpdateLikes.ts
@@ -8899,7 +9028,7 @@ var LikeActivity = async ({
8899
9028
  }
8900
9029
  const clientApi = await GetClientAPI(clientApiParams);
8901
9030
  const { data } = await clientApi.post(
8902
- `/self/activities/${activityId}/likes`
9031
+ `/activities/${activityId}/likes`
8903
9032
  );
8904
9033
  return data;
8905
9034
  };
@@ -8907,37 +9036,6 @@ var useLikeActivity = (options = {}) => {
8907
9036
  return useConnectedMutation_default(LikeActivity, options);
8908
9037
  };
8909
9038
 
8910
- // src/mutations/activities/useReshareActivity.ts
8911
- var ReshareActivity = async ({
8912
- activityId,
8913
- queryClient,
8914
- clientApiParams
8915
- }) => {
8916
- if (queryClient) {
8917
- UpdateResharesSingle(true, queryClient, [
8918
- ...ACTIVITY_QUERY_KEY(activityId),
8919
- ...GetBaseSingleQueryKeys(clientApiParams.locale)
8920
- ]);
8921
- UpdateResharesInfinite(
8922
- true,
8923
- queryClient,
8924
- ACTIVITIES_QUERY_KEY(),
8925
- activityId
8926
- );
8927
- }
8928
- const clientApi = await GetClientAPI(clientApiParams);
8929
- const { data } = await clientApi.post(
8930
- `/self/activities/${activityId}/reshares`,
8931
- {
8932
- message: ""
8933
- }
8934
- );
8935
- return data;
8936
- };
8937
- var useReshareActivity = (options = {}) => {
8938
- return useConnectedMutation_default(ReshareActivity, options);
8939
- };
8940
-
8941
9039
  // src/mutations/activities/useUnlikeActivity.ts
8942
9040
  var UnlikeActivity = async ({
8943
9041
  activityId,
@@ -8953,7 +9051,7 @@ var UnlikeActivity = async ({
8953
9051
  }
8954
9052
  const clientApi = await GetClientAPI(clientApiParams);
8955
9053
  const { data } = await clientApi.delete(
8956
- `/self/activities/${activityId}/likes`
9054
+ `/activities/${activityId}/likes`
8957
9055
  );
8958
9056
  return data;
8959
9057
  };
@@ -10460,18 +10558,18 @@ var useCancelPass = (options = {}) => {
10460
10558
  return useConnectedMutation_default(CancelPass, options);
10461
10559
  };
10462
10560
 
10463
- // src/mutations/self/events/attendee/sessions/useSubmitSelfEventAttendeeSessionPasses.ts
10464
- var SubmitSelfEventRegistrationSessionPasses = async ({
10561
+ // src/mutations/self/events/attendee/sessions/useSubmitSelfEventSessionRegistration.ts
10562
+ var SubmitSelfEventSessionRegistration = async ({
10465
10563
  eventId,
10466
10564
  sessionId,
10467
- sessionPasses,
10565
+ accesses,
10468
10566
  clientApiParams,
10469
10567
  queryClient
10470
10568
  }) => {
10471
10569
  const clientApi = await GetClientAPI(clientApiParams);
10472
10570
  const { data } = await clientApi.post(
10473
10571
  `/self/events/${eventId}/attendee/sessions/${sessionId}/submit`,
10474
- sessionPasses
10572
+ accesses
10475
10573
  );
10476
10574
  if (queryClient && data.status === "ok") {
10477
10575
  queryClient.invalidateQueries({
@@ -10486,8 +10584,8 @@ var SubmitSelfEventRegistrationSessionPasses = async ({
10486
10584
  }
10487
10585
  return data;
10488
10586
  };
10489
- var useSubmitSelfEventRegistrationSessionPasses = (options = {}) => {
10490
- return useConnectedMutation_default(SubmitSelfEventRegistrationSessionPasses, options);
10587
+ var useSubmitSelfEventSessionRegistration = (options = {}) => {
10588
+ return useConnectedMutation_default(SubmitSelfEventSessionRegistration, options);
10491
10589
  };
10492
10590
 
10493
10591
  // src/mutations/self/subscriptions/useCancelSubscription.ts
@@ -10679,166 +10777,6 @@ var useRemoveSelfEventSession = (options = {}) => {
10679
10777
  return useConnectedMutation_default(RemoveSelfEventSession, options);
10680
10778
  };
10681
10779
 
10682
- // src/mutations/activities/optimistic/UpdateComments.ts
10683
- import { produce as produce6 } from "immer";
10684
- var UpdateCommentsSingle = (increment, queryClient, KEY) => {
10685
- queryClient.setQueryData(
10686
- KEY,
10687
- (originalData) => produce6(originalData, (draft) => {
10688
- if (!draft?.data) {
10689
- return;
10690
- }
10691
- draft.data._count.comments += increment ? 1 : -1;
10692
- draft.data.comments = increment ? [{ id: Date.now().toString() }] : [];
10693
- })
10694
- );
10695
- };
10696
- var UpdateCommentsInfinite = (increment, queryClient, KEY, activityId) => {
10697
- queryClient.setQueriesData(
10698
- { queryKey: KEY, exact: false },
10699
- (originalData) => produce6(originalData, (draft) => {
10700
- if (!draft?.pages || draft.pages.length === 0) {
10701
- return;
10702
- }
10703
- for (const page of draft.pages) {
10704
- for (const activity of page.data) {
10705
- if (activity.id === activityId) {
10706
- activity._count.comments += increment ? 1 : -1;
10707
- activity.comments = increment ? [{ id: Date.now().toString() }] : [];
10708
- }
10709
- }
10710
- }
10711
- })
10712
- );
10713
- };
10714
-
10715
- // src/mutations/self/useSelfCreateActivity.ts
10716
- var SelfCreateActivity = async ({
10717
- activity,
10718
- base64Image,
10719
- interests,
10720
- clientApiParams,
10721
- queryClient
10722
- }) => {
10723
- if (queryClient) {
10724
- if (activity.commentedId) {
10725
- UpdateCommentsSingle(true, queryClient, [
10726
- ...ACTIVITY_QUERY_KEY(activity.commentedId),
10727
- ...GetBaseSingleQueryKeys(clientApiParams.locale)
10728
- ]);
10729
- UpdateCommentsInfinite(
10730
- true,
10731
- queryClient,
10732
- [...ACTIVITIES_QUERY_KEY(), clientApiParams.locale],
10733
- activity.commentedId
10734
- );
10735
- }
10736
- }
10737
- const clientApi = await GetClientAPI(clientApiParams);
10738
- const { data } = await clientApi.post(
10739
- `/self/activities`,
10740
- {
10741
- activity,
10742
- imageUri: base64Image ?? void 0,
10743
- interests: interests ?? void 0
10744
- }
10745
- );
10746
- if (queryClient && data.status === "ok") {
10747
- let nested = false;
10748
- if (activity.commentedId) {
10749
- nested = true;
10750
- AppendInfiniteQuery(
10751
- queryClient,
10752
- [
10753
- ...ACTIVITY_COMMENTS_QUERY_KEY(activity.commentedId),
10754
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10755
- ],
10756
- data.data
10757
- );
10758
- }
10759
- if (activity.contentId && data.data.content) {
10760
- nested = true;
10761
- AppendInfiniteQuery(
10762
- queryClient,
10763
- [
10764
- ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
10765
- data.data.content.channel.slug,
10766
- activity.contentId
10767
- ),
10768
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10769
- ],
10770
- data.data
10771
- );
10772
- AppendInfiniteQuery(
10773
- queryClient,
10774
- [
10775
- ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
10776
- data.data.content.channel.id,
10777
- activity.contentId
10778
- ),
10779
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10780
- ],
10781
- data.data
10782
- );
10783
- }
10784
- if (activity.eventId) {
10785
- nested = true;
10786
- AppendInfiniteQuery(
10787
- queryClient,
10788
- [
10789
- ...EVENT_ACTIVITIES_QUERY_KEY(activity.eventId),
10790
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10791
- ],
10792
- data.data
10793
- );
10794
- }
10795
- if (activity.groupId) {
10796
- nested = true;
10797
- AppendInfiniteQuery(
10798
- queryClient,
10799
- [
10800
- ...GROUP_ACTIVITIES_QUERY_KEY(activity.groupId),
10801
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10802
- ],
10803
- data.data
10804
- );
10805
- }
10806
- if (!nested) {
10807
- AppendInfiniteQuery(
10808
- queryClient,
10809
- [
10810
- ...ACTIVITIES_QUERY_KEY(),
10811
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10812
- ],
10813
- data.data
10814
- );
10815
- }
10816
- }
10817
- return data;
10818
- };
10819
- var useSelfCreateActivity = (options = {}) => {
10820
- return useConnectedMutation_default(SelfCreateActivity, options);
10821
- };
10822
-
10823
- // src/mutations/self/useSelfDeleteActivity.ts
10824
- var DeleteActivity = async ({
10825
- activityId,
10826
- clientApiParams,
10827
- queryClient
10828
- }) => {
10829
- const clientApi = await GetClientAPI(clientApiParams);
10830
- const { data } = await clientApi.delete(
10831
- `/self/activities/${activityId}`
10832
- );
10833
- if (queryClient && data.status === "ok") {
10834
- queryClient.invalidateQueries({ queryKey: ACTIVITIES_QUERY_KEY() });
10835
- }
10836
- return data;
10837
- };
10838
- var useDeleteActivity = (options = {}) => {
10839
- return useConnectedMutation_default(DeleteActivity, options);
10840
- };
10841
-
10842
10780
  // src/mutations/self/useSelfUpdateGroupMembership.ts
10843
10781
  var SelfUpdateGroupMembership = async ({
10844
10782
  groupId,
@@ -12372,7 +12310,7 @@ var useUpdateThreadMessage = (options = {}) => {
12372
12310
  };
12373
12311
 
12374
12312
  // src/mutations/threads/useDeleteThreadMessage.ts
12375
- import { produce as produce7 } from "immer";
12313
+ import { produce as produce6 } from "immer";
12376
12314
  var DeleteThreadMessage = async ({
12377
12315
  threadId,
12378
12316
  messageId,
@@ -12396,7 +12334,7 @@ var DeleteThreadMessage = async ({
12396
12334
  ],
12397
12335
  (oldData) => {
12398
12336
  if (!oldData) return oldData;
12399
- return produce7(oldData, (draft) => {
12337
+ return produce6(oldData, (draft) => {
12400
12338
  draft.pages.forEach((page) => {
12401
12339
  const index = page.data.findIndex((m) => m.id === messageId);
12402
12340
  if (index !== -1) {
@@ -12660,6 +12598,7 @@ export {
12660
12598
  AcceptGroupInvitation,
12661
12599
  AcceptGroupRequest,
12662
12600
  AccountType,
12601
+ ActivityEntityType,
12663
12602
  AddChannelCollectionContent,
12664
12603
  AddChannelInterest,
12665
12604
  AddContentInterest,
@@ -12713,6 +12652,7 @@ export {
12713
12652
  ConnectedXMProvider,
12714
12653
  ContentGuestType,
12715
12654
  CouponType,
12655
+ CreateActivity,
12716
12656
  CreateChannel,
12717
12657
  CreateChannelCollection,
12718
12658
  CreateChannelContent,
@@ -12752,7 +12692,6 @@ export {
12752
12692
  DeleteListingQuestion,
12753
12693
  DeleteListingSession,
12754
12694
  DeleteListingSpeaker,
12755
- DeleteReshare,
12756
12695
  DeleteSelf,
12757
12696
  DeleteSelfAddress,
12758
12697
  DeleteSelfChatChannel,
@@ -12912,6 +12851,7 @@ export {
12912
12851
  GetLevel,
12913
12852
  GetLevelSponsors,
12914
12853
  GetLevels,
12854
+ GetLinkPreview,
12915
12855
  GetListingAttendeePassQuestionSections,
12916
12856
  GetManagedChannel,
12917
12857
  GetManagedChannelCollection,
@@ -12951,7 +12891,6 @@ export {
12951
12891
  GetSelfEventAttendeePassAddOnsIntent,
12952
12892
  GetSelfEventAttendeePassQuestionSections,
12953
12893
  GetSelfEventAttendeePayment,
12954
- GetSelfEventAttendeeSessionPassesIntent,
12955
12894
  GetSelfEventAttendeeTransferAccounts,
12956
12895
  GetSelfEventAttendeeTransfersLogs,
12957
12896
  GetSelfEventListing,
@@ -12972,6 +12911,7 @@ export {
12972
12911
  GetSelfEventRegistrationPassTypes,
12973
12912
  GetSelfEventRegistrationQuestions,
12974
12913
  GetSelfEventRegistrationRoomTypes,
12914
+ GetSelfEventSessionRegistrationIntent,
12975
12915
  GetSelfEventSessions,
12976
12916
  GetSelfEventTicketCouponIntent,
12977
12917
  GetSelfEvents,
@@ -13028,6 +12968,7 @@ export {
13028
12968
  LEVELS_QUERY_KEY,
13029
12969
  LEVEL_QUERY_KEY,
13030
12970
  LEVEL_SPONSORS_QUERY_KEY,
12971
+ LINK_PREVIEW_QUERY_KEY,
13031
12972
  LISTINGS_QUERY_KEY,
13032
12973
  LISTING_ANNOUNCEMENTS_QUERY_KEY,
13033
12974
  LISTING_ANNOUNCEMENT_QUERY_KEY,
@@ -13090,7 +13031,6 @@ export {
13090
13031
  RemoveSelfEventSession,
13091
13032
  RemoveThreadMessageReaction,
13092
13033
  ReportActivity,
13093
- ReshareActivity,
13094
13034
  SELF_ACTIVITIES_QUERY_KEY,
13095
13035
  SELF_ADDRESSES_QUERY_KEY,
13096
13036
  SELF_ADDRESS_QUERY_KEY,
@@ -13219,6 +13159,7 @@ export {
13219
13159
  SET_LEVELS_QUERY_DATA,
13220
13160
  SET_LEVEL_QUERY_DATA,
13221
13161
  SET_LEVEL_SPONSORS_QUERY_DATA,
13162
+ SET_LINK_PREVIEW_QUERY_DATA,
13222
13163
  SET_LISTING_ANNOUNCEMENT_QUERY_KEY,
13223
13164
  SET_LISTING_ATTENDEE_PASS_QUESTION_SECTIONS_QUERY_DATA,
13224
13165
  SET_LISTING_ATTENDEE_QUERY_KEY,
@@ -13278,13 +13219,11 @@ export {
13278
13219
  SURVEY_SUBMISSION_QUERY_KEY,
13279
13220
  SURVEY_SUBMISSION_SECTIONS_QUERY_KEY,
13280
13221
  SelectSelfEventRegistrationCoupon,
13281
- SelfCreateActivity,
13282
13222
  SelfUpdateGroupMembership,
13283
- SessionPassStatus,
13284
13223
  SetContentPublishSchedule,
13285
13224
  StartSurvey,
13286
13225
  SubmitSelfEventRegistration,
13287
- SubmitSelfEventRegistrationSessionPasses,
13226
+ SubmitSelfEventSessionRegistration,
13288
13227
  SubmitSurvey,
13289
13228
  SubscriptionStatus,
13290
13229
  SupportTicketType,
@@ -13414,6 +13353,7 @@ export {
13414
13353
  useConnectedMutation,
13415
13354
  useConnectedSingleQuery,
13416
13355
  useConnectedXM,
13356
+ useCreateActivity,
13417
13357
  useCreateChannel,
13418
13358
  useCreateChannelCollection,
13419
13359
  useCreateChannelContent,
@@ -13450,7 +13390,6 @@ export {
13450
13390
  useDeleteListingQuestion,
13451
13391
  useDeleteListingSession,
13452
13392
  useDeleteListingSpeaker,
13453
- useDeleteReshare,
13454
13393
  useDeleteSelf,
13455
13394
  useDeleteSelfAddress,
13456
13395
  useDeleteSelfChatChannel,
@@ -13553,6 +13492,7 @@ export {
13553
13492
  useGetLevel,
13554
13493
  useGetLevelSponsors,
13555
13494
  useGetLevels,
13495
+ useGetLinkPreview,
13556
13496
  useGetListingAttendeePassQuestionSections,
13557
13497
  useGetManagedChannel,
13558
13498
  useGetManagedChannelCollection,
@@ -13592,7 +13532,6 @@ export {
13592
13532
  useGetSelfEventAttendeePassAddOnsIntent,
13593
13533
  useGetSelfEventAttendeePassQuestionSections,
13594
13534
  useGetSelfEventAttendeePayment,
13595
- useGetSelfEventAttendeeSessionPassesIntent,
13596
13535
  useGetSelfEventAttendeeTransferAccounts,
13597
13536
  useGetSelfEventAttendeeTransfersLogs,
13598
13537
  useGetSelfEventListing,
@@ -13613,6 +13552,7 @@ export {
13613
13552
  useGetSelfEventRegistrationPassTypes,
13614
13553
  useGetSelfEventRegistrationQuestions,
13615
13554
  useGetSelfEventRegistrationRoomTypes,
13555
+ useGetSelfEventSessionRegistrationIntent,
13616
13556
  useGetSelfEventSessions,
13617
13557
  useGetSelfEventTicketCouponIntent,
13618
13558
  useGetSelfEvents,
@@ -13679,14 +13619,12 @@ export {
13679
13619
  useRemoveSelfEventSession,
13680
13620
  useRemoveThreadMessageReaction,
13681
13621
  useReportActivity,
13682
- useReshareActivity,
13683
13622
  useSelectSelfEventRegistrationCoupon,
13684
- useSelfCreateActivity,
13685
13623
  useSelfUpdateGroupMembership,
13686
13624
  useSetContentPublishSchedule,
13687
13625
  useStartSurvey,
13688
13626
  useSubmitSelfEventRegistration,
13689
- useSubmitSelfEventRegistrationSessionPasses,
13627
+ useSubmitSelfEventSessionRegistration,
13690
13628
  useSubmitSurvey,
13691
13629
  useTransferPass,
13692
13630
  useUnblockAccount,