@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.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,10 @@ var useGetSupportTickets = (type, state, assignment, params = {}, options = {})
|
|
|
19385
19391
|
};
|
|
19386
19392
|
|
|
19387
19393
|
// src/queries/surveys/useGetSurveys.ts
|
|
19388
|
-
var SURVEYS_QUERY_KEY = (eventId,
|
|
19394
|
+
var SURVEYS_QUERY_KEY = (eventId, status) => {
|
|
19389
19395
|
const keys = ["SURVEYS"];
|
|
19390
19396
|
if (eventId) keys.push(eventId);
|
|
19391
|
-
if (
|
|
19392
|
-
if (activationId) keys.push(activationId);
|
|
19397
|
+
if (status) keys.push(status);
|
|
19393
19398
|
return keys;
|
|
19394
19399
|
};
|
|
19395
19400
|
var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -19397,7 +19402,7 @@ var SET_SURVEYS_QUERY_DATA = (client, keyParams, response) => {
|
|
|
19397
19402
|
};
|
|
19398
19403
|
var GetSurveys = async ({
|
|
19399
19404
|
eventId,
|
|
19400
|
-
|
|
19405
|
+
status,
|
|
19401
19406
|
pageParam,
|
|
19402
19407
|
pageSize,
|
|
19403
19408
|
orderBy,
|
|
@@ -19412,18 +19417,18 @@ var GetSurveys = async ({
|
|
|
19412
19417
|
orderBy: orderBy || void 0,
|
|
19413
19418
|
search: search || void 0,
|
|
19414
19419
|
eventId: eventId || void 0,
|
|
19415
|
-
|
|
19420
|
+
status: status || void 0
|
|
19416
19421
|
}
|
|
19417
19422
|
});
|
|
19418
19423
|
return data;
|
|
19419
19424
|
};
|
|
19420
|
-
var useGetSurveys = (eventId,
|
|
19425
|
+
var useGetSurveys = (eventId, status, params = {}, options = {}) => {
|
|
19421
19426
|
return useConnectedInfiniteQuery(
|
|
19422
|
-
SURVEYS_QUERY_KEY(eventId,
|
|
19427
|
+
SURVEYS_QUERY_KEY(eventId, status),
|
|
19423
19428
|
(params2) => GetSurveys({
|
|
19424
19429
|
...params2,
|
|
19425
19430
|
eventId,
|
|
19426
|
-
|
|
19431
|
+
status
|
|
19427
19432
|
}),
|
|
19428
19433
|
params,
|
|
19429
19434
|
options
|
|
@@ -40069,6 +40074,7 @@ export {
|
|
|
40069
40074
|
SupportTicketType,
|
|
40070
40075
|
SupportedLocale,
|
|
40071
40076
|
SurveyQuestionType,
|
|
40077
|
+
SurveyStatus,
|
|
40072
40078
|
SwitchImage,
|
|
40073
40079
|
SyncEventCouponToVariants,
|
|
40074
40080
|
SystemEventLogStatus,
|
package/openapi.json
CHANGED
|
@@ -79542,11 +79542,11 @@
|
|
|
79542
79542
|
},
|
|
79543
79543
|
{
|
|
79544
79544
|
"in": "query",
|
|
79545
|
-
"name": "
|
|
79545
|
+
"name": "status",
|
|
79546
79546
|
"schema": {
|
|
79547
|
-
"
|
|
79547
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
79548
79548
|
},
|
|
79549
|
-
"description": "Filter by
|
|
79549
|
+
"description": "Filter by status",
|
|
79550
79550
|
"required": false
|
|
79551
79551
|
},
|
|
79552
79552
|
{
|
|
@@ -104858,6 +104858,14 @@
|
|
|
104858
104858
|
"updatedAt"
|
|
104859
104859
|
]
|
|
104860
104860
|
},
|
|
104861
|
+
"SurveyStatus": {
|
|
104862
|
+
"type": "string",
|
|
104863
|
+
"enum": [
|
|
104864
|
+
"draft",
|
|
104865
|
+
"published",
|
|
104866
|
+
"archived"
|
|
104867
|
+
]
|
|
104868
|
+
},
|
|
104861
104869
|
"BaseSurvey": {
|
|
104862
104870
|
"type": "object",
|
|
104863
104871
|
"properties": {
|
|
@@ -104870,8 +104878,8 @@
|
|
|
104870
104878
|
"name": {
|
|
104871
104879
|
"type": "string"
|
|
104872
104880
|
},
|
|
104873
|
-
"
|
|
104874
|
-
"
|
|
104881
|
+
"status": {
|
|
104882
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
104875
104883
|
},
|
|
104876
104884
|
"description": {
|
|
104877
104885
|
"type": "string",
|
|
@@ -104891,7 +104899,7 @@
|
|
|
104891
104899
|
"id",
|
|
104892
104900
|
"slug",
|
|
104893
104901
|
"name",
|
|
104894
|
-
"
|
|
104902
|
+
"status",
|
|
104895
104903
|
"description",
|
|
104896
104904
|
"image",
|
|
104897
104905
|
"requireAuth",
|
|
@@ -115893,8 +115901,8 @@
|
|
|
115893
115901
|
"slug": {
|
|
115894
115902
|
"type": "string"
|
|
115895
115903
|
},
|
|
115896
|
-
"
|
|
115897
|
-
"
|
|
115904
|
+
"status": {
|
|
115905
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115898
115906
|
},
|
|
115899
115907
|
"description": {
|
|
115900
115908
|
"type": "string",
|
|
@@ -115947,8 +115955,8 @@
|
|
|
115947
115955
|
"name": {
|
|
115948
115956
|
"type": "string"
|
|
115949
115957
|
},
|
|
115950
|
-
"
|
|
115951
|
-
"
|
|
115958
|
+
"status": {
|
|
115959
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115952
115960
|
},
|
|
115953
115961
|
"slug": {
|
|
115954
115962
|
"type": "string"
|