@connectedxm/admin 6.33.0 → 7.0.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
@@ -342,6 +342,11 @@ var EventActivationType = /* @__PURE__ */ ((EventActivationType2) => {
342
342
  EventActivationType2["protected"] = "protected";
343
343
  return EventActivationType2;
344
344
  })(EventActivationType || {});
345
+ var EventActivationRewardType = /* @__PURE__ */ ((EventActivationRewardType2) => {
346
+ EventActivationRewardType2["max"] = "max";
347
+ EventActivationRewardType2["input"] = "input";
348
+ return EventActivationRewardType2;
349
+ })(EventActivationRewardType || {});
345
350
  var ModerationStatus = /* @__PURE__ */ ((ModerationStatus2) => {
346
351
  ModerationStatus2["none"] = "none";
347
352
  ModerationStatus2["reported"] = "reported";
@@ -619,40 +624,12 @@ var VideoSource = /* @__PURE__ */ ((VideoSource2) => {
619
624
  VideoSource2["content"] = "content";
620
625
  return VideoSource2;
621
626
  })(VideoSource || {});
622
- var ThreadInvitationStatus = /* @__PURE__ */ ((ThreadInvitationStatus2) => {
623
- ThreadInvitationStatus2["invited"] = "invited";
624
- ThreadInvitationStatus2["rejected"] = "rejected";
625
- return ThreadInvitationStatus2;
626
- })(ThreadInvitationStatus || {});
627
- var ThreadType = /* @__PURE__ */ ((ThreadType2) => {
628
- ThreadType2["circle"] = "circle";
629
- ThreadType2["group"] = "group";
630
- ThreadType2["event"] = "event";
631
- ThreadType2["stream"] = "stream";
632
- return ThreadType2;
633
- })(ThreadType || {});
634
- var ThreadMemberRole = /* @__PURE__ */ ((ThreadMemberRole2) => {
635
- ThreadMemberRole2["member"] = "member";
636
- ThreadMemberRole2["moderator"] = "moderator";
637
- return ThreadMemberRole2;
638
- })(ThreadMemberRole || {});
639
627
  var ThreadMessageType = /* @__PURE__ */ ((ThreadMessageType2) => {
640
628
  ThreadMessageType2["user"] = "user";
641
629
  ThreadMessageType2["bot"] = "bot";
642
630
  ThreadMessageType2["system"] = "system";
643
631
  return ThreadMessageType2;
644
632
  })(ThreadMessageType || {});
645
- var ThreadCircleAccountRole = /* @__PURE__ */ ((ThreadCircleAccountRole2) => {
646
- ThreadCircleAccountRole2["member"] = "member";
647
- ThreadCircleAccountRole2["manager"] = "manager";
648
- ThreadCircleAccountRole2["invited"] = "invited";
649
- return ThreadCircleAccountRole2;
650
- })(ThreadCircleAccountRole || {});
651
- var ThreadCircleType = /* @__PURE__ */ ((ThreadCircleType2) => {
652
- ThreadCircleType2["private"] = "private";
653
- ThreadCircleType2["direct"] = "direct";
654
- return ThreadCircleType2;
655
- })(ThreadCircleType || {});
656
633
  var LeadStatus = /* @__PURE__ */ ((LeadStatus2) => {
657
634
  LeadStatus2["new"] = "new";
658
635
  LeadStatus2["favorited"] = "favorited";
@@ -14354,48 +14331,6 @@ var useGetEventPayments = (eventId = "", params = {}, options = {}) => {
14354
14331
  );
14355
14332
  };
14356
14333
 
14357
- // src/queries/events/useGetEventThreads.ts
14358
- var EVENT_THREADS_QUERY_KEY = (eventId) => [
14359
- ...EVENT_QUERY_KEY(eventId),
14360
- "THREADS"
14361
- ];
14362
- var SET_EVENT_THREADS_QUERY_DATA = (client, keyParams, response) => {
14363
- client.setQueryData(EVENT_THREADS_QUERY_KEY(...keyParams), response);
14364
- };
14365
- var GetEventThreads = async ({
14366
- eventId,
14367
- pageParam,
14368
- pageSize,
14369
- orderBy,
14370
- search,
14371
- adminApiParams
14372
- }) => {
14373
- const adminApi = await GetAdminAPI(adminApiParams);
14374
- const { data } = await adminApi.get(`/events/${eventId}/threads`, {
14375
- params: {
14376
- page: pageParam || void 0,
14377
- pageSize: pageSize || void 0,
14378
- orderBy: orderBy || void 0,
14379
- search: search || void 0
14380
- }
14381
- });
14382
- return data;
14383
- };
14384
- var useGetEventThreads = (eventId, params = {}, options = {}) => {
14385
- return useConnectedInfiniteQuery(
14386
- EVENT_THREADS_QUERY_KEY(eventId),
14387
- (params2) => GetEventThreads({
14388
- ...params2,
14389
- eventId
14390
- }),
14391
- params,
14392
- {
14393
- ...options,
14394
- enabled: !!eventId && (options.enabled ?? true)
14395
- }
14396
- );
14397
- };
14398
-
14399
14334
  // src/queries/events/useGetEventTiers.ts
14400
14335
  var EVENT_TIERS_QUERY_KEY = (eventId) => [
14401
14336
  ...EVENT_QUERY_KEY(eventId),
@@ -14979,48 +14914,6 @@ var useGetGroupActivities = (groupId = "", featured, status, params = {}, option
14979
14914
  );
14980
14915
  };
14981
14916
 
14982
- // src/queries/groups/useGetGroupThreads.ts
14983
- var GROUP_THREADS_QUERY_KEY = (groupId) => [
14984
- ...GROUP_QUERY_KEY(groupId),
14985
- "THREADS"
14986
- ];
14987
- var SET_GROUP_THREADS_QUERY_DATA = (client, keyParams, response) => {
14988
- client.setQueryData(GROUP_THREADS_QUERY_KEY(...keyParams), response);
14989
- };
14990
- var GetGroupThreads = async ({
14991
- groupId,
14992
- pageParam,
14993
- pageSize,
14994
- orderBy,
14995
- search,
14996
- adminApiParams
14997
- }) => {
14998
- const adminApi = await GetAdminAPI(adminApiParams);
14999
- const { data } = await adminApi.get(`/groups/${groupId}/threads`, {
15000
- params: {
15001
- page: pageParam || void 0,
15002
- pageSize: pageSize || void 0,
15003
- orderBy: orderBy || void 0,
15004
- search: search || void 0
15005
- }
15006
- });
15007
- return data;
15008
- };
15009
- var useGetGroupThreads = (groupId, params = {}, options = {}) => {
15010
- return useConnectedInfiniteQuery(
15011
- GROUP_THREADS_QUERY_KEY(groupId),
15012
- (params2) => GetGroupThreads({
15013
- ...params2,
15014
- groupId
15015
- }),
15016
- params,
15017
- {
15018
- ...options,
15019
- enabled: !!groupId && (options.enabled ?? true)
15020
- }
15021
- );
15022
- };
15023
-
15024
14917
  // src/queries/imports/useGetImports.ts
15025
14918
  var IMPORTS_QUERY_KEY = (tierId) => {
15026
14919
  const keys = ["IMPORTS"];
@@ -21225,183 +21118,9 @@ var useGetSurveySessions = (surveyId = "", params = {}, options = {}) => {
21225
21118
  );
21226
21119
  };
21227
21120
 
21228
- // src/queries/threads/circles/useGetThreadCircles.ts
21229
- var THREAD_CIRCLES_QUERY_KEY = (type) => {
21230
- const key = ["CIRCLES"];
21231
- if (type) key.push(type);
21232
- return key;
21233
- };
21234
- var SET_THREAD_CIRCLES_QUERY_DATA = (client, keyParams, response) => {
21235
- client.setQueryData(THREAD_CIRCLES_QUERY_KEY(...keyParams), response);
21236
- };
21237
- var GetThreadCircles = async ({
21238
- type,
21239
- pageParam,
21240
- pageSize,
21241
- orderBy,
21242
- search,
21243
- adminApiParams
21244
- }) => {
21245
- const adminApi = await GetAdminAPI(adminApiParams);
21246
- const { data } = await adminApi.get(`/threads/circles`, {
21247
- params: {
21248
- page: pageParam || void 0,
21249
- pageSize: pageSize || void 0,
21250
- orderBy: orderBy || void 0,
21251
- search: search || void 0,
21252
- type: type || void 0
21253
- }
21254
- });
21255
- return data;
21256
- };
21257
- var useGetThreadCircles = (type, params = {}, options = {}) => {
21258
- return useConnectedInfiniteQuery(
21259
- THREAD_CIRCLES_QUERY_KEY(type),
21260
- (params2) => GetThreadCircles({ type, ...params2 }),
21261
- params,
21262
- options
21263
- );
21264
- };
21265
-
21266
- // src/queries/threads/circles/useGetThreadCircle.ts
21267
- var THREAD_CIRCLE_QUERY_KEY = (circleId) => [
21268
- ...THREAD_CIRCLES_QUERY_KEY(),
21269
- circleId
21270
- ];
21271
- var SET_THREAD_CIRCLE_QUERY_DATA = (client, keyParams, response) => {
21272
- client.setQueryData(THREAD_CIRCLE_QUERY_KEY(...keyParams), response);
21273
- };
21274
- var GetThreadCircle = async ({
21275
- circleId,
21276
- adminApiParams
21277
- }) => {
21278
- const adminApi = await GetAdminAPI(adminApiParams);
21279
- const { data } = await adminApi.get(`/threads/circles/${circleId}`);
21280
- return data;
21281
- };
21282
- var useGetThreadCircle = (circleId = "", options = {}) => {
21283
- return useConnectedSingleQuery(
21284
- THREAD_CIRCLE_QUERY_KEY(circleId),
21285
- (params) => GetThreadCircle({ circleId, ...params }),
21286
- {
21287
- ...options,
21288
- enabled: !!circleId && (options.enabled ?? true)
21289
- }
21290
- );
21291
- };
21292
-
21293
- // src/queries/threads/circles/accounts/useGetThreadCircleAccounts.ts
21294
- var THREAD_CIRCLE_ACCOUNTS_QUERY_KEY = (circleId, role) => {
21295
- const key = [...THREAD_CIRCLE_QUERY_KEY(circleId), "ACCOUNTS"];
21296
- if (role) {
21297
- key.push(role);
21298
- }
21299
- return key;
21300
- };
21301
- var SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA = (client, keyParams, response) => {
21302
- client.setQueryData(THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(...keyParams), response);
21303
- };
21304
- var GetThreadCircleAccounts = async ({
21305
- circleId,
21306
- role,
21307
- pageParam,
21308
- pageSize,
21309
- orderBy,
21310
- search,
21311
- adminApiParams
21312
- }) => {
21313
- const adminApi = await GetAdminAPI(adminApiParams);
21314
- const { data } = await adminApi.get(`/threads/circles/${circleId}/accounts`, {
21315
- params: {
21316
- page: pageParam || void 0,
21317
- pageSize: pageSize || void 0,
21318
- orderBy: orderBy || void 0,
21319
- search: search || void 0,
21320
- role: role || void 0
21321
- }
21322
- });
21323
- return data;
21324
- };
21325
- var useGetThreadCircleAccounts = (circleId, role, params = {}, options = {}) => {
21326
- return useConnectedInfiniteQuery(
21327
- THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(circleId, role),
21328
- (params2) => GetThreadCircleAccounts({ circleId, role, ...params2 }),
21329
- params,
21330
- {
21331
- ...options,
21332
- enabled: !!circleId && (options.enabled ?? true)
21333
- }
21334
- );
21335
- };
21336
-
21337
- // src/queries/threads/circles/accounts/useGetThreadCircleAccount.ts
21338
- var THREAD_CIRCLE_ACCOUNT_QUERY_KEY = (circleId, accountId) => [...THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(circleId), accountId];
21339
- var SET_THREAD_CIRCLE_ACCOUNT_QUERY_DATA = (client, keyParams, response) => {
21340
- client.setQueryData(THREAD_CIRCLE_ACCOUNT_QUERY_KEY(...keyParams), response);
21341
- };
21342
- var GetThreadCircleAccount = async ({
21343
- circleId,
21344
- accountId,
21345
- adminApiParams
21346
- }) => {
21347
- const adminApi = await GetAdminAPI(adminApiParams);
21348
- const { data } = await adminApi.get(
21349
- `/threads/circles/${circleId}/accounts/${accountId}`
21350
- );
21351
- return data;
21352
- };
21353
- var useGetThreadCircleAccount = (circleId, accountId, options = {}) => {
21354
- return useConnectedSingleQuery(
21355
- THREAD_CIRCLE_ACCOUNT_QUERY_KEY(circleId, accountId),
21356
- (params) => GetThreadCircleAccount({ circleId, accountId, ...params }),
21357
- options
21358
- );
21359
- };
21360
-
21361
- // src/queries/threads/circles/useGetThreadCircleThreads.ts
21362
- var THREAD_CIRCLE_THREADS_QUERY_KEY = (circleId) => [
21363
- THREAD_CIRCLE_QUERY_KEY(circleId),
21364
- circleId
21365
- ];
21366
- var SET_THREAD_CIRCLE_THREADS_QUERY_DATA = (client, keyParams, response) => {
21367
- client.setQueryData(THREAD_CIRCLE_THREADS_QUERY_KEY(...keyParams), response);
21368
- };
21369
- var GetThreadCircleThreads = async ({
21370
- circleId,
21371
- pageParam,
21372
- pageSize,
21373
- orderBy,
21374
- search,
21375
- adminApiParams
21376
- }) => {
21377
- const adminApi = await GetAdminAPI(adminApiParams);
21378
- const { data } = await adminApi.get(`/threads/circles/${circleId}/threads`, {
21379
- params: {
21380
- page: pageParam || void 0,
21381
- pageSize: pageSize || void 0,
21382
- orderBy: orderBy || void 0,
21383
- search: search || void 0
21384
- }
21385
- });
21386
- return data;
21387
- };
21388
- var useGetThreadCircleThreads = (circleId = "", params = {}, options = {}) => {
21389
- return useConnectedInfiniteQuery(
21390
- THREAD_CIRCLE_THREADS_QUERY_KEY(circleId),
21391
- (params2) => GetThreadCircleThreads({ circleId, ...params2 }),
21392
- params,
21393
- {
21394
- enabled: !!circleId && (options.enabled ?? true),
21395
- ...options
21396
- }
21397
- );
21398
- };
21399
-
21400
21121
  // src/queries/threads/useGetThreads.ts
21401
- var THREADS_QUERY_KEY = (type) => {
21402
- const key = ["THREADS"];
21403
- if (type) key.push(type);
21404
- return key;
21122
+ var THREADS_QUERY_KEY = () => {
21123
+ return ["THREADS"];
21405
21124
  };
21406
21125
  var SET_THREADS_QUERY_DATA = (client, keyParams, response) => {
21407
21126
  client.setQueryData(THREADS_QUERY_KEY(...keyParams), response);
@@ -21411,7 +21130,6 @@ var GetThreads = async ({
21411
21130
  pageSize,
21412
21131
  orderBy,
21413
21132
  search,
21414
- type,
21415
21133
  adminApiParams
21416
21134
  }) => {
21417
21135
  const adminApi = await GetAdminAPI(adminApiParams);
@@ -21420,16 +21138,15 @@ var GetThreads = async ({
21420
21138
  page: pageParam || void 0,
21421
21139
  pageSize: pageSize || void 0,
21422
21140
  orderBy: orderBy || void 0,
21423
- search: search || void 0,
21424
- type: type || void 0
21141
+ search: search || void 0
21425
21142
  }
21426
21143
  });
21427
21144
  return data;
21428
21145
  };
21429
- var useGetThreads = (type, params = {}, options = {}) => {
21146
+ var useGetThreads = (params = {}, options = {}) => {
21430
21147
  return useConnectedInfiniteQuery(
21431
- THREADS_QUERY_KEY(type),
21432
- (params2) => GetThreads({ ...params2, type }),
21148
+ THREADS_QUERY_KEY(),
21149
+ (params2) => GetThreads({ ...params2 }),
21433
21150
  params,
21434
21151
  options
21435
21152
  );
@@ -21462,7 +21179,7 @@ var useGetThread = (threadId = "", options = {}) => {
21462
21179
  );
21463
21180
  };
21464
21181
 
21465
- // src/queries/threads/members/useGetThreadAccounts.ts
21182
+ // src/queries/threads/accounts/useGetThreadAccounts.ts
21466
21183
  var THREAD_ACCOUNTS_QUERY_KEY = (threadId) => {
21467
21184
  const key = [...THREAD_QUERY_KEY(threadId), "ACCOUNTS"];
21468
21185
  return key;
@@ -21498,42 +21215,6 @@ var useGetThreadAccounts = (threadId = "", params = {}, options = {}) => {
21498
21215
  );
21499
21216
  };
21500
21217
 
21501
- // src/queries/threads/members/useGetThreadMembers.ts
21502
- var THREAD_MEMBERS_QUERY_KEY = (threadId) => {
21503
- const key = [...THREAD_QUERY_KEY(threadId), "VIEWERS"];
21504
- return key;
21505
- };
21506
- var GetThreadMembers = async ({
21507
- threadId,
21508
- pageParam,
21509
- pageSize,
21510
- orderBy,
21511
- search,
21512
- adminApiParams
21513
- }) => {
21514
- const adminApi = await GetAdminAPI(adminApiParams);
21515
- const { data } = await adminApi.get(`/threads/${threadId}/members`, {
21516
- params: {
21517
- page: pageParam || void 0,
21518
- pageSize: pageSize || void 0,
21519
- orderBy: orderBy || void 0,
21520
- search: search || void 0
21521
- }
21522
- });
21523
- return data;
21524
- };
21525
- var useGetThreadMembers = (threadId = "", params = {}, options = {}) => {
21526
- return useConnectedInfiniteQuery(
21527
- THREAD_MEMBERS_QUERY_KEY(threadId),
21528
- (params2) => GetThreadMembers({ ...params2, threadId }),
21529
- params,
21530
- {
21531
- ...options,
21532
- enabled: !!threadId && (options.enabled ?? true)
21533
- }
21534
- );
21535
- };
21536
-
21537
21218
  // src/queries/threads/messages/useGetThreadMessages.ts
21538
21219
  var THREAD_MESSAGES_QUERY_KEY = (threadId) => [
21539
21220
  ...THREAD_QUERY_KEY(threadId),
@@ -24931,6 +24612,27 @@ var useAddEventActivationSession = (options = {}) => {
24931
24612
  return useConnectedMutation(AddEventActivationSession, options);
24932
24613
  };
24933
24614
 
24615
+ // src/mutations/events/activations/sessions/useRemoveEventActivationSessions.ts
24616
+ var RemoveEventActivationSessions = async ({
24617
+ eventId,
24618
+ activationId,
24619
+ adminApiParams,
24620
+ queryClient
24621
+ }) => {
24622
+ const connectedXM = await GetAdminAPI(adminApiParams);
24623
+ const { data } = await connectedXM.delete(`/events/${eventId}/activations/${activationId}/sessions`);
24624
+ if (queryClient && data.status === "ok") {
24625
+ queryClient.invalidateQueries({
24626
+ queryKey: EVENT_ACTIVATION_SESSIONS_QUERY_KEY(eventId, activationId)
24627
+ });
24628
+ SET_EVENT_ACTIVATION_QUERY_DATA(queryClient, [eventId, activationId], data);
24629
+ }
24630
+ return data;
24631
+ };
24632
+ var useRemoveEventActivationSessions = (options = {}) => {
24633
+ return useConnectedMutation(RemoveEventActivationSessions, options);
24634
+ };
24635
+
24934
24636
  // src/mutations/events/activations/sessions/useRemoveEventActivationSession.ts
24935
24637
  var RemoveEventActivationSession = async ({
24936
24638
  eventId,
@@ -39413,160 +39115,47 @@ var useUpdateSurvey = (options = {}) => {
39413
39115
  return useConnectedMutation(UpdateSurvey, options);
39414
39116
  };
39415
39117
 
39416
- // src/mutations/threads/circles/accounts/useCreateThreadCircleAccount.ts
39417
- var CreateThreadCircleAccount = async ({
39418
- circleId,
39419
- account,
39420
- adminApiParams,
39421
- queryClient
39422
- }) => {
39423
- const connectedXM = await GetAdminAPI(adminApiParams);
39424
- const { data } = await connectedXM.post(`/threads/circles/${circleId}/accounts`, account);
39425
- if (queryClient && data.status === "ok") {
39426
- queryClient.invalidateQueries({
39427
- queryKey: THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(circleId)
39428
- });
39429
- }
39430
- return data;
39431
- };
39432
- var useCreateThreadCircleAccount = (options = {}) => {
39433
- return useConnectedMutation(CreateThreadCircleAccount, options);
39434
- };
39435
-
39436
- // src/mutations/threads/circles/accounts/useDeleteThreadCircleAccount.ts
39437
- var DeleteThreadCircleAccount = async ({
39438
- circleId,
39118
+ // src/mutations/threads/accounts/useDeleteThreadAccount.ts
39119
+ var DeleteThreadAccount = async ({
39120
+ threadId,
39439
39121
  accountId,
39440
39122
  adminApiParams,
39441
39123
  queryClient
39442
39124
  }) => {
39443
39125
  const connectedXM = await GetAdminAPI(adminApiParams);
39444
39126
  const { data } = await connectedXM.delete(
39445
- `/threads/circles/${circleId}/accounts/${accountId}`
39127
+ `/threads/${threadId}/accounts/${accountId}`
39446
39128
  );
39447
39129
  if (queryClient && data.status === "ok") {
39448
39130
  queryClient.invalidateQueries({
39449
- queryKey: THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(circleId)
39131
+ queryKey: THREAD_ACCOUNTS_QUERY_KEY(threadId)
39450
39132
  });
39451
- queryClient.removeQueries({
39452
- queryKey: THREAD_CIRCLE_ACCOUNT_QUERY_KEY(circleId, accountId)
39453
- });
39454
- }
39455
- return data;
39456
- };
39457
- var useDeleteThreadCircleAccount = (options = {}) => {
39458
- return useConnectedMutation(DeleteThreadCircleAccount, options);
39459
- };
39460
-
39461
- // src/mutations/threads/circles/accounts/useUpdateThreadCircleAccount.ts
39462
- var UpdateThreadCircleAccount = async ({
39463
- circleId,
39464
- accountId,
39465
- account,
39466
- adminApiParams,
39467
- queryClient
39468
- }) => {
39469
- const connectedXM = await GetAdminAPI(adminApiParams);
39470
- const { data } = await connectedXM.put(`/threads/circles/${circleId}/accounts/${accountId}`, account);
39471
- if (queryClient && data.status === "ok") {
39472
39133
  queryClient.invalidateQueries({
39473
- queryKey: THREAD_CIRCLE_ACCOUNTS_QUERY_KEY(circleId)
39474
- });
39475
- }
39476
- return data;
39477
- };
39478
- var useUpdateThreadCircleAccount = (options = {}) => {
39479
- return useConnectedMutation(UpdateThreadCircleAccount, options);
39480
- };
39481
-
39482
- // src/mutations/threads/circles/useCreateThreadCircle.ts
39483
- var CreateThreadCircle = async ({
39484
- circle,
39485
- adminApiParams,
39486
- queryClient
39487
- }) => {
39488
- const connectedXM = await GetAdminAPI(adminApiParams);
39489
- const { data } = await connectedXM.post(
39490
- `/threads/circles`,
39491
- circle
39492
- );
39493
- if (queryClient && data.status === "ok") {
39494
- queryClient.invalidateQueries({
39495
- queryKey: THREAD_CIRCLES_QUERY_KEY()
39496
- });
39497
- }
39498
- return data;
39499
- };
39500
- var useCreateThreadCircle = (options = {}) => {
39501
- return useConnectedMutation(CreateThreadCircle, options);
39502
- };
39503
-
39504
- // src/mutations/threads/circles/useDeleteThreadCircle.ts
39505
- var DeleteThreadCircle = async ({
39506
- circleId,
39507
- adminApiParams,
39508
- queryClient
39509
- }) => {
39510
- const connectedXM = await GetAdminAPI(adminApiParams);
39511
- const { data } = await connectedXM.delete(
39512
- `/threads/circles/${circleId}`
39513
- );
39514
- if (queryClient && data.status === "ok") {
39515
- queryClient.invalidateQueries({
39516
- queryKey: THREAD_CIRCLE_QUERY_KEY(circleId)
39517
- });
39518
- queryClient.invalidateQueries({
39519
- queryKey: THREAD_CIRCLES_QUERY_KEY()
39520
- });
39521
- }
39522
- return data;
39523
- };
39524
- var useDeleteThreadCircle = (options = {}) => {
39525
- return useConnectedMutation(DeleteThreadCircle, options);
39526
- };
39527
-
39528
- // src/mutations/threads/circles/useUpdateThreadCircle.ts
39529
- var UpdateThreadCircle = async ({
39530
- circleId,
39531
- circle,
39532
- adminApiParams,
39533
- queryClient
39534
- }) => {
39535
- const connectedXM = await GetAdminAPI(adminApiParams);
39536
- const { data } = await connectedXM.put(
39537
- `/threads/circles/${circleId}`,
39538
- circle
39539
- );
39540
- if (queryClient && data.status === "ok") {
39541
- queryClient.invalidateQueries({
39542
- queryKey: THREAD_CIRCLE_QUERY_KEY(circleId)
39543
- });
39544
- queryClient.invalidateQueries({
39545
- queryKey: THREAD_CIRCLES_QUERY_KEY()
39134
+ queryKey: THREAD_QUERY_KEY(threadId)
39546
39135
  });
39547
39136
  }
39548
39137
  return data;
39549
39138
  };
39550
- var useUpdateThreadCircle = (options = {}) => {
39551
- return useConnectedMutation(UpdateThreadCircle, options);
39139
+ var useDeleteThreadAccount = (options = {}) => {
39140
+ return useConnectedMutation(DeleteThreadAccount, options);
39552
39141
  };
39553
39142
 
39554
- // src/mutations/threads/members/useUpdateThreadMember.ts
39555
- var UpdateThreadMember = async ({
39143
+ // src/mutations/threads/accounts/useUpdateThreadAccount.ts
39144
+ var UpdateThreadAccount = async ({
39556
39145
  threadId,
39557
39146
  accountId,
39558
- member,
39147
+ threadAccount,
39559
39148
  adminApiParams,
39560
39149
  queryClient
39561
39150
  }) => {
39562
39151
  const connectedXM = await GetAdminAPI(adminApiParams);
39563
39152
  const { data } = await connectedXM.put(
39564
- `/threads/${threadId}/members/${accountId}`,
39565
- member
39153
+ `/threads/${threadId}/accounts/${accountId}`,
39154
+ threadAccount
39566
39155
  );
39567
39156
  if (queryClient && data.status === "ok") {
39568
39157
  queryClient.invalidateQueries({
39569
- queryKey: THREAD_MEMBERS_QUERY_KEY(threadId)
39158
+ queryKey: THREAD_ACCOUNTS_QUERY_KEY(threadId)
39570
39159
  });
39571
39160
  queryClient.invalidateQueries({
39572
39161
  queryKey: THREAD_QUERY_KEY(threadId)
@@ -39574,8 +39163,8 @@ var UpdateThreadMember = async ({
39574
39163
  }
39575
39164
  return data;
39576
39165
  };
39577
- var useUpdateThreadMember = (options = {}) => {
39578
- return useConnectedMutation(UpdateThreadMember, options);
39166
+ var useUpdateThreadAccount = (options = {}) => {
39167
+ return useConnectedMutation(UpdateThreadAccount, options);
39579
39168
  };
39580
39169
 
39581
39170
  // src/mutations/threads/messages/files/useCreateThreadMessageFile.ts
@@ -39845,21 +39434,7 @@ var CreateThread = async ({
39845
39434
  thread
39846
39435
  );
39847
39436
  if (queryClient && data.status === "ok") {
39848
- if (thread.groupId) {
39849
- queryClient.invalidateQueries({
39850
- queryKey: GROUP_THREADS_QUERY_KEY(thread.groupId)
39851
- });
39852
- }
39853
- if (thread.circleId) {
39854
- queryClient.invalidateQueries({
39855
- queryKey: THREAD_CIRCLE_THREADS_QUERY_KEY(thread.circleId)
39856
- });
39857
- }
39858
- if (thread.eventId) {
39859
- queryClient.invalidateQueries({
39860
- queryKey: EVENT_THREADS_QUERY_KEY(thread.eventId)
39861
- });
39862
- }
39437
+ queryClient.invalidateQueries({ queryKey: THREADS_QUERY_KEY() });
39863
39438
  }
39864
39439
  return data;
39865
39440
  };
@@ -40301,8 +39876,6 @@ export {
40301
39876
  CreateSurveySection,
40302
39877
  CreateTaxIntegration,
40303
39878
  CreateThread,
40304
- CreateThreadCircle,
40305
- CreateThreadCircleAccount,
40306
39879
  CreateThreadMessage,
40307
39880
  CreateThreadMessageFile,
40308
39881
  CreateThreadMessageImage,
@@ -40470,8 +40043,7 @@ export {
40470
40043
  DeleteSurveyTranslation,
40471
40044
  DeleteTaxIntegration,
40472
40045
  DeleteThread,
40473
- DeleteThreadCircle,
40474
- DeleteThreadCircleAccount,
40046
+ DeleteThreadAccount,
40475
40047
  DeleteThreadMessage,
40476
40048
  DeleteThreadMessageFile,
40477
40049
  DeleteThreadMessageImage,
@@ -40706,7 +40278,6 @@ export {
40706
40278
  EVENT_SPONSORS_QUERY_KEY,
40707
40279
  EVENT_SPONSOR_ACCOUNTS_QUERY_KEY,
40708
40280
  EVENT_TEMPLATES_QUERY_KEY,
40709
- EVENT_THREADS_QUERY_KEY,
40710
40281
  EVENT_TIERS_QUERY_KEY,
40711
40282
  EVENT_TRACKS_QUERY_KEY,
40712
40283
  EVENT_TRACK_QUERY_KEY,
@@ -40719,6 +40290,7 @@ export {
40719
40290
  EmailReceiptStatus,
40720
40291
  EnableEventBuildMode,
40721
40292
  EnableLivestream,
40293
+ EventActivationRewardType,
40722
40294
  EventActivationType,
40723
40295
  EventAgendaVisibility,
40724
40296
  EventEmailType,
@@ -40748,7 +40320,6 @@ export {
40748
40320
  GROUP_REQUESTS_QUERY_KEY,
40749
40321
  GROUP_REQUEST_QUERY_KEY,
40750
40322
  GROUP_SPONSORS_QUERY_KEY,
40751
- GROUP_THREADS_QUERY_KEY,
40752
40323
  GROUP_TRANSLATIONS_QUERY_KEY,
40753
40324
  GROUP_TRANSLATION_QUERY_KEY,
40754
40325
  GenerateMeetingSessionSummary,
@@ -41072,7 +40643,6 @@ export {
41072
40643
  GetEventSponsorshipTranslation,
41073
40644
  GetEventSponsorshipTranslations,
41074
40645
  GetEventSponsorships,
41075
- GetEventThreads,
41076
40646
  GetEventTiers,
41077
40647
  GetEventTrack,
41078
40648
  GetEventTrackSessions,
@@ -41097,7 +40667,6 @@ export {
41097
40667
  GetGroupRequest,
41098
40668
  GetGroupRequests,
41099
40669
  GetGroupSponsors,
41100
- GetGroupThreads,
41101
40670
  GetGroupTranslation,
41102
40671
  GetGroupTranslations,
41103
40672
  GetGroups,
@@ -41265,12 +40834,6 @@ export {
41265
40834
  GetTemplates,
41266
40835
  GetThread,
41267
40836
  GetThreadAccounts,
41268
- GetThreadCircle,
41269
- GetThreadCircleAccount,
41270
- GetThreadCircleAccounts,
41271
- GetThreadCircleThreads,
41272
- GetThreadCircles,
41273
- GetThreadMembers,
41274
40837
  GetThreadMessage,
41275
40838
  GetThreadMessageFiles,
41276
40839
  GetThreadMessageImages,
@@ -41428,6 +40991,7 @@ export {
41428
40991
  RemoveCustomReportUser,
41429
40992
  RemoveEventAccessUser,
41430
40993
  RemoveEventActivationSession,
40994
+ RemoveEventActivationSessions,
41431
40995
  RemoveEventAddOnPassType,
41432
40996
  RemoveEventAddOnTier,
41433
40997
  RemoveEventBenefit,
@@ -41849,7 +41413,6 @@ export {
41849
41413
  SET_EVENT_SPONSORS_QUERY_DATA,
41850
41414
  SET_EVENT_SPONSOR_ACCOUNTS_QUERY_DATA,
41851
41415
  SET_EVENT_TEMPLATES_QUERY_DATA,
41852
- SET_EVENT_THREADS_QUERY_DATA,
41853
41416
  SET_EVENT_TIERS_QUERY_DATA,
41854
41417
  SET_EVENT_TRACKS_QUERY_DATA,
41855
41418
  SET_EVENT_TRACK_QUERY_DATA,
@@ -41874,7 +41437,6 @@ export {
41874
41437
  SET_GROUP_REQUESTS_QUERY_DATA,
41875
41438
  SET_GROUP_REQUEST_QUERY_DATA,
41876
41439
  SET_GROUP_SPONSORS_QUERY_DATA,
41877
- SET_GROUP_THREADS_QUERY_DATA,
41878
41440
  SET_GROUP_TRANSLATIONS_QUERY_DATA,
41879
41441
  SET_GROUP_TRANSLATION_QUERY_DATA,
41880
41442
  SET_IMAGES_QUERY_DATA,
@@ -42024,11 +41586,6 @@ export {
42024
41586
  SET_TAX_LOGS_QUERY_DATA,
42025
41587
  SET_TAX_LOG_QUERY_DATA,
42026
41588
  SET_THREADS_QUERY_DATA,
42027
- SET_THREAD_CIRCLES_QUERY_DATA,
42028
- SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA,
42029
- SET_THREAD_CIRCLE_ACCOUNT_QUERY_DATA,
42030
- SET_THREAD_CIRCLE_QUERY_DATA,
42031
- SET_THREAD_CIRCLE_THREADS_QUERY_DATA,
42032
41589
  SET_THREAD_MESSAGES_POLL_QUERY_DATA,
42033
41590
  SET_THREAD_MESSAGES_QUERY_DATA,
42034
41591
  SET_THREAD_MESSAGE_FILES_QUERY_DATA,
@@ -42114,12 +41671,6 @@ export {
42114
41671
  TAX_LOG_QUERY_KEY,
42115
41672
  THREADS_QUERY_KEY,
42116
41673
  THREAD_ACCOUNTS_QUERY_KEY,
42117
- THREAD_CIRCLES_QUERY_KEY,
42118
- THREAD_CIRCLE_ACCOUNTS_QUERY_KEY,
42119
- THREAD_CIRCLE_ACCOUNT_QUERY_KEY,
42120
- THREAD_CIRCLE_QUERY_KEY,
42121
- THREAD_CIRCLE_THREADS_QUERY_KEY,
42122
- THREAD_MEMBERS_QUERY_KEY,
42123
41674
  THREAD_MESSAGES_POLL_QUERY_KEY,
42124
41675
  THREAD_MESSAGES_QUERY_KEY,
42125
41676
  THREAD_MESSAGE_FILES_QUERY_KEY,
@@ -42138,12 +41689,7 @@ export {
42138
41689
  TaxIntegrationType,
42139
41690
  TaxLocationType,
42140
41691
  TestTaxIntegration,
42141
- ThreadCircleAccountRole,
42142
- ThreadCircleType,
42143
- ThreadInvitationStatus,
42144
- ThreadMemberRole,
42145
41692
  ThreadMessageType,
42146
- ThreadType,
42147
41693
  ToggleOrganizationPaymentIntegration,
42148
41694
  ToggleTaxIntegration,
42149
41695
  TransferEventPass,
@@ -42326,9 +41872,7 @@ export {
42326
41872
  UpdateSurveyTranslation,
42327
41873
  UpdateTaxIntegration,
42328
41874
  UpdateThread,
42329
- UpdateThreadCircle,
42330
- UpdateThreadCircleAccount,
42331
- UpdateThreadMember,
41875
+ UpdateThreadAccount,
42332
41876
  UpdateThreadMessage,
42333
41877
  UpdateTier,
42334
41878
  UpdateUserImage,
@@ -42544,8 +42088,6 @@ export {
42544
42088
  useCreateSurveySection,
42545
42089
  useCreateTaxIntegration,
42546
42090
  useCreateThread,
42547
- useCreateThreadCircle,
42548
- useCreateThreadCircleAccount,
42549
42091
  useCreateThreadMessage,
42550
42092
  useCreateThreadMessageFile,
42551
42093
  useCreateThreadMessageImage,
@@ -42704,8 +42246,7 @@ export {
42704
42246
  useDeleteSurveyTranslation,
42705
42247
  useDeleteTaxIntegration,
42706
42248
  useDeleteThread,
42707
- useDeleteThreadCircle,
42708
- useDeleteThreadCircleAccount,
42249
+ useDeleteThreadAccount,
42709
42250
  useDeleteThreadMessage,
42710
42251
  useDeleteThreadMessageFile,
42711
42252
  useDeleteThreadMessageImage,
@@ -43047,7 +42588,6 @@ export {
43047
42588
  useGetEventSponsorshipTranslation,
43048
42589
  useGetEventSponsorshipTranslations,
43049
42590
  useGetEventSponsorships,
43050
- useGetEventThreads,
43051
42591
  useGetEventTiers,
43052
42592
  useGetEventTrack,
43053
42593
  useGetEventTrackSessions,
@@ -43072,7 +42612,6 @@ export {
43072
42612
  useGetGroupRequest,
43073
42613
  useGetGroupRequests,
43074
42614
  useGetGroupSponsors,
43075
- useGetGroupThreads,
43076
42615
  useGetGroupTranslation,
43077
42616
  useGetGroupTranslations,
43078
42617
  useGetGroups,
@@ -43239,12 +42778,6 @@ export {
43239
42778
  useGetTemplates,
43240
42779
  useGetThread,
43241
42780
  useGetThreadAccounts,
43242
- useGetThreadCircle,
43243
- useGetThreadCircleAccount,
43244
- useGetThreadCircleAccounts,
43245
- useGetThreadCircleThreads,
43246
- useGetThreadCircles,
43247
- useGetThreadMembers,
43248
42781
  useGetThreadMessage,
43249
42782
  useGetThreadMessageFiles,
43250
42783
  useGetThreadMessageImages,
@@ -43285,6 +42818,7 @@ export {
43285
42818
  useRemoveCustomReportUser,
43286
42819
  useRemoveEventAccessUser,
43287
42820
  useRemoveEventActivationSession,
42821
+ useRemoveEventActivationSessions,
43288
42822
  useRemoveEventAddOnPassType,
43289
42823
  useRemoveEventAddOnTier,
43290
42824
  useRemoveEventBenefit,
@@ -43554,9 +43088,7 @@ export {
43554
43088
  useUpdateSurveyTranslation,
43555
43089
  useUpdateTaxIntegration,
43556
43090
  useUpdateThread,
43557
- useUpdateThreadCircle,
43558
- useUpdateThreadCircleAccount,
43559
- useUpdateThreadMember,
43091
+ useUpdateThreadAccount,
43560
43092
  useUpdateThreadMessage,
43561
43093
  useUpdateTier,
43562
43094
  useUpdateUserImage,