@connectedxm/admin 7.0.8 → 7.0.10

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.cjs CHANGED
@@ -145,6 +145,7 @@ __export(index_exports, {
145
145
  AddSurveyQuestionChoiceSubQuestion: () => AddSurveyQuestionChoiceSubQuestion,
146
146
  AddSurveySectionQuestion: () => AddSurveySectionQuestion,
147
147
  AddSurveySession: () => AddSurveySession,
148
+ AddThreadAccounts: () => AddThreadAccounts,
148
149
  AdminNotificationSource: () => AdminNotificationSource,
149
150
  AdminNotificationType: () => AdminNotificationType,
150
151
  AdvertisementType: () => AdvertisementType,
@@ -2432,6 +2433,7 @@ __export(index_exports, {
2432
2433
  useAddSurveyQuestionChoiceSubQuestion: () => useAddSurveyQuestionChoiceSubQuestion,
2433
2434
  useAddSurveySectionQuestion: () => useAddSurveySectionQuestion,
2434
2435
  useAddSurveySession: () => useAddSurveySession,
2436
+ useAddThreadAccounts: () => useAddThreadAccounts,
2435
2437
  useApproveEventPass: () => useApproveEventPass,
2436
2438
  useArchiveActivity: () => useArchiveActivity,
2437
2439
  useAttachBookingSpaceQuestionSearchList: () => useAttachBookingSpaceQuestionSearchList,
@@ -3897,6 +3899,7 @@ var FileSource = /* @__PURE__ */ ((FileSource2) => {
3897
3899
  FileSource2["admin"] = "admin";
3898
3900
  FileSource2["response"] = "response";
3899
3901
  FileSource2["content"] = "content";
3902
+ FileSource2["thread"] = "thread";
3900
3903
  return FileSource2;
3901
3904
  })(FileSource || {});
3902
3905
  var AccountAttributeType = /* @__PURE__ */ ((AccountAttributeType2) => {
@@ -42817,6 +42820,32 @@ var useUpdateSurvey = (options = {}) => {
42817
42820
  return useConnectedMutation(UpdateSurvey, options);
42818
42821
  };
42819
42822
 
42823
+ // src/mutations/threads/accounts/useAddThreadAccounts.ts
42824
+ var AddThreadAccounts = async ({
42825
+ threadId,
42826
+ accounts,
42827
+ adminApiParams,
42828
+ queryClient
42829
+ }) => {
42830
+ const connectedXM = await GetAdminAPI(adminApiParams);
42831
+ const { data } = await connectedXM.post(
42832
+ `/threads/${threadId}/accounts`,
42833
+ accounts
42834
+ );
42835
+ if (queryClient && data.status === "ok") {
42836
+ queryClient.invalidateQueries({
42837
+ queryKey: THREAD_ACCOUNTS_QUERY_KEY(threadId)
42838
+ });
42839
+ queryClient.invalidateQueries({
42840
+ queryKey: THREAD_QUERY_KEY(threadId)
42841
+ });
42842
+ }
42843
+ return data;
42844
+ };
42845
+ var useAddThreadAccounts = (options = {}) => {
42846
+ return useConnectedMutation(AddThreadAccounts, options);
42847
+ };
42848
+
42820
42849
  // src/mutations/threads/accounts/useDeleteThreadAccount.ts
42821
42850
  var DeleteThreadAccount = async ({
42822
42851
  threadId,
@@ -43390,6 +43419,7 @@ var useUpdateTier = (options = {}) => {
43390
43419
  AddSurveyQuestionChoiceSubQuestion,
43391
43420
  AddSurveySectionQuestion,
43392
43421
  AddSurveySession,
43422
+ AddThreadAccounts,
43393
43423
  AdminNotificationSource,
43394
43424
  AdminNotificationType,
43395
43425
  AdvertisementType,
@@ -45677,6 +45707,7 @@ var useUpdateTier = (options = {}) => {
45677
45707
  useAddSurveyQuestionChoiceSubQuestion,
45678
45708
  useAddSurveySectionQuestion,
45679
45709
  useAddSurveySession,
45710
+ useAddThreadAccounts,
45680
45711
  useApproveEventPass,
45681
45712
  useArchiveActivity,
45682
45713
  useAttachBookingSpaceQuestionSearchList,