@connectedxm/admin 6.9.7 → 6.9.8
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 +1 -5
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +1 -5
- package/openapi.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33358,15 +33358,11 @@ var CloneEventSession = async ({
|
|
|
33358
33358
|
queryClient
|
|
33359
33359
|
}) => {
|
|
33360
33360
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
33361
|
-
const { data } = await connectedXM.post(
|
|
33362
|
-
`/events/${eventId}/sessions/${sessionId}/clone`,
|
|
33363
|
-
options
|
|
33364
|
-
);
|
|
33361
|
+
const { data } = await connectedXM.post(`/events/${eventId}/sessions/${sessionId}/clone`, options);
|
|
33365
33362
|
if (queryClient && data.status === "ok") {
|
|
33366
33363
|
queryClient.invalidateQueries({
|
|
33367
33364
|
queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
|
|
33368
33365
|
});
|
|
33369
|
-
SET_EVENT_SESSION_QUERY_DATA(queryClient, [eventId, data.data.id], data);
|
|
33370
33366
|
}
|
|
33371
33367
|
return data;
|
|
33372
33368
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -25976,12 +25976,21 @@ interface CloneEventSessionParams extends MutationParams {
|
|
|
25976
25976
|
* @category Methods
|
|
25977
25977
|
* @group Event-Sessions
|
|
25978
25978
|
*/
|
|
25979
|
-
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<
|
|
25979
|
+
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<{
|
|
25980
|
+
id: string;
|
|
25981
|
+
slug: string;
|
|
25982
|
+
}>>;
|
|
25980
25983
|
/**
|
|
25981
25984
|
* @category Mutations
|
|
25982
25985
|
* @group Event-Sessions
|
|
25983
25986
|
*/
|
|
25984
|
-
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
25987
|
+
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<{
|
|
25988
|
+
id: string;
|
|
25989
|
+
slug: string;
|
|
25990
|
+
}>, axios.AxiosError<ConnectedXMResponse<{
|
|
25991
|
+
id: string;
|
|
25992
|
+
slug: string;
|
|
25993
|
+
}>, any>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">, unknown>;
|
|
25985
25994
|
|
|
25986
25995
|
/**
|
|
25987
25996
|
* @category Params
|
package/dist/index.d.ts
CHANGED
|
@@ -25976,12 +25976,21 @@ interface CloneEventSessionParams extends MutationParams {
|
|
|
25976
25976
|
* @category Methods
|
|
25977
25977
|
* @group Event-Sessions
|
|
25978
25978
|
*/
|
|
25979
|
-
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<
|
|
25979
|
+
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<{
|
|
25980
|
+
id: string;
|
|
25981
|
+
slug: string;
|
|
25982
|
+
}>>;
|
|
25980
25983
|
/**
|
|
25981
25984
|
* @category Mutations
|
|
25982
25985
|
* @group Event-Sessions
|
|
25983
25986
|
*/
|
|
25984
|
-
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
25987
|
+
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<{
|
|
25988
|
+
id: string;
|
|
25989
|
+
slug: string;
|
|
25990
|
+
}>, axios.AxiosError<ConnectedXMResponse<{
|
|
25991
|
+
id: string;
|
|
25992
|
+
slug: string;
|
|
25993
|
+
}>, any>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">, unknown>;
|
|
25985
25994
|
|
|
25986
25995
|
/**
|
|
25987
25996
|
* @category Params
|
package/dist/index.js
CHANGED
|
@@ -30012,15 +30012,11 @@ var CloneEventSession = async ({
|
|
|
30012
30012
|
queryClient
|
|
30013
30013
|
}) => {
|
|
30014
30014
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
30015
|
-
const { data } = await connectedXM.post(
|
|
30016
|
-
`/events/${eventId}/sessions/${sessionId}/clone`,
|
|
30017
|
-
options
|
|
30018
|
-
);
|
|
30015
|
+
const { data } = await connectedXM.post(`/events/${eventId}/sessions/${sessionId}/clone`, options);
|
|
30019
30016
|
if (queryClient && data.status === "ok") {
|
|
30020
30017
|
queryClient.invalidateQueries({
|
|
30021
30018
|
queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
|
|
30022
30019
|
});
|
|
30023
|
-
SET_EVENT_SESSION_QUERY_DATA(queryClient, [eventId, data.data.id], data);
|
|
30024
30020
|
}
|
|
30025
30021
|
return data;
|
|
30026
30022
|
};
|
package/openapi.json
CHANGED
|
@@ -35371,7 +35371,7 @@
|
|
|
35371
35371
|
"example": "Success message."
|
|
35372
35372
|
},
|
|
35373
35373
|
"data": {
|
|
35374
|
-
"
|
|
35374
|
+
"type": "object"
|
|
35375
35375
|
}
|
|
35376
35376
|
},
|
|
35377
35377
|
"required": [
|