reach-api-sdk 1.0.94 → 1.0.96
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/reach-sdk.d.ts +48 -7
- package/dist/reach-sdk.js +21 -1
- package/package.json +1 -1
- package/src/definition/swagger.yaml +99 -9
- package/src/index.ts +1 -0
- package/src/models/GenericActivity.ts +1 -1
- package/src/models/OrderPatchItem.ts +34 -0
- package/src/models/OrderPost.ts +1 -1
- package/src/models/OrderRefresh.ts +3 -3
- package/src/models/OrderUpdateContact.ts +1 -1
- package/src/services/PublicSurveysService.ts +1 -1
- package/src/services/SurveysService.ts +27 -0
package/dist/reach-sdk.d.ts
CHANGED
|
@@ -4464,7 +4464,7 @@ type OrderPost = {
|
|
|
4464
4464
|
/**
|
|
4465
4465
|
* Gets or sets the orders postcode.
|
|
4466
4466
|
*/
|
|
4467
|
-
addressPostalcode
|
|
4467
|
+
addressPostalcode?: string | null;
|
|
4468
4468
|
/**
|
|
4469
4469
|
* Gets or sets a value indicating whether the order and its associated slots have been created on demand within the order operation (e.g from a block booking).
|
|
4470
4470
|
*/
|
|
@@ -9905,7 +9905,7 @@ type GenericActivity = {
|
|
|
9905
9905
|
*/
|
|
9906
9906
|
registrationWaitlist?: Array<WaitlistActivity> | null;
|
|
9907
9907
|
/**
|
|
9908
|
-
* Gets or sets the courses sessions (only
|
|
9908
|
+
* Gets or sets the courses sessions (only applicable to courses).
|
|
9909
9909
|
*/
|
|
9910
9910
|
sessions?: Array<CourseSession> | null;
|
|
9911
9911
|
};
|
|
@@ -11423,6 +11423,36 @@ declare class ImagesService {
|
|
|
11423
11423
|
}): CancelablePromise<boolean>;
|
|
11424
11424
|
}
|
|
11425
11425
|
|
|
11426
|
+
/**
|
|
11427
|
+
* Post model for the items contained in the order.
|
|
11428
|
+
*/
|
|
11429
|
+
type OrderPatchItem = {
|
|
11430
|
+
/**
|
|
11431
|
+
* Gets or sets the slot id.
|
|
11432
|
+
*/
|
|
11433
|
+
id?: string | null;
|
|
11434
|
+
/**
|
|
11435
|
+
* Gets or sets the slot id.
|
|
11436
|
+
*/
|
|
11437
|
+
slotId?: string | null;
|
|
11438
|
+
/**
|
|
11439
|
+
* Gets or sets the scheduled session id.
|
|
11440
|
+
*/
|
|
11441
|
+
scheduledSessionId?: string | null;
|
|
11442
|
+
/**
|
|
11443
|
+
* Gets or sets the course id.
|
|
11444
|
+
*/
|
|
11445
|
+
courseId?: string | null;
|
|
11446
|
+
/**
|
|
11447
|
+
* Gets or sets the offer id.
|
|
11448
|
+
*/
|
|
11449
|
+
offerId: string;
|
|
11450
|
+
/**
|
|
11451
|
+
* Gets or sets the quantity of opportunities required on the order item.
|
|
11452
|
+
*/
|
|
11453
|
+
quantity?: number | null;
|
|
11454
|
+
};
|
|
11455
|
+
|
|
11426
11456
|
/**
|
|
11427
11457
|
* Refresh model for order refreshesnpm .
|
|
11428
11458
|
*/
|
|
@@ -11454,7 +11484,7 @@ type OrderRefresh = {
|
|
|
11454
11484
|
/**
|
|
11455
11485
|
* Gets or sets the orders postcode.
|
|
11456
11486
|
*/
|
|
11457
|
-
addressPostalcode
|
|
11487
|
+
addressPostalcode?: string | null;
|
|
11458
11488
|
/**
|
|
11459
11489
|
* Gets or sets a value indicating whether the order customer is opted into marketing.
|
|
11460
11490
|
*/
|
|
@@ -11466,7 +11496,7 @@ type OrderRefresh = {
|
|
|
11466
11496
|
/**
|
|
11467
11497
|
* Gets or sets the order items for the order.
|
|
11468
11498
|
*/
|
|
11469
|
-
orderItems: Array<
|
|
11499
|
+
orderItems: Array<OrderPatchItem>;
|
|
11470
11500
|
};
|
|
11471
11501
|
|
|
11472
11502
|
declare class LeasingService {
|
|
@@ -15573,7 +15603,7 @@ type OrderUpdateContact = {
|
|
|
15573
15603
|
/**
|
|
15574
15604
|
* Gets or sets the orders postcode.
|
|
15575
15605
|
*/
|
|
15576
|
-
addressPostalcode
|
|
15606
|
+
addressPostalcode?: string | null;
|
|
15577
15607
|
/**
|
|
15578
15608
|
* Gets or sets any private notes for the order.
|
|
15579
15609
|
*/
|
|
@@ -23388,7 +23418,7 @@ declare class PublicSurveysService {
|
|
|
23388
23418
|
requestBody?: Survey;
|
|
23389
23419
|
}): CancelablePromise<any>;
|
|
23390
23420
|
/**
|
|
23391
|
-
*
|
|
23421
|
+
* Submits an order survey to the database.
|
|
23392
23422
|
* @returns any Success
|
|
23393
23423
|
* @throws ApiError
|
|
23394
23424
|
*/
|
|
@@ -31960,6 +31990,17 @@ declare class SurveysService {
|
|
|
31960
31990
|
*/
|
|
31961
31991
|
requestBody?: Array<QuestionIndex>;
|
|
31962
31992
|
}): CancelablePromise<Survey>;
|
|
31993
|
+
/**
|
|
31994
|
+
* Submits an order survey to the database.
|
|
31995
|
+
* @returns any Success
|
|
31996
|
+
* @throws ApiError
|
|
31997
|
+
*/
|
|
31998
|
+
submit({ requestBody, }: {
|
|
31999
|
+
/**
|
|
32000
|
+
* The survey questions with related answers.
|
|
32001
|
+
*/
|
|
32002
|
+
requestBody?: SurveySubmit;
|
|
32003
|
+
}): CancelablePromise<any>;
|
|
31963
32004
|
/**
|
|
31964
32005
|
* Generates an id for use in a Session create client side process.
|
|
31965
32006
|
* @returns string Success
|
|
@@ -38256,4 +38297,4 @@ type ValidationResultModel = {
|
|
|
38256
38297
|
readonly errors?: Array<ValidationError> | null;
|
|
38257
38298
|
};
|
|
38258
38299
|
|
|
38259
|
-
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, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, 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, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, 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, TemplateCreate, 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, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
|
|
38300
|
+
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, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, 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, 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, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, 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, TemplateCreate, 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, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, 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
|
@@ -16389,7 +16389,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
16389
16389
|
});
|
|
16390
16390
|
}
|
|
16391
16391
|
/**
|
|
16392
|
-
*
|
|
16392
|
+
* Submits an order survey to the database.
|
|
16393
16393
|
* @returns any Success
|
|
16394
16394
|
* @throws ApiError
|
|
16395
16395
|
*/
|
|
@@ -23746,6 +23746,26 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
23746
23746
|
}
|
|
23747
23747
|
});
|
|
23748
23748
|
}
|
|
23749
|
+
/**
|
|
23750
|
+
* Submits an order survey to the database.
|
|
23751
|
+
* @returns any Success
|
|
23752
|
+
* @throws ApiError
|
|
23753
|
+
*/
|
|
23754
|
+
submit({
|
|
23755
|
+
requestBody
|
|
23756
|
+
}) {
|
|
23757
|
+
return this.httpRequest.request({
|
|
23758
|
+
method: "POST",
|
|
23759
|
+
url: "/api/surveys/submit",
|
|
23760
|
+
body: requestBody,
|
|
23761
|
+
mediaType: "application/json",
|
|
23762
|
+
errors: {
|
|
23763
|
+
400: `Bad Request`,
|
|
23764
|
+
422: `Client Error`,
|
|
23765
|
+
500: `Server Error`
|
|
23766
|
+
}
|
|
23767
|
+
});
|
|
23768
|
+
}
|
|
23749
23769
|
/**
|
|
23750
23770
|
* Generates an id for use in a Session create client side process.
|
|
23751
23771
|
* @returns string Success
|
package/package.json
CHANGED
|
@@ -47225,7 +47225,7 @@ paths:
|
|
|
47225
47225
|
post:
|
|
47226
47226
|
tags:
|
|
47227
47227
|
- PublicSurveys
|
|
47228
|
-
summary:
|
|
47228
|
+
summary: Submits an order survey to the database.
|
|
47229
47229
|
operationId: Submit
|
|
47230
47230
|
parameters:
|
|
47231
47231
|
- name: x_tenant_subdomain
|
|
@@ -69254,6 +69254,63 @@ paths:
|
|
|
69254
69254
|
text/json:
|
|
69255
69255
|
schema:
|
|
69256
69256
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
69257
|
+
/api/surveys/submit:
|
|
69258
|
+
post:
|
|
69259
|
+
tags:
|
|
69260
|
+
- Surveys
|
|
69261
|
+
summary: Submits an order survey to the database.
|
|
69262
|
+
operationId: Submit
|
|
69263
|
+
requestBody:
|
|
69264
|
+
description: The survey questions with related answers.
|
|
69265
|
+
content:
|
|
69266
|
+
application/json:
|
|
69267
|
+
schema:
|
|
69268
|
+
$ref: '#/components/schemas/SurveySubmit'
|
|
69269
|
+
text/json:
|
|
69270
|
+
schema:
|
|
69271
|
+
$ref: '#/components/schemas/SurveySubmit'
|
|
69272
|
+
application/*+json:
|
|
69273
|
+
schema:
|
|
69274
|
+
$ref: '#/components/schemas/SurveySubmit'
|
|
69275
|
+
responses:
|
|
69276
|
+
'200':
|
|
69277
|
+
description: Success
|
|
69278
|
+
'400':
|
|
69279
|
+
description: Bad Request
|
|
69280
|
+
content:
|
|
69281
|
+
text/plain:
|
|
69282
|
+
schema:
|
|
69283
|
+
$ref: '#/components/schemas/ReachError'
|
|
69284
|
+
application/json:
|
|
69285
|
+
schema:
|
|
69286
|
+
$ref: '#/components/schemas/ReachError'
|
|
69287
|
+
text/json:
|
|
69288
|
+
schema:
|
|
69289
|
+
$ref: '#/components/schemas/ReachError'
|
|
69290
|
+
'500':
|
|
69291
|
+
description: Server Error
|
|
69292
|
+
content:
|
|
69293
|
+
text/plain:
|
|
69294
|
+
schema:
|
|
69295
|
+
$ref: '#/components/schemas/ReachError'
|
|
69296
|
+
application/json:
|
|
69297
|
+
schema:
|
|
69298
|
+
$ref: '#/components/schemas/ReachError'
|
|
69299
|
+
text/json:
|
|
69300
|
+
schema:
|
|
69301
|
+
$ref: '#/components/schemas/ReachError'
|
|
69302
|
+
'422':
|
|
69303
|
+
description: Client Error
|
|
69304
|
+
content:
|
|
69305
|
+
text/plain:
|
|
69306
|
+
schema:
|
|
69307
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
69308
|
+
application/json:
|
|
69309
|
+
schema:
|
|
69310
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
69311
|
+
text/json:
|
|
69312
|
+
schema:
|
|
69313
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
69257
69314
|
/api/surveys/create/generate-id:
|
|
69258
69315
|
get:
|
|
69259
69316
|
tags:
|
|
@@ -88156,7 +88213,7 @@ components:
|
|
|
88156
88213
|
type: array
|
|
88157
88214
|
items:
|
|
88158
88215
|
$ref: '#/components/schemas/CourseSession'
|
|
88159
|
-
description: Gets or sets the courses sessions (only
|
|
88216
|
+
description: Gets or sets the courses sessions (only applicable to courses).
|
|
88160
88217
|
nullable: true
|
|
88161
88218
|
additionalProperties: false
|
|
88162
88219
|
description: Represents an organisation within the Reach application.
|
|
@@ -90001,9 +90058,44 @@ components:
|
|
|
90001
90058
|
format: uuid
|
|
90002
90059
|
additionalProperties: false
|
|
90003
90060
|
description: Post model for order updates.
|
|
90061
|
+
OrderPatchItem:
|
|
90062
|
+
required:
|
|
90063
|
+
- offerId
|
|
90064
|
+
type: object
|
|
90065
|
+
properties:
|
|
90066
|
+
id:
|
|
90067
|
+
type: string
|
|
90068
|
+
description: Gets or sets the slot id.
|
|
90069
|
+
format: uuid
|
|
90070
|
+
nullable: true
|
|
90071
|
+
slotId:
|
|
90072
|
+
type: string
|
|
90073
|
+
description: Gets or sets the slot id.
|
|
90074
|
+
format: uuid
|
|
90075
|
+
nullable: true
|
|
90076
|
+
scheduledSessionId:
|
|
90077
|
+
type: string
|
|
90078
|
+
description: Gets or sets the scheduled session id.
|
|
90079
|
+
format: uuid
|
|
90080
|
+
nullable: true
|
|
90081
|
+
courseId:
|
|
90082
|
+
type: string
|
|
90083
|
+
description: Gets or sets the course id.
|
|
90084
|
+
format: uuid
|
|
90085
|
+
nullable: true
|
|
90086
|
+
offerId:
|
|
90087
|
+
type: string
|
|
90088
|
+
description: Gets or sets the offer id.
|
|
90089
|
+
format: uuid
|
|
90090
|
+
quantity:
|
|
90091
|
+
type: integer
|
|
90092
|
+
description: Gets or sets the quantity of opportunities required on the order item.
|
|
90093
|
+
format: int32
|
|
90094
|
+
nullable: true
|
|
90095
|
+
additionalProperties: false
|
|
90096
|
+
description: Post model for the items contained in the order.
|
|
90004
90097
|
OrderPost:
|
|
90005
90098
|
required:
|
|
90006
|
-
- addressPostalcode
|
|
90007
90099
|
- email
|
|
90008
90100
|
- firstName
|
|
90009
90101
|
- lastName
|
|
@@ -90040,9 +90132,9 @@ components:
|
|
|
90040
90132
|
description: Gets or sets the phone number.
|
|
90041
90133
|
nullable: true
|
|
90042
90134
|
addressPostalcode:
|
|
90043
|
-
minLength: 1
|
|
90044
90135
|
type: string
|
|
90045
90136
|
description: Gets or sets the orders postcode.
|
|
90137
|
+
nullable: true
|
|
90046
90138
|
isOndemand:
|
|
90047
90139
|
type: boolean
|
|
90048
90140
|
description: Gets or sets a value indicating whether the order and its associated slots have been created on demand within the order operation (e.g from a block booking).
|
|
@@ -90113,7 +90205,6 @@ components:
|
|
|
90113
90205
|
description: Post model for the items contained in the order.
|
|
90114
90206
|
OrderRefresh:
|
|
90115
90207
|
required:
|
|
90116
|
-
- addressPostalcode
|
|
90117
90208
|
- email
|
|
90118
90209
|
- firstName
|
|
90119
90210
|
- id
|
|
@@ -90149,9 +90240,9 @@ components:
|
|
|
90149
90240
|
description: Gets or sets the phone number.
|
|
90150
90241
|
nullable: true
|
|
90151
90242
|
addressPostalcode:
|
|
90152
|
-
minLength: 1
|
|
90153
90243
|
type: string
|
|
90154
90244
|
description: Gets or sets the orders postcode.
|
|
90245
|
+
nullable: true
|
|
90155
90246
|
marketingOptIn:
|
|
90156
90247
|
type: boolean
|
|
90157
90248
|
description: Gets or sets a value indicating whether the order customer is opted into marketing.
|
|
@@ -90161,7 +90252,7 @@ components:
|
|
|
90161
90252
|
orderItems:
|
|
90162
90253
|
type: array
|
|
90163
90254
|
items:
|
|
90164
|
-
$ref: '#/components/schemas/
|
|
90255
|
+
$ref: '#/components/schemas/OrderPatchItem'
|
|
90165
90256
|
description: Gets or sets the order items for the order.
|
|
90166
90257
|
additionalProperties: false
|
|
90167
90258
|
description: Refresh model for order refreshesnpm .
|
|
@@ -90264,7 +90355,6 @@ components:
|
|
|
90264
90355
|
description: Post model for order token inserts.
|
|
90265
90356
|
OrderUpdateContact:
|
|
90266
90357
|
required:
|
|
90267
|
-
- addressPostalcode
|
|
90268
90358
|
- email
|
|
90269
90359
|
- firstName
|
|
90270
90360
|
- lastName
|
|
@@ -90295,9 +90385,9 @@ components:
|
|
|
90295
90385
|
type: string
|
|
90296
90386
|
description: Gets or sets the phone number.
|
|
90297
90387
|
addressPostalcode:
|
|
90298
|
-
minLength: 1
|
|
90299
90388
|
type: string
|
|
90300
90389
|
description: Gets or sets the orders postcode.
|
|
90390
|
+
nullable: true
|
|
90301
90391
|
privateNotes:
|
|
90302
90392
|
minLength: 1
|
|
90303
90393
|
type: string
|
package/src/index.ts
CHANGED
|
@@ -135,6 +135,7 @@ export type { OrderItemPost } from './models/OrderItemPost';
|
|
|
135
135
|
export { OrderItemStatus } from './models/OrderItemStatus';
|
|
136
136
|
export type { OrderPage } from './models/OrderPage';
|
|
137
137
|
export type { OrderPatch } from './models/OrderPatch';
|
|
138
|
+
export type { OrderPatchItem } from './models/OrderPatchItem';
|
|
138
139
|
export type { OrderPost } from './models/OrderPost';
|
|
139
140
|
export type { OrderPostItem } from './models/OrderPostItem';
|
|
140
141
|
export type { OrderRefresh } from './models/OrderRefresh';
|
|
@@ -121,7 +121,7 @@ export type GenericActivity = {
|
|
|
121
121
|
*/
|
|
122
122
|
registrationWaitlist?: Array<WaitlistActivity> | null;
|
|
123
123
|
/**
|
|
124
|
-
* Gets or sets the courses sessions (only
|
|
124
|
+
* Gets or sets the courses sessions (only applicable to courses).
|
|
125
125
|
*/
|
|
126
126
|
sessions?: Array<CourseSession> | null;
|
|
127
127
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Post model for the items contained in the order.
|
|
8
|
+
*/
|
|
9
|
+
export type OrderPatchItem = {
|
|
10
|
+
/**
|
|
11
|
+
* Gets or sets the slot id.
|
|
12
|
+
*/
|
|
13
|
+
id?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Gets or sets the slot id.
|
|
16
|
+
*/
|
|
17
|
+
slotId?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Gets or sets the scheduled session id.
|
|
20
|
+
*/
|
|
21
|
+
scheduledSessionId?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Gets or sets the course id.
|
|
24
|
+
*/
|
|
25
|
+
courseId?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Gets or sets the offer id.
|
|
28
|
+
*/
|
|
29
|
+
offerId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Gets or sets the quantity of opportunities required on the order item.
|
|
32
|
+
*/
|
|
33
|
+
quantity?: number | null;
|
|
34
|
+
};
|
package/src/models/OrderPost.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type OrderPost = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Gets or sets the orders postcode.
|
|
38
38
|
*/
|
|
39
|
-
addressPostalcode
|
|
39
|
+
addressPostalcode?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* Gets or sets a value indicating whether the order and its associated slots have been created on demand within the order operation (e.g from a block booking).
|
|
42
42
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type { OrderPatchItem } from './OrderPatchItem';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Refresh model for order refreshesnpm .
|
|
@@ -36,7 +36,7 @@ export type OrderRefresh = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Gets or sets the orders postcode.
|
|
38
38
|
*/
|
|
39
|
-
addressPostalcode
|
|
39
|
+
addressPostalcode?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* Gets or sets a value indicating whether the order customer is opted into marketing.
|
|
42
42
|
*/
|
|
@@ -48,5 +48,5 @@ export type OrderRefresh = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Gets or sets the order items for the order.
|
|
50
50
|
*/
|
|
51
|
-
orderItems: Array<
|
|
51
|
+
orderItems: Array<OrderPatchItem>;
|
|
52
52
|
};
|
|
@@ -9,6 +9,7 @@ import type { SurveyCreate } from '../models/SurveyCreate';
|
|
|
9
9
|
import type { SurveyPage } from '../models/SurveyPage';
|
|
10
10
|
import type { SurveyPatch } from '../models/SurveyPatch';
|
|
11
11
|
import type { SurveyPost } from '../models/SurveyPost';
|
|
12
|
+
import type { SurveySubmit } from '../models/SurveySubmit';
|
|
12
13
|
|
|
13
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
14
15
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
@@ -103,6 +104,32 @@ export class SurveysService {
|
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Submits an order survey to the database.
|
|
109
|
+
* @returns any Success
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
public submit({
|
|
113
|
+
requestBody,
|
|
114
|
+
}: {
|
|
115
|
+
/**
|
|
116
|
+
* The survey questions with related answers.
|
|
117
|
+
*/
|
|
118
|
+
requestBody?: SurveySubmit;
|
|
119
|
+
}): CancelablePromise<any> {
|
|
120
|
+
return this.httpRequest.request({
|
|
121
|
+
method: 'POST',
|
|
122
|
+
url: '/api/surveys/submit',
|
|
123
|
+
body: requestBody,
|
|
124
|
+
mediaType: 'application/json',
|
|
125
|
+
errors: {
|
|
126
|
+
400: `Bad Request`,
|
|
127
|
+
422: `Client Error`,
|
|
128
|
+
500: `Server Error`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
106
133
|
/**
|
|
107
134
|
* Generates an id for use in a Session create client side process.
|
|
108
135
|
* @returns string Success
|