reach-api-sdk 1.0.72 → 1.0.74

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.
@@ -1396,6 +1396,14 @@ declare enum OrganisationType {
1396
1396
  ORGANISATION = "Organisation"
1397
1397
  }
1398
1398
 
1399
+ /**
1400
+ * The tenant tier.
1401
+ */
1402
+ declare enum TenantTier {
1403
+ ENTERPRISE = "Enterprise",
1404
+ PRO = "Pro"
1405
+ }
1406
+
1399
1407
  /**
1400
1408
  * Represents an organisation within the Reach application.
1401
1409
  */
@@ -2431,6 +2439,10 @@ type Session = {
2431
2439
  */
2432
2440
  capacityUnlimited?: boolean | null;
2433
2441
  gender?: Gender;
2442
+ /**
2443
+ * Gets the gender description.
2444
+ */
2445
+ readonly genderDescription?: string | null;
2434
2446
  /**
2435
2447
  * Gets or sets the min age.
2436
2448
  */
@@ -2439,6 +2451,10 @@ type Session = {
2439
2451
  * Gets or sets the max age.
2440
2452
  */
2441
2453
  maxAge?: number | null;
2454
+ /**
2455
+ * Gets the age range description.
2456
+ */
2457
+ readonly ageRangeDescription?: string | null;
2442
2458
  /**
2443
2459
  * Gets or sets a value indicating whether there is an age restriction.
2444
2460
  */
@@ -3144,6 +3160,7 @@ type Tenant = {
3144
3160
  */
3145
3161
  isLive: boolean;
3146
3162
  organisationType?: OrganisationType;
3163
+ tier?: TenantTier;
3147
3164
  /**
3148
3165
  * Gets or sets the name of the organisation.
3149
3166
  */
@@ -3593,6 +3610,10 @@ type Course = {
3593
3610
  */
3594
3611
  capacityUnlimited?: boolean | null;
3595
3612
  gender?: Gender;
3613
+ /**
3614
+ * Gets the gender description.
3615
+ */
3616
+ readonly genderDescription?: string | null;
3596
3617
  /**
3597
3618
  * Gets or sets the min age.
3598
3619
  */
@@ -3601,6 +3622,10 @@ type Course = {
3601
3622
  * Gets or sets the max age.
3602
3623
  */
3603
3624
  maxAge?: number | null;
3625
+ /**
3626
+ * Gets the age range description.
3627
+ */
3628
+ readonly ageRangeDescription?: string | null;
3604
3629
  /**
3605
3630
  * Gets or sets a value indicating whether there is an age restriction.
3606
3631
  */
@@ -27634,6 +27659,20 @@ declare class SurveyReportExtendedService {
27634
27659
  }): CancelablePromise<boolean>;
27635
27660
  }
27636
27661
 
27662
+ /**
27663
+ * The question id and index.
27664
+ */
27665
+ type QuestionIndex = {
27666
+ /**
27667
+ * Gets or sets the question id.
27668
+ */
27669
+ id?: string;
27670
+ /**
27671
+ * Gets or sets the question index.
27672
+ */
27673
+ index?: number;
27674
+ };
27675
+
27637
27676
  /**
27638
27677
  * Post model for survey question options.
27639
27678
  */
@@ -27725,6 +27764,21 @@ declare class SurveysService {
27725
27764
  */
27726
27765
  id: string;
27727
27766
  }): CancelablePromise<Survey>;
27767
+ /**
27768
+ * Reorders survey questions.
27769
+ * @returns Survey Success
27770
+ * @throws ApiError
27771
+ */
27772
+ reorderQuestions({ id, requestBody, }: {
27773
+ /**
27774
+ * The survey id.
27775
+ */
27776
+ id: string;
27777
+ /**
27778
+ * The question ids with their indexes.
27779
+ */
27780
+ requestBody?: Array<QuestionIndex>;
27781
+ }): CancelablePromise<Survey>;
27728
27782
  /**
27729
27783
  * Generates an id for use in a Session create client side process.
27730
27784
  * @returns string Success
@@ -32514,4 +32568,4 @@ type ValidationResultModel = {
32514
32568
  readonly errors?: Array<ValidationError> | null;
32515
32569
  };
32516
32570
 
32517
- export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
32571
+ export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
package/dist/reach-sdk.js CHANGED
@@ -20983,6 +20983,30 @@ const request = (config, options, axiosClient = axios) => {
20983
20983
  }
20984
20984
  });
20985
20985
  }
20986
+ /**
20987
+ * Reorders survey questions.
20988
+ * @returns Survey Success
20989
+ * @throws ApiError
20990
+ */
20991
+ reorderQuestions({
20992
+ id,
20993
+ requestBody
20994
+ }) {
20995
+ return this.httpRequest.request({
20996
+ method: "POST",
20997
+ url: "/api/surveys/{id}/reorder-questions",
20998
+ path: {
20999
+ id
21000
+ },
21001
+ body: requestBody,
21002
+ mediaType: "application/json",
21003
+ errors: {
21004
+ 400: `Bad Request`,
21005
+ 422: `Client Error`,
21006
+ 500: `Server Error`
21007
+ }
21008
+ });
21009
+ }
20986
21010
  /**
20987
21011
  * Generates an id for use in a Session create client side process.
20988
21012
  * @returns string Success
@@ -25778,4 +25802,8 @@ const request = (config, options, axiosClient = axios) => {
25778
25802
  SurveyType2["CHECKOUT"] = "Checkout";
25779
25803
  SurveyType2["POST_COMPLETION"] = "PostCompletion";
25780
25804
  return SurveyType2;
25781
- })(SurveyType || {});export{ActivityService,ActivityType,AdvanceBooking,AmenityService,ApiClient,ApiError,AppUserRole,ApplicationRole,AttendeesService,BadEnglandReportService,BaseHttpRequest,BookingService,BookingStatus,CancelError,CancelablePromise,ChatService,ContactOnConfirmation,CountryService,CourseBookingCutoff,CourseSearchSortBy,CourseSessionSchedulesService,CourseSessionsService,CourseStatus,CoursesService,CustomerCancellationOption,CustomerType,CustomersService,DayOfWeek,EmailReminderSchedulesService,EmailSettingsService,FacilitiesService,FacilityIndividualsService,FacilityIndividualsType,FilestackService,Gender,GenericActivityService,GeocodeService,HereAutocompleteLookupService,HttpStatusCode,ImagesService,InviteStatus,LeasingService,LoqatePlacesService,NotificationQueueService,NotificationSettingsService,NotificationType,OffersService,OpenAPI,OpenactiveFeedIntermediateService,OpenactiveFeedItemService,OpportunityRegisterService,OpportunityType,OrderItemStatus,OrderItemsService,OrderSource,OrderStage,OrdersService,OrgCourseUtilisationService,OrganisationApplicationFeeHandling,OrganisationAvailableChannel,OrganisationRefundPolicy,OrganisationTaxMode,OrganisationType,PaymentMethod,PaymentsService,PermissionsService,PlacesService,Prepayment,ProgrammesService,PublicBookingService,PublicCoursesService,PublicCustomersService,PublicFacilitiesService,PublicHealthCheckService,PublicLeasingService,PublicOrderTokensService,PublicOrdersService,PublicProgrammesService,PublicScheduledSessionsService,PublicSessionsService,PublicSlotsService,PublicStripeWebhookService,PublicSurveyCompletionLogsService,PublicSurveyQuestionsService,PublicSurveysService,PublicTenantsService,PublicVenuesService,PublicWaitlistActivityService,PublicWaitlistOpportunityService,ReachEntity,ReachOperation,RecentOrderActivityReportService,RefundStatus,RescheduleLogService,ScheduleStatus,ScheduledSessionSearchSortBy,ScheduledSessionsSchedulesService,ScheduledSessionsService,SearchSortOrderDirection,SessionType,SessionsService,SlotAvailabilityStatus,SlotOffersService,SlotScheduleOffersService,SlotSchedulesService,SlotStatus,SlotsService,StripeAccountService,SurfacesService,SurveyAnswersService,SurveyCompletionLogService,SurveyQuestionType,SurveyQuestionsService,SurveyQuestionsTarget,SurveyReportExtendedService,SurveyResponseMode,SurveyType,SurveysService,TemplateDetailsService,TemplateOffersService,TemplatesService,TenantWebsiteSettingsService,TenantsService,TimezoneService,TotalRevenueReportService,UsersService,VenuesReportService,VenuesService,WaitlistActivityService,WaitlistOpportunityService};
25805
+ })(SurveyType || {});var TenantTier = /* @__PURE__ */ ((TenantTier2) => {
25806
+ TenantTier2["ENTERPRISE"] = "Enterprise";
25807
+ TenantTier2["PRO"] = "Pro";
25808
+ return TenantTier2;
25809
+ })(TenantTier || {});export{ActivityService,ActivityType,AdvanceBooking,AmenityService,ApiClient,ApiError,AppUserRole,ApplicationRole,AttendeesService,BadEnglandReportService,BaseHttpRequest,BookingService,BookingStatus,CancelError,CancelablePromise,ChatService,ContactOnConfirmation,CountryService,CourseBookingCutoff,CourseSearchSortBy,CourseSessionSchedulesService,CourseSessionsService,CourseStatus,CoursesService,CustomerCancellationOption,CustomerType,CustomersService,DayOfWeek,EmailReminderSchedulesService,EmailSettingsService,FacilitiesService,FacilityIndividualsService,FacilityIndividualsType,FilestackService,Gender,GenericActivityService,GeocodeService,HereAutocompleteLookupService,HttpStatusCode,ImagesService,InviteStatus,LeasingService,LoqatePlacesService,NotificationQueueService,NotificationSettingsService,NotificationType,OffersService,OpenAPI,OpenactiveFeedIntermediateService,OpenactiveFeedItemService,OpportunityRegisterService,OpportunityType,OrderItemStatus,OrderItemsService,OrderSource,OrderStage,OrdersService,OrgCourseUtilisationService,OrganisationApplicationFeeHandling,OrganisationAvailableChannel,OrganisationRefundPolicy,OrganisationTaxMode,OrganisationType,PaymentMethod,PaymentsService,PermissionsService,PlacesService,Prepayment,ProgrammesService,PublicBookingService,PublicCoursesService,PublicCustomersService,PublicFacilitiesService,PublicHealthCheckService,PublicLeasingService,PublicOrderTokensService,PublicOrdersService,PublicProgrammesService,PublicScheduledSessionsService,PublicSessionsService,PublicSlotsService,PublicStripeWebhookService,PublicSurveyCompletionLogsService,PublicSurveyQuestionsService,PublicSurveysService,PublicTenantsService,PublicVenuesService,PublicWaitlistActivityService,PublicWaitlistOpportunityService,ReachEntity,ReachOperation,RecentOrderActivityReportService,RefundStatus,RescheduleLogService,ScheduleStatus,ScheduledSessionSearchSortBy,ScheduledSessionsSchedulesService,ScheduledSessionsService,SearchSortOrderDirection,SessionType,SessionsService,SlotAvailabilityStatus,SlotOffersService,SlotScheduleOffersService,SlotSchedulesService,SlotStatus,SlotsService,StripeAccountService,SurfacesService,SurveyAnswersService,SurveyCompletionLogService,SurveyQuestionType,SurveyQuestionsService,SurveyQuestionsTarget,SurveyReportExtendedService,SurveyResponseMode,SurveyType,SurveysService,TemplateDetailsService,TemplateOffersService,TemplatesService,TenantTier,TenantWebsiteSettingsService,TenantsService,TimezoneService,TotalRevenueReportService,UsersService,VenuesReportService,VenuesService,WaitlistActivityService,WaitlistOpportunityService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -60968,6 +60968,87 @@ paths:
60968
60968
  text/json:
60969
60969
  schema:
60970
60970
  $ref: '#/components/schemas/ValidationResultModel'
60971
+ '/api/surveys/{id}/reorder-questions':
60972
+ post:
60973
+ tags:
60974
+ - Surveys
60975
+ summary: Reorders survey questions.
60976
+ operationId: ReorderQuestions
60977
+ parameters:
60978
+ - name: id
60979
+ in: path
60980
+ description: The survey id.
60981
+ required: true
60982
+ schema:
60983
+ type: string
60984
+ format: uuid
60985
+ requestBody:
60986
+ description: The question ids with their indexes.
60987
+ content:
60988
+ application/json:
60989
+ schema:
60990
+ type: array
60991
+ items:
60992
+ $ref: '#/components/schemas/QuestionIndex'
60993
+ text/json:
60994
+ schema:
60995
+ type: array
60996
+ items:
60997
+ $ref: '#/components/schemas/QuestionIndex'
60998
+ application/*+json:
60999
+ schema:
61000
+ type: array
61001
+ items:
61002
+ $ref: '#/components/schemas/QuestionIndex'
61003
+ responses:
61004
+ '200':
61005
+ description: Success
61006
+ content:
61007
+ text/plain:
61008
+ schema:
61009
+ $ref: '#/components/schemas/Survey'
61010
+ application/json:
61011
+ schema:
61012
+ $ref: '#/components/schemas/Survey'
61013
+ text/json:
61014
+ schema:
61015
+ $ref: '#/components/schemas/Survey'
61016
+ '400':
61017
+ description: Bad Request
61018
+ content:
61019
+ text/plain:
61020
+ schema:
61021
+ $ref: '#/components/schemas/ReachError'
61022
+ application/json:
61023
+ schema:
61024
+ $ref: '#/components/schemas/ReachError'
61025
+ text/json:
61026
+ schema:
61027
+ $ref: '#/components/schemas/ReachError'
61028
+ '500':
61029
+ description: Server Error
61030
+ content:
61031
+ text/plain:
61032
+ schema:
61033
+ $ref: '#/components/schemas/ReachError'
61034
+ application/json:
61035
+ schema:
61036
+ $ref: '#/components/schemas/ReachError'
61037
+ text/json:
61038
+ schema:
61039
+ $ref: '#/components/schemas/ReachError'
61040
+ '422':
61041
+ description: Client Error
61042
+ content:
61043
+ text/plain:
61044
+ schema:
61045
+ $ref: '#/components/schemas/ValidationResultModel'
61046
+ application/json:
61047
+ schema:
61048
+ $ref: '#/components/schemas/ValidationResultModel'
61049
+ text/json:
61050
+ schema:
61051
+ $ref: '#/components/schemas/ValidationResultModel'
60971
61052
  /api/surveys/create/generate-id:
60972
61053
  get:
60973
61054
  tags:
@@ -74492,6 +74573,11 @@ components:
74492
74573
  nullable: true
74493
74574
  gender:
74494
74575
  $ref: '#/components/schemas/Gender'
74576
+ genderDescription:
74577
+ type: string
74578
+ description: Gets the gender description.
74579
+ nullable: true
74580
+ readOnly: true
74495
74581
  minAge:
74496
74582
  type: integer
74497
74583
  description: Gets or sets the min age.
@@ -74502,6 +74588,11 @@ components:
74502
74588
  description: Gets or sets the max age.
74503
74589
  format: int32
74504
74590
  nullable: true
74591
+ ageRangeDescription:
74592
+ type: string
74593
+ description: Gets the age range description.
74594
+ nullable: true
74595
+ readOnly: true
74505
74596
  noAgeRestriction:
74506
74597
  type: boolean
74507
74598
  description: Gets or sets a value indicating whether there is an age restriction.
@@ -79375,6 +79466,20 @@ components:
79375
79466
  format: uri
79376
79467
  additionalProperties: false
79377
79468
  description: Post model for programme inserts.
79469
+ QuestionIndex:
79470
+ type: object
79471
+ properties:
79472
+ id:
79473
+ type: string
79474
+ description: Gets or sets the question id.
79475
+ format: uuid
79476
+ index:
79477
+ type: integer
79478
+ description: Gets or sets the question index.
79479
+ format: int32
79480
+ default: 0
79481
+ additionalProperties: false
79482
+ description: The question id and index.
79378
79483
  ReachEntity:
79379
79484
  enum:
79380
79485
  - Tenant
@@ -80288,6 +80393,11 @@ components:
80288
80393
  nullable: true
80289
80394
  gender:
80290
80395
  $ref: '#/components/schemas/Gender'
80396
+ genderDescription:
80397
+ type: string
80398
+ description: Gets the gender description.
80399
+ nullable: true
80400
+ readOnly: true
80291
80401
  minAge:
80292
80402
  type: integer
80293
80403
  description: Gets or sets the min age.
@@ -80298,6 +80408,11 @@ components:
80298
80408
  description: Gets or sets the max age.
80299
80409
  format: int32
80300
80410
  nullable: true
80411
+ ageRangeDescription:
80412
+ type: string
80413
+ description: Gets the age range description.
80414
+ nullable: true
80415
+ readOnly: true
80301
80416
  noAgeRestriction:
80302
80417
  type: boolean
80303
80418
  description: Gets or sets a value indicating whether there is an age restriction.
@@ -82925,6 +83040,8 @@ components:
82925
83040
  default: false
82926
83041
  organisationType:
82927
83042
  $ref: '#/components/schemas/OrganisationType'
83043
+ tier:
83044
+ $ref: '#/components/schemas/TenantTier'
82928
83045
  name:
82929
83046
  minLength: 1
82930
83047
  type: string
@@ -83280,6 +83397,12 @@ components:
83280
83397
  description: Gets or sets the tenants time zone.
83281
83398
  additionalProperties: false
83282
83399
  description: Post model for tenant inserts.
83400
+ TenantTier:
83401
+ enum:
83402
+ - Enterprise
83403
+ - Pro
83404
+ type: string
83405
+ description: The tenant tier.
83283
83406
  TenantWebsiteSetting:
83284
83407
  required:
83285
83408
  - dateCreated
package/src/index.ts CHANGED
@@ -173,6 +173,7 @@ export type { Programme } from './models/Programme';
173
173
  export type { ProgrammePage } from './models/ProgrammePage';
174
174
  export type { ProgrammePatch } from './models/ProgrammePatch';
175
175
  export type { ProgrammePost } from './models/ProgrammePost';
176
+ export type { QuestionIndex } from './models/QuestionIndex';
176
177
  export { ReachEntity } from './models/ReachEntity';
177
178
  export type { ReachError } from './models/ReachError';
178
179
  export { ReachOperation } from './models/ReachOperation';
@@ -281,6 +282,7 @@ export type { Tenant } from './models/Tenant';
281
282
  export type { TenantPage } from './models/TenantPage';
282
283
  export type { TenantPatch } from './models/TenantPatch';
283
284
  export type { TenantPost } from './models/TenantPost';
285
+ export { TenantTier } from './models/TenantTier';
284
286
  export type { TenantWebsiteSetting } from './models/TenantWebsiteSetting';
285
287
  export type { TenantWebsiteSettingPage } from './models/TenantWebsiteSettingPage';
286
288
  export type { TenantWebsiteSettingPatch } from './models/TenantWebsiteSettingPatch';
@@ -98,6 +98,10 @@ export type Course = {
98
98
  */
99
99
  capacityUnlimited?: boolean | null;
100
100
  gender?: Gender;
101
+ /**
102
+ * Gets the gender description.
103
+ */
104
+ readonly genderDescription?: string | null;
101
105
  /**
102
106
  * Gets or sets the min age.
103
107
  */
@@ -106,6 +110,10 @@ export type Course = {
106
110
  * Gets or sets the max age.
107
111
  */
108
112
  maxAge?: number | null;
113
+ /**
114
+ * Gets the age range description.
115
+ */
116
+ readonly ageRangeDescription?: string | null;
109
117
  /**
110
118
  * Gets or sets a value indicating whether there is an age restriction.
111
119
  */
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * The question id and index.
8
+ */
9
+ export type QuestionIndex = {
10
+ /**
11
+ * Gets or sets the question id.
12
+ */
13
+ id?: string;
14
+ /**
15
+ * Gets or sets the question index.
16
+ */
17
+ index?: number;
18
+ };
@@ -92,6 +92,10 @@ export type Session = {
92
92
  */
93
93
  capacityUnlimited?: boolean | null;
94
94
  gender?: Gender;
95
+ /**
96
+ * Gets the gender description.
97
+ */
98
+ readonly genderDescription?: string | null;
95
99
  /**
96
100
  * Gets or sets the min age.
97
101
  */
@@ -100,6 +104,10 @@ export type Session = {
100
104
  * Gets or sets the max age.
101
105
  */
102
106
  maxAge?: number | null;
107
+ /**
108
+ * Gets the age range description.
109
+ */
110
+ readonly ageRangeDescription?: string | null;
103
111
  /**
104
112
  * Gets or sets a value indicating whether there is an age restriction.
105
113
  */
@@ -11,6 +11,7 @@ import type { OrganisationRefundPolicy } from './OrganisationRefundPolicy';
11
11
  import type { OrganisationTaxMode } from './OrganisationTaxMode';
12
12
  import type { OrganisationType } from './OrganisationType';
13
13
  import type { Tax } from './Tax';
14
+ import type { TenantTier } from './TenantTier';
14
15
  import type { TenantWebsiteSetting } from './TenantWebsiteSetting';
15
16
  import type { User } from './User';
16
17
  import type { Venue } from './Venue';
@@ -44,6 +45,7 @@ export type Tenant = {
44
45
  */
45
46
  isLive: boolean;
46
47
  organisationType?: OrganisationType;
48
+ tier?: TenantTier;
47
49
  /**
48
50
  * Gets or sets the name of the organisation.
49
51
  */
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * The tenant tier.
8
+ */
9
+ export enum TenantTier {
10
+ ENTERPRISE = 'Enterprise',
11
+ PRO = 'Pro',
12
+ }
@@ -2,6 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { QuestionIndex } from '../models/QuestionIndex';
5
6
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
7
  import type { Survey } from '../models/Survey';
7
8
  import type { SurveyCreate } from '../models/SurveyCreate';
@@ -68,6 +69,40 @@ export class SurveysService {
68
69
  });
69
70
  }
70
71
 
72
+ /**
73
+ * Reorders survey questions.
74
+ * @returns Survey Success
75
+ * @throws ApiError
76
+ */
77
+ public reorderQuestions({
78
+ id,
79
+ requestBody,
80
+ }: {
81
+ /**
82
+ * The survey id.
83
+ */
84
+ id: string;
85
+ /**
86
+ * The question ids with their indexes.
87
+ */
88
+ requestBody?: Array<QuestionIndex>;
89
+ }): CancelablePromise<Survey> {
90
+ return this.httpRequest.request({
91
+ method: 'POST',
92
+ url: '/api/surveys/{id}/reorder-questions',
93
+ path: {
94
+ id: id,
95
+ },
96
+ body: requestBody,
97
+ mediaType: 'application/json',
98
+ errors: {
99
+ 400: `Bad Request`,
100
+ 422: `Client Error`,
101
+ 500: `Server Error`,
102
+ },
103
+ });
104
+ }
105
+
71
106
  /**
72
107
  * Generates an id for use in a Session create client side process.
73
108
  * @returns string Success