@connectedxm/admin 6.9.7 → 6.9.9
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 +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +1 -5
- package/openapi.json +12 -2
- 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
|
@@ -264,6 +264,7 @@ interface BaseAccountAttribute {
|
|
|
264
264
|
public: boolean;
|
|
265
265
|
includedInDashboards: boolean;
|
|
266
266
|
sortOrder: number;
|
|
267
|
+
locationOption: keyof typeof LocationQuestionOption;
|
|
267
268
|
}
|
|
268
269
|
interface AccountAttribute extends BaseAccountAttribute {
|
|
269
270
|
createdAt: string;
|
|
@@ -6651,6 +6652,7 @@ interface AccountAttributeCreateInputs {
|
|
|
6651
6652
|
sortOrder?: number | string | null;
|
|
6652
6653
|
searchListId?: string | null;
|
|
6653
6654
|
options?: string[] | null;
|
|
6655
|
+
locationOption?: keyof typeof LocationQuestionOption;
|
|
6654
6656
|
}
|
|
6655
6657
|
interface AccountAttributeUpdateInputs {
|
|
6656
6658
|
label?: string | null;
|
|
@@ -6663,6 +6665,7 @@ interface AccountAttributeUpdateInputs {
|
|
|
6663
6665
|
sortOrder?: number | string | null;
|
|
6664
6666
|
searchListId?: string | null;
|
|
6665
6667
|
options?: string[] | null;
|
|
6668
|
+
locationOption?: keyof typeof LocationQuestionOption;
|
|
6666
6669
|
}
|
|
6667
6670
|
interface WebhookCreateInputs {
|
|
6668
6671
|
name?: string | null;
|
|
@@ -25976,12 +25979,21 @@ interface CloneEventSessionParams extends MutationParams {
|
|
|
25976
25979
|
* @category Methods
|
|
25977
25980
|
* @group Event-Sessions
|
|
25978
25981
|
*/
|
|
25979
|
-
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<
|
|
25982
|
+
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<{
|
|
25983
|
+
id: string;
|
|
25984
|
+
slug: string;
|
|
25985
|
+
}>>;
|
|
25980
25986
|
/**
|
|
25981
25987
|
* @category Mutations
|
|
25982
25988
|
* @group Event-Sessions
|
|
25983
25989
|
*/
|
|
25984
|
-
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
25990
|
+
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<{
|
|
25991
|
+
id: string;
|
|
25992
|
+
slug: string;
|
|
25993
|
+
}>, axios.AxiosError<ConnectedXMResponse<{
|
|
25994
|
+
id: string;
|
|
25995
|
+
slug: string;
|
|
25996
|
+
}>, any>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">, unknown>;
|
|
25985
25997
|
|
|
25986
25998
|
/**
|
|
25987
25999
|
* @category Params
|
package/dist/index.d.ts
CHANGED
|
@@ -264,6 +264,7 @@ interface BaseAccountAttribute {
|
|
|
264
264
|
public: boolean;
|
|
265
265
|
includedInDashboards: boolean;
|
|
266
266
|
sortOrder: number;
|
|
267
|
+
locationOption: keyof typeof LocationQuestionOption;
|
|
267
268
|
}
|
|
268
269
|
interface AccountAttribute extends BaseAccountAttribute {
|
|
269
270
|
createdAt: string;
|
|
@@ -6651,6 +6652,7 @@ interface AccountAttributeCreateInputs {
|
|
|
6651
6652
|
sortOrder?: number | string | null;
|
|
6652
6653
|
searchListId?: string | null;
|
|
6653
6654
|
options?: string[] | null;
|
|
6655
|
+
locationOption?: keyof typeof LocationQuestionOption;
|
|
6654
6656
|
}
|
|
6655
6657
|
interface AccountAttributeUpdateInputs {
|
|
6656
6658
|
label?: string | null;
|
|
@@ -6663,6 +6665,7 @@ interface AccountAttributeUpdateInputs {
|
|
|
6663
6665
|
sortOrder?: number | string | null;
|
|
6664
6666
|
searchListId?: string | null;
|
|
6665
6667
|
options?: string[] | null;
|
|
6668
|
+
locationOption?: keyof typeof LocationQuestionOption;
|
|
6666
6669
|
}
|
|
6667
6670
|
interface WebhookCreateInputs {
|
|
6668
6671
|
name?: string | null;
|
|
@@ -25976,12 +25979,21 @@ interface CloneEventSessionParams extends MutationParams {
|
|
|
25976
25979
|
* @category Methods
|
|
25977
25980
|
* @group Event-Sessions
|
|
25978
25981
|
*/
|
|
25979
|
-
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<
|
|
25982
|
+
declare const CloneEventSession: ({ eventId, sessionId, options, adminApiParams, queryClient, }: CloneEventSessionParams) => Promise<ConnectedXMResponse<{
|
|
25983
|
+
id: string;
|
|
25984
|
+
slug: string;
|
|
25985
|
+
}>>;
|
|
25980
25986
|
/**
|
|
25981
25987
|
* @category Mutations
|
|
25982
25988
|
* @group Event-Sessions
|
|
25983
25989
|
*/
|
|
25984
|
-
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<
|
|
25990
|
+
declare const useCloneEventSession: (options?: Omit<ConnectedXMMutationOptions<Awaited<ReturnType<typeof CloneEventSession>>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<{
|
|
25991
|
+
id: string;
|
|
25992
|
+
slug: string;
|
|
25993
|
+
}>, axios.AxiosError<ConnectedXMResponse<{
|
|
25994
|
+
id: string;
|
|
25995
|
+
slug: string;
|
|
25996
|
+
}>, any>, Omit<CloneEventSessionParams, "queryClient" | "adminApiParams">, unknown>;
|
|
25985
25997
|
|
|
25986
25998
|
/**
|
|
25987
25999
|
* @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": [
|
|
@@ -72641,6 +72641,9 @@
|
|
|
72641
72641
|
},
|
|
72642
72642
|
"sortOrder": {
|
|
72643
72643
|
"type": "number"
|
|
72644
|
+
},
|
|
72645
|
+
"locationOption": {
|
|
72646
|
+
"$ref": "#/components/schemas/LocationQuestionOption"
|
|
72644
72647
|
}
|
|
72645
72648
|
},
|
|
72646
72649
|
"required": [
|
|
@@ -72654,7 +72657,8 @@
|
|
|
72654
72657
|
"editable",
|
|
72655
72658
|
"public",
|
|
72656
72659
|
"includedInDashboards",
|
|
72657
|
-
"sortOrder"
|
|
72660
|
+
"sortOrder",
|
|
72661
|
+
"locationOption"
|
|
72658
72662
|
]
|
|
72659
72663
|
},
|
|
72660
72664
|
"AccountAttribute": {
|
|
@@ -99767,6 +99771,9 @@
|
|
|
99767
99771
|
"type": "string"
|
|
99768
99772
|
},
|
|
99769
99773
|
"nullable": true
|
|
99774
|
+
},
|
|
99775
|
+
"locationOption": {
|
|
99776
|
+
"$ref": "#/components/schemas/LocationQuestionOption"
|
|
99770
99777
|
}
|
|
99771
99778
|
},
|
|
99772
99779
|
"required": [
|
|
@@ -99822,6 +99829,9 @@
|
|
|
99822
99829
|
"type": "string"
|
|
99823
99830
|
},
|
|
99824
99831
|
"nullable": true
|
|
99832
|
+
},
|
|
99833
|
+
"locationOption": {
|
|
99834
|
+
"$ref": "#/components/schemas/LocationQuestionOption"
|
|
99825
99835
|
}
|
|
99826
99836
|
}
|
|
99827
99837
|
},
|