@connectedxm/admin 6.20.0 → 6.21.0
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 +15 -8
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +14 -8
- package/openapi.json +18 -10
- package/package.json +1 -1
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,10 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
22831
22838
|
};
|
|
22832
22839
|
|
|
22833
22840
|
// src/queries/surveys/useGetSurveys.ts
|
|
22834
|
-
var SURVEYS_QUERY_KEY = (eventId,
|
|
22841
|
+
var SURVEYS_QUERY_KEY = (eventId, status) => {
|
|
22835
22842
|
const keys = ["SURVEYS"];
|
|
22836
22843
|
if (eventId) keys.push(eventId);
|
|
22837
|
-
if (
|
|
22838
|
-
if (activationId) keys.push(activationId);
|
|
22844
|
+
if (status) keys.push(status);
|
|
22839
22845
|
return keys;
|
|
22840
22846
|
};
|
|
22841
22847
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -22843,7 +22849,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
22843
22849
|
};
|
|
22844
22850
|
var GetSurveys = async ({
|
|
22845
22851
|
eventId,
|
|
22846
|
-
|
|
22852
|
+
status,
|
|
22847
22853
|
pageParam,
|
|
22848
22854
|
pageSize,
|
|
22849
22855
|
orderBy,
|
|
@@ -22858,18 +22864,18 @@ var GetSurveys = async ({
|
|
|
22858
22864
|
orderBy: orderBy || void 0,
|
|
22859
22865
|
search: search || void 0,
|
|
22860
22866
|
eventId: eventId || void 0,
|
|
22861
|
-
|
|
22867
|
+
status: status || void 0
|
|
22862
22868
|
}
|
|
22863
22869
|
});
|
|
22864
22870
|
return data;
|
|
22865
22871
|
};
|
|
22866
|
-
var useGetSurveys = (eventId,
|
|
22872
|
+
var useGetSurveys = (eventId, status, params = {}, options = {}) => {
|
|
22867
22873
|
return useConnectedInfiniteQuery(
|
|
22868
|
-
SURVEYS_QUERY_KEY(eventId,
|
|
22874
|
+
SURVEYS_QUERY_KEY(eventId, status),
|
|
22869
22875
|
(params2) => GetSurveys({
|
|
22870
22876
|
...params2,
|
|
22871
22877
|
eventId,
|
|
22872
|
-
|
|
22878
|
+
status
|
|
22873
22879
|
}),
|
|
22874
22880
|
params,
|
|
22875
22881
|
options
|
|
@@ -43513,6 +43519,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43513
43519
|
SupportTicketType,
|
|
43514
43520
|
SupportedLocale,
|
|
43515
43521
|
SurveyQuestionType,
|
|
43522
|
+
SurveyStatus,
|
|
43516
43523
|
SwitchImage,
|
|
43517
43524
|
SyncEventCouponToVariants,
|
|
43518
43525
|
SystemEventLogStatus,
|