@connectedxm/admin 6.8.3 → 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 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;
@@ -3849,6 +3852,8 @@ interface BaseSurveySubmission {
3849
3852
  id: string;
3850
3853
  accountId: string | null;
3851
3854
  account: BaseAccount | null;
3855
+ passId: string | null;
3856
+ pass: BaseEventPass | null;
3852
3857
  status: PurchaseStatus;
3853
3858
  responses: BaseSurveyQuestionResponse[];
3854
3859
  }
@@ -6320,6 +6325,8 @@ interface SurveyTranslationUpdateInputs {
6320
6325
  }
6321
6326
  interface SurveySubmissionUpdateInputs {
6322
6327
  status?: keyof typeof PurchaseStatus;
6328
+ accountId?: string | null;
6329
+ passId?: string | null;
6323
6330
  }
6324
6331
  interface SurveyQuestionChoiceCreateInputs {
6325
6332
  value: string;
@@ -18585,7 +18592,7 @@ declare const useGetSurvey: (surveyId?: string, options?: SingleQueryOptions<Ret
18585
18592
  * @category Keys
18586
18593
  * @group Surveys
18587
18594
  */
18588
- declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string) => string[];
18595
+ declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, activationId?: string) => string[];
18589
18596
  /**
18590
18597
  * @category Setters
18591
18598
  * @group Surveys
@@ -18594,17 +18601,18 @@ declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameter
18594
18601
  interface GetSurveysProps extends InfiniteQueryParams {
18595
18602
  eventId?: string;
18596
18603
  sessionId?: string;
18604
+ activationId?: string;
18597
18605
  }
18598
18606
  /**
18599
18607
  * @category Queries
18600
18608
  * @group Surveys
18601
18609
  */
18602
- 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[]>>;
18603
18611
  /**
18604
18612
  * @category Hooks
18605
18613
  * @group Surveys
18606
18614
  */
18607
- 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>>;
18608
18616
 
18609
18617
  /**
18610
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;
@@ -3849,6 +3852,8 @@ interface BaseSurveySubmission {
3849
3852
  id: string;
3850
3853
  accountId: string | null;
3851
3854
  account: BaseAccount | null;
3855
+ passId: string | null;
3856
+ pass: BaseEventPass | null;
3852
3857
  status: PurchaseStatus;
3853
3858
  responses: BaseSurveyQuestionResponse[];
3854
3859
  }
@@ -6320,6 +6325,8 @@ interface SurveyTranslationUpdateInputs {
6320
6325
  }
6321
6326
  interface SurveySubmissionUpdateInputs {
6322
6327
  status?: keyof typeof PurchaseStatus;
6328
+ accountId?: string | null;
6329
+ passId?: string | null;
6323
6330
  }
6324
6331
  interface SurveyQuestionChoiceCreateInputs {
6325
6332
  value: string;
@@ -18585,7 +18592,7 @@ declare const useGetSurvey: (surveyId?: string, options?: SingleQueryOptions<Ret
18585
18592
  * @category Keys
18586
18593
  * @group Surveys
18587
18594
  */
18588
- declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string) => string[];
18595
+ declare const SURVEYS_QUERY_KEY: (eventId?: string, sessionId?: string, activationId?: string) => string[];
18589
18596
  /**
18590
18597
  * @category Setters
18591
18598
  * @group Surveys
@@ -18594,17 +18601,18 @@ declare const SET_SURVEYS_QUERY_DATA: (client: QueryClient, keyParams: Parameter
18594
18601
  interface GetSurveysProps extends InfiniteQueryParams {
18595
18602
  eventId?: string;
18596
18603
  sessionId?: string;
18604
+ activationId?: string;
18597
18605
  }
18598
18606
  /**
18599
18607
  * @category Queries
18600
18608
  * @group Surveys
18601
18609
  */
18602
- 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[]>>;
18603
18611
  /**
18604
18612
  * @category Hooks
18605
18613
  * @group Surveys
18606
18614
  */
18607
- 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>>;
18608
18616
 
18609
18617
  /**
18610
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
  ]
@@ -87323,6 +87344,18 @@
87323
87344
  ],
87324
87345
  "nullable": true
87325
87346
  },
87347
+ "passId": {
87348
+ "type": "string",
87349
+ "nullable": true
87350
+ },
87351
+ "pass": {
87352
+ "allOf": [
87353
+ {
87354
+ "$ref": "#/components/schemas/BaseEventPass"
87355
+ }
87356
+ ],
87357
+ "nullable": true
87358
+ },
87326
87359
  "status": {
87327
87360
  "$ref": "#/components/schemas/PurchaseStatus"
87328
87361
  },
@@ -87337,6 +87370,8 @@
87337
87370
  "id",
87338
87371
  "accountId",
87339
87372
  "account",
87373
+ "passId",
87374
+ "pass",
87340
87375
  "status",
87341
87376
  "responses"
87342
87377
  ]
@@ -97651,6 +97686,14 @@
97651
97686
  "properties": {
97652
97687
  "status": {
97653
97688
  "$ref": "#/components/schemas/PurchaseStatus"
97689
+ },
97690
+ "accountId": {
97691
+ "type": "string",
97692
+ "nullable": true
97693
+ },
97694
+ "passId": {
97695
+ "type": "string",
97696
+ "nullable": true
97654
97697
  }
97655
97698
  }
97656
97699
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.8.3",
3
+ "version": "6.8.5",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",