@connectedxm/admin 6.8.4 → 6.8.5
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 +9 -5
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +9 -5
- package/openapi.json +22 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21956,10 +21956,11 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
21956
21956
|
};
|
|
21957
21957
|
|
|
21958
21958
|
// src/queries/surveys/useGetSurveys.ts
|
|
21959
|
-
var SURVEYS_QUERY_KEY = (eventId, sessionId) => {
|
|
21959
|
+
var SURVEYS_QUERY_KEY = (eventId, sessionId, activationId) => {
|
|
21960
21960
|
const keys = ["SURVEYS"];
|
|
21961
21961
|
if (eventId) keys.push(eventId);
|
|
21962
21962
|
if (sessionId) keys.push(sessionId);
|
|
21963
|
+
if (activationId) keys.push(activationId);
|
|
21963
21964
|
return keys;
|
|
21964
21965
|
};
|
|
21965
21966
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -21968,6 +21969,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
21968
21969
|
var GetSurveys = async ({
|
|
21969
21970
|
eventId,
|
|
21970
21971
|
sessionId,
|
|
21972
|
+
activationId,
|
|
21971
21973
|
pageParam,
|
|
21972
21974
|
pageSize,
|
|
21973
21975
|
orderBy,
|
|
@@ -21982,18 +21984,20 @@ var GetSurveys = async ({
|
|
|
21982
21984
|
orderBy: orderBy || void 0,
|
|
21983
21985
|
search: search || void 0,
|
|
21984
21986
|
eventId: eventId || void 0,
|
|
21985
|
-
sessionId: sessionId || void 0
|
|
21987
|
+
sessionId: sessionId || void 0,
|
|
21988
|
+
activationId: activationId || void 0
|
|
21986
21989
|
}
|
|
21987
21990
|
});
|
|
21988
21991
|
return data;
|
|
21989
21992
|
};
|
|
21990
|
-
var useGetSurveys = (eventId, sessionId, params = {}, options = {}) => {
|
|
21993
|
+
var useGetSurveys = (eventId, sessionId, activationId, params = {}, options = {}) => {
|
|
21991
21994
|
return useConnectedInfiniteQuery(
|
|
21992
|
-
SURVEYS_QUERY_KEY(eventId, sessionId),
|
|
21995
|
+
SURVEYS_QUERY_KEY(eventId, sessionId, activationId),
|
|
21993
21996
|
(params2) => GetSurveys({
|
|
21994
21997
|
...params2,
|
|
21995
21998
|
eventId,
|
|
21996
|
-
sessionId
|
|
21999
|
+
sessionId,
|
|
22000
|
+
activationId
|
|
21997
22001
|
}),
|
|
21998
22002
|
params,
|
|
21999
22003
|
options
|
package/dist/index.d.cts
CHANGED
|
@@ -3836,6 +3836,9 @@ interface Survey extends BaseSurvey {
|
|
|
3836
3836
|
activationId: string | null;
|
|
3837
3837
|
activation: BaseEventActivation | null;
|
|
3838
3838
|
passTypes: BaseEventPassType[] | null;
|
|
3839
|
+
_count: {
|
|
3840
|
+
submissions: number;
|
|
3841
|
+
};
|
|
3839
3842
|
}
|
|
3840
3843
|
interface SurveyTranslation {
|
|
3841
3844
|
id: string;
|
|
@@ -18589,7 +18592,7 @@ declare const useGetSurvey: (surveyId?: string, options?: SingleQueryOptions<Ret
|
|
|
18589
18592
|
* @category Keys
|
|
18590
18593
|
* @group Surveys
|
|
18591
18594
|
*/
|
|
18592
|
-
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string) => string[];
|
|
18595
|
+
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, activationId?: string) => string[];
|
|
18593
18596
|
/**
|
|
18594
18597
|
* @category Setters
|
|
18595
18598
|
* @group Surveys
|
|
@@ -18598,17 +18601,18 @@ declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameter
|
|
|
18598
18601
|
interface GetSurveysProps extends InfiniteQueryParams {
|
|
18599
18602
|
eventId?: string;
|
|
18600
18603
|
sessionId?: string;
|
|
18604
|
+
activationId?: string;
|
|
18601
18605
|
}
|
|
18602
18606
|
/**
|
|
18603
18607
|
* @category Queries
|
|
18604
18608
|
* @group Surveys
|
|
18605
18609
|
*/
|
|
18606
|
-
declare const GetSurveys: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
18610
|
+
declare const GetSurveys: ({ eventId, sessionId, activationId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
18607
18611
|
/**
|
|
18608
18612
|
* @category Hooks
|
|
18609
18613
|
* @group Surveys
|
|
18610
18614
|
*/
|
|
18611
|
-
declare const useGetSurveys: (eventId?: string, sessionId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSurveys>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Survey[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
18615
|
+
declare const useGetSurveys: (eventId?: string, sessionId?: string, activationId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSurveys>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Survey[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
18612
18616
|
|
|
18613
18617
|
/**
|
|
18614
18618
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -3836,6 +3836,9 @@ interface Survey extends BaseSurvey {
|
|
|
3836
3836
|
activationId: string | null;
|
|
3837
3837
|
activation: BaseEventActivation | null;
|
|
3838
3838
|
passTypes: BaseEventPassType[] | null;
|
|
3839
|
+
_count: {
|
|
3840
|
+
submissions: number;
|
|
3841
|
+
};
|
|
3839
3842
|
}
|
|
3840
3843
|
interface SurveyTranslation {
|
|
3841
3844
|
id: string;
|
|
@@ -18589,7 +18592,7 @@ declare const useGetSurvey: (surveyId?: string, options?: SingleQueryOptions<Ret
|
|
|
18589
18592
|
* @category Keys
|
|
18590
18593
|
* @group Surveys
|
|
18591
18594
|
*/
|
|
18592
|
-
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string) => string[];
|
|
18595
|
+
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, activationId?: string) => string[];
|
|
18593
18596
|
/**
|
|
18594
18597
|
* @category Setters
|
|
18595
18598
|
* @group Surveys
|
|
@@ -18598,17 +18601,18 @@ declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameter
|
|
|
18598
18601
|
interface GetSurveysProps extends InfiniteQueryParams {
|
|
18599
18602
|
eventId?: string;
|
|
18600
18603
|
sessionId?: string;
|
|
18604
|
+
activationId?: string;
|
|
18601
18605
|
}
|
|
18602
18606
|
/**
|
|
18603
18607
|
* @category Queries
|
|
18604
18608
|
* @group Surveys
|
|
18605
18609
|
*/
|
|
18606
|
-
declare const GetSurveys: ({ eventId, sessionId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
18610
|
+
declare const GetSurveys: ({ eventId, sessionId, activationId, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
18607
18611
|
/**
|
|
18608
18612
|
* @category Hooks
|
|
18609
18613
|
* @group Surveys
|
|
18610
18614
|
*/
|
|
18611
|
-
declare const useGetSurveys: (eventId?: string, sessionId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSurveys>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Survey[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
18615
|
+
declare const useGetSurveys: (eventId?: string, sessionId?: string, activationId?: string, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "adminApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSurveys>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<Survey[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
18612
18616
|
|
|
18613
18617
|
/**
|
|
18614
18618
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -18644,10 +18644,11 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
18644
18644
|
};
|
|
18645
18645
|
|
|
18646
18646
|
// src/queries/surveys/useGetSurveys.ts
|
|
18647
|
-
var SURVEYS_QUERY_KEY = (eventId, sessionId) => {
|
|
18647
|
+
var SURVEYS_QUERY_KEY = (eventId, sessionId, activationId) => {
|
|
18648
18648
|
const keys = ["SURVEYS"];
|
|
18649
18649
|
if (eventId) keys.push(eventId);
|
|
18650
18650
|
if (sessionId) keys.push(sessionId);
|
|
18651
|
+
if (activationId) keys.push(activationId);
|
|
18651
18652
|
return keys;
|
|
18652
18653
|
};
|
|
18653
18654
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -18656,6 +18657,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
18656
18657
|
var GetSurveys = async ({
|
|
18657
18658
|
eventId,
|
|
18658
18659
|
sessionId,
|
|
18660
|
+
activationId,
|
|
18659
18661
|
pageParam,
|
|
18660
18662
|
pageSize,
|
|
18661
18663
|
orderBy,
|
|
@@ -18670,18 +18672,20 @@ var GetSurveys = async ({
|
|
|
18670
18672
|
orderBy: orderBy || void 0,
|
|
18671
18673
|
search: search || void 0,
|
|
18672
18674
|
eventId: eventId || void 0,
|
|
18673
|
-
sessionId: sessionId || void 0
|
|
18675
|
+
sessionId: sessionId || void 0,
|
|
18676
|
+
activationId: activationId || void 0
|
|
18674
18677
|
}
|
|
18675
18678
|
});
|
|
18676
18679
|
return data;
|
|
18677
18680
|
};
|
|
18678
|
-
var useGetSurveys = (eventId, sessionId, params = {}, options = {}) => {
|
|
18681
|
+
var useGetSurveys = (eventId, sessionId, activationId, params = {}, options = {}) => {
|
|
18679
18682
|
return useConnectedInfiniteQuery(
|
|
18680
|
-
SURVEYS_QUERY_KEY(eventId, sessionId),
|
|
18683
|
+
SURVEYS_QUERY_KEY(eventId, sessionId, activationId),
|
|
18681
18684
|
(params2) => GetSurveys({
|
|
18682
18685
|
...params2,
|
|
18683
18686
|
eventId,
|
|
18684
|
-
sessionId
|
|
18687
|
+
sessionId,
|
|
18688
|
+
activationId
|
|
18685
18689
|
}),
|
|
18686
18690
|
params,
|
|
18687
18691
|
options
|
package/openapi.json
CHANGED
|
@@ -64172,6 +64172,15 @@
|
|
|
64172
64172
|
"description": "Filter by sessionId",
|
|
64173
64173
|
"required": false
|
|
64174
64174
|
},
|
|
64175
|
+
{
|
|
64176
|
+
"in": "query",
|
|
64177
|
+
"name": "activationId",
|
|
64178
|
+
"schema": {
|
|
64179
|
+
"type": "string"
|
|
64180
|
+
},
|
|
64181
|
+
"description": "Filter by activationId",
|
|
64182
|
+
"required": false
|
|
64183
|
+
},
|
|
64175
64184
|
{
|
|
64176
64185
|
"in": "query",
|
|
64177
64186
|
"name": "page",
|
|
@@ -87255,6 +87264,17 @@
|
|
|
87255
87264
|
"$ref": "#/components/schemas/BaseEventPassType"
|
|
87256
87265
|
},
|
|
87257
87266
|
"nullable": true
|
|
87267
|
+
},
|
|
87268
|
+
"_count": {
|
|
87269
|
+
"type": "object",
|
|
87270
|
+
"properties": {
|
|
87271
|
+
"submissions": {
|
|
87272
|
+
"type": "number"
|
|
87273
|
+
}
|
|
87274
|
+
},
|
|
87275
|
+
"required": [
|
|
87276
|
+
"submissions"
|
|
87277
|
+
]
|
|
87258
87278
|
}
|
|
87259
87279
|
},
|
|
87260
87280
|
"required": [
|
|
@@ -87268,7 +87288,8 @@
|
|
|
87268
87288
|
"session",
|
|
87269
87289
|
"activationId",
|
|
87270
87290
|
"activation",
|
|
87271
|
-
"passTypes"
|
|
87291
|
+
"passTypes",
|
|
87292
|
+
"_count"
|
|
87272
87293
|
]
|
|
87273
87294
|
}
|
|
87274
87295
|
]
|