@connectedxm/admin 6.20.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 CHANGED
@@ -2049,6 +2049,7 @@ __export(index_exports, {
2049
2049
  SupportTicketType: () => SupportTicketType,
2050
2050
  SupportedLocale: () => SupportedLocale,
2051
2051
  SurveyQuestionType: () => SurveyQuestionType,
2052
+ SurveyStatus: () => SurveyStatus,
2052
2053
  SwitchImage: () => SwitchImage,
2053
2054
  SyncEventCouponToVariants: () => SyncEventCouponToVariants,
2054
2055
  SystemEventLogStatus: () => SystemEventLogStatus,
@@ -4126,6 +4127,12 @@ var WidgetType = /* @__PURE__ */ ((WidgetType2) => {
4126
4127
  WidgetType2["line"] = "line";
4127
4128
  return WidgetType2;
4128
4129
  })(WidgetType || {});
4130
+ var SurveyStatus = /* @__PURE__ */ ((SurveyStatus2) => {
4131
+ SurveyStatus2["draft"] = "draft";
4132
+ SurveyStatus2["published"] = "published";
4133
+ SurveyStatus2["archived"] = "archived";
4134
+ return SurveyStatus2;
4135
+ })(SurveyStatus || {});
4129
4136
  var SurveyQuestionType = /* @__PURE__ */ ((SurveyQuestionType2) => {
4130
4137
  SurveyQuestionType2["text"] = "text";
4131
4138
  SurveyQuestionType2["textarea"] = "textarea";
@@ -22831,11 +22838,11 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
22831
22838
  };
22832
22839
 
22833
22840
  // src/queries/surveys/useGetSurveys.ts
22834
- var SURVEYS_QUERY_KEY = (eventId, sessionId, activationId) => {
22841
+ var SURVEYS_QUERY_KEY = (eventId, sessionId, status) => {
22835
22842
  const keys = ["SURVEYS"];
22836
22843
  if (eventId) keys.push(eventId);
22837
22844
  if (sessionId) keys.push(sessionId);
22838
- if (activationId) keys.push(activationId);
22845
+ if (status) keys.push(status);
22839
22846
  return keys;
22840
22847
  };
22841
22848
  var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
@@ -22844,6 +22851,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
22844
22851
  var GetSurveys = async ({
22845
22852
  eventId,
22846
22853
  sessionId,
22854
+ status,
22847
22855
  pageParam,
22848
22856
  pageSize,
22849
22857
  orderBy,
@@ -22858,18 +22866,20 @@ var GetSurveys = async ({
22858
22866
  orderBy: orderBy || void 0,
22859
22867
  search: search || void 0,
22860
22868
  eventId: eventId || void 0,
22861
- sessionId: sessionId || void 0
22869
+ sessionId: sessionId || void 0,
22870
+ status: status || void 0
22862
22871
  }
22863
22872
  });
22864
22873
  return data;
22865
22874
  };
22866
- var useGetSurveys = (eventId, sessionId, params = {}, options = {}) => {
22875
+ var useGetSurveys = (eventId, sessionId, status, params = {}, options = {}) => {
22867
22876
  return useConnectedInfiniteQuery(
22868
- SURVEYS_QUERY_KEY(eventId, sessionId),
22877
+ SURVEYS_QUERY_KEY(eventId, sessionId, status),
22869
22878
  (params2) => GetSurveys({
22870
22879
  ...params2,
22871
22880
  eventId,
22872
- sessionId
22881
+ sessionId,
22882
+ status
22873
22883
  }),
22874
22884
  params,
22875
22885
  options
@@ -43513,6 +43523,7 @@ var useUpdateTier = (options = {}) => {
43513
43523
  SupportTicketType,
43514
43524
  SupportedLocale,
43515
43525
  SurveyQuestionType,
43526
+ SurveyStatus,
43516
43527
  SwitchImage,
43517
43528
  SyncEventCouponToVariants,
43518
43529
  SystemEventLogStatus,