@connectedxm/admin 6.21.0 → 6.21.2

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 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
@@ -3547,10 +3547,11 @@ interface BaseLogin {
3547
3547
  firstName: string | null;
3548
3548
  lastName: string | null;
3549
3549
  internalRefId: string | null;
3550
- createdAt: string;
3551
- updatedAt: string;
3550
+ lastLoginAt: string | null;
3552
3551
  }
3553
3552
  interface Login extends BaseLogin {
3553
+ createdAt: string;
3554
+ updatedAt: string;
3554
3555
  _count: {
3555
3556
  accounts: number;
3556
3557
  devices: number;
@@ -19405,7 +19406,7 @@ declare const useGetSurveySessions: (surveyId?: string, params?: Omit<InfiniteQu
19405
19406
  * @category Keys
19406
19407
  * @group Surveys
19407
19408
  */
19408
- declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => string[];
19409
+ declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, status?: SurveyStatus) => string[];
19409
19410
  /**
19410
19411
  * @category Setters
19411
19412
  * @group Surveys
@@ -19413,18 +19414,19 @@ declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => st
19413
19414
  declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SURVEYS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSurveys>>) => void;
19414
19415
  interface GetSurveysProps extends InfiniteQueryParams {
19415
19416
  eventId?: string;
19417
+ sessionId?: string;
19416
19418
  status?: SurveyStatus;
19417
19419
  }
19418
19420
  /**
19419
19421
  * @category Queries
19420
19422
  * @group Surveys
19421
19423
  */
19422
- declare const GetSurveys: ({ eventId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
19424
+ declare const GetSurveys: ({ eventId, sessionId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
19423
19425
  /**
19424
19426
  * @category Hooks
19425
19427
  * @group Surveys
19426
19428
  */
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>>;
19429
+ 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
19430
 
19429
19431
  /**
19430
19432
  * @category Keys
package/dist/index.d.ts CHANGED
@@ -3547,10 +3547,11 @@ interface BaseLogin {
3547
3547
  firstName: string | null;
3548
3548
  lastName: string | null;
3549
3549
  internalRefId: string | null;
3550
- createdAt: string;
3551
- updatedAt: string;
3550
+ lastLoginAt: string | null;
3552
3551
  }
3553
3552
  interface Login extends BaseLogin {
3553
+ createdAt: string;
3554
+ updatedAt: string;
3554
3555
  _count: {
3555
3556
  accounts: number;
3556
3557
  devices: number;
@@ -19405,7 +19406,7 @@ declare const useGetSurveySessions: (surveyId?: string, params?: Omit<InfiniteQu
19405
19406
  * @category Keys
19406
19407
  * @group Surveys
19407
19408
  */
19408
- declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => string[];
19409
+ declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, status?: SurveyStatus) => string[];
19409
19410
  /**
19410
19411
  * @category Setters
19411
19412
  * @group Surveys
@@ -19413,18 +19414,19 @@ declare const SURVEYS_QUERY_KEY: (eventId?: string, status?: SurveyStatus) => st
19413
19414
  declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SURVEYS_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSurveys>>) => void;
19414
19415
  interface GetSurveysProps extends InfiniteQueryParams {
19415
19416
  eventId?: string;
19417
+ sessionId?: string;
19416
19418
  status?: SurveyStatus;
19417
19419
  }
19418
19420
  /**
19419
19421
  * @category Queries
19420
19422
  * @group Surveys
19421
19423
  */
19422
- declare const GetSurveys: ({ eventId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
19424
+ declare const GetSurveys: ({ eventId, sessionId, status, pageParam, pageSize, orderBy, search, adminApiParams, }: GetSurveysProps) => Promise<ConnectedXMResponse<Survey[]>>;
19423
19425
  /**
19424
19426
  * @category Hooks
19425
19427
  * @group Surveys
19426
19428
  */
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>>;
19429
+ 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
19430
 
19429
19431
  /**
19430
19432
  * @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",
@@ -102854,11 +102863,9 @@
102854
102863
  "type": "string",
102855
102864
  "nullable": true
102856
102865
  },
102857
- "createdAt": {
102858
- "type": "string"
102859
- },
102860
- "updatedAt": {
102861
- "type": "string"
102866
+ "lastLoginAt": {
102867
+ "type": "string",
102868
+ "nullable": true
102862
102869
  }
102863
102870
  },
102864
102871
  "required": [
@@ -102872,8 +102879,7 @@
102872
102879
  "firstName",
102873
102880
  "lastName",
102874
102881
  "internalRefId",
102875
- "createdAt",
102876
- "updatedAt"
102882
+ "lastLoginAt"
102877
102883
  ]
102878
102884
  },
102879
102885
  "Login": {
@@ -102884,6 +102890,12 @@
102884
102890
  {
102885
102891
  "type": "object",
102886
102892
  "properties": {
102893
+ "createdAt": {
102894
+ "type": "string"
102895
+ },
102896
+ "updatedAt": {
102897
+ "type": "string"
102898
+ },
102887
102899
  "_count": {
102888
102900
  "type": "object",
102889
102901
  "properties": {
@@ -102901,6 +102913,8 @@
102901
102913
  }
102902
102914
  },
102903
102915
  "required": [
102916
+ "createdAt",
102917
+ "updatedAt",
102904
102918
  "_count"
102905
102919
  ]
102906
102920
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.21.0",
3
+ "version": "6.21.2",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",