@connectedxm/admin 6.21.0 → 6.21.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 +7 -3
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +7 -3
- package/openapi.json +9 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22838,9 +22838,10 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
22838
22838
|
};
|
|
22839
22839
|
|
|
22840
22840
|
// src/queries/surveys/useGetSurveys.ts
|
|
22841
|
-
var SURVEYS_QUERY_KEY = (eventId, status) => {
|
|
22841
|
+
var SURVEYS_QUERY_KEY = (eventId, sessionId, status) => {
|
|
22842
22842
|
const keys = ["SURVEYS"];
|
|
22843
22843
|
if (eventId) keys.push(eventId);
|
|
22844
|
+
if (sessionId) keys.push(sessionId);
|
|
22844
22845
|
if (status) keys.push(status);
|
|
22845
22846
|
return keys;
|
|
22846
22847
|
};
|
|
@@ -22849,6 +22850,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
22849
22850
|
};
|
|
22850
22851
|
var GetSurveys = async ({
|
|
22851
22852
|
eventId,
|
|
22853
|
+
sessionId,
|
|
22852
22854
|
status,
|
|
22853
22855
|
pageParam,
|
|
22854
22856
|
pageSize,
|
|
@@ -22864,17 +22866,19 @@ var GetSurveys = async ({
|
|
|
22864
22866
|
orderBy: orderBy || void 0,
|
|
22865
22867
|
search: search || void 0,
|
|
22866
22868
|
eventId: eventId || void 0,
|
|
22869
|
+
sessionId: sessionId || void 0,
|
|
22867
22870
|
status: status || void 0
|
|
22868
22871
|
}
|
|
22869
22872
|
});
|
|
22870
22873
|
return data;
|
|
22871
22874
|
};
|
|
22872
|
-
var useGetSurveys = (eventId, status, params = {}, options = {}) => {
|
|
22875
|
+
var useGetSurveys = (eventId, sessionId, status, params = {}, options = {}) => {
|
|
22873
22876
|
return useConnectedInfiniteQuery(
|
|
22874
|
-
SURVEYS_QUERY_KEY(eventId, status),
|
|
22877
|
+
SURVEYS_QUERY_KEY(eventId, sessionId, status),
|
|
22875
22878
|
(params2) => GetSurveys({
|
|
22876
22879
|
...params2,
|
|
22877
22880
|
eventId,
|
|
22881
|
+
sessionId,
|
|
22878
22882
|
status
|
|
22879
22883
|
}),
|
|
22880
22884
|
params,
|
package/dist/index.d.cts
CHANGED
|
@@ -19405,7 +19405,7 @@ declare const useGetSurveySessions: (surveyId?: string, params?: Omit<InfiniteQu
|
|
|
19405
19405
|
* @category Keys
|
|
19406
19406
|
* @group Surveys
|
|
19407
19407
|
*/
|
|
19408
|
-
declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => string[];
|
|
19408
|
+
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, status?: SurveyStatus) => string[];
|
|
19409
19409
|
/**
|
|
19410
19410
|
* @category Setters
|
|
19411
19411
|
* @group Surveys
|
|
@@ -19413,18 +19413,19 @@ declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => st
|
|
|
19413
19413
|
declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SURVEYS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSurveys>>) => void;
|
|
19414
19414
|
interface GetSurveysProps extends InfiniteQueryParams {
|
|
19415
19415
|
eventId?: string;
|
|
19416
|
+
sessionId?: string;
|
|
19416
19417
|
status?: SurveyStatus;
|
|
19417
19418
|
}
|
|
19418
19419
|
/**
|
|
19419
19420
|
* @category Queries
|
|
19420
19421
|
* @group Surveys
|
|
19421
19422
|
*/
|
|
19422
|
-
declare const GetSurveys: ({ eventId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
19423
|
+
declare const GetSurveys: ({ eventId, sessionId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
19423
19424
|
/**
|
|
19424
19425
|
* @category Hooks
|
|
19425
19426
|
* @group Surveys
|
|
19426
19427
|
*/
|
|
19427
|
-
declare const useGetSurveys: (eventId?: string, status?: SurveyStatus, 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>>;
|
|
19428
|
+
declare const useGetSurveys: (eventId?: string, sessionId?: string, status?: SurveyStatus, 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>>;
|
|
19428
19429
|
|
|
19429
19430
|
/**
|
|
19430
19431
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -19405,7 +19405,7 @@ declare const useGetSurveySessions: (surveyId?: string, params?: Omit<InfiniteQu
|
|
|
19405
19405
|
* @category Keys
|
|
19406
19406
|
* @group Surveys
|
|
19407
19407
|
*/
|
|
19408
|
-
declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => string[];
|
|
19408
|
+
declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, status?: SurveyStatus) => string[];
|
|
19409
19409
|
/**
|
|
19410
19410
|
* @category Setters
|
|
19411
19411
|
* @group Surveys
|
|
@@ -19413,18 +19413,19 @@ declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => st
|
|
|
19413
19413
|
declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SURVEYS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSurveys>>) => void;
|
|
19414
19414
|
interface GetSurveysProps extends InfiniteQueryParams {
|
|
19415
19415
|
eventId?: string;
|
|
19416
|
+
sessionId?: string;
|
|
19416
19417
|
status?: SurveyStatus;
|
|
19417
19418
|
}
|
|
19418
19419
|
/**
|
|
19419
19420
|
* @category Queries
|
|
19420
19421
|
* @group Surveys
|
|
19421
19422
|
*/
|
|
19422
|
-
declare const GetSurveys: ({ eventId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
19423
|
+
declare const GetSurveys: ({ eventId, sessionId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
|
|
19423
19424
|
/**
|
|
19424
19425
|
* @category Hooks
|
|
19425
19426
|
* @group Surveys
|
|
19426
19427
|
*/
|
|
19427
|
-
declare const useGetSurveys: (eventId?: string, status?: SurveyStatus, 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>>;
|
|
19428
|
+
declare const useGetSurveys: (eventId?: string, sessionId?: string, status?: SurveyStatus, 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>>;
|
|
19428
19429
|
|
|
19429
19430
|
/**
|
|
19430
19431
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -19391,9 +19391,10 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
19391
19391
|
};
|
|
19392
19392
|
|
|
19393
19393
|
// src/queries/surveys/useGetSurveys.ts
|
|
19394
|
-
var SURVEYS_QUERY_KEY = (eventId, status) => {
|
|
19394
|
+
var SURVEYS_QUERY_KEY = (eventId, sessionId, status) => {
|
|
19395
19395
|
const keys = ["SURVEYS"];
|
|
19396
19396
|
if (eventId) keys.push(eventId);
|
|
19397
|
+
if (sessionId) keys.push(sessionId);
|
|
19397
19398
|
if (status) keys.push(status);
|
|
19398
19399
|
return keys;
|
|
19399
19400
|
};
|
|
@@ -19402,6 +19403,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
19402
19403
|
};
|
|
19403
19404
|
var GetSurveys = async ({
|
|
19404
19405
|
eventId,
|
|
19406
|
+
sessionId,
|
|
19405
19407
|
status,
|
|
19406
19408
|
pageParam,
|
|
19407
19409
|
pageSize,
|
|
@@ -19417,17 +19419,19 @@ var GetSurveys = async ({
|
|
|
19417
19419
|
orderBy: orderBy || void 0,
|
|
19418
19420
|
search: search || void 0,
|
|
19419
19421
|
eventId: eventId || void 0,
|
|
19422
|
+
sessionId: sessionId || void 0,
|
|
19420
19423
|
status: status || void 0
|
|
19421
19424
|
}
|
|
19422
19425
|
});
|
|
19423
19426
|
return data;
|
|
19424
19427
|
};
|
|
19425
|
-
var useGetSurveys = (eventId, status, params = {}, options = {}) => {
|
|
19428
|
+
var useGetSurveys = (eventId, sessionId, status, params = {}, options = {}) => {
|
|
19426
19429
|
return useConnectedInfiniteQuery(
|
|
19427
|
-
SURVEYS_QUERY_KEY(eventId, status),
|
|
19430
|
+
SURVEYS_QUERY_KEY(eventId, sessionId, status),
|
|
19428
19431
|
(params2) => GetSurveys({
|
|
19429
19432
|
...params2,
|
|
19430
19433
|
eventId,
|
|
19434
|
+
sessionId,
|
|
19431
19435
|
status
|
|
19432
19436
|
}),
|
|
19433
19437
|
params,
|
package/openapi.json
CHANGED
|
@@ -79540,6 +79540,15 @@
|
|
|
79540
79540
|
"description": "Filter by eventId",
|
|
79541
79541
|
"required": false
|
|
79542
79542
|
},
|
|
79543
|
+
{
|
|
79544
|
+
"in": "query",
|
|
79545
|
+
"name": "sessionId",
|
|
79546
|
+
"schema": {
|
|
79547
|
+
"type": "string"
|
|
79548
|
+
},
|
|
79549
|
+
"description": "Filter by sessionId",
|
|
79550
|
+
"required": false
|
|
79551
|
+
},
|
|
79543
79552
|
{
|
|
79544
79553
|
"in": "query",
|
|
79545
79554
|
"name": "status",
|