@connectedxm/client 1.5.3 → 1.5.5
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.d.mts +174 -3
- package/dist/index.d.ts +174 -3
- package/dist/index.js +364 -2
- package/dist/index.mjs +336 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -382,6 +382,11 @@ __export(index_exports, {
|
|
|
382
382
|
GetSeriesList: () => GetSeriesList,
|
|
383
383
|
GetSubscribedChannels: () => GetSubscribedChannels,
|
|
384
384
|
GetSubscribedContents: () => GetSubscribedContents,
|
|
385
|
+
GetSurvey: () => GetSurvey,
|
|
386
|
+
GetSurveyQuestionSearchValues: () => GetSurveyQuestionSearchValues,
|
|
387
|
+
GetSurveySubmission: () => GetSurveySubmission,
|
|
388
|
+
GetSurveySubmissionSections: () => GetSurveySubmissionSections,
|
|
389
|
+
GetSurveySubmissions: () => GetSurveySubmissions,
|
|
385
390
|
GetThread: () => GetThread,
|
|
386
391
|
GetThreadEvent: () => GetThreadEvent,
|
|
387
392
|
GetThreadEvents: () => GetThreadEvents,
|
|
@@ -629,9 +634,12 @@ __export(index_exports, {
|
|
|
629
634
|
SET_SELF_EVENT_REGISTRATION_ROOM_TYPES_QUERY_DATA: () => SET_SELF_EVENT_REGISTRATION_ROOM_TYPES_QUERY_DATA,
|
|
630
635
|
SET_SELF_GROUP_MEMBERSHIP_QUERY_DATA: () => SET_SELF_GROUP_MEMBERSHIP_QUERY_DATA,
|
|
631
636
|
SET_SELF_QUERY_DATA: () => SET_SELF_QUERY_DATA,
|
|
637
|
+
SET_SELF_SURVEY_SUBMISSION_QUERY_DATA: () => SET_SELF_SURVEY_SUBMISSION_QUERY_DATA,
|
|
632
638
|
SET_SERIES_EVENTS_QUERY_DATA: () => SET_SERIES_EVENTS_QUERY_DATA,
|
|
633
639
|
SET_SERIES_LIST_QUERY_DATA: () => SET_SERIES_LIST_QUERY_DATA,
|
|
634
640
|
SET_SERIES_QUERY_DATA: () => SET_SERIES_QUERY_DATA,
|
|
641
|
+
SET_SURVEY_QUERY_DATA: () => SET_SURVEY_QUERY_DATA,
|
|
642
|
+
SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA: () => SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA,
|
|
635
643
|
SET_THREADS_QUERY_DATA: () => SET_THREADS_QUERY_DATA,
|
|
636
644
|
SET_THREAD_EVENTS_QUERY_DATA: () => SET_THREAD_EVENTS_QUERY_DATA,
|
|
637
645
|
SET_THREAD_EVENT_QUERY_DATA: () => SET_THREAD_EVENT_QUERY_DATA,
|
|
@@ -645,15 +653,23 @@ __export(index_exports, {
|
|
|
645
653
|
SET_THREAD_QUERY_DATA: () => SET_THREAD_QUERY_DATA,
|
|
646
654
|
SUBSCRIBED_CHANNELS_QUERY_KEY: () => SUBSCRIBED_CHANNELS_QUERY_KEY,
|
|
647
655
|
SUBSCRIBED_CONTENTS_QUERY_KEY: () => SUBSCRIBED_CONTENTS_QUERY_KEY,
|
|
656
|
+
SURVEY_QUERY_KEY: () => SURVEY_QUERY_KEY,
|
|
657
|
+
SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY: () => SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY,
|
|
658
|
+
SURVEY_SUBMISSIONS_QUERY_KEY: () => SURVEY_SUBMISSIONS_QUERY_KEY,
|
|
659
|
+
SURVEY_SUBMISSION_QUERY_KEY: () => SURVEY_SUBMISSION_QUERY_KEY,
|
|
660
|
+
SURVEY_SUBMISSION_SECTIONS_QUERY_KEY: () => SURVEY_SUBMISSION_SECTIONS_QUERY_KEY,
|
|
648
661
|
SelectSelfEventRegistrationCoupon: () => SelectSelfEventRegistrationCoupon,
|
|
649
662
|
SelfCreateActivity: () => SelfCreateActivity,
|
|
650
663
|
SelfUpdateGroupMembership: () => SelfUpdateGroupMembership,
|
|
651
664
|
SessionPassStatus: () => SessionPassStatus,
|
|
652
665
|
SetContentPublishSchedule: () => SetContentPublishSchedule,
|
|
666
|
+
StartSurvey: () => StartSurvey,
|
|
653
667
|
SubmitSelfEventRegistration: () => SubmitSelfEventRegistration,
|
|
654
668
|
SubmitSelfEventRegistrationSessionPasses: () => SubmitSelfEventRegistrationSessionPasses,
|
|
669
|
+
SubmitSurvey: () => SubmitSurvey,
|
|
655
670
|
SubscriptionStatus: () => SubscriptionStatus,
|
|
656
671
|
SupportTicketType: () => SupportTicketType,
|
|
672
|
+
SurveyQuestionType: () => SurveyQuestionType,
|
|
657
673
|
THREADS_QUERY_KEY: () => THREADS_QUERY_KEY,
|
|
658
674
|
THREAD_EVENTS_QUERY_KEY: () => THREAD_EVENTS_QUERY_KEY,
|
|
659
675
|
THREAD_EVENT_QUERY_KEY: () => THREAD_EVENT_QUERY_KEY,
|
|
@@ -702,11 +718,13 @@ __export(index_exports, {
|
|
|
702
718
|
UpdateSelfNotificationPreferences: () => UpdateSelfNotificationPreferences,
|
|
703
719
|
UpdateSelfPushDevice: () => UpdateSelfPushDevice,
|
|
704
720
|
UpdateSubscriptionPaymentMethod: () => UpdateSubscriptionPaymentMethod,
|
|
721
|
+
UpdateSurveyResponse: () => UpdateSurveyResponse,
|
|
705
722
|
UpdateThread: () => UpdateThread,
|
|
706
723
|
UpdateThreadMember: () => UpdateThreadMember,
|
|
707
724
|
UpdateThreadMessage: () => UpdateThreadMessage,
|
|
708
725
|
UploadChannelContentImage: () => UploadChannelContentImage,
|
|
709
726
|
UploadFile: () => UploadFile,
|
|
727
|
+
UploadSurveyResponseFile: () => UploadSurveyResponseFile,
|
|
710
728
|
isListing: () => isListing,
|
|
711
729
|
isManagedCoupon: () => isManagedCoupon,
|
|
712
730
|
isRegistrationQuestion: () => isRegistrationQuestion,
|
|
@@ -996,6 +1014,11 @@ __export(index_exports, {
|
|
|
996
1014
|
useGetSeriesList: () => useGetSeriesList,
|
|
997
1015
|
useGetSubscribedChannels: () => useGetSubscribedChannels,
|
|
998
1016
|
useGetSubscribedContents: () => useGetSubscribedContents,
|
|
1017
|
+
useGetSurvey: () => useGetSurvey,
|
|
1018
|
+
useGetSurveyQuestionSearchValues: () => useGetSurveyQuestionSearchValues,
|
|
1019
|
+
useGetSurveySubmission: () => useGetSurveySubmission,
|
|
1020
|
+
useGetSurveySubmissionSections: () => useGetSurveySubmissionSections,
|
|
1021
|
+
useGetSurveySubmissions: () => useGetSurveySubmissions,
|
|
999
1022
|
useGetThread: () => useGetThread,
|
|
1000
1023
|
useGetThreadEvent: () => useGetThreadEvent,
|
|
1001
1024
|
useGetThreadEvents: () => useGetThreadEvents,
|
|
@@ -1036,8 +1059,10 @@ __export(index_exports, {
|
|
|
1036
1059
|
useSelfCreateActivity: () => useSelfCreateActivity,
|
|
1037
1060
|
useSelfUpdateGroupMembership: () => useSelfUpdateGroupMembership,
|
|
1038
1061
|
useSetContentPublishSchedule: () => useSetContentPublishSchedule,
|
|
1062
|
+
useStartSurvey: () => useStartSurvey,
|
|
1039
1063
|
useSubmitSelfEventRegistration: () => useSubmitSelfEventRegistration,
|
|
1040
1064
|
useSubmitSelfEventRegistrationSessionPasses: () => useSubmitSelfEventRegistrationSessionPasses,
|
|
1065
|
+
useSubmitSurvey: () => useSubmitSurvey,
|
|
1041
1066
|
useTransferPass: () => useTransferPass,
|
|
1042
1067
|
useUndoCheckinListingAttendeePass: () => useUndoCheckinListingAttendeePass,
|
|
1043
1068
|
useUnfollowAccount: () => useUnfollowAccount,
|
|
@@ -1069,11 +1094,13 @@ __export(index_exports, {
|
|
|
1069
1094
|
useUpdateSelfNotificationPreferences: () => useUpdateSelfNotificationPreferences,
|
|
1070
1095
|
useUpdateSelfPushDevice: () => useUpdateSelfPushDevice,
|
|
1071
1096
|
useUpdateSubscriptionPaymentMethod: () => useUpdateSubscriptionPaymentMethod,
|
|
1097
|
+
useUpdateSurveyResponse: () => useUpdateSurveyResponse,
|
|
1072
1098
|
useUpdateThread: () => useUpdateThread,
|
|
1073
1099
|
useUpdateThreadMember: () => useUpdateThreadMember,
|
|
1074
1100
|
useUpdateThreadMessage: () => useUpdateThreadMessage,
|
|
1075
1101
|
useUploadChannelContentImage: () => useUploadChannelContentImage,
|
|
1076
|
-
useUploadFile: () => useUploadFile
|
|
1102
|
+
useUploadFile: () => useUploadFile,
|
|
1103
|
+
useUploadSurveyResponseFile: () => useUploadSurveyResponseFile
|
|
1077
1104
|
});
|
|
1078
1105
|
module.exports = __toCommonJS(index_exports);
|
|
1079
1106
|
|
|
@@ -1521,12 +1548,14 @@ var OrganizationModuleType = /* @__PURE__ */ ((OrganizationModuleType2) => {
|
|
|
1521
1548
|
OrganizationModuleType2["invoices"] = "invoices";
|
|
1522
1549
|
OrganizationModuleType2["announcements"] = "announcements";
|
|
1523
1550
|
OrganizationModuleType2["bookings"] = "bookings";
|
|
1551
|
+
OrganizationModuleType2["surveys"] = "surveys";
|
|
1524
1552
|
return OrganizationModuleType2;
|
|
1525
1553
|
})(OrganizationModuleType || {});
|
|
1526
1554
|
var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
|
|
1527
1555
|
PaymentIntegrationType2["stripe"] = "stripe";
|
|
1528
1556
|
PaymentIntegrationType2["paypal"] = "paypal";
|
|
1529
1557
|
PaymentIntegrationType2["braintree"] = "braintree";
|
|
1558
|
+
PaymentIntegrationType2["manual"] = "manual";
|
|
1530
1559
|
return PaymentIntegrationType2;
|
|
1531
1560
|
})(PaymentIntegrationType || {});
|
|
1532
1561
|
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
@@ -1539,6 +1568,20 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
|
1539
1568
|
DayOfWeek2["saturday"] = "saturday";
|
|
1540
1569
|
return DayOfWeek2;
|
|
1541
1570
|
})(DayOfWeek || {});
|
|
1571
|
+
var SurveyQuestionType = /* @__PURE__ */ ((SurveyQuestionType2) => {
|
|
1572
|
+
SurveyQuestionType2["text"] = "text";
|
|
1573
|
+
SurveyQuestionType2["textarea"] = "textarea";
|
|
1574
|
+
SurveyQuestionType2["number"] = "number";
|
|
1575
|
+
SurveyQuestionType2["time"] = "time";
|
|
1576
|
+
SurveyQuestionType2["date"] = "date";
|
|
1577
|
+
SurveyQuestionType2["toggle"] = "toggle";
|
|
1578
|
+
SurveyQuestionType2["select"] = "select";
|
|
1579
|
+
SurveyQuestionType2["radio"] = "radio";
|
|
1580
|
+
SurveyQuestionType2["checkbox"] = "checkbox";
|
|
1581
|
+
SurveyQuestionType2["search"] = "search";
|
|
1582
|
+
SurveyQuestionType2["file"] = "file";
|
|
1583
|
+
return SurveyQuestionType2;
|
|
1584
|
+
})(SurveyQuestionType || {});
|
|
1542
1585
|
|
|
1543
1586
|
// src/utilities/AppendInfiniteQuery.ts
|
|
1544
1587
|
var import_immer = require("immer");
|
|
@@ -9389,6 +9432,218 @@ var useGetIntegrationAuth = (integrationType, expiration, options = {}) => {
|
|
|
9389
9432
|
);
|
|
9390
9433
|
};
|
|
9391
9434
|
|
|
9435
|
+
// src/queries/surveys/useGetSurvey.ts
|
|
9436
|
+
var SURVEY_QUERY_KEY = (surveyId) => [
|
|
9437
|
+
"SURVEYS",
|
|
9438
|
+
surveyId
|
|
9439
|
+
];
|
|
9440
|
+
var SET_SURVEY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
9441
|
+
client.setQueryData(
|
|
9442
|
+
[...SURVEY_QUERY_KEY(...keyParams), ...GetBaseSingleQueryKeys(...baseKeys)],
|
|
9443
|
+
response
|
|
9444
|
+
);
|
|
9445
|
+
};
|
|
9446
|
+
var GetSurvey = async ({
|
|
9447
|
+
surveyId,
|
|
9448
|
+
clientApiParams
|
|
9449
|
+
}) => {
|
|
9450
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
9451
|
+
const { data } = await clientApi.get(`/surveys/${surveyId}`);
|
|
9452
|
+
return data;
|
|
9453
|
+
};
|
|
9454
|
+
var useGetSurvey = (surveyId, options = {}) => {
|
|
9455
|
+
return useConnectedSingleQuery_default(
|
|
9456
|
+
SURVEY_QUERY_KEY(surveyId),
|
|
9457
|
+
(params) => GetSurvey({
|
|
9458
|
+
surveyId,
|
|
9459
|
+
...params
|
|
9460
|
+
}),
|
|
9461
|
+
{
|
|
9462
|
+
...options,
|
|
9463
|
+
staleTime: Infinity,
|
|
9464
|
+
refetchOnWindowFocus: false,
|
|
9465
|
+
refetchOnReconnect: false,
|
|
9466
|
+
enabled: !!surveyId && (options?.enabled ?? true)
|
|
9467
|
+
}
|
|
9468
|
+
);
|
|
9469
|
+
};
|
|
9470
|
+
|
|
9471
|
+
// src/queries/surveys/useGetSurveySubmissions.ts
|
|
9472
|
+
var SURVEY_SUBMISSIONS_QUERY_KEY = (surveyId, status) => {
|
|
9473
|
+
const key = [
|
|
9474
|
+
...SELF_QUERY_KEY(),
|
|
9475
|
+
...SURVEY_QUERY_KEY(surveyId),
|
|
9476
|
+
"SUBMISSIONS"
|
|
9477
|
+
];
|
|
9478
|
+
if (status) key.push(status);
|
|
9479
|
+
return key;
|
|
9480
|
+
};
|
|
9481
|
+
var GetSurveySubmissions = async ({
|
|
9482
|
+
surveyId,
|
|
9483
|
+
status,
|
|
9484
|
+
pageParam,
|
|
9485
|
+
pageSize,
|
|
9486
|
+
orderBy,
|
|
9487
|
+
search,
|
|
9488
|
+
clientApiParams
|
|
9489
|
+
}) => {
|
|
9490
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
9491
|
+
const { data } = await clientApi.get(`/surveys/${surveyId}/submissions`, {
|
|
9492
|
+
params: {
|
|
9493
|
+
page: pageParam || void 0,
|
|
9494
|
+
pageSize: pageSize || void 0,
|
|
9495
|
+
orderBy: orderBy || void 0,
|
|
9496
|
+
search: search || void 0,
|
|
9497
|
+
status: status || void 0
|
|
9498
|
+
}
|
|
9499
|
+
});
|
|
9500
|
+
return data;
|
|
9501
|
+
};
|
|
9502
|
+
var useGetSurveySubmissions = (surveyId = "", status, params = {}, options = {}) => {
|
|
9503
|
+
const { authenticated } = useConnectedXM();
|
|
9504
|
+
return useConnectedInfiniteQuery(
|
|
9505
|
+
SURVEY_SUBMISSIONS_QUERY_KEY(surveyId, status),
|
|
9506
|
+
(params2) => GetSurveySubmissions({
|
|
9507
|
+
surveyId,
|
|
9508
|
+
status,
|
|
9509
|
+
...params2
|
|
9510
|
+
}),
|
|
9511
|
+
params,
|
|
9512
|
+
{
|
|
9513
|
+
...options,
|
|
9514
|
+
enabled: !!authenticated && !!surveyId && (options?.enabled ?? true)
|
|
9515
|
+
}
|
|
9516
|
+
);
|
|
9517
|
+
};
|
|
9518
|
+
|
|
9519
|
+
// src/queries/surveys/useGetSurveySubmission.ts
|
|
9520
|
+
var SURVEY_SUBMISSION_QUERY_KEY = (surveyId, submissionId) => [
|
|
9521
|
+
...SURVEY_SUBMISSIONS_QUERY_KEY(surveyId),
|
|
9522
|
+
"SUBMISSIONS",
|
|
9523
|
+
submissionId
|
|
9524
|
+
];
|
|
9525
|
+
var SET_SELF_SURVEY_SUBMISSION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
9526
|
+
client.setQueryData(
|
|
9527
|
+
[
|
|
9528
|
+
...SURVEY_SUBMISSION_QUERY_KEY(...keyParams),
|
|
9529
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
9530
|
+
],
|
|
9531
|
+
response
|
|
9532
|
+
);
|
|
9533
|
+
};
|
|
9534
|
+
var GetSurveySubmission = async ({
|
|
9535
|
+
surveyId,
|
|
9536
|
+
submissionId,
|
|
9537
|
+
clientApiParams
|
|
9538
|
+
}) => {
|
|
9539
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
9540
|
+
const { data } = await clientApi.get(
|
|
9541
|
+
`/surveys/${surveyId}/submissions/${submissionId}`
|
|
9542
|
+
);
|
|
9543
|
+
return data;
|
|
9544
|
+
};
|
|
9545
|
+
var useGetSurveySubmission = (surveyId, submissionId, options = {}) => {
|
|
9546
|
+
return useConnectedSingleQuery_default(
|
|
9547
|
+
SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId),
|
|
9548
|
+
(params) => GetSurveySubmission({
|
|
9549
|
+
surveyId,
|
|
9550
|
+
submissionId,
|
|
9551
|
+
...params
|
|
9552
|
+
}),
|
|
9553
|
+
{
|
|
9554
|
+
...options,
|
|
9555
|
+
staleTime: Infinity,
|
|
9556
|
+
refetchOnWindowFocus: false,
|
|
9557
|
+
refetchOnReconnect: false,
|
|
9558
|
+
enabled: !!surveyId && !!submissionId && (options?.enabled ?? true)
|
|
9559
|
+
}
|
|
9560
|
+
);
|
|
9561
|
+
};
|
|
9562
|
+
|
|
9563
|
+
// src/queries/surveys/useGetSurveySubmissionSections.ts
|
|
9564
|
+
var SURVEY_SUBMISSION_SECTIONS_QUERY_KEY = (surveyId, submissionId) => [
|
|
9565
|
+
...SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId),
|
|
9566
|
+
"SECTIONS"
|
|
9567
|
+
];
|
|
9568
|
+
var SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
9569
|
+
client.setQueryData(
|
|
9570
|
+
[
|
|
9571
|
+
...SURVEY_SUBMISSION_SECTIONS_QUERY_KEY(...keyParams),
|
|
9572
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
9573
|
+
],
|
|
9574
|
+
response
|
|
9575
|
+
);
|
|
9576
|
+
};
|
|
9577
|
+
var GetSurveySubmissionSections = async ({
|
|
9578
|
+
surveyId,
|
|
9579
|
+
submissionId,
|
|
9580
|
+
clientApiParams
|
|
9581
|
+
}) => {
|
|
9582
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
9583
|
+
const { data } = await clientApi.get(
|
|
9584
|
+
`/surveys/${surveyId}/submissions/${submissionId}/sections`
|
|
9585
|
+
);
|
|
9586
|
+
return data;
|
|
9587
|
+
};
|
|
9588
|
+
var useGetSurveySubmissionSections = (surveyId, submissionId, options = {}) => {
|
|
9589
|
+
return useConnectedSingleQuery_default(
|
|
9590
|
+
SURVEY_SUBMISSION_SECTIONS_QUERY_KEY(surveyId, submissionId),
|
|
9591
|
+
(params) => GetSurveySubmissionSections({
|
|
9592
|
+
surveyId,
|
|
9593
|
+
submissionId,
|
|
9594
|
+
...params
|
|
9595
|
+
}),
|
|
9596
|
+
{
|
|
9597
|
+
...options,
|
|
9598
|
+
staleTime: Infinity,
|
|
9599
|
+
refetchOnWindowFocus: false,
|
|
9600
|
+
refetchOnReconnect: false,
|
|
9601
|
+
enabled: !!surveyId && !!submissionId && (options?.enabled ?? true)
|
|
9602
|
+
}
|
|
9603
|
+
);
|
|
9604
|
+
};
|
|
9605
|
+
|
|
9606
|
+
// src/queries/surveys/useGetSurveyQuestionSearchValues.ts
|
|
9607
|
+
var SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY = (surveyId, questionId) => [...SURVEY_QUERY_KEY(surveyId), "QUESTIONS", questionId, "VALUES"];
|
|
9608
|
+
var GetSurveyQuestionSearchValues = async ({
|
|
9609
|
+
surveyId,
|
|
9610
|
+
questionId,
|
|
9611
|
+
pageParam,
|
|
9612
|
+
pageSize,
|
|
9613
|
+
orderBy,
|
|
9614
|
+
search,
|
|
9615
|
+
clientApiParams
|
|
9616
|
+
}) => {
|
|
9617
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
9618
|
+
const { data } = await clientApi.get(
|
|
9619
|
+
`/surveys/${surveyId}/questions/${questionId}/values`,
|
|
9620
|
+
{
|
|
9621
|
+
params: {
|
|
9622
|
+
page: pageParam || void 0,
|
|
9623
|
+
pageSize: pageSize || void 0,
|
|
9624
|
+
orderBy: orderBy || void 0,
|
|
9625
|
+
search: search || void 0
|
|
9626
|
+
}
|
|
9627
|
+
}
|
|
9628
|
+
);
|
|
9629
|
+
return data;
|
|
9630
|
+
};
|
|
9631
|
+
var useGetSurveyQuestionSearchValues = (surveyId = "", questionId = "", params = {}, options = {}) => {
|
|
9632
|
+
return useConnectedInfiniteQuery(
|
|
9633
|
+
SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY(surveyId, questionId),
|
|
9634
|
+
(params2) => GetSurveyQuestionSearchValues({
|
|
9635
|
+
surveyId,
|
|
9636
|
+
questionId,
|
|
9637
|
+
...params2
|
|
9638
|
+
}),
|
|
9639
|
+
params,
|
|
9640
|
+
{
|
|
9641
|
+
...options,
|
|
9642
|
+
enabled: !!surveyId && !!questionId && (options?.enabled ?? true)
|
|
9643
|
+
}
|
|
9644
|
+
);
|
|
9645
|
+
};
|
|
9646
|
+
|
|
9392
9647
|
// src/mutations/useConnectedMutation.ts
|
|
9393
9648
|
var import_react_query4 = require("@tanstack/react-query");
|
|
9394
9649
|
var useConnectedMutation = (mutation, options) => {
|
|
@@ -13237,6 +13492,86 @@ var EnableIntegration = async ({
|
|
|
13237
13492
|
var useEnableIntegration = (options = {}) => {
|
|
13238
13493
|
return useConnectedMutation_default(EnableIntegration, options);
|
|
13239
13494
|
};
|
|
13495
|
+
|
|
13496
|
+
// src/mutations/surveys/useStartSurvey.ts
|
|
13497
|
+
var StartSurvey = async ({
|
|
13498
|
+
surveyId,
|
|
13499
|
+
clientApiParams
|
|
13500
|
+
}) => {
|
|
13501
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
13502
|
+
const { data } = await clientApi.post(
|
|
13503
|
+
`/surveys/${surveyId}/submissions`
|
|
13504
|
+
);
|
|
13505
|
+
return data;
|
|
13506
|
+
};
|
|
13507
|
+
var useStartSurvey = (options = {}) => {
|
|
13508
|
+
return useConnectedMutation_default(StartSurvey, options);
|
|
13509
|
+
};
|
|
13510
|
+
|
|
13511
|
+
// src/mutations/surveys/useSubmitSurvey.ts
|
|
13512
|
+
var SubmitSurvey = async ({
|
|
13513
|
+
surveyId,
|
|
13514
|
+
submissionId,
|
|
13515
|
+
responses,
|
|
13516
|
+
clientApiParams,
|
|
13517
|
+
queryClient
|
|
13518
|
+
}) => {
|
|
13519
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
13520
|
+
const { data } = await clientApi.post(
|
|
13521
|
+
`/surveys/${surveyId}/submissions/${submissionId}/submit`,
|
|
13522
|
+
responses
|
|
13523
|
+
);
|
|
13524
|
+
if (queryClient && data.status === "ok") {
|
|
13525
|
+
queryClient.invalidateQueries({
|
|
13526
|
+
queryKey: SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId)
|
|
13527
|
+
});
|
|
13528
|
+
}
|
|
13529
|
+
return data;
|
|
13530
|
+
};
|
|
13531
|
+
var useSubmitSurvey = (options = {}) => {
|
|
13532
|
+
return useConnectedMutation_default(SubmitSurvey, options);
|
|
13533
|
+
};
|
|
13534
|
+
|
|
13535
|
+
// src/mutations/surveys/useUpdateSurveyResponse.ts
|
|
13536
|
+
var UpdateSurveyResponse = async ({
|
|
13537
|
+
surveyId,
|
|
13538
|
+
submissionId,
|
|
13539
|
+
questionId,
|
|
13540
|
+
response,
|
|
13541
|
+
clientApiParams
|
|
13542
|
+
}) => {
|
|
13543
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
13544
|
+
const { data } = await clientApi.put(
|
|
13545
|
+
`/surveys/${surveyId}/submissions/${submissionId}/questions/${questionId}`,
|
|
13546
|
+
{ response }
|
|
13547
|
+
);
|
|
13548
|
+
return data;
|
|
13549
|
+
};
|
|
13550
|
+
var useUpdateSurveyResponse = (options = {}) => {
|
|
13551
|
+
return useConnectedMutation_default(UpdateSurveyResponse, options);
|
|
13552
|
+
};
|
|
13553
|
+
|
|
13554
|
+
// src/mutations/surveys/useUploadSurveyResponseFile.ts
|
|
13555
|
+
var UploadSurveyResponseFile = async ({
|
|
13556
|
+
clientApiParams,
|
|
13557
|
+
surveyId,
|
|
13558
|
+
submissionId,
|
|
13559
|
+
dataUri,
|
|
13560
|
+
name
|
|
13561
|
+
}) => {
|
|
13562
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
13563
|
+
const { data } = await clientApi.post(
|
|
13564
|
+
`/surveys/${surveyId}/submissions/${submissionId}/files`,
|
|
13565
|
+
{
|
|
13566
|
+
dataUri,
|
|
13567
|
+
name
|
|
13568
|
+
}
|
|
13569
|
+
);
|
|
13570
|
+
return data;
|
|
13571
|
+
};
|
|
13572
|
+
var useUploadSurveyResponseFile = (options = {}) => {
|
|
13573
|
+
return useConnectedMutation_default(UploadSurveyResponseFile, options);
|
|
13574
|
+
};
|
|
13240
13575
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13241
13576
|
0 && (module.exports = {
|
|
13242
13577
|
ACCOUNTS_POPULAR_QUERY_KEY,
|
|
@@ -13591,6 +13926,11 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13591
13926
|
GetSeriesList,
|
|
13592
13927
|
GetSubscribedChannels,
|
|
13593
13928
|
GetSubscribedContents,
|
|
13929
|
+
GetSurvey,
|
|
13930
|
+
GetSurveyQuestionSearchValues,
|
|
13931
|
+
GetSurveySubmission,
|
|
13932
|
+
GetSurveySubmissionSections,
|
|
13933
|
+
GetSurveySubmissions,
|
|
13594
13934
|
GetThread,
|
|
13595
13935
|
GetThreadEvent,
|
|
13596
13936
|
GetThreadEvents,
|
|
@@ -13838,9 +14178,12 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13838
14178
|
SET_SELF_EVENT_REGISTRATION_ROOM_TYPES_QUERY_DATA,
|
|
13839
14179
|
SET_SELF_GROUP_MEMBERSHIP_QUERY_DATA,
|
|
13840
14180
|
SET_SELF_QUERY_DATA,
|
|
14181
|
+
SET_SELF_SURVEY_SUBMISSION_QUERY_DATA,
|
|
13841
14182
|
SET_SERIES_EVENTS_QUERY_DATA,
|
|
13842
14183
|
SET_SERIES_LIST_QUERY_DATA,
|
|
13843
14184
|
SET_SERIES_QUERY_DATA,
|
|
14185
|
+
SET_SURVEY_QUERY_DATA,
|
|
14186
|
+
SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA,
|
|
13844
14187
|
SET_THREADS_QUERY_DATA,
|
|
13845
14188
|
SET_THREAD_EVENTS_QUERY_DATA,
|
|
13846
14189
|
SET_THREAD_EVENT_QUERY_DATA,
|
|
@@ -13854,15 +14197,23 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13854
14197
|
SET_THREAD_QUERY_DATA,
|
|
13855
14198
|
SUBSCRIBED_CHANNELS_QUERY_KEY,
|
|
13856
14199
|
SUBSCRIBED_CONTENTS_QUERY_KEY,
|
|
14200
|
+
SURVEY_QUERY_KEY,
|
|
14201
|
+
SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY,
|
|
14202
|
+
SURVEY_SUBMISSIONS_QUERY_KEY,
|
|
14203
|
+
SURVEY_SUBMISSION_QUERY_KEY,
|
|
14204
|
+
SURVEY_SUBMISSION_SECTIONS_QUERY_KEY,
|
|
13857
14205
|
SelectSelfEventRegistrationCoupon,
|
|
13858
14206
|
SelfCreateActivity,
|
|
13859
14207
|
SelfUpdateGroupMembership,
|
|
13860
14208
|
SessionPassStatus,
|
|
13861
14209
|
SetContentPublishSchedule,
|
|
14210
|
+
StartSurvey,
|
|
13862
14211
|
SubmitSelfEventRegistration,
|
|
13863
14212
|
SubmitSelfEventRegistrationSessionPasses,
|
|
14213
|
+
SubmitSurvey,
|
|
13864
14214
|
SubscriptionStatus,
|
|
13865
14215
|
SupportTicketType,
|
|
14216
|
+
SurveyQuestionType,
|
|
13866
14217
|
THREADS_QUERY_KEY,
|
|
13867
14218
|
THREAD_EVENTS_QUERY_KEY,
|
|
13868
14219
|
THREAD_EVENT_QUERY_KEY,
|
|
@@ -13911,11 +14262,13 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13911
14262
|
UpdateSelfNotificationPreferences,
|
|
13912
14263
|
UpdateSelfPushDevice,
|
|
13913
14264
|
UpdateSubscriptionPaymentMethod,
|
|
14265
|
+
UpdateSurveyResponse,
|
|
13914
14266
|
UpdateThread,
|
|
13915
14267
|
UpdateThreadMember,
|
|
13916
14268
|
UpdateThreadMessage,
|
|
13917
14269
|
UploadChannelContentImage,
|
|
13918
14270
|
UploadFile,
|
|
14271
|
+
UploadSurveyResponseFile,
|
|
13919
14272
|
isListing,
|
|
13920
14273
|
isManagedCoupon,
|
|
13921
14274
|
isRegistrationQuestion,
|
|
@@ -14205,6 +14558,11 @@ var useEnableIntegration = (options = {}) => {
|
|
|
14205
14558
|
useGetSeriesList,
|
|
14206
14559
|
useGetSubscribedChannels,
|
|
14207
14560
|
useGetSubscribedContents,
|
|
14561
|
+
useGetSurvey,
|
|
14562
|
+
useGetSurveyQuestionSearchValues,
|
|
14563
|
+
useGetSurveySubmission,
|
|
14564
|
+
useGetSurveySubmissionSections,
|
|
14565
|
+
useGetSurveySubmissions,
|
|
14208
14566
|
useGetThread,
|
|
14209
14567
|
useGetThreadEvent,
|
|
14210
14568
|
useGetThreadEvents,
|
|
@@ -14245,8 +14603,10 @@ var useEnableIntegration = (options = {}) => {
|
|
|
14245
14603
|
useSelfCreateActivity,
|
|
14246
14604
|
useSelfUpdateGroupMembership,
|
|
14247
14605
|
useSetContentPublishSchedule,
|
|
14606
|
+
useStartSurvey,
|
|
14248
14607
|
useSubmitSelfEventRegistration,
|
|
14249
14608
|
useSubmitSelfEventRegistrationSessionPasses,
|
|
14609
|
+
useSubmitSurvey,
|
|
14250
14610
|
useTransferPass,
|
|
14251
14611
|
useUndoCheckinListingAttendeePass,
|
|
14252
14612
|
useUnfollowAccount,
|
|
@@ -14278,9 +14638,11 @@ var useEnableIntegration = (options = {}) => {
|
|
|
14278
14638
|
useUpdateSelfNotificationPreferences,
|
|
14279
14639
|
useUpdateSelfPushDevice,
|
|
14280
14640
|
useUpdateSubscriptionPaymentMethod,
|
|
14641
|
+
useUpdateSurveyResponse,
|
|
14281
14642
|
useUpdateThread,
|
|
14282
14643
|
useUpdateThreadMember,
|
|
14283
14644
|
useUpdateThreadMessage,
|
|
14284
14645
|
useUploadChannelContentImage,
|
|
14285
|
-
useUploadFile
|
|
14646
|
+
useUploadFile,
|
|
14647
|
+
useUploadSurveyResponseFile
|
|
14286
14648
|
});
|