@connectedxm/admin 6.4.1 → 6.5.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.cjs +46 -55
- package/dist/index.d.cts +43 -49
- package/dist/index.d.ts +43 -49
- package/dist/index.js +44 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -203,6 +203,7 @@ __export(index_exports, {
|
|
|
203
203
|
CancelGroupInvitation: () => CancelGroupInvitation,
|
|
204
204
|
ChannelFormat: () => ChannelFormat,
|
|
205
205
|
CloneEvent: () => CloneEvent,
|
|
206
|
+
CloseStreamSession: () => CloseStreamSession,
|
|
206
207
|
ConfirmLogin: () => ConfirmLogin,
|
|
207
208
|
ConnectedXMProvider: () => ConnectedXMProvider,
|
|
208
209
|
ContentGuestType: () => ContentGuestType,
|
|
@@ -2122,7 +2123,6 @@ __export(index_exports, {
|
|
|
2122
2123
|
UpdateStreamConfig: () => UpdateStreamConfig,
|
|
2123
2124
|
UpdateStreamInputOutput: () => UpdateStreamInputOutput,
|
|
2124
2125
|
UpdateSupportTicket: () => UpdateSupportTicket,
|
|
2125
|
-
UpdateSupportTicketViewer: () => UpdateSupportTicketViewer,
|
|
2126
2126
|
UpdateSurvey: () => UpdateSurvey,
|
|
2127
2127
|
UpdateSurveyQuestion: () => UpdateSurveyQuestion,
|
|
2128
2128
|
UpdateSurveyQuestionChoice: () => UpdateSurveyQuestionChoice,
|
|
@@ -2232,6 +2232,7 @@ __export(index_exports, {
|
|
|
2232
2232
|
useCancelEventPass: () => useCancelEventPass,
|
|
2233
2233
|
useCancelGroupInvitation: () => useCancelGroupInvitation,
|
|
2234
2234
|
useCloneEvent: () => useCloneEvent,
|
|
2235
|
+
useCloseStreamSession: () => useCloseStreamSession,
|
|
2235
2236
|
useConfirmLogin: () => useConfirmLogin,
|
|
2236
2237
|
useConnectedCursorQuery: () => useConnectedCursorQuery,
|
|
2237
2238
|
useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
|
|
@@ -3221,7 +3222,6 @@ __export(index_exports, {
|
|
|
3221
3222
|
useUpdateStreamInput: () => useUpdateStreamInput,
|
|
3222
3223
|
useUpdateStreamInputOutput: () => useUpdateStreamInputOutput,
|
|
3223
3224
|
useUpdateSupportTicket: () => useUpdateSupportTicket,
|
|
3224
|
-
useUpdateSupportTicketViewer: () => useUpdateSupportTicketViewer,
|
|
3225
3225
|
useUpdateSurvey: () => useUpdateSurvey,
|
|
3226
3226
|
useUpdateSurveyQuestion: () => useUpdateSurveyQuestion,
|
|
3227
3227
|
useUpdateSurveyQuestionChoice: () => useUpdateSurveyQuestionChoice,
|
|
@@ -21147,7 +21147,7 @@ var useGetStreamVideos = (streamId, params = {}, options = {}) => {
|
|
|
21147
21147
|
|
|
21148
21148
|
// src/queries/supportTickets/useGetSupportTicket.ts
|
|
21149
21149
|
var SUPPORT_TICKET_QUERY_KEY = (supportTicketId) => [
|
|
21150
|
-
"
|
|
21150
|
+
"SUPPORT_TICKET",
|
|
21151
21151
|
supportTicketId
|
|
21152
21152
|
];
|
|
21153
21153
|
var SET_SUPPORT_TICKET_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -21164,7 +21164,10 @@ var GetSupportTicket = async ({
|
|
|
21164
21164
|
var useGetSupportTicket = (supportTicketId = "", options = {}) => {
|
|
21165
21165
|
return useConnectedSingleQuery(
|
|
21166
21166
|
SUPPORT_TICKET_QUERY_KEY(supportTicketId),
|
|
21167
|
-
(params) => GetSupportTicket({
|
|
21167
|
+
(params) => GetSupportTicket({
|
|
21168
|
+
supportTicketId,
|
|
21169
|
+
...params
|
|
21170
|
+
}),
|
|
21168
21171
|
{
|
|
21169
21172
|
...options,
|
|
21170
21173
|
enabled: !!supportTicketId && (options?.enabled ?? true)
|
|
@@ -21173,10 +21176,9 @@ var useGetSupportTicket = (supportTicketId = "", options = {}) => {
|
|
|
21173
21176
|
};
|
|
21174
21177
|
|
|
21175
21178
|
// src/queries/supportTickets/useGetSupportTicketActivity.ts
|
|
21176
|
-
var SUPPORT_TICKET_ACTIVITY_QUERY_KEY = (supportTicketId,
|
|
21179
|
+
var SUPPORT_TICKET_ACTIVITY_QUERY_KEY = (supportTicketId, orderBy) => {
|
|
21177
21180
|
const keys = [...SUPPORT_TICKET_QUERY_KEY(supportTicketId), "ACTIVITY_LOG"];
|
|
21178
|
-
if (
|
|
21179
|
-
if (include) keys.push(include);
|
|
21181
|
+
if (orderBy) keys.push(orderBy);
|
|
21180
21182
|
return keys;
|
|
21181
21183
|
};
|
|
21182
21184
|
var SET_SUPPORT_TICKET_ACTIVITY_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -21187,11 +21189,7 @@ var SET_SUPPORT_TICKET_ACTIVITY_QUERY_DATA = (client, keyParams, response) => {
|
|
|
21187
21189
|
};
|
|
21188
21190
|
var GetSupportTicketActivity = async ({
|
|
21189
21191
|
supportTicketId,
|
|
21190
|
-
pageParam,
|
|
21191
|
-
pageSize,
|
|
21192
21192
|
orderBy,
|
|
21193
|
-
source,
|
|
21194
|
-
include,
|
|
21195
21193
|
adminApiParams
|
|
21196
21194
|
}) => {
|
|
21197
21195
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
@@ -21199,30 +21197,20 @@ var GetSupportTicketActivity = async ({
|
|
|
21199
21197
|
`/supportTickets/${supportTicketId}/activityLog`,
|
|
21200
21198
|
{
|
|
21201
21199
|
params: {
|
|
21202
|
-
|
|
21203
|
-
pageSize: pageSize || void 0,
|
|
21204
|
-
orderBy: orderBy || void 0,
|
|
21205
|
-
source: source || void 0,
|
|
21206
|
-
include: include || void 0
|
|
21200
|
+
orderBy: orderBy || void 0
|
|
21207
21201
|
}
|
|
21208
21202
|
}
|
|
21209
21203
|
);
|
|
21210
21204
|
return data;
|
|
21211
21205
|
};
|
|
21212
|
-
var useGetSupportTicketActivity = (supportTicketId = "",
|
|
21213
|
-
return
|
|
21214
|
-
SUPPORT_TICKET_ACTIVITY_QUERY_KEY(
|
|
21215
|
-
|
|
21216
|
-
params.source,
|
|
21217
|
-
params.include
|
|
21218
|
-
),
|
|
21219
|
-
(queryParams) => GetSupportTicketActivity({
|
|
21206
|
+
var useGetSupportTicketActivity = (supportTicketId = "", orderBy, options = {}) => {
|
|
21207
|
+
return useConnectedSingleQuery(
|
|
21208
|
+
SUPPORT_TICKET_ACTIVITY_QUERY_KEY(supportTicketId, orderBy),
|
|
21209
|
+
(params) => GetSupportTicketActivity({
|
|
21220
21210
|
supportTicketId,
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
...queryParams
|
|
21211
|
+
orderBy,
|
|
21212
|
+
...params
|
|
21224
21213
|
}),
|
|
21225
|
-
params,
|
|
21226
21214
|
{
|
|
21227
21215
|
...options,
|
|
21228
21216
|
enabled: !!supportTicketId && (options?.enabled ?? true)
|
|
@@ -36854,6 +36842,34 @@ var useUploadFile = (options = {}) => {
|
|
|
36854
36842
|
return useConnectedMutation(UploadFile, options);
|
|
36855
36843
|
};
|
|
36856
36844
|
|
|
36845
|
+
// src/mutations/stream/useCloseStreamSession.ts
|
|
36846
|
+
var CloseStreamSession = async ({
|
|
36847
|
+
streamId,
|
|
36848
|
+
sessionId,
|
|
36849
|
+
adminApiParams,
|
|
36850
|
+
queryClient
|
|
36851
|
+
}) => {
|
|
36852
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
36853
|
+
const { data } = await connectedXM.put(
|
|
36854
|
+
`/streams/${streamId}/sessions/${sessionId}/close`
|
|
36855
|
+
);
|
|
36856
|
+
if (queryClient && data.status === "ok") {
|
|
36857
|
+
queryClient.invalidateQueries({
|
|
36858
|
+
queryKey: STREAM_SESSIONS_QUERY_KEY(streamId)
|
|
36859
|
+
});
|
|
36860
|
+
queryClient.invalidateQueries({
|
|
36861
|
+
queryKey: STREAM_SESSION_QUERY_KEY(streamId, sessionId)
|
|
36862
|
+
});
|
|
36863
|
+
queryClient.invalidateQueries({
|
|
36864
|
+
queryKey: STREAM_SESSION_SUBSCRIPTIONS_QUERY_KEY(streamId, sessionId)
|
|
36865
|
+
});
|
|
36866
|
+
}
|
|
36867
|
+
return data;
|
|
36868
|
+
};
|
|
36869
|
+
var useCloseStreamSession = (options = {}) => {
|
|
36870
|
+
return useConnectedMutation(CloseStreamSession, options);
|
|
36871
|
+
};
|
|
36872
|
+
|
|
36857
36873
|
// src/mutations/stream/useCreateStreamInput.ts
|
|
36858
36874
|
var CreateStreamInput = async ({
|
|
36859
36875
|
stream,
|
|
@@ -37169,31 +37185,6 @@ var useUpdateSupportTicket = (options = {}) => {
|
|
|
37169
37185
|
return useConnectedMutation(UpdateSupportTicket, options);
|
|
37170
37186
|
};
|
|
37171
37187
|
|
|
37172
|
-
// src/mutations/supportTickets/useUpdateSupportTicketViewer.ts
|
|
37173
|
-
var UpdateSupportTicketViewer = async ({
|
|
37174
|
-
supportTicketId,
|
|
37175
|
-
clientTimestamp,
|
|
37176
|
-
adminApiParams,
|
|
37177
|
-
queryClient
|
|
37178
|
-
}) => {
|
|
37179
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37180
|
-
const { data } = await connectedXM.put(
|
|
37181
|
-
`/supportTickets/${supportTicketId}/viewer`,
|
|
37182
|
-
{
|
|
37183
|
-
clientTimestamp: clientTimestamp || (/* @__PURE__ */ new Date()).toISOString()
|
|
37184
|
-
}
|
|
37185
|
-
);
|
|
37186
|
-
if (queryClient && data.status === "ok") {
|
|
37187
|
-
queryClient.invalidateQueries({
|
|
37188
|
-
queryKey: ["SUPPORT_TICKETS"]
|
|
37189
|
-
});
|
|
37190
|
-
}
|
|
37191
|
-
return data;
|
|
37192
|
-
};
|
|
37193
|
-
var useUpdateSupportTicketViewer = (options = {}) => {
|
|
37194
|
-
return useConnectedMutation(UpdateSupportTicketViewer, options);
|
|
37195
|
-
};
|
|
37196
|
-
|
|
37197
37188
|
// src/mutations/surveys/questions/translations/useDeleteSurveyQuestionChoiceTranslation.ts
|
|
37198
37189
|
var DeleteSurveyQuestionChoiceTranslation = async ({
|
|
37199
37190
|
surveyId,
|
|
@@ -39160,6 +39151,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39160
39151
|
CancelGroupInvitation,
|
|
39161
39152
|
ChannelFormat,
|
|
39162
39153
|
CloneEvent,
|
|
39154
|
+
CloseStreamSession,
|
|
39163
39155
|
ConfirmLogin,
|
|
39164
39156
|
ConnectedXMProvider,
|
|
39165
39157
|
ContentGuestType,
|
|
@@ -41079,7 +41071,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41079
41071
|
UpdateStreamConfig,
|
|
41080
41072
|
UpdateStreamInputOutput,
|
|
41081
41073
|
UpdateSupportTicket,
|
|
41082
|
-
UpdateSupportTicketViewer,
|
|
41083
41074
|
UpdateSurvey,
|
|
41084
41075
|
UpdateSurveyQuestion,
|
|
41085
41076
|
UpdateSurveyQuestionChoice,
|
|
@@ -41189,6 +41180,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41189
41180
|
useCancelEventPass,
|
|
41190
41181
|
useCancelGroupInvitation,
|
|
41191
41182
|
useCloneEvent,
|
|
41183
|
+
useCloseStreamSession,
|
|
41192
41184
|
useConfirmLogin,
|
|
41193
41185
|
useConnectedCursorQuery,
|
|
41194
41186
|
useConnectedInfiniteQuery,
|
|
@@ -42178,7 +42170,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42178
42170
|
useUpdateStreamInput,
|
|
42179
42171
|
useUpdateStreamInputOutput,
|
|
42180
42172
|
useUpdateSupportTicket,
|
|
42181
|
-
useUpdateSupportTicketViewer,
|
|
42182
42173
|
useUpdateSurvey,
|
|
42183
42174
|
useUpdateSurveyQuestion,
|
|
42184
42175
|
useUpdateSurveyQuestionChoice,
|