reach-api-sdk 1.0.208 → 1.0.209

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.
@@ -12622,6 +12622,20 @@ type CustomFieldDefinitionPost = {
12622
12622
  archived?: boolean | null;
12623
12623
  };
12624
12624
 
12625
+ /**
12626
+ * Represents an entity id and its sort index for reordering operations.
12627
+ */
12628
+ type SortIndex = {
12629
+ /**
12630
+ * Gets or sets the entity id.
12631
+ */
12632
+ id?: string;
12633
+ /**
12634
+ * Gets or sets the sort index.
12635
+ */
12636
+ index?: number;
12637
+ };
12638
+
12625
12639
  declare class CustomFieldsService {
12626
12640
  readonly httpRequest: BaseHttpRequest;
12627
12641
  constructor(httpRequest: BaseHttpRequest);
@@ -12636,6 +12650,17 @@ declare class CustomFieldsService {
12636
12650
  */
12637
12651
  id: string;
12638
12652
  }): CancelablePromise<CustomFieldDefinition>;
12653
+ /**
12654
+ * Reorders custom field definitions.
12655
+ * @returns CustomFieldDefinition OK
12656
+ * @throws ApiError
12657
+ */
12658
+ reorder({ requestBody, }: {
12659
+ /**
12660
+ * The custom field ids with their indexes.
12661
+ */
12662
+ requestBody?: Array<SortIndex>;
12663
+ }): CancelablePromise<Array<CustomFieldDefinition>>;
12639
12664
  /**
12640
12665
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
12641
12666
  * @returns CustomFieldDefinition OK
@@ -52067,20 +52092,6 @@ declare class SurveyReportExtendedService {
52067
52092
  }): CancelablePromise<Array<SurveyReportExtended>>;
52068
52093
  }
52069
52094
 
52070
- /**
52071
- * The question id and index.
52072
- */
52073
- type QuestionIndex = {
52074
- /**
52075
- * Gets or sets the question id.
52076
- */
52077
- id?: string;
52078
- /**
52079
- * Gets or sets the question index.
52080
- */
52081
- index?: number;
52082
- };
52083
-
52084
52095
  /**
52085
52096
  * Post model for survey question options.
52086
52097
  */
@@ -52210,7 +52221,7 @@ declare class SurveysService {
52210
52221
  * @returns Survey OK
52211
52222
  * @throws ApiError
52212
52223
  */
52213
- reorderQuestions({ id, requestBody, }: {
52224
+ reorder({ id, requestBody, }: {
52214
52225
  /**
52215
52226
  * The survey id.
52216
52227
  */
@@ -52218,7 +52229,7 @@ declare class SurveysService {
52218
52229
  /**
52219
52230
  * The question ids with their indexes.
52220
52231
  */
52221
- requestBody?: Array<QuestionIndex>;
52232
+ requestBody?: Array<SortIndex>;
52222
52233
  }): CancelablePromise<Survey>;
52223
52234
  /**
52224
52235
  * Submits an order survey to the database.
@@ -65835,4 +65846,4 @@ type ValidationResultModel = {
65835
65846
  readonly errors?: Array<ValidationError> | null;
65836
65847
  };
65837
65848
 
65838
- export { Activity, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivityService, ActivityType, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeeWalletDeductionPreview, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CourseEmailWaitlistPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, CustomFieldDataType, CustomFieldDefinition, CustomFieldDefinitionPage, CustomFieldDefinitionPatch, CustomFieldDefinitionPost, CustomFieldDefinitionWithValue, CustomFieldOption, CustomFieldOptionDto, CustomFieldOptionPost, CustomFieldValueEntityType, CustomFieldValueUpdate, CustomFieldsBulkUpdate, CustomFieldsService, Customer, CustomerAccountInvitePatch, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomerWalletDeductionPreview, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EndUserIdentity, EndUserIdentitySecureToken, EndUserIdentitySecureTokenService, EnglandGolfReportService, EventTiming, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, 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, OpportunityRegisterStatus, OpportunityType, Order, OrderApplyDiscountCode, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemReportSummary, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, 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, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCalendarService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenueTypesService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ResolveSecureAccessTokenRequest, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionEmailWaitlistPatch, 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, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, 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, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantStatus, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpcomingLayout, UpdateCustomFieldOption, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenueType, VenueTypePage, VenueTypePatch, VenueTypePost, VenueTypeService, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistConversionStatsResponseDto, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService, Wallet, WalletDeductionPreview, WalletPage, WalletPatch, WalletPost, WalletRemoveCreditPost, WalletTopUpPost, WalletTrackingLevel, WalletTransaction, WalletTransactionPage, WalletTransactionPatch, WalletTransactionPost, WalletTransactionType, WalletTransactionsService, WalletsService };
65849
+ export { Activity, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivityService, ActivityType, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeeWalletDeductionPreview, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CourseEmailWaitlistPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, CustomFieldDataType, CustomFieldDefinition, CustomFieldDefinitionPage, CustomFieldDefinitionPatch, CustomFieldDefinitionPost, CustomFieldDefinitionWithValue, CustomFieldOption, CustomFieldOptionDto, CustomFieldOptionPost, CustomFieldValueEntityType, CustomFieldValueUpdate, CustomFieldsBulkUpdate, CustomFieldsService, Customer, CustomerAccountInvitePatch, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomerWalletDeductionPreview, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EndUserIdentity, EndUserIdentitySecureToken, EndUserIdentitySecureTokenService, EnglandGolfReportService, EventTiming, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, 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, OpportunityRegisterStatus, OpportunityType, Order, OrderApplyDiscountCode, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemReportSummary, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, 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, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCalendarService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenueTypesService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ResolveSecureAccessTokenRequest, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionEmailWaitlistPatch, 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, SortIndex, Southwest, StripeAccount, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, 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, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantStatus, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpcomingLayout, UpdateCustomFieldOption, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenueType, VenueTypePage, VenueTypePatch, VenueTypePost, VenueTypeService, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistConversionStatsResponseDto, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService, Wallet, WalletDeductionPreview, WalletPage, WalletPatch, WalletPost, WalletRemoveCreditPost, WalletTopUpPost, WalletTrackingLevel, WalletTransaction, WalletTransactionPage, WalletTransactionPatch, WalletTransactionPost, WalletTransactionType, WalletTransactionsService, WalletsService };
package/dist/reach-sdk.js CHANGED
@@ -5956,6 +5956,26 @@ const request = (config, options, axiosClient = axios) => {
5956
5956
  }
5957
5957
  });
5958
5958
  }
5959
+ /**
5960
+ * Reorders custom field definitions.
5961
+ * @returns CustomFieldDefinition OK
5962
+ * @throws ApiError
5963
+ */
5964
+ reorder({
5965
+ requestBody
5966
+ }) {
5967
+ return this.httpRequest.request({
5968
+ method: "POST",
5969
+ url: "/api/custom-fields/reorder",
5970
+ body: requestBody,
5971
+ mediaType: "application/json",
5972
+ errors: {
5973
+ 400: `Bad Request`,
5974
+ 422: `Unprocessable Content`,
5975
+ 500: `Internal Server Error`
5976
+ }
5977
+ });
5978
+ }
5959
5979
  /**
5960
5980
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
5961
5981
  * @returns CustomFieldDefinition OK
@@ -36947,13 +36967,13 @@ const request = (config, options, axiosClient = axios) => {
36947
36967
  * @returns Survey OK
36948
36968
  * @throws ApiError
36949
36969
  */
36950
- reorderQuestions({
36970
+ reorder({
36951
36971
  id,
36952
36972
  requestBody
36953
36973
  }) {
36954
36974
  return this.httpRequest.request({
36955
36975
  method: "POST",
36956
- url: "/api/surveys/{id}/reorder-questions",
36976
+ url: "/api/surveys/{id}/reorder",
36957
36977
  path: {
36958
36978
  id
36959
36979
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.208",
3
+ "version": "1.0.209",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16715,6 +16715,85 @@ paths:
16715
16715
  text/json:
16716
16716
  schema:
16717
16717
  $ref: '#/components/schemas/ValidationResultModel'
16718
+ /api/custom-fields/reorder:
16719
+ post:
16720
+ tags:
16721
+ - CustomFields
16722
+ summary: Reorders custom field definitions.
16723
+ operationId: Reorder
16724
+ requestBody:
16725
+ description: The custom field ids with their indexes.
16726
+ content:
16727
+ application/json:
16728
+ schema:
16729
+ type: array
16730
+ items:
16731
+ $ref: '#/components/schemas/SortIndex'
16732
+ text/json:
16733
+ schema:
16734
+ type: array
16735
+ items:
16736
+ $ref: '#/components/schemas/SortIndex'
16737
+ application/*+json:
16738
+ schema:
16739
+ type: array
16740
+ items:
16741
+ $ref: '#/components/schemas/SortIndex'
16742
+ responses:
16743
+ '200':
16744
+ description: OK
16745
+ content:
16746
+ text/plain:
16747
+ schema:
16748
+ type: array
16749
+ items:
16750
+ $ref: '#/components/schemas/CustomFieldDefinition'
16751
+ application/json:
16752
+ schema:
16753
+ type: array
16754
+ items:
16755
+ $ref: '#/components/schemas/CustomFieldDefinition'
16756
+ text/json:
16757
+ schema:
16758
+ type: array
16759
+ items:
16760
+ $ref: '#/components/schemas/CustomFieldDefinition'
16761
+ '400':
16762
+ description: Bad Request
16763
+ content:
16764
+ text/plain:
16765
+ schema:
16766
+ $ref: '#/components/schemas/ReachError'
16767
+ application/json:
16768
+ schema:
16769
+ $ref: '#/components/schemas/ReachError'
16770
+ text/json:
16771
+ schema:
16772
+ $ref: '#/components/schemas/ReachError'
16773
+ '500':
16774
+ description: Internal Server Error
16775
+ content:
16776
+ text/plain:
16777
+ schema:
16778
+ $ref: '#/components/schemas/ReachError'
16779
+ application/json:
16780
+ schema:
16781
+ $ref: '#/components/schemas/ReachError'
16782
+ text/json:
16783
+ schema:
16784
+ $ref: '#/components/schemas/ReachError'
16785
+ '422':
16786
+ description: Unprocessable Content
16787
+ content:
16788
+ text/plain:
16789
+ schema:
16790
+ $ref: '#/components/schemas/ValidationResultModel'
16791
+ application/json:
16792
+ schema:
16793
+ $ref: '#/components/schemas/ValidationResultModel'
16794
+ text/json:
16795
+ schema:
16796
+ $ref: '#/components/schemas/ValidationResultModel'
16718
16797
  /api/custom-fields/v2-temporary-route:
16719
16798
  post:
16720
16799
  tags:
@@ -108414,12 +108493,12 @@ paths:
108414
108493
  text/json:
108415
108494
  schema:
108416
108495
  $ref: '#/components/schemas/ValidationResultModel'
108417
- '/api/surveys/{id}/reorder-questions':
108496
+ '/api/surveys/{id}/reorder':
108418
108497
  post:
108419
108498
  tags:
108420
108499
  - Surveys
108421
108500
  summary: Reorders survey questions.
108422
- operationId: ReorderQuestions
108501
+ operationId: Reorder
108423
108502
  parameters:
108424
108503
  - name: id
108425
108504
  in: path
@@ -108435,17 +108514,17 @@ paths:
108435
108514
  schema:
108436
108515
  type: array
108437
108516
  items:
108438
- $ref: '#/components/schemas/QuestionIndex'
108517
+ $ref: '#/components/schemas/SortIndex'
108439
108518
  text/json:
108440
108519
  schema:
108441
108520
  type: array
108442
108521
  items:
108443
- $ref: '#/components/schemas/QuestionIndex'
108522
+ $ref: '#/components/schemas/SortIndex'
108444
108523
  application/*+json:
108445
108524
  schema:
108446
108525
  type: array
108447
108526
  items:
108448
- $ref: '#/components/schemas/QuestionIndex'
108527
+ $ref: '#/components/schemas/SortIndex'
108449
108528
  responses:
108450
108529
  '200':
108451
108530
  description: OK
@@ -151142,20 +151221,6 @@ components:
151142
151221
  nullable: true
151143
151222
  additionalProperties: false
151144
151223
  description: Represents a provider type category within the Reach application.
151145
- QuestionIndex:
151146
- type: object
151147
- properties:
151148
- id:
151149
- type: string
151150
- description: Gets or sets the question id.
151151
- format: uuid
151152
- index:
151153
- type: integer
151154
- description: Gets or sets the question index.
151155
- format: int32
151156
- default: 0
151157
- additionalProperties: false
151158
- description: The question id and index.
151159
151224
  ReachEntity:
151160
151225
  enum:
151161
151226
  - Tenant
@@ -153538,6 +153603,20 @@ components:
153538
153603
  - Cancelled
153539
153604
  type: string
153540
153605
  description: The Slot active status.
153606
+ SortIndex:
153607
+ type: object
153608
+ properties:
153609
+ id:
153610
+ type: string
153611
+ description: Gets or sets the entity id.
153612
+ format: uuid
153613
+ index:
153614
+ type: integer
153615
+ description: Gets or sets the sort index.
153616
+ format: int32
153617
+ default: 0
153618
+ additionalProperties: false
153619
+ description: Represents an entity id and its sort index for reordering operations.
153541
153620
  Southwest:
153542
153621
  type: object
153543
153622
  properties:
package/src/index.ts CHANGED
@@ -265,7 +265,6 @@ export type { ProviderPage } from './models/ProviderPage';
265
265
  export type { ProviderPatch } from './models/ProviderPatch';
266
266
  export type { ProviderPost } from './models/ProviderPost';
267
267
  export type { ProviderType } from './models/ProviderType';
268
- export type { QuestionIndex } from './models/QuestionIndex';
269
268
  export { ReachEntity } from './models/ReachEntity';
270
269
  export type { ReachError } from './models/ReachError';
271
270
  export { ReachOperation } from './models/ReachOperation';
@@ -323,6 +322,7 @@ export type { SlotSchedulePage } from './models/SlotSchedulePage';
323
322
  export type { SlotSchedulePatch } from './models/SlotSchedulePatch';
324
323
  export type { SlotSchedulePost } from './models/SlotSchedulePost';
325
324
  export { SlotStatus } from './models/SlotStatus';
325
+ export type { SortIndex } from './models/SortIndex';
326
326
  export type { Southwest } from './models/Southwest';
327
327
  export type { StripeAccount } from './models/StripeAccount';
328
328
  export { StripeAccountLinkedEntityType } from './models/StripeAccountLinkedEntityType';
@@ -4,15 +4,15 @@
4
4
  /* eslint-disable */
5
5
 
6
6
  /**
7
- * The question id and index.
7
+ * Represents an entity id and its sort index for reordering operations.
8
8
  */
9
- export type QuestionIndex = {
9
+ export type SortIndex = {
10
10
  /**
11
- * Gets or sets the question id.
11
+ * Gets or sets the entity id.
12
12
  */
13
13
  id?: string;
14
14
  /**
15
- * Gets or sets the question index.
15
+ * Gets or sets the sort index.
16
16
  */
17
17
  index?: number;
18
18
  };
@@ -8,6 +8,7 @@ import type { CustomFieldDefinitionPatch } from '../models/CustomFieldDefinition
8
8
  import type { CustomFieldDefinitionPost } from '../models/CustomFieldDefinitionPost';
9
9
  import type { CustomFieldValueEntityType } from '../models/CustomFieldValueEntityType';
10
10
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
11
+ import type { SortIndex } from '../models/SortIndex';
11
12
 
12
13
  import type { CancelablePromise } from '../core/CancelablePromise';
13
14
  import type { BaseHttpRequest } from '../core/BaseHttpRequest';
@@ -42,6 +43,32 @@ export class CustomFieldsService {
42
43
  });
43
44
  }
44
45
 
46
+ /**
47
+ * Reorders custom field definitions.
48
+ * @returns CustomFieldDefinition OK
49
+ * @throws ApiError
50
+ */
51
+ public reorder({
52
+ requestBody,
53
+ }: {
54
+ /**
55
+ * The custom field ids with their indexes.
56
+ */
57
+ requestBody?: Array<SortIndex>;
58
+ }): CancelablePromise<Array<CustomFieldDefinition>> {
59
+ return this.httpRequest.request({
60
+ method: 'POST',
61
+ url: '/api/custom-fields/reorder',
62
+ body: requestBody,
63
+ mediaType: 'application/json',
64
+ errors: {
65
+ 400: `Bad Request`,
66
+ 422: `Unprocessable Content`,
67
+ 500: `Internal Server Error`,
68
+ },
69
+ });
70
+ }
71
+
45
72
  /**
46
73
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
47
74
  * @returns CustomFieldDefinition OK
@@ -2,8 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { QuestionIndex } from '../models/QuestionIndex';
6
5
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
+ import type { SortIndex } from '../models/SortIndex';
7
7
  import type { Survey } from '../models/Survey';
8
8
  import type { SurveyCreate } from '../models/SurveyCreate';
9
9
  import type { SurveyDuplicatePost } from '../models/SurveyDuplicatePost';
@@ -110,7 +110,7 @@ export class SurveysService {
110
110
  * @returns Survey OK
111
111
  * @throws ApiError
112
112
  */
113
- public reorderQuestions({
113
+ public reorder({
114
114
  id,
115
115
  requestBody,
116
116
  }: {
@@ -121,11 +121,11 @@ export class SurveysService {
121
121
  /**
122
122
  * The question ids with their indexes.
123
123
  */
124
- requestBody?: Array<QuestionIndex>;
124
+ requestBody?: Array<SortIndex>;
125
125
  }): CancelablePromise<Survey> {
126
126
  return this.httpRequest.request({
127
127
  method: 'POST',
128
- url: '/api/surveys/{id}/reorder-questions',
128
+ url: '/api/surveys/{id}/reorder',
129
129
  path: {
130
130
  id: id,
131
131
  },