@connectedxm/admin 6.19.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 +43 -8
- package/dist/index.d.cts +31 -8
- package/dist/index.d.ts +31 -8
- package/dist/index.js +40 -8
- package/openapi.json +71 -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
|
|
@@ -27724,6 +27729,30 @@ var useUpdateEventPass = (options = {}) => {
|
|
|
27724
27729
|
return useConnectedMutation(UpdateEventPass, options);
|
|
27725
27730
|
};
|
|
27726
27731
|
|
|
27732
|
+
// src/mutations/events/passes/useUpdateEventPassesReady.ts
|
|
27733
|
+
var UpdateEventPassesReady = async ({
|
|
27734
|
+
eventId,
|
|
27735
|
+
adminApiParams,
|
|
27736
|
+
queryClient
|
|
27737
|
+
}) => {
|
|
27738
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
27739
|
+
const { data } = await connectedXM.post(
|
|
27740
|
+
`/events/${eventId}/passes/ready`
|
|
27741
|
+
);
|
|
27742
|
+
if (queryClient && data.status === "ok") {
|
|
27743
|
+
queryClient.invalidateQueries({
|
|
27744
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId)
|
|
27745
|
+
});
|
|
27746
|
+
queryClient.invalidateQueries({
|
|
27747
|
+
queryKey: EVENT_PASSES_QUERY_KEY(eventId, true)
|
|
27748
|
+
});
|
|
27749
|
+
}
|
|
27750
|
+
return data;
|
|
27751
|
+
};
|
|
27752
|
+
var useUpdateEventPassesReady = (options = {}) => {
|
|
27753
|
+
return useConnectedMutation(UpdateEventPassesReady, options);
|
|
27754
|
+
};
|
|
27755
|
+
|
|
27727
27756
|
// src/mutations/events/questions/translations/useDeleteEventQuestionChoiceTranslation.ts
|
|
27728
27757
|
var DeleteEventQuestionChoiceTranslation = async ({
|
|
27729
27758
|
eventId,
|
|
@@ -40045,6 +40074,7 @@ export {
|
|
|
40045
40074
|
SupportTicketType,
|
|
40046
40075
|
SupportedLocale,
|
|
40047
40076
|
SurveyQuestionType,
|
|
40077
|
+
SurveyStatus,
|
|
40048
40078
|
SwitchImage,
|
|
40049
40079
|
SyncEventCouponToVariants,
|
|
40050
40080
|
SystemEventLogStatus,
|
|
@@ -40162,6 +40192,7 @@ export {
|
|
|
40162
40192
|
UpdateEventPassTypePriceSchedule,
|
|
40163
40193
|
UpdateEventPassTypeRefundSchedule,
|
|
40164
40194
|
UpdateEventPassTypeTranslation,
|
|
40195
|
+
UpdateEventPassesReady,
|
|
40165
40196
|
UpdateEventQuestion,
|
|
40166
40197
|
UpdateEventQuestionChoice,
|
|
40167
40198
|
UpdateEventQuestionChoiceSubQuestion,
|
|
@@ -41332,6 +41363,7 @@ export {
|
|
|
41332
41363
|
useUpdateEventPassTypePriceSchedule,
|
|
41333
41364
|
useUpdateEventPassTypeRefundSchedule,
|
|
41334
41365
|
useUpdateEventPassTypeTranslation,
|
|
41366
|
+
useUpdateEventPassesReady,
|
|
41335
41367
|
useUpdateEventQuestion,
|
|
41336
41368
|
useUpdateEventQuestionChoice,
|
|
41337
41369
|
useUpdateEventQuestionChoiceSubQuestion,
|
package/openapi.json
CHANGED
|
@@ -31873,6 +31873,59 @@
|
|
|
31873
31873
|
]
|
|
31874
31874
|
}
|
|
31875
31875
|
},
|
|
31876
|
+
"/events/{eventId}/passes/ready": {
|
|
31877
|
+
"post": {
|
|
31878
|
+
"operationId": "UpdateEventPassesReady",
|
|
31879
|
+
"summary": "Update Event Passes Ready",
|
|
31880
|
+
"description": "Update Event Passes Ready endpoint",
|
|
31881
|
+
"parameters": [
|
|
31882
|
+
{
|
|
31883
|
+
"in": "path",
|
|
31884
|
+
"name": "eventId",
|
|
31885
|
+
"schema": {
|
|
31886
|
+
"type": "string"
|
|
31887
|
+
},
|
|
31888
|
+
"description": "The event identifier",
|
|
31889
|
+
"required": true
|
|
31890
|
+
}
|
|
31891
|
+
],
|
|
31892
|
+
"responses": {
|
|
31893
|
+
"200": {
|
|
31894
|
+
"description": "Successful response",
|
|
31895
|
+
"content": {
|
|
31896
|
+
"application/json": {
|
|
31897
|
+
"schema": {
|
|
31898
|
+
"type": "object",
|
|
31899
|
+
"properties": {
|
|
31900
|
+
"status": {
|
|
31901
|
+
"type": "string",
|
|
31902
|
+
"enum": [
|
|
31903
|
+
"ok"
|
|
31904
|
+
]
|
|
31905
|
+
},
|
|
31906
|
+
"message": {
|
|
31907
|
+
"type": "string",
|
|
31908
|
+
"example": "Success message."
|
|
31909
|
+
},
|
|
31910
|
+
"data": {
|
|
31911
|
+
"nullable": true
|
|
31912
|
+
}
|
|
31913
|
+
},
|
|
31914
|
+
"required": [
|
|
31915
|
+
"status",
|
|
31916
|
+
"message",
|
|
31917
|
+
"data"
|
|
31918
|
+
]
|
|
31919
|
+
}
|
|
31920
|
+
}
|
|
31921
|
+
}
|
|
31922
|
+
}
|
|
31923
|
+
},
|
|
31924
|
+
"tags": [
|
|
31925
|
+
"Events::Passes"
|
|
31926
|
+
]
|
|
31927
|
+
}
|
|
31928
|
+
},
|
|
31876
31929
|
"/events/{eventId}/passes/{passId}": {
|
|
31877
31930
|
"get": {
|
|
31878
31931
|
"operationId": "GetEventPass",
|
|
@@ -79489,11 +79542,11 @@
|
|
|
79489
79542
|
},
|
|
79490
79543
|
{
|
|
79491
79544
|
"in": "query",
|
|
79492
|
-
"name": "
|
|
79545
|
+
"name": "status",
|
|
79493
79546
|
"schema": {
|
|
79494
|
-
"
|
|
79547
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
79495
79548
|
},
|
|
79496
|
-
"description": "Filter by
|
|
79549
|
+
"description": "Filter by status",
|
|
79497
79550
|
"required": false
|
|
79498
79551
|
},
|
|
79499
79552
|
{
|
|
@@ -104805,6 +104858,14 @@
|
|
|
104805
104858
|
"updatedAt"
|
|
104806
104859
|
]
|
|
104807
104860
|
},
|
|
104861
|
+
"SurveyStatus": {
|
|
104862
|
+
"type": "string",
|
|
104863
|
+
"enum": [
|
|
104864
|
+
"draft",
|
|
104865
|
+
"published",
|
|
104866
|
+
"archived"
|
|
104867
|
+
]
|
|
104868
|
+
},
|
|
104808
104869
|
"BaseSurvey": {
|
|
104809
104870
|
"type": "object",
|
|
104810
104871
|
"properties": {
|
|
@@ -104817,8 +104878,8 @@
|
|
|
104817
104878
|
"name": {
|
|
104818
104879
|
"type": "string"
|
|
104819
104880
|
},
|
|
104820
|
-
"
|
|
104821
|
-
"
|
|
104881
|
+
"status": {
|
|
104882
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
104822
104883
|
},
|
|
104823
104884
|
"description": {
|
|
104824
104885
|
"type": "string",
|
|
@@ -104838,7 +104899,7 @@
|
|
|
104838
104899
|
"id",
|
|
104839
104900
|
"slug",
|
|
104840
104901
|
"name",
|
|
104841
|
-
"
|
|
104902
|
+
"status",
|
|
104842
104903
|
"description",
|
|
104843
104904
|
"image",
|
|
104844
104905
|
"requireAuth",
|
|
@@ -115840,8 +115901,8 @@
|
|
|
115840
115901
|
"slug": {
|
|
115841
115902
|
"type": "string"
|
|
115842
115903
|
},
|
|
115843
|
-
"
|
|
115844
|
-
"
|
|
115904
|
+
"status": {
|
|
115905
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115845
115906
|
},
|
|
115846
115907
|
"description": {
|
|
115847
115908
|
"type": "string",
|
|
@@ -115894,8 +115955,8 @@
|
|
|
115894
115955
|
"name": {
|
|
115895
115956
|
"type": "string"
|
|
115896
115957
|
},
|
|
115897
|
-
"
|
|
115898
|
-
"
|
|
115958
|
+
"status": {
|
|
115959
|
+
"$ref": "#/components/schemas/SurveyStatus"
|
|
115899
115960
|
},
|
|
115900
115961
|
"slug": {
|
|
115901
115962
|
"type": "string"
|