@connectedxm/client 1.5.1 → 1.5.4

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.mjs CHANGED
@@ -444,6 +444,7 @@ var OrganizationModuleType = /* @__PURE__ */ ((OrganizationModuleType2) => {
444
444
  OrganizationModuleType2["invoices"] = "invoices";
445
445
  OrganizationModuleType2["announcements"] = "announcements";
446
446
  OrganizationModuleType2["bookings"] = "bookings";
447
+ OrganizationModuleType2["surveys"] = "surveys";
447
448
  return OrganizationModuleType2;
448
449
  })(OrganizationModuleType || {});
449
450
  var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
@@ -462,6 +463,20 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
462
463
  DayOfWeek2["saturday"] = "saturday";
463
464
  return DayOfWeek2;
464
465
  })(DayOfWeek || {});
466
+ var SurveyQuestionType = /* @__PURE__ */ ((SurveyQuestionType2) => {
467
+ SurveyQuestionType2["text"] = "text";
468
+ SurveyQuestionType2["textarea"] = "textarea";
469
+ SurveyQuestionType2["number"] = "number";
470
+ SurveyQuestionType2["time"] = "time";
471
+ SurveyQuestionType2["date"] = "date";
472
+ SurveyQuestionType2["toggle"] = "toggle";
473
+ SurveyQuestionType2["select"] = "select";
474
+ SurveyQuestionType2["radio"] = "radio";
475
+ SurveyQuestionType2["checkbox"] = "checkbox";
476
+ SurveyQuestionType2["search"] = "search";
477
+ SurveyQuestionType2["file"] = "file";
478
+ return SurveyQuestionType2;
479
+ })(SurveyQuestionType || {});
465
480
 
466
481
  // src/utilities/AppendInfiniteQuery.ts
467
482
  import { produce } from "immer";
@@ -3455,6 +3470,116 @@ var useGetEventSponsorship = (eventId = "", sponsorshipId = "", options = {}) =>
3455
3470
  );
3456
3471
  };
3457
3472
 
3473
+ // src/queries/events/useGetEventMedia.ts
3474
+ var EVENT_MEDIA_QUERY_KEY = (eventId, type) => [...EVENT_QUERY_KEY(eventId), "MEDIA", type || "all"];
3475
+ var SET_EVENT_MEDIA_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3476
+ client.setQueryData(
3477
+ [
3478
+ ...EVENT_MEDIA_QUERY_KEY(...keyParams),
3479
+ ...GetBaseInfiniteQueryKeys(...baseKeys)
3480
+ ],
3481
+ setFirstPageData(response)
3482
+ );
3483
+ };
3484
+ var GetEventMedia = async ({
3485
+ eventId,
3486
+ type,
3487
+ pageParam,
3488
+ pageSize,
3489
+ orderBy,
3490
+ search,
3491
+ clientApiParams
3492
+ }) => {
3493
+ const clientApi = await GetClientAPI(clientApiParams);
3494
+ const { data } = await clientApi.get(`/events/${eventId}/media`, {
3495
+ params: {
3496
+ type: type || void 0,
3497
+ page: pageParam || void 0,
3498
+ pageSize: pageSize || void 0,
3499
+ orderBy: orderBy || void 0,
3500
+ search: search || void 0
3501
+ }
3502
+ });
3503
+ return data;
3504
+ };
3505
+ var useGetEventMedia = (eventId = "", type, params = {}, options = {}) => {
3506
+ return useConnectedInfiniteQuery(
3507
+ EVENT_MEDIA_QUERY_KEY(eventId, type),
3508
+ (params2) => GetEventMedia({ eventId, type, ...params2 }),
3509
+ params,
3510
+ {
3511
+ ...options,
3512
+ enabled: !!eventId && (options?.enabled ?? true)
3513
+ }
3514
+ );
3515
+ };
3516
+
3517
+ // src/queries/events/useGetEventImages.ts
3518
+ var EVENT_IMAGES_QUERY_KEY = (eventId) => [
3519
+ ...EVENT_QUERY_KEY(eventId),
3520
+ "IMAGES"
3521
+ ];
3522
+ var SET_EVENT_IMAGES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3523
+ client.setQueryData(
3524
+ [
3525
+ ...EVENT_IMAGES_QUERY_KEY(...keyParams),
3526
+ ...GetBaseSingleQueryKeys(...baseKeys)
3527
+ ],
3528
+ response
3529
+ );
3530
+ };
3531
+ var GetEventImages = async ({
3532
+ eventId,
3533
+ clientApiParams
3534
+ }) => {
3535
+ const clientApi = await GetClientAPI(clientApiParams);
3536
+ const { data } = await clientApi.get(`/events/${eventId}/images`);
3537
+ return data;
3538
+ };
3539
+ var useGetEventImages = (eventId = "", options = {}) => {
3540
+ return useConnectedSingleQuery(
3541
+ EVENT_IMAGES_QUERY_KEY(eventId),
3542
+ (params) => GetEventImages({ eventId, ...params }),
3543
+ {
3544
+ ...options,
3545
+ enabled: !!eventId && (options?.enabled ?? true)
3546
+ }
3547
+ );
3548
+ };
3549
+
3550
+ // src/queries/events/useGetEventImage.ts
3551
+ var EVENT_IMAGE_QUERY_KEY = (eventId, galleryImageId) => [...EVENT_IMAGES_QUERY_KEY(eventId), galleryImageId];
3552
+ var SET_EVENT_IMAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3553
+ client.setQueryData(
3554
+ [
3555
+ ...EVENT_IMAGE_QUERY_KEY(...keyParams),
3556
+ ...GetBaseSingleQueryKeys(...baseKeys)
3557
+ ],
3558
+ response
3559
+ );
3560
+ };
3561
+ var GetEventImage = async ({
3562
+ eventId,
3563
+ galleryImageId,
3564
+ clientApiParams
3565
+ }) => {
3566
+ const clientApi = await GetClientAPI(clientApiParams);
3567
+ const { data } = await clientApi.get(
3568
+ `/events/${eventId}/images/${galleryImageId}`
3569
+ );
3570
+ return data;
3571
+ };
3572
+ var useGetEventImage = (eventId = "", galleryImageId, options = {}) => {
3573
+ return useConnectedSingleQuery(
3574
+ EVENT_IMAGE_QUERY_KEY(eventId, galleryImageId),
3575
+ (params) => GetEventImage({ eventId, galleryImageId, ...params }),
3576
+ {
3577
+ ...options,
3578
+ enabled: !!eventId && !!galleryImageId && (options?.enabled ?? true)
3579
+ }
3580
+ );
3581
+ };
3582
+
3458
3583
  // src/queries/groups/useGetAllGroupEvents.ts
3459
3584
  var ALL_GROUP_EVENTS = (past) => [
3460
3585
  ...EVENTS_QUERY_KEY(past),
@@ -8204,6 +8329,218 @@ var useGetIntegrationAuth = (integrationType, expiration, options = {}) => {
8204
8329
  );
8205
8330
  };
8206
8331
 
8332
+ // src/queries/surveys/useGetSurvey.ts
8333
+ var SURVEY_QUERY_KEY = (surveyId) => [
8334
+ "SURVEYS",
8335
+ surveyId
8336
+ ];
8337
+ var SET_SURVEY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
8338
+ client.setQueryData(
8339
+ [...SURVEY_QUERY_KEY(...keyParams), ...GetBaseSingleQueryKeys(...baseKeys)],
8340
+ response
8341
+ );
8342
+ };
8343
+ var GetSurvey = async ({
8344
+ surveyId,
8345
+ clientApiParams
8346
+ }) => {
8347
+ const clientApi = await GetClientAPI(clientApiParams);
8348
+ const { data } = await clientApi.get(`/surveys/${surveyId}`);
8349
+ return data;
8350
+ };
8351
+ var useGetSurvey = (surveyId, options = {}) => {
8352
+ return useConnectedSingleQuery_default(
8353
+ SURVEY_QUERY_KEY(surveyId),
8354
+ (params) => GetSurvey({
8355
+ surveyId,
8356
+ ...params
8357
+ }),
8358
+ {
8359
+ ...options,
8360
+ staleTime: Infinity,
8361
+ refetchOnWindowFocus: false,
8362
+ refetchOnReconnect: false,
8363
+ enabled: !!surveyId && (options?.enabled ?? true)
8364
+ }
8365
+ );
8366
+ };
8367
+
8368
+ // src/queries/surveys/useGetSurveySubmissions.ts
8369
+ var SURVEY_SUBMISSIONS_QUERY_KEY = (surveyId, status) => {
8370
+ const key = [
8371
+ ...SELF_QUERY_KEY(),
8372
+ ...SURVEY_QUERY_KEY(surveyId),
8373
+ "SUBMISSIONS"
8374
+ ];
8375
+ if (status) key.push(status);
8376
+ return key;
8377
+ };
8378
+ var GetSurveySubmissions = async ({
8379
+ surveyId,
8380
+ status,
8381
+ pageParam,
8382
+ pageSize,
8383
+ orderBy,
8384
+ search,
8385
+ clientApiParams
8386
+ }) => {
8387
+ const clientApi = await GetClientAPI(clientApiParams);
8388
+ const { data } = await clientApi.get(`/surveys/${surveyId}/submissions`, {
8389
+ params: {
8390
+ page: pageParam || void 0,
8391
+ pageSize: pageSize || void 0,
8392
+ orderBy: orderBy || void 0,
8393
+ search: search || void 0,
8394
+ status: status || void 0
8395
+ }
8396
+ });
8397
+ return data;
8398
+ };
8399
+ var useGetSurveySubmissions = (surveyId = "", status, params = {}, options = {}) => {
8400
+ const { authenticated } = useConnectedXM();
8401
+ return useConnectedInfiniteQuery(
8402
+ SURVEY_SUBMISSIONS_QUERY_KEY(surveyId, status),
8403
+ (params2) => GetSurveySubmissions({
8404
+ surveyId,
8405
+ status,
8406
+ ...params2
8407
+ }),
8408
+ params,
8409
+ {
8410
+ ...options,
8411
+ enabled: !!authenticated && !!surveyId && (options?.enabled ?? true)
8412
+ }
8413
+ );
8414
+ };
8415
+
8416
+ // src/queries/surveys/useGetSurveySubmission.ts
8417
+ var SURVEY_SUBMISSION_QUERY_KEY = (surveyId, submissionId) => [
8418
+ ...SURVEY_SUBMISSIONS_QUERY_KEY(surveyId),
8419
+ "SUBMISSIONS",
8420
+ submissionId
8421
+ ];
8422
+ var SET_SELF_SURVEY_SUBMISSION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
8423
+ client.setQueryData(
8424
+ [
8425
+ ...SURVEY_SUBMISSION_QUERY_KEY(...keyParams),
8426
+ ...GetBaseSingleQueryKeys(...baseKeys)
8427
+ ],
8428
+ response
8429
+ );
8430
+ };
8431
+ var GetSurveySubmission = async ({
8432
+ surveyId,
8433
+ submissionId,
8434
+ clientApiParams
8435
+ }) => {
8436
+ const clientApi = await GetClientAPI(clientApiParams);
8437
+ const { data } = await clientApi.get(
8438
+ `/surveys/${surveyId}/submissions/${submissionId}`
8439
+ );
8440
+ return data;
8441
+ };
8442
+ var useGetSurveySubmission = (surveyId, submissionId, options = {}) => {
8443
+ return useConnectedSingleQuery_default(
8444
+ SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId),
8445
+ (params) => GetSurveySubmission({
8446
+ surveyId,
8447
+ submissionId,
8448
+ ...params
8449
+ }),
8450
+ {
8451
+ ...options,
8452
+ staleTime: Infinity,
8453
+ refetchOnWindowFocus: false,
8454
+ refetchOnReconnect: false,
8455
+ enabled: !!surveyId && !!submissionId && (options?.enabled ?? true)
8456
+ }
8457
+ );
8458
+ };
8459
+
8460
+ // src/queries/surveys/useGetSurveySubmissionSections.ts
8461
+ var SURVEY_SUBMISSION_SECTIONS_QUERY_KEY = (surveyId, submissionId) => [
8462
+ ...SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId),
8463
+ "SECTIONS"
8464
+ ];
8465
+ var SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
8466
+ client.setQueryData(
8467
+ [
8468
+ ...SURVEY_SUBMISSION_SECTIONS_QUERY_KEY(...keyParams),
8469
+ ...GetBaseSingleQueryKeys(...baseKeys)
8470
+ ],
8471
+ response
8472
+ );
8473
+ };
8474
+ var GetSurveySubmissionSections = async ({
8475
+ surveyId,
8476
+ submissionId,
8477
+ clientApiParams
8478
+ }) => {
8479
+ const clientApi = await GetClientAPI(clientApiParams);
8480
+ const { data } = await clientApi.get(
8481
+ `/surveys/${surveyId}/submissions/${submissionId}/sections`
8482
+ );
8483
+ return data;
8484
+ };
8485
+ var useGetSurveySubmissionSections = (surveyId, submissionId, options = {}) => {
8486
+ return useConnectedSingleQuery_default(
8487
+ SURVEY_SUBMISSION_SECTIONS_QUERY_KEY(surveyId, submissionId),
8488
+ (params) => GetSurveySubmissionSections({
8489
+ surveyId,
8490
+ submissionId,
8491
+ ...params
8492
+ }),
8493
+ {
8494
+ ...options,
8495
+ staleTime: Infinity,
8496
+ refetchOnWindowFocus: false,
8497
+ refetchOnReconnect: false,
8498
+ enabled: !!surveyId && !!submissionId && (options?.enabled ?? true)
8499
+ }
8500
+ );
8501
+ };
8502
+
8503
+ // src/queries/surveys/useGetSurveyQuestionSearchValues.ts
8504
+ var SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY = (surveyId, questionId) => [...SURVEY_QUERY_KEY(surveyId), "QUESTIONS", questionId, "VALUES"];
8505
+ var GetSurveyQuestionSearchValues = async ({
8506
+ surveyId,
8507
+ questionId,
8508
+ pageParam,
8509
+ pageSize,
8510
+ orderBy,
8511
+ search,
8512
+ clientApiParams
8513
+ }) => {
8514
+ const clientApi = await GetClientAPI(clientApiParams);
8515
+ const { data } = await clientApi.get(
8516
+ `/surveys/${surveyId}/questions/${questionId}/values`,
8517
+ {
8518
+ params: {
8519
+ page: pageParam || void 0,
8520
+ pageSize: pageSize || void 0,
8521
+ orderBy: orderBy || void 0,
8522
+ search: search || void 0
8523
+ }
8524
+ }
8525
+ );
8526
+ return data;
8527
+ };
8528
+ var useGetSurveyQuestionSearchValues = (surveyId = "", questionId = "", params = {}, options = {}) => {
8529
+ return useConnectedInfiniteQuery(
8530
+ SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY(surveyId, questionId),
8531
+ (params2) => GetSurveyQuestionSearchValues({
8532
+ surveyId,
8533
+ questionId,
8534
+ ...params2
8535
+ }),
8536
+ params,
8537
+ {
8538
+ ...options,
8539
+ enabled: !!surveyId && !!questionId && (options?.enabled ?? true)
8540
+ }
8541
+ );
8542
+ };
8543
+
8207
8544
  // src/mutations/useConnectedMutation.ts
8208
8545
  import {
8209
8546
  useMutation,
@@ -12055,6 +12392,86 @@ var EnableIntegration = async ({
12055
12392
  var useEnableIntegration = (options = {}) => {
12056
12393
  return useConnectedMutation_default(EnableIntegration, options);
12057
12394
  };
12395
+
12396
+ // src/mutations/surveys/useStartSurvey.ts
12397
+ var StartSurvey = async ({
12398
+ surveyId,
12399
+ clientApiParams
12400
+ }) => {
12401
+ const clientApi = await GetClientAPI(clientApiParams);
12402
+ const { data } = await clientApi.post(
12403
+ `/surveys/${surveyId}/submissions`
12404
+ );
12405
+ return data;
12406
+ };
12407
+ var useStartSurvey = (options = {}) => {
12408
+ return useConnectedMutation_default(StartSurvey, options);
12409
+ };
12410
+
12411
+ // src/mutations/surveys/useSubmitSurvey.ts
12412
+ var SubmitSurvey = async ({
12413
+ surveyId,
12414
+ submissionId,
12415
+ responses,
12416
+ clientApiParams,
12417
+ queryClient
12418
+ }) => {
12419
+ const clientApi = await GetClientAPI(clientApiParams);
12420
+ const { data } = await clientApi.post(
12421
+ `/surveys/${surveyId}/submissions/${submissionId}/submit`,
12422
+ responses
12423
+ );
12424
+ if (queryClient && data.status === "ok") {
12425
+ queryClient.invalidateQueries({
12426
+ queryKey: SURVEY_SUBMISSION_QUERY_KEY(surveyId, submissionId)
12427
+ });
12428
+ }
12429
+ return data;
12430
+ };
12431
+ var useSubmitSurvey = (options = {}) => {
12432
+ return useConnectedMutation_default(SubmitSurvey, options);
12433
+ };
12434
+
12435
+ // src/mutations/surveys/useUpdateSurveyResponse.ts
12436
+ var UpdateSurveyResponse = async ({
12437
+ surveyId,
12438
+ submissionId,
12439
+ questionId,
12440
+ response,
12441
+ clientApiParams
12442
+ }) => {
12443
+ const clientApi = await GetClientAPI(clientApiParams);
12444
+ const { data } = await clientApi.put(
12445
+ `/surveys/${surveyId}/submissions/${submissionId}/questions/${questionId}`,
12446
+ { response }
12447
+ );
12448
+ return data;
12449
+ };
12450
+ var useUpdateSurveyResponse = (options = {}) => {
12451
+ return useConnectedMutation_default(UpdateSurveyResponse, options);
12452
+ };
12453
+
12454
+ // src/mutations/surveys/useUploadSurveyResponseFile.ts
12455
+ var UploadSurveyResponseFile = async ({
12456
+ clientApiParams,
12457
+ surveyId,
12458
+ submissionId,
12459
+ dataUri,
12460
+ name
12461
+ }) => {
12462
+ const clientApi = await GetClientAPI(clientApiParams);
12463
+ const { data } = await clientApi.post(
12464
+ `/surveys/${surveyId}/submissions/${submissionId}/files`,
12465
+ {
12466
+ dataUri,
12467
+ name
12468
+ }
12469
+ );
12470
+ return data;
12471
+ };
12472
+ var useUploadSurveyResponseFile = (options = {}) => {
12473
+ return useConnectedMutation_default(UploadSurveyResponseFile, options);
12474
+ };
12058
12475
  export {
12059
12476
  ACCOUNTS_POPULAR_QUERY_KEY,
12060
12477
  ACCOUNTS_QUERY_KEY,
@@ -12198,6 +12615,9 @@ export {
12198
12615
  EVENT_FAQ_SECTION_QUERY_KEY,
12199
12616
  EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY,
12200
12617
  EVENT_FAQ_SECTION_QUESTION_QUERY_KEY,
12618
+ EVENT_IMAGES_QUERY_KEY,
12619
+ EVENT_IMAGE_QUERY_KEY,
12620
+ EVENT_MEDIA_QUERY_KEY,
12201
12621
  EVENT_PAGES_QUERY_KEY,
12202
12622
  EVENT_PAGE_QUERY_KEY,
12203
12623
  EVENT_QUERY_KEY,
@@ -12283,6 +12703,9 @@ export {
12283
12703
  GetEventFAQSectionQuestion,
12284
12704
  GetEventFaqSections,
12285
12705
  GetEventFaqs,
12706
+ GetEventImage,
12707
+ GetEventImages,
12708
+ GetEventMedia,
12286
12709
  GetEventPage,
12287
12710
  GetEventPages,
12288
12711
  GetEventQuestionSearchValues,
@@ -12402,6 +12825,11 @@ export {
12402
12825
  GetSeriesList,
12403
12826
  GetSubscribedChannels,
12404
12827
  GetSubscribedContents,
12828
+ GetSurvey,
12829
+ GetSurveyQuestionSearchValues,
12830
+ GetSurveySubmission,
12831
+ GetSurveySubmissionSections,
12832
+ GetSurveySubmissions,
12405
12833
  GetThread,
12406
12834
  GetThreadEvent,
12407
12835
  GetThreadEvents,
@@ -12583,6 +13011,9 @@ export {
12583
13011
  SET_EVENT_FAQ_SECTION_QUERY_DATA,
12584
13012
  SET_EVENT_FAQ_SECTION_QUESTIONS_QUERY_DATA,
12585
13013
  SET_EVENT_FAQ_SECTION_QUESTION_QUERY_DATA,
13014
+ SET_EVENT_IMAGES_QUERY_DATA,
13015
+ SET_EVENT_IMAGE_QUERY_DATA,
13016
+ SET_EVENT_MEDIA_QUERY_DATA,
12586
13017
  SET_EVENT_PAGES_QUERY_DATA,
12587
13018
  SET_EVENT_PAGE_QUERY_DATA,
12588
13019
  SET_EVENT_QUERY_DATA,
@@ -12646,9 +13077,12 @@ export {
12646
13077
  SET_SELF_EVENT_REGISTRATION_ROOM_TYPES_QUERY_DATA,
12647
13078
  SET_SELF_GROUP_MEMBERSHIP_QUERY_DATA,
12648
13079
  SET_SELF_QUERY_DATA,
13080
+ SET_SELF_SURVEY_SUBMISSION_QUERY_DATA,
12649
13081
  SET_SERIES_EVENTS_QUERY_DATA,
12650
13082
  SET_SERIES_LIST_QUERY_DATA,
12651
13083
  SET_SERIES_QUERY_DATA,
13084
+ SET_SURVEY_QUERY_DATA,
13085
+ SET_SURVEY_SUBMISSION_SECTIONS_QUERY_DATA,
12652
13086
  SET_THREADS_QUERY_DATA,
12653
13087
  SET_THREAD_EVENTS_QUERY_DATA,
12654
13088
  SET_THREAD_EVENT_QUERY_DATA,
@@ -12662,15 +13096,23 @@ export {
12662
13096
  SET_THREAD_QUERY_DATA,
12663
13097
  SUBSCRIBED_CHANNELS_QUERY_KEY,
12664
13098
  SUBSCRIBED_CONTENTS_QUERY_KEY,
13099
+ SURVEY_QUERY_KEY,
13100
+ SURVEY_QUESTION_SEARCH_VALUES_QUERY_KEY,
13101
+ SURVEY_SUBMISSIONS_QUERY_KEY,
13102
+ SURVEY_SUBMISSION_QUERY_KEY,
13103
+ SURVEY_SUBMISSION_SECTIONS_QUERY_KEY,
12665
13104
  SelectSelfEventRegistrationCoupon,
12666
13105
  SelfCreateActivity,
12667
13106
  SelfUpdateGroupMembership,
12668
13107
  SessionPassStatus,
12669
13108
  SetContentPublishSchedule,
13109
+ StartSurvey,
12670
13110
  SubmitSelfEventRegistration,
12671
13111
  SubmitSelfEventRegistrationSessionPasses,
13112
+ SubmitSurvey,
12672
13113
  SubscriptionStatus,
12673
13114
  SupportTicketType,
13115
+ SurveyQuestionType,
12674
13116
  THREADS_QUERY_KEY,
12675
13117
  THREAD_EVENTS_QUERY_KEY,
12676
13118
  THREAD_EVENT_QUERY_KEY,
@@ -12719,11 +13161,13 @@ export {
12719
13161
  UpdateSelfNotificationPreferences,
12720
13162
  UpdateSelfPushDevice,
12721
13163
  UpdateSubscriptionPaymentMethod,
13164
+ UpdateSurveyResponse,
12722
13165
  UpdateThread,
12723
13166
  UpdateThreadMember,
12724
13167
  UpdateThreadMessage,
12725
13168
  UploadChannelContentImage,
12726
13169
  UploadFile,
13170
+ UploadSurveyResponseFile,
12727
13171
  isListing,
12728
13172
  isManagedCoupon,
12729
13173
  isRegistrationQuestion,
@@ -12891,6 +13335,9 @@ export {
12891
13335
  useGetEventFAQSectionQuestion,
12892
13336
  useGetEventFaqSections,
12893
13337
  useGetEventFaqs,
13338
+ useGetEventImage,
13339
+ useGetEventImages,
13340
+ useGetEventMedia,
12894
13341
  useGetEventPage,
12895
13342
  useGetEventPages,
12896
13343
  useGetEventQuestionSearchValues,
@@ -13010,6 +13457,11 @@ export {
13010
13457
  useGetSeriesList,
13011
13458
  useGetSubscribedChannels,
13012
13459
  useGetSubscribedContents,
13460
+ useGetSurvey,
13461
+ useGetSurveyQuestionSearchValues,
13462
+ useGetSurveySubmission,
13463
+ useGetSurveySubmissionSections,
13464
+ useGetSurveySubmissions,
13013
13465
  useGetThread,
13014
13466
  useGetThreadEvent,
13015
13467
  useGetThreadEvents,
@@ -13050,8 +13502,10 @@ export {
13050
13502
  useSelfCreateActivity,
13051
13503
  useSelfUpdateGroupMembership,
13052
13504
  useSetContentPublishSchedule,
13505
+ useStartSurvey,
13053
13506
  useSubmitSelfEventRegistration,
13054
13507
  useSubmitSelfEventRegistrationSessionPasses,
13508
+ useSubmitSurvey,
13055
13509
  useTransferPass,
13056
13510
  useUndoCheckinListingAttendeePass,
13057
13511
  useUnfollowAccount,
@@ -13083,9 +13537,11 @@ export {
13083
13537
  useUpdateSelfNotificationPreferences,
13084
13538
  useUpdateSelfPushDevice,
13085
13539
  useUpdateSubscriptionPaymentMethod,
13540
+ useUpdateSurveyResponse,
13086
13541
  useUpdateThread,
13087
13542
  useUpdateThreadMember,
13088
13543
  useUpdateThreadMessage,
13089
13544
  useUploadChannelContentImage,
13090
- useUploadFile
13545
+ useUploadFile,
13546
+ useUploadSurveyResponseFile
13091
13547
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "1.5.1",
3
+ "version": "1.5.4",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "eslint-plugin-react-hooks": "^4.6.0",
42
42
  "tsup": "^8.0.1",
43
43
  "typescript": "^5.4.2",
44
- "vitest": "^1.3.1"
44
+ "vitest": "^3.0.7"
45
45
  },
46
46
  "optionalDependencies": {
47
47
  "@rollup/rollup-linux-x64-gnu": "4.9.5"