@connectedxm/admin 2.4.0 → 2.4.1
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 +100 -37
- package/dist/index.d.cts +61 -32
- package/dist/index.d.ts +61 -32
- package/dist/index.js +96 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17217,43 +17217,6 @@ var useGetThreadCircleThreads = (circleId = "", params = {}, options = {}) => {
|
|
|
17217
17217
|
);
|
|
17218
17218
|
};
|
|
17219
17219
|
|
|
17220
|
-
// src/queries/threads/useGetThreadViewers.ts
|
|
17221
|
-
var THREAD_VIEWERS_QUERY_KEY = (threadId) => {
|
|
17222
|
-
const key = [...THREAD_QUERY_KEY(threadId), "VIEWERS"];
|
|
17223
|
-
return key;
|
|
17224
|
-
};
|
|
17225
|
-
var GetThreadViewers = async ({
|
|
17226
|
-
threadId,
|
|
17227
|
-
pageParam,
|
|
17228
|
-
pageSize,
|
|
17229
|
-
orderBy,
|
|
17230
|
-
search,
|
|
17231
|
-
adminApiParams
|
|
17232
|
-
}) => {
|
|
17233
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17234
|
-
const { data } = await adminApi.get(`/threads/${threadId}/viewers`, {
|
|
17235
|
-
params: {
|
|
17236
|
-
page: pageParam || void 0,
|
|
17237
|
-
pageSize: pageSize || void 0,
|
|
17238
|
-
orderBy: orderBy || void 0,
|
|
17239
|
-
search: search || void 0
|
|
17240
|
-
}
|
|
17241
|
-
});
|
|
17242
|
-
return data;
|
|
17243
|
-
};
|
|
17244
|
-
var useGetThreadViewers = (threadId = "", params = {}, options = {}) => {
|
|
17245
|
-
return useConnectedInfiniteQuery(
|
|
17246
|
-
THREAD_VIEWERS_QUERY_KEY(threadId),
|
|
17247
|
-
(params2) => GetThreadViewers({ ...params2, threadId }),
|
|
17248
|
-
params,
|
|
17249
|
-
{
|
|
17250
|
-
...options,
|
|
17251
|
-
enabled: !!threadId && (options.enabled ?? true)
|
|
17252
|
-
},
|
|
17253
|
-
"threads"
|
|
17254
|
-
);
|
|
17255
|
-
};
|
|
17256
|
-
|
|
17257
17220
|
// src/utilities/AppendInfiniteQuery.ts
|
|
17258
17221
|
import { produce } from "immer";
|
|
17259
17222
|
var AppendInfiniteQuery = (queryClient, key, newData) => {
|
|
@@ -17646,6 +17609,43 @@ var useGetThreadMessageVideos = (threadId, messageId, params = {}, options = {})
|
|
|
17646
17609
|
);
|
|
17647
17610
|
};
|
|
17648
17611
|
|
|
17612
|
+
// src/queries/threads/useGetThreadViewers.ts
|
|
17613
|
+
var THREAD_VIEWERS_QUERY_KEY = (threadId) => {
|
|
17614
|
+
const key = [...THREAD_QUERY_KEY(threadId), "VIEWERS"];
|
|
17615
|
+
return key;
|
|
17616
|
+
};
|
|
17617
|
+
var GetThreadViewers = async ({
|
|
17618
|
+
threadId,
|
|
17619
|
+
pageParam,
|
|
17620
|
+
pageSize,
|
|
17621
|
+
orderBy,
|
|
17622
|
+
search,
|
|
17623
|
+
adminApiParams
|
|
17624
|
+
}) => {
|
|
17625
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17626
|
+
const { data } = await adminApi.get(`/threads/${threadId}/viewers`, {
|
|
17627
|
+
params: {
|
|
17628
|
+
page: pageParam || void 0,
|
|
17629
|
+
pageSize: pageSize || void 0,
|
|
17630
|
+
orderBy: orderBy || void 0,
|
|
17631
|
+
search: search || void 0
|
|
17632
|
+
}
|
|
17633
|
+
});
|
|
17634
|
+
return data;
|
|
17635
|
+
};
|
|
17636
|
+
var useGetThreadViewers = (threadId = "", params = {}, options = {}) => {
|
|
17637
|
+
return useConnectedInfiniteQuery(
|
|
17638
|
+
THREAD_VIEWERS_QUERY_KEY(threadId),
|
|
17639
|
+
(params2) => GetThreadViewers({ ...params2, threadId }),
|
|
17640
|
+
params,
|
|
17641
|
+
{
|
|
17642
|
+
...options,
|
|
17643
|
+
enabled: !!threadId && (options.enabled ?? true)
|
|
17644
|
+
},
|
|
17645
|
+
"threads"
|
|
17646
|
+
);
|
|
17647
|
+
};
|
|
17648
|
+
|
|
17649
17649
|
// src/queries/tiers/useGetTiers.ts
|
|
17650
17650
|
var TIERS_QUERY_KEY = (type) => {
|
|
17651
17651
|
const keys = ["TIERS"];
|
|
@@ -22897,6 +22897,9 @@ var CreateEventMatch = async ({
|
|
|
22897
22897
|
queryClient.invalidateQueries({
|
|
22898
22898
|
queryKey: EVENT_ROUND_MATCHES_QUERY_KEY(eventId, roundId)
|
|
22899
22899
|
});
|
|
22900
|
+
queryClient.invalidateQueries({
|
|
22901
|
+
queryKey: EVENT_ROUNDS_QUERY_KEY(eventId)
|
|
22902
|
+
});
|
|
22900
22903
|
}
|
|
22901
22904
|
return data;
|
|
22902
22905
|
};
|
|
@@ -22947,6 +22950,9 @@ var DeleteEventMatch = async ({
|
|
|
22947
22950
|
queryClient.invalidateQueries({
|
|
22948
22951
|
queryKey: EVENT_ROUND_MATCHES_QUERY_KEY(eventId, roundId)
|
|
22949
22952
|
});
|
|
22953
|
+
queryClient.invalidateQueries({
|
|
22954
|
+
queryKey: EVENT_ROUNDS_QUERY_KEY(eventId)
|
|
22955
|
+
});
|
|
22950
22956
|
}
|
|
22951
22957
|
return data;
|
|
22952
22958
|
};
|
|
@@ -23021,6 +23027,27 @@ var useRemoveEventMatchPass = (options = {}) => {
|
|
|
23021
23027
|
});
|
|
23022
23028
|
};
|
|
23023
23029
|
|
|
23030
|
+
// src/mutations/event/matches/useStartEventRoundMatchmaking.ts
|
|
23031
|
+
var StartEventRoundMatchmaking = async ({
|
|
23032
|
+
eventId,
|
|
23033
|
+
roundId,
|
|
23034
|
+
targetMatchSize,
|
|
23035
|
+
adminApiParams
|
|
23036
|
+
}) => {
|
|
23037
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23038
|
+
const { data } = await connectedXM.post(
|
|
23039
|
+
`/events/${eventId}/rounds/${roundId}/start`,
|
|
23040
|
+
{ targetMatchSize }
|
|
23041
|
+
);
|
|
23042
|
+
return data;
|
|
23043
|
+
};
|
|
23044
|
+
var useStartEventRoundMatchmaking = (options = {}) => {
|
|
23045
|
+
return useConnectedMutation(StartEventRoundMatchmaking, options, {
|
|
23046
|
+
domain: "events",
|
|
23047
|
+
type: "update"
|
|
23048
|
+
});
|
|
23049
|
+
};
|
|
23050
|
+
|
|
23024
23051
|
// src/mutations/event/matches/useUpdateEventMatch.ts
|
|
23025
23052
|
var UpdateEventMatch = async ({
|
|
23026
23053
|
eventId,
|
|
@@ -26449,6 +26476,9 @@ var CreateEventSessionMatch = async ({
|
|
|
26449
26476
|
roundId
|
|
26450
26477
|
)
|
|
26451
26478
|
});
|
|
26479
|
+
queryClient.invalidateQueries({
|
|
26480
|
+
queryKey: EVENT_SESSION_ROUNDS_QUERY_KEY(eventId, sessionId)
|
|
26481
|
+
});
|
|
26452
26482
|
}
|
|
26453
26483
|
return data;
|
|
26454
26484
|
};
|
|
@@ -26505,6 +26535,9 @@ var DeleteEventSessionMatch = async ({
|
|
|
26505
26535
|
roundId
|
|
26506
26536
|
)
|
|
26507
26537
|
});
|
|
26538
|
+
queryClient.invalidateQueries({
|
|
26539
|
+
queryKey: EVENT_SESSION_ROUNDS_QUERY_KEY(eventId, sessionId)
|
|
26540
|
+
});
|
|
26508
26541
|
}
|
|
26509
26542
|
return data;
|
|
26510
26543
|
};
|
|
@@ -26597,6 +26630,28 @@ var useRemoveEventSessionMatchPass = (options = {}) => {
|
|
|
26597
26630
|
});
|
|
26598
26631
|
};
|
|
26599
26632
|
|
|
26633
|
+
// src/mutations/event/sessions/matches/useStartEventSessionRoundMatchmaking.ts
|
|
26634
|
+
var StartEventSessionRoundMatchmaking = async ({
|
|
26635
|
+
eventId,
|
|
26636
|
+
sessionId,
|
|
26637
|
+
roundId,
|
|
26638
|
+
targetMatchSize,
|
|
26639
|
+
adminApiParams
|
|
26640
|
+
}) => {
|
|
26641
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26642
|
+
const { data } = await connectedXM.post(
|
|
26643
|
+
`/events/${eventId}/sessions/${sessionId}/rounds/${roundId}/start`,
|
|
26644
|
+
{ targetMatchSize }
|
|
26645
|
+
);
|
|
26646
|
+
return data;
|
|
26647
|
+
};
|
|
26648
|
+
var useStartEventSessionRoundMatchmaking = (options = {}) => {
|
|
26649
|
+
return useConnectedMutation(StartEventSessionRoundMatchmaking, options, {
|
|
26650
|
+
domain: "events",
|
|
26651
|
+
type: "update"
|
|
26652
|
+
});
|
|
26653
|
+
};
|
|
26654
|
+
|
|
26600
26655
|
// src/mutations/event/sessions/matches/useUpdateEventSessionMatch.ts
|
|
26601
26656
|
var UpdateEventSessionMatch = async ({
|
|
26602
26657
|
eventId,
|
|
@@ -36568,6 +36623,8 @@ export {
|
|
|
36568
36623
|
SearchOrganization,
|
|
36569
36624
|
SelfLeaveOrganization,
|
|
36570
36625
|
SendAnnouncementPreview,
|
|
36626
|
+
StartEventRoundMatchmaking,
|
|
36627
|
+
StartEventSessionRoundMatchmaking,
|
|
36571
36628
|
SubscriptionStatus,
|
|
36572
36629
|
SupportTicketState,
|
|
36573
36630
|
SupportTicketType,
|
|
@@ -37609,6 +37666,8 @@ export {
|
|
|
37609
37666
|
useSearchOrganization,
|
|
37610
37667
|
useSelfLeaveOrganization,
|
|
37611
37668
|
useSendAnnouncementPreview,
|
|
37669
|
+
useStartEventRoundMatchmaking,
|
|
37670
|
+
useStartEventSessionRoundMatchmaking,
|
|
37612
37671
|
useSwitchImage,
|
|
37613
37672
|
useToggleOrganizationPaymentIntegration,
|
|
37614
37673
|
useToggleTaxIntegration,
|