@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 +17 -6
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +16 -6
- package/openapi.json +24 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -676,6 +676,12 @@ var WidgetType = /* @__PURE__ */ ((WidgetType2) => {
|
|
|
676
676
|
WidgetType2["line"] = "line";
|
|
677
677
|
return WidgetType2;
|
|
678
678
|
})(WidgetType || {});
|
|
679
|
+
var SurveyStatus = /* @__PURE__ */ ((SurveyStatus2) => {
|
|
680
|
+
SurveyStatus2["draft"] = "draft";
|
|
681
|
+
SurveyStatus2["published"] = "published";
|
|
682
|
+
SurveyStatus2["archived"] = "archived";
|
|
683
|
+
return SurveyStatus2;
|
|
684
|
+
})(SurveyStatus || {});
|
|
679
685
|
var SurveyQuestionType = /* @__PURE__ */ ((SurveyQuestionType2) => {
|
|
680
686
|
SurveyQuestionType2["text"] = "text";
|
|
681
687
|
SurveyQuestionType2["textarea"] = "textarea";
|
|
@@ -19385,11 +19391,11 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
19385
19391
|
};
|
|
19386
19392
|
|
|
19387
19393
|
// src/queries/surveys/useGetSurveys.ts
|
|
19388
|
-
var SURVEYS_QUERY_KEY = (eventId, sessionId,
|
|
19394
|
+
var SURVEYS_QUERY_KEY = (eventId, sessionId, status) => {
|
|
19389
19395
|
const keys = ["SURVEYS"];
|
|
19390
19396
|
if (eventId) keys.push(eventId);
|
|
19391
19397
|
if (sessionId) keys.push(sessionId);
|
|
19392
|
-
if (
|
|
19398
|
+
if (status) keys.push(status);
|
|
19393
19399
|
return keys;
|
|
19394
19400
|
};
|
|
19395
19401
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -19398,6 +19404,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
19398
19404
|
var GetSurveys = async ({
|
|
19399
19405
|
eventId,
|
|
19400
19406
|
sessionId,
|
|
19407
|
+
status,
|
|
19401
19408
|
pageParam,
|
|
19402
19409
|
pageSize,
|
|
19403
19410
|
orderBy,
|
|
@@ -19412,18 +19419,20 @@ var GetSurveys = async ({
|
|
|
19412
19419
|
orderBy: orderBy || void 0,
|
|
19413
19420
|
search: search || void 0,
|
|
19414
19421
|
eventId: eventId || void 0,
|
|
19415
|
-
sessionId: sessionId || void 0
|
|
19422
|
+
sessionId: sessionId || void 0,
|
|
19423
|
+
status: status || void 0
|
|
19416
19424
|
}
|
|
19417
19425
|
});
|
|
19418
19426
|
return data;
|
|
19419
19427
|
};
|
|
19420
|
-
var useGetSurveys = (eventId, sessionId, params = {}, options = {}) => {
|
|
19428
|
+
var useGetSurveys = (eventId, sessionId, status, params = {}, options = {}) => {
|
|
19421
19429
|
return useConnectedInfiniteQuery(
|
|
19422
|
-
SURVEYS_QUERY_KEY(eventId, sessionId),
|
|
19430
|
+
SURVEYS_QUERY_KEY(eventId, sessionId, status),
|
|
19423
19431
|
(params2) => GetSurveys({
|
|
19424
19432
|
...params2,
|
|
19425
19433
|
eventId,
|
|
19426
|
-
sessionId
|
|
19434
|
+
sessionId,
|
|
19435
|
+
status
|
|
19427
19436
|
}),
|
|
19428
19437
|
params,
|
|
19429
19438
|
options
|
|
@@ -40069,6 +40078,7 @@ export {
|
|
|
40069
40078
|
SupportTicketType,
|
|
40070
40079
|
SupportedLocale,
|
|
40071
40080
|
SurveyQuestionType,
|
|
40081
|
+
SurveyStatus,
|
|
40072
40082
|
SwitchImage,
|
|
40073
40083
|
SyncEventCouponToVariants,
|
|
40074
40084
|
SystemEventLogStatus,
|
package/openapi.json
CHANGED
|
@@ -79549,6 +79549,15 @@
|
|
|
79549
79549
|
"description": "Filter by sessionId",
|
|
79550
79550
|
"required": false
|
|
79551
79551
|
},
|
|
79552
|
+
{
|
|
79553
|
+
"in": "query",
|
|
79554
|
+
"name": "status",
|
|
79555
|
+
"schema": {
|
|
79556
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
79557
|
+
},
|
|
79558
|
+
"description": "Filter by status",
|
|
79559
|
+
"required": false
|
|
79560
|
+
},
|
|
79552
79561
|
{
|
|
79553
79562
|
"in": "query",
|
|
79554
79563
|
"name": "page",
|
|
@@ -104858,6 +104867,14 @@
|
|
|
104858
104867
|
"updatedAt"
|
|
104859
104868
|
]
|
|
104860
104869
|
},
|
|
104870
|
+
"SurveyStatus": {
|
|
104871
|
+
"type": "string",
|
|
104872
|
+
"enum": [
|
|
104873
|
+
"draft",
|
|
104874
|
+
"published",
|
|
104875
|
+
"archived"
|
|
104876
|
+
]
|
|
104877
|
+
},
|
|
104861
104878
|
"BaseSurvey": {
|
|
104862
104879
|
"type": "object",
|
|
104863
104880
|
"properties": {
|
|
@@ -104870,8 +104887,8 @@
|
|
|
104870
104887
|
"name": {
|
|
104871
104888
|
"type": "string"
|
|
104872
104889
|
},
|
|
104873
|
-
"
|
|
104874
|
-
"
|
|
104890
|
+
"status": {
|
|
104891
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
104875
104892
|
},
|
|
104876
104893
|
"description": {
|
|
104877
104894
|
"type": "string",
|
|
@@ -104891,7 +104908,7 @@
|
|
|
104891
104908
|
"id",
|
|
104892
104909
|
"slug",
|
|
104893
104910
|
"name",
|
|
104894
|
-
"
|
|
104911
|
+
"status",
|
|
104895
104912
|
"description",
|
|
104896
104913
|
"image",
|
|
104897
104914
|
"requireAuth",
|
|
@@ -115893,8 +115910,8 @@
|
|
|
115893
115910
|
"slug": {
|
|
115894
115911
|
"type": "string"
|
|
115895
115912
|
},
|
|
115896
|
-
"
|
|
115897
|
-
"
|
|
115913
|
+
"status": {
|
|
115914
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115898
115915
|
},
|
|
115899
115916
|
"description": {
|
|
115900
115917
|
"type": "string",
|
|
@@ -115947,8 +115964,8 @@
|
|
|
115947
115964
|
"name": {
|
|
115948
115965
|
"type": "string"
|
|
115949
115966
|
},
|
|
115950
|
-
"
|
|
115951
|
-
"
|
|
115967
|
+
"status": {
|
|
115968
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115952
115969
|
},
|
|
115953
115970
|
"slug": {
|
|
115954
115971
|
"type": "string"
|