reach-api-sdk 1.0.7 → 1.0.8
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/package.json +1 -1
- package/src/apiClient.ts +158 -160
- package/src/core/ApiError.ts +15 -15
- package/src/core/ApiRequestOptions.ts +12 -12
- package/src/core/ApiResult.ts +6 -6
- package/src/core/AxiosHttpRequest.ts +14 -13
- package/src/core/BaseHttpRequest.ts +4 -3
- package/src/core/CancelablePromise.ts +112 -111
- package/src/core/OpenAPI.ts +19 -19
- package/src/core/request.ts +217 -241
- package/src/definition/swagger.yaml +63 -77
- package/src/models/Activity.ts +41 -41
- package/src/models/ActivityType.ts +4 -4
- package/src/models/AdvanceBooking.ts +4 -4
- package/src/models/Amenity.ts +13 -13
- package/src/models/AppUserRole.ts +5 -5
- package/src/models/ApplicationRole.ts +6 -6
- package/src/models/AutoCompleteResponseModel.ts +5 -5
- package/src/models/BookingStatus.ts +3 -3
- package/src/models/ContactOnConfirmation.ts +3 -3
- package/src/models/Country.ts +33 -33
- package/src/models/Course.ts +229 -229
- package/src/models/CourseBookingCutoff.ts +3 -3
- package/src/models/CoursePage.ts +3 -3
- package/src/models/CourseSearchSortBy.ts +3 -3
- package/src/models/CourseSession.ts +76 -76
- package/src/models/CourseSessionPage.ts +3 -3
- package/src/models/CourseSessionSchedule.ts +72 -72
- package/src/models/CourseSessionSchedulePage.ts +3 -3
- package/src/models/Customer.ts +78 -78
- package/src/models/CustomerCancellationOption.ts +4 -4
- package/src/models/CustomerPage.ts +3 -3
- package/src/models/CustomerType.ts +3 -3
- package/src/models/DayOfWeek.ts +8 -8
- package/src/models/EmailReminderSchedule.ts +41 -41
- package/src/models/EmailReminderSchedulePage.ts +3 -3
- package/src/models/EmailSetting.ts +53 -53
- package/src/models/EmailSettingPage.ts +3 -3
- package/src/models/Facility.ts +89 -89
- package/src/models/FacilityIndividual.ts +55 -55
- package/src/models/FacilityIndividualPage.ts +3 -3
- package/src/models/FacilityIndividualsType.ts +11 -11
- package/src/models/FacilityPage.ts +3 -3
- package/src/models/FilestackImageMetaResponseModel.ts +37 -33
- package/src/models/GenericActivity.ts +94 -94
- package/src/models/GenericActivityPage.ts +3 -3
- package/src/models/GeocodeResponseModel.ts +7 -7
- package/src/models/GooglePrediction.ts +22 -22
- package/src/models/HttpStatusCode.ts +62 -62
- package/src/models/IOpportunity.ts +47 -47
- package/src/models/Image.ts +65 -65
- package/src/models/ImagePage.ts +3 -3
- package/src/models/InviteStatus.ts +3 -3
- package/src/models/LoqateGeocode.ts +13 -13
- package/src/models/LoqatePlaceResult.ts +38 -38
- package/src/models/LoqatePrediction.ts +13 -13
- package/src/models/Northeast.ts +9 -9
- package/src/models/NotificationQueue.ts +39 -39
- package/src/models/NotificationQueuePage.ts +3 -3
- package/src/models/NotificationSetting.ts +81 -81
- package/src/models/NotificationSettingPage.ts +3 -3
- package/src/models/NotificationType.ts +14 -14
- package/src/models/Offer.ts +86 -86
- package/src/models/OfferPage.ts +3 -3
- package/src/models/OpenactiveFeedIntermediate.ts +39 -39
- package/src/models/OpenactiveFeedIntermediatePage.ts +3 -3
- package/src/models/OpenactiveFeedItem.ts +46 -46
- package/src/models/OpenactiveFeedItemPage.ts +3 -3
- package/src/models/OpportunityType.ts +4 -4
- package/src/models/Order.ts +193 -193
- package/src/models/OrderItem.ts +81 -81
- package/src/models/OrderItemPage.ts +3 -3
- package/src/models/OrderItemStatus.ts +8 -8
- package/src/models/OrderPage.ts +3 -3
- package/src/models/OrderSource.ts +3 -3
- package/src/models/OrderStage.ts +4 -4
- package/src/models/OrderToken.ts +33 -33
- package/src/models/OrderTokenPage.ts +3 -3
- package/src/models/OrgCourseUtilisation.ts +73 -73
- package/src/models/OrgCourseUtilisationPage.ts +3 -3
- package/src/models/OrganisationApplicationFeeHandling.ts +3 -3
- package/src/models/OrganisationAvailableChannel.ts +3 -3
- package/src/models/OrganisationRefundPolicy.ts +4 -4
- package/src/models/OrganisationTaxMode.ts +3 -3
- package/src/models/OrganisationType.ts +3 -3
- package/src/models/Pagination.ts +17 -17
- package/src/models/Payment.ts +57 -57
- package/src/models/PaymentMethod.ts +5 -5
- package/src/models/PaymentPage.ts +3 -3
- package/src/models/Permission.ts +69 -69
- package/src/models/PermissionPage.ts +3 -3
- package/src/models/PlaceDetailsResponseModel.ts +2 -2
- package/src/models/PlaceGeometry.ts +3 -3
- package/src/models/PlaceLocation.ts +9 -9
- package/src/models/PlaceResult.ts +10 -10
- package/src/models/PlaceViewport.ts +3 -3
- package/src/models/PlusCode.ts +9 -9
- package/src/models/Prepayment.ts +4 -4
- package/src/models/Programme.ts +58 -58
- package/src/models/ProgrammePage.ts +3 -3
- package/src/models/ReachEntity.ts +10 -10
- package/src/models/ReachError.ts +10 -10
- package/src/models/ReachOperation.ts +3 -3
- package/src/models/RecentOrderActivityReport.ts +73 -73
- package/src/models/RecentOrderActivityReportPage.ts +3 -3
- package/src/models/ScheduleStatus.ts +5 -5
- package/src/models/ScheduledSession.ts +122 -122
- package/src/models/ScheduledSessionPage.ts +3 -3
- package/src/models/ScheduledSessionSchedule.ts +72 -72
- package/src/models/ScheduledSessionSchedulePage.ts +3 -3
- package/src/models/ScheduledSessionSearchSortBy.ts +2 -2
- package/src/models/SearchSortOrderDirection.ts +3 -3
- package/src/models/Session.ts +172 -172
- package/src/models/SessionGender.ts +4 -4
- package/src/models/SessionPage.ts +3 -3
- package/src/models/SessionType.ts +4 -4
- package/src/models/Slot.ts +124 -124
- package/src/models/SlotAvailabilityStatus.ts +9 -9
- package/src/models/SlotOffer.ts +33 -33
- package/src/models/SlotOfferPage.ts +3 -3
- package/src/models/SlotPage.ts +3 -3
- package/src/models/SlotSchedule.ts +91 -91
- package/src/models/SlotScheduleOffer.ts +34 -34
- package/src/models/SlotScheduleOfferPage.ts +3 -3
- package/src/models/SlotSchedulePage.ts +3 -3
- package/src/models/SlotStatus.ts +10 -10
- package/src/models/Southwest.ts +9 -9
- package/src/models/StripeAccount.ts +61 -61
- package/src/models/StripeAccountPage.ts +3 -3
- package/src/models/StructuredFormatting.ts +9 -9
- package/src/models/Surface.ts +14 -14
- package/src/models/Survey.ts +39 -39
- package/src/models/SurveyAnswer.ts +47 -47
- package/src/models/SurveyAnswerPage.ts +3 -3
- package/src/models/SurveyPage.ts +3 -3
- package/src/models/SurveyQuestion.ts +58 -58
- package/src/models/SurveyQuestionOption.ts +37 -37
- package/src/models/SurveyQuestionPage.ts +3 -3
- package/src/models/SurveyQuestionType.ts +5 -5
- package/src/models/SurveyQuestionsTarget.ts +3 -3
- package/src/models/SurveyReportExtended.ts +25 -25
- package/src/models/SurveyReportExtendedPage.ts +3 -3
- package/src/models/SurveySubmissionModel.ts +22 -22
- package/src/models/SurveyType.ts +3 -3
- package/src/models/Tax.ts +29 -29
- package/src/models/Tenant.ts +222 -222
- package/src/models/TenantPage.ts +3 -3
- package/src/models/TenantWebsiteSetting.ts +81 -81
- package/src/models/TenantWebsiteSettingPage.ts +3 -3
- package/src/models/Timezone.ts +13 -13
- package/src/models/TotalRevenueReport.ts +58 -58
- package/src/models/TotalRevenueReportPage.ts +3 -3
- package/src/models/User.ts +52 -52
- package/src/models/UserPage.ts +3 -3
- package/src/models/UserRole.ts +18 -18
- package/src/models/Venue.ts +168 -168
- package/src/models/VenueOpeningHours.ts +42 -42
- package/src/models/VenuePage.ts +3 -3
- package/src/models/VenuesReport.ts +73 -73
- package/src/models/VenuesReportPage.ts +3 -3
- package/src/models/WaitlistActivity.ts +47 -47
- package/src/models/WaitlistActivityPage.ts +3 -3
- package/src/models/WaitlistOpportunity.ts +56 -56
- package/src/models/WaitlistOpportunityPage.ts +3 -3
- package/src/services/ActivityService.ts +104 -102
- package/src/services/AmenityService.ts +104 -102
- package/src/services/BookingService.ts +999 -997
- package/src/services/CountryService.ts +104 -102
- package/src/services/CourseSessionSchedulesService.ts +554 -552
- package/src/services/CourseSessionsService.ts +680 -678
- package/src/services/CoursesService.ts +890 -888
- package/src/services/CustomersService.ts +691 -689
- package/src/services/EmailReminderSchedulesService.ts +493 -491
- package/src/services/EmailSettingsService.ts +497 -495
- package/src/services/FacilitiesService.ts +599 -597
- package/src/services/FacilityIndividualsService.ts +491 -489
- package/src/services/FilestackService.ts +27 -25
- package/src/services/GenericActivityService.ts +533 -531
- package/src/services/GeocodeService.ts +33 -31
- package/src/services/ImagesService.ts +628 -626
- package/src/services/LeasingService.ts +703 -701
- package/src/services/LoqatePlacesService.ts +62 -60
- package/src/services/NotificationQueueService.ts +475 -473
- package/src/services/NotificationSettingsService.ts +677 -675
- package/src/services/OffersService.ts +605 -603
- package/src/services/OpenactiveFeedIntermediateService.ts +457 -455
- package/src/services/OpenactiveFeedItemService.ts +461 -459
- package/src/services/OrderItemsService.ts +461 -441
- package/src/services/OrdersService.ts +816 -814
- package/src/services/OrgCourseUtilisationService.ts +729 -727
- package/src/services/PaymentsService.ts +443 -441
- package/src/services/PermissionsService.ts +425 -423
- package/src/services/PlacesService.ts +56 -54
- package/src/services/ProgrammesService.ts +497 -495
- package/src/services/PublicBookingService.ts +502 -500
- package/src/services/PublicCoursesService.ts +605 -603
- package/src/services/PublicFacilitiesService.ts +437 -435
- package/src/services/PublicHealthCheckService.ts +19 -17
- package/src/services/PublicLeasingService.ts +573 -571
- package/src/services/PublicOrderTokensService.ts +438 -436
- package/src/services/PublicOrdersService.ts +501 -499
- package/src/services/PublicProgrammesService.ts +401 -399
- package/src/services/PublicScheduledSessionsService.ts +593 -591
- package/src/services/PublicSessionsService.ts +667 -665
- package/src/services/PublicSlotsService.ts +781 -779
- package/src/services/PublicStripeWebhookService.ts +27 -25
- package/src/services/PublicSurveyQuestionsService.ts +396 -394
- package/src/services/PublicSurveysService.ts +345 -343
- package/src/services/PublicTenantsService.ts +400 -398
- package/src/services/PublicVenuesService.ts +497 -495
- package/src/services/PublicWaitlistActivityService.ts +417 -415
- package/src/services/PublicWaitlistOpportunityService.ts +405 -403
- package/src/services/RecentOrderActivityReportService.ts +513 -511
- package/src/services/ScheduledSessionsSchedulesService.ts +569 -567
- package/src/services/ScheduledSessionsService.ts +863 -861
- package/src/services/SessionsService.ts +635 -633
- package/src/services/SlotOffersService.ts +461 -459
- package/src/services/SlotScheduleOffersService.ts +461 -459
- package/src/services/SlotSchedulesService.ts +605 -603
- package/src/services/SlotsService.ts +806 -804
- package/src/services/StripeAccountService.ts +515 -513
- package/src/services/SurfacesService.ts +110 -108
- package/src/services/SurveyAnswersService.ts +691 -689
- package/src/services/SurveyQuestionsService.ts +443 -441
- package/src/services/SurveyReportExtendedService.ts +585 -583
- package/src/services/SurveysService.ts +425 -423
- package/src/services/TenantWebsiteSettingsService.ts +425 -423
- package/src/services/TenantsService.ts +748 -746
- package/src/services/TimezoneService.ts +110 -108
- package/src/services/TotalRevenueReportService.ts +497 -495
- package/src/services/UsersService.ts +508 -506
- package/src/services/VenuesReportService.ts +631 -629
- package/src/services/VenuesService.ts +689 -687
- package/src/services/WaitlistActivityService.ts +515 -513
- package/src/services/WaitlistOpportunityService.ts +497 -495
package/package.json
CHANGED
package/src/apiClient.ts
CHANGED
|
@@ -80,166 +80,164 @@ import { WaitlistOpportunityService } from './services/WaitlistOpportunityServic
|
|
|
80
80
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
81
81
|
|
|
82
82
|
export class ApiClient {
|
|
83
|
-
public readonly activity: ActivityService;
|
|
84
|
-
public readonly amenity: AmenityService;
|
|
85
|
-
public readonly booking: BookingService;
|
|
86
|
-
public readonly country: CountryService;
|
|
87
|
-
public readonly courses: CoursesService;
|
|
88
|
-
public readonly courseSessions: CourseSessionsService;
|
|
89
|
-
public readonly courseSessionSchedules: CourseSessionSchedulesService;
|
|
90
|
-
public readonly customers: CustomersService;
|
|
91
|
-
public readonly emailReminderSchedules: EmailReminderSchedulesService;
|
|
92
|
-
public readonly emailSettings: EmailSettingsService;
|
|
93
|
-
public readonly facilities: FacilitiesService;
|
|
94
|
-
public readonly facilityIndividuals: FacilityIndividualsService;
|
|
95
|
-
public readonly filestack: FilestackService;
|
|
96
|
-
public readonly genericActivity: GenericActivityService;
|
|
97
|
-
public readonly geocode: GeocodeService;
|
|
98
|
-
public readonly images: ImagesService;
|
|
99
|
-
public readonly leasing: LeasingService;
|
|
100
|
-
public readonly loqatePlaces: LoqatePlacesService;
|
|
101
|
-
public readonly notificationQueue: NotificationQueueService;
|
|
102
|
-
public readonly notificationSettings: NotificationSettingsService;
|
|
103
|
-
public readonly offers: OffersService;
|
|
104
|
-
public readonly openactiveFeedIntermediate: OpenactiveFeedIntermediateService;
|
|
105
|
-
public readonly openactiveFeedItem: OpenactiveFeedItemService;
|
|
106
|
-
public readonly orderItems: OrderItemsService;
|
|
107
|
-
public readonly orders: OrdersService;
|
|
108
|
-
public readonly orgCourseUtilisation: OrgCourseUtilisationService;
|
|
109
|
-
public readonly payments: PaymentsService;
|
|
110
|
-
public readonly permissions: PermissionsService;
|
|
111
|
-
public readonly places: PlacesService;
|
|
112
|
-
public readonly programmes: ProgrammesService;
|
|
113
|
-
public readonly publicBooking: PublicBookingService;
|
|
114
|
-
public readonly publicCourses: PublicCoursesService;
|
|
115
|
-
public readonly publicFacilities: PublicFacilitiesService;
|
|
116
|
-
public readonly publicHealthCheck: PublicHealthCheckService;
|
|
117
|
-
public readonly publicLeasing: PublicLeasingService;
|
|
118
|
-
public readonly publicOrders: PublicOrdersService;
|
|
119
|
-
public readonly publicOrderTokens: PublicOrderTokensService;
|
|
120
|
-
public readonly publicProgrammes: PublicProgrammesService;
|
|
121
|
-
public readonly publicScheduledSessions: PublicScheduledSessionsService;
|
|
122
|
-
public readonly publicSessions: PublicSessionsService;
|
|
123
|
-
public readonly publicSlots: PublicSlotsService;
|
|
124
|
-
public readonly publicStripeWebhook: PublicStripeWebhookService;
|
|
125
|
-
public readonly publicSurveyQuestions: PublicSurveyQuestionsService;
|
|
126
|
-
public readonly publicSurveys: PublicSurveysService;
|
|
127
|
-
public readonly publicTenants: PublicTenantsService;
|
|
128
|
-
public readonly publicVenues: PublicVenuesService;
|
|
129
|
-
public readonly publicWaitlistActivity: PublicWaitlistActivityService;
|
|
130
|
-
public readonly publicWaitlistOpportunity: PublicWaitlistOpportunityService;
|
|
131
|
-
public readonly recentOrderActivityReport: RecentOrderActivityReportService;
|
|
132
|
-
public readonly scheduledSessions: ScheduledSessionsService;
|
|
133
|
-
public readonly scheduledSessionsSchedules: ScheduledSessionsSchedulesService;
|
|
134
|
-
public readonly sessions: SessionsService;
|
|
135
|
-
public readonly slotOffers: SlotOffersService;
|
|
136
|
-
public readonly slots: SlotsService;
|
|
137
|
-
public readonly slotScheduleOffers: SlotScheduleOffersService;
|
|
138
|
-
public readonly slotSchedules: SlotSchedulesService;
|
|
139
|
-
public readonly stripeAccount: StripeAccountService;
|
|
140
|
-
public readonly surfaces: SurfacesService;
|
|
141
|
-
public readonly surveyAnswers: SurveyAnswersService;
|
|
142
|
-
public readonly surveyQuestions: SurveyQuestionsService;
|
|
143
|
-
public readonly surveyReportExtended: SurveyReportExtendedService;
|
|
144
|
-
public readonly surveys: SurveysService;
|
|
145
|
-
public readonly tenants: TenantsService;
|
|
146
|
-
public readonly tenantWebsiteSettings: TenantWebsiteSettingsService;
|
|
147
|
-
public readonly timezone: TimezoneService;
|
|
148
|
-
public readonly totalRevenueReport: TotalRevenueReportService;
|
|
149
|
-
public readonly users: UsersService;
|
|
150
|
-
public readonly venues: VenuesService;
|
|
151
|
-
public readonly venuesReport: VenuesReportService;
|
|
152
|
-
public readonly waitlistActivity: WaitlistActivityService;
|
|
153
|
-
public readonly waitlistOpportunity: WaitlistOpportunityService;
|
|
154
83
|
|
|
155
|
-
|
|
84
|
+
public readonly activity: ActivityService;
|
|
85
|
+
public readonly amenity: AmenityService;
|
|
86
|
+
public readonly booking: BookingService;
|
|
87
|
+
public readonly country: CountryService;
|
|
88
|
+
public readonly courses: CoursesService;
|
|
89
|
+
public readonly courseSessions: CourseSessionsService;
|
|
90
|
+
public readonly courseSessionSchedules: CourseSessionSchedulesService;
|
|
91
|
+
public readonly customers: CustomersService;
|
|
92
|
+
public readonly emailReminderSchedules: EmailReminderSchedulesService;
|
|
93
|
+
public readonly emailSettings: EmailSettingsService;
|
|
94
|
+
public readonly facilities: FacilitiesService;
|
|
95
|
+
public readonly facilityIndividuals: FacilityIndividualsService;
|
|
96
|
+
public readonly filestack: FilestackService;
|
|
97
|
+
public readonly genericActivity: GenericActivityService;
|
|
98
|
+
public readonly geocode: GeocodeService;
|
|
99
|
+
public readonly images: ImagesService;
|
|
100
|
+
public readonly leasing: LeasingService;
|
|
101
|
+
public readonly loqatePlaces: LoqatePlacesService;
|
|
102
|
+
public readonly notificationQueue: NotificationQueueService;
|
|
103
|
+
public readonly notificationSettings: NotificationSettingsService;
|
|
104
|
+
public readonly offers: OffersService;
|
|
105
|
+
public readonly openactiveFeedIntermediate: OpenactiveFeedIntermediateService;
|
|
106
|
+
public readonly openactiveFeedItem: OpenactiveFeedItemService;
|
|
107
|
+
public readonly orderItems: OrderItemsService;
|
|
108
|
+
public readonly orders: OrdersService;
|
|
109
|
+
public readonly orgCourseUtilisation: OrgCourseUtilisationService;
|
|
110
|
+
public readonly payments: PaymentsService;
|
|
111
|
+
public readonly permissions: PermissionsService;
|
|
112
|
+
public readonly places: PlacesService;
|
|
113
|
+
public readonly programmes: ProgrammesService;
|
|
114
|
+
public readonly publicBooking: PublicBookingService;
|
|
115
|
+
public readonly publicCourses: PublicCoursesService;
|
|
116
|
+
public readonly publicFacilities: PublicFacilitiesService;
|
|
117
|
+
public readonly publicHealthCheck: PublicHealthCheckService;
|
|
118
|
+
public readonly publicLeasing: PublicLeasingService;
|
|
119
|
+
public readonly publicOrders: PublicOrdersService;
|
|
120
|
+
public readonly publicOrderTokens: PublicOrderTokensService;
|
|
121
|
+
public readonly publicProgrammes: PublicProgrammesService;
|
|
122
|
+
public readonly publicScheduledSessions: PublicScheduledSessionsService;
|
|
123
|
+
public readonly publicSessions: PublicSessionsService;
|
|
124
|
+
public readonly publicSlots: PublicSlotsService;
|
|
125
|
+
public readonly publicStripeWebhook: PublicStripeWebhookService;
|
|
126
|
+
public readonly publicSurveyQuestions: PublicSurveyQuestionsService;
|
|
127
|
+
public readonly publicSurveys: PublicSurveysService;
|
|
128
|
+
public readonly publicTenants: PublicTenantsService;
|
|
129
|
+
public readonly publicVenues: PublicVenuesService;
|
|
130
|
+
public readonly publicWaitlistActivity: PublicWaitlistActivityService;
|
|
131
|
+
public readonly publicWaitlistOpportunity: PublicWaitlistOpportunityService;
|
|
132
|
+
public readonly recentOrderActivityReport: RecentOrderActivityReportService;
|
|
133
|
+
public readonly scheduledSessions: ScheduledSessionsService;
|
|
134
|
+
public readonly scheduledSessionsSchedules: ScheduledSessionsSchedulesService;
|
|
135
|
+
public readonly sessions: SessionsService;
|
|
136
|
+
public readonly slotOffers: SlotOffersService;
|
|
137
|
+
public readonly slots: SlotsService;
|
|
138
|
+
public readonly slotScheduleOffers: SlotScheduleOffersService;
|
|
139
|
+
public readonly slotSchedules: SlotSchedulesService;
|
|
140
|
+
public readonly stripeAccount: StripeAccountService;
|
|
141
|
+
public readonly surfaces: SurfacesService;
|
|
142
|
+
public readonly surveyAnswers: SurveyAnswersService;
|
|
143
|
+
public readonly surveyQuestions: SurveyQuestionsService;
|
|
144
|
+
public readonly surveyReportExtended: SurveyReportExtendedService;
|
|
145
|
+
public readonly surveys: SurveysService;
|
|
146
|
+
public readonly tenants: TenantsService;
|
|
147
|
+
public readonly tenantWebsiteSettings: TenantWebsiteSettingsService;
|
|
148
|
+
public readonly timezone: TimezoneService;
|
|
149
|
+
public readonly totalRevenueReport: TotalRevenueReportService;
|
|
150
|
+
public readonly users: UsersService;
|
|
151
|
+
public readonly venues: VenuesService;
|
|
152
|
+
public readonly venuesReport: VenuesReportService;
|
|
153
|
+
public readonly waitlistActivity: WaitlistActivityService;
|
|
154
|
+
public readonly waitlistOpportunity: WaitlistOpportunityService;
|
|
156
155
|
|
|
157
|
-
|
|
158
|
-
config?: Partial<OpenAPIConfig>,
|
|
159
|
-
HttpRequest: HttpRequestConstructor = AxiosHttpRequest
|
|
160
|
-
) {
|
|
161
|
-
this.request = new HttpRequest({
|
|
162
|
-
BASE: config?.BASE ?? '',
|
|
163
|
-
VERSION: config?.VERSION ?? '1',
|
|
164
|
-
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
165
|
-
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
166
|
-
TOKEN: config?.TOKEN,
|
|
167
|
-
USERNAME: config?.USERNAME,
|
|
168
|
-
PASSWORD: config?.PASSWORD,
|
|
169
|
-
HEADERS: config?.HEADERS,
|
|
170
|
-
ENCODE_PATH: config?.ENCODE_PATH,
|
|
171
|
-
});
|
|
156
|
+
public readonly request: BaseHttpRequest;
|
|
172
157
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
158
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = AxiosHttpRequest) {
|
|
159
|
+
this.request = new HttpRequest({
|
|
160
|
+
BASE: config?.BASE ?? '',
|
|
161
|
+
VERSION: config?.VERSION ?? '1',
|
|
162
|
+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
163
|
+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
164
|
+
TOKEN: config?.TOKEN,
|
|
165
|
+
USERNAME: config?.USERNAME,
|
|
166
|
+
PASSWORD: config?.PASSWORD,
|
|
167
|
+
HEADERS: config?.HEADERS,
|
|
168
|
+
ENCODE_PATH: config?.ENCODE_PATH,
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
this.activity = new ActivityService(this.request);
|
|
172
|
+
this.amenity = new AmenityService(this.request);
|
|
173
|
+
this.booking = new BookingService(this.request);
|
|
174
|
+
this.country = new CountryService(this.request);
|
|
175
|
+
this.courses = new CoursesService(this.request);
|
|
176
|
+
this.courseSessions = new CourseSessionsService(this.request);
|
|
177
|
+
this.courseSessionSchedules = new CourseSessionSchedulesService(this.request);
|
|
178
|
+
this.customers = new CustomersService(this.request);
|
|
179
|
+
this.emailReminderSchedules = new EmailReminderSchedulesService(this.request);
|
|
180
|
+
this.emailSettings = new EmailSettingsService(this.request);
|
|
181
|
+
this.facilities = new FacilitiesService(this.request);
|
|
182
|
+
this.facilityIndividuals = new FacilityIndividualsService(this.request);
|
|
183
|
+
this.filestack = new FilestackService(this.request);
|
|
184
|
+
this.genericActivity = new GenericActivityService(this.request);
|
|
185
|
+
this.geocode = new GeocodeService(this.request);
|
|
186
|
+
this.images = new ImagesService(this.request);
|
|
187
|
+
this.leasing = new LeasingService(this.request);
|
|
188
|
+
this.loqatePlaces = new LoqatePlacesService(this.request);
|
|
189
|
+
this.notificationQueue = new NotificationQueueService(this.request);
|
|
190
|
+
this.notificationSettings = new NotificationSettingsService(this.request);
|
|
191
|
+
this.offers = new OffersService(this.request);
|
|
192
|
+
this.openactiveFeedIntermediate = new OpenactiveFeedIntermediateService(this.request);
|
|
193
|
+
this.openactiveFeedItem = new OpenactiveFeedItemService(this.request);
|
|
194
|
+
this.orderItems = new OrderItemsService(this.request);
|
|
195
|
+
this.orders = new OrdersService(this.request);
|
|
196
|
+
this.orgCourseUtilisation = new OrgCourseUtilisationService(this.request);
|
|
197
|
+
this.payments = new PaymentsService(this.request);
|
|
198
|
+
this.permissions = new PermissionsService(this.request);
|
|
199
|
+
this.places = new PlacesService(this.request);
|
|
200
|
+
this.programmes = new ProgrammesService(this.request);
|
|
201
|
+
this.publicBooking = new PublicBookingService(this.request);
|
|
202
|
+
this.publicCourses = new PublicCoursesService(this.request);
|
|
203
|
+
this.publicFacilities = new PublicFacilitiesService(this.request);
|
|
204
|
+
this.publicHealthCheck = new PublicHealthCheckService(this.request);
|
|
205
|
+
this.publicLeasing = new PublicLeasingService(this.request);
|
|
206
|
+
this.publicOrders = new PublicOrdersService(this.request);
|
|
207
|
+
this.publicOrderTokens = new PublicOrderTokensService(this.request);
|
|
208
|
+
this.publicProgrammes = new PublicProgrammesService(this.request);
|
|
209
|
+
this.publicScheduledSessions = new PublicScheduledSessionsService(this.request);
|
|
210
|
+
this.publicSessions = new PublicSessionsService(this.request);
|
|
211
|
+
this.publicSlots = new PublicSlotsService(this.request);
|
|
212
|
+
this.publicStripeWebhook = new PublicStripeWebhookService(this.request);
|
|
213
|
+
this.publicSurveyQuestions = new PublicSurveyQuestionsService(this.request);
|
|
214
|
+
this.publicSurveys = new PublicSurveysService(this.request);
|
|
215
|
+
this.publicTenants = new PublicTenantsService(this.request);
|
|
216
|
+
this.publicVenues = new PublicVenuesService(this.request);
|
|
217
|
+
this.publicWaitlistActivity = new PublicWaitlistActivityService(this.request);
|
|
218
|
+
this.publicWaitlistOpportunity = new PublicWaitlistOpportunityService(this.request);
|
|
219
|
+
this.recentOrderActivityReport = new RecentOrderActivityReportService(this.request);
|
|
220
|
+
this.scheduledSessions = new ScheduledSessionsService(this.request);
|
|
221
|
+
this.scheduledSessionsSchedules = new ScheduledSessionsSchedulesService(this.request);
|
|
222
|
+
this.sessions = new SessionsService(this.request);
|
|
223
|
+
this.slotOffers = new SlotOffersService(this.request);
|
|
224
|
+
this.slots = new SlotsService(this.request);
|
|
225
|
+
this.slotScheduleOffers = new SlotScheduleOffersService(this.request);
|
|
226
|
+
this.slotSchedules = new SlotSchedulesService(this.request);
|
|
227
|
+
this.stripeAccount = new StripeAccountService(this.request);
|
|
228
|
+
this.surfaces = new SurfacesService(this.request);
|
|
229
|
+
this.surveyAnswers = new SurveyAnswersService(this.request);
|
|
230
|
+
this.surveyQuestions = new SurveyQuestionsService(this.request);
|
|
231
|
+
this.surveyReportExtended = new SurveyReportExtendedService(this.request);
|
|
232
|
+
this.surveys = new SurveysService(this.request);
|
|
233
|
+
this.tenants = new TenantsService(this.request);
|
|
234
|
+
this.tenantWebsiteSettings = new TenantWebsiteSettingsService(this.request);
|
|
235
|
+
this.timezone = new TimezoneService(this.request);
|
|
236
|
+
this.totalRevenueReport = new TotalRevenueReportService(this.request);
|
|
237
|
+
this.users = new UsersService(this.request);
|
|
238
|
+
this.venues = new VenuesService(this.request);
|
|
239
|
+
this.venuesReport = new VenuesReportService(this.request);
|
|
240
|
+
this.waitlistActivity = new WaitlistActivityService(this.request);
|
|
241
|
+
this.waitlistOpportunity = new WaitlistOpportunityService(this.request);
|
|
242
|
+
}
|
|
243
|
+
}
|
package/src/core/ApiError.ts
CHANGED
|
@@ -5,20 +5,20 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
|
5
5
|
import type { ApiResult } from './ApiResult';
|
|
6
6
|
|
|
7
7
|
export class ApiError extends Error {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
public readonly url: string;
|
|
9
|
+
public readonly status: number;
|
|
10
|
+
public readonly statusText: string;
|
|
11
|
+
public readonly body: any;
|
|
12
|
+
public readonly request: ApiRequestOptions;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
15
|
+
super(message);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
17
|
+
this.name = 'ApiError';
|
|
18
|
+
this.url = response.url;
|
|
19
|
+
this.status = response.status;
|
|
20
|
+
this.statusText = response.statusText;
|
|
21
|
+
this.body = response.body;
|
|
22
|
+
this.request = request;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export type ApiRequestOptions = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
5
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly path?: Record<string, any>;
|
|
8
|
+
readonly cookies?: Record<string, any>;
|
|
9
|
+
readonly headers?: Record<string, any>;
|
|
10
|
+
readonly query?: Record<string, any>;
|
|
11
|
+
readonly formData?: Record<string, any>;
|
|
12
|
+
readonly body?: any;
|
|
13
|
+
readonly mediaType?: string;
|
|
14
|
+
readonly responseHeader?: string;
|
|
15
|
+
readonly errors?: Record<number, string>;
|
|
16
|
+
};
|
package/src/core/ApiResult.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export type ApiResult = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
5
|
+
readonly url: string;
|
|
6
|
+
readonly ok: boolean;
|
|
7
|
+
readonly status: number;
|
|
8
|
+
readonly statusText: string;
|
|
9
|
+
readonly body: any;
|
|
10
|
+
};
|
|
@@ -8,17 +8,18 @@ import type { OpenAPIConfig } from './OpenAPI';
|
|
|
8
8
|
import { request as __request } from './request';
|
|
9
9
|
|
|
10
10
|
export class AxiosHttpRequest extends BaseHttpRequest {
|
|
11
|
-
constructor(config: OpenAPIConfig) {
|
|
12
|
-
super(config);
|
|
13
|
-
}
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
constructor(config: OpenAPIConfig) {
|
|
13
|
+
super(config);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Request method
|
|
18
|
+
* @param options The request options from the service
|
|
19
|
+
* @returns CancelablePromise<T>
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
public override request<T>(options: ApiRequestOptions): CancelablePromise<T> {
|
|
23
|
+
return __request(this.config, options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -6,7 +6,8 @@ import type { CancelablePromise } from './CancelablePromise';
|
|
|
6
6
|
import type { OpenAPIConfig } from './OpenAPI';
|
|
7
7
|
|
|
8
8
|
export abstract class BaseHttpRequest {
|
|
9
|
-
constructor(public readonly config: OpenAPIConfig) {}
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
constructor(public readonly config: OpenAPIConfig) {}
|
|
11
|
+
|
|
12
|
+
public abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
13
|
+
}
|