reach-api-sdk 1.0.0

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.
Files changed (238) hide show
  1. package/.eslintrc copy.json +13 -0
  2. package/.eslintrc.json +23 -0
  3. package/.prettierrc.json +7 -0
  4. package/README.md +2 -0
  5. package/dist/reach-sdk.d.ts +24450 -0
  6. package/dist/reach-sdk.js +20631 -0
  7. package/package.json +46 -0
  8. package/rollup.config.mjs +30 -0
  9. package/src/ApiClient.ts +239 -0
  10. package/src/core/ApiError.ts +24 -0
  11. package/src/core/ApiRequestOptions.ts +16 -0
  12. package/src/core/ApiResult.ts +10 -0
  13. package/src/core/AxiosHttpRequest.ts +24 -0
  14. package/src/core/BaseHttpRequest.ts +12 -0
  15. package/src/core/CancelablePromise.ts +129 -0
  16. package/src/core/OpenAPI.ts +31 -0
  17. package/src/core/request.ts +328 -0
  18. package/src/definition/swagger.yaml +58566 -0
  19. package/src/index.ts +230 -0
  20. package/src/models/Activity.ts +51 -0
  21. package/src/models/ActivityType.ts +12 -0
  22. package/src/models/AdvanceBooking.ts +12 -0
  23. package/src/models/Amenity.ts +21 -0
  24. package/src/models/AppUserRole.ts +13 -0
  25. package/src/models/ApplicationRole.ts +14 -0
  26. package/src/models/AutoCompleteResponseModel.ts +15 -0
  27. package/src/models/BookingStatus.ts +11 -0
  28. package/src/models/ContactOnConfirmation.ts +11 -0
  29. package/src/models/Country.ts +43 -0
  30. package/src/models/Course.ts +252 -0
  31. package/src/models/CourseBookingCutoff.ts +11 -0
  32. package/src/models/CoursePage.ts +13 -0
  33. package/src/models/CourseSearchSortBy.ts +11 -0
  34. package/src/models/CourseSession.ts +88 -0
  35. package/src/models/CourseSessionPage.ts +13 -0
  36. package/src/models/CourseSessionSchedule.ts +85 -0
  37. package/src/models/CourseSessionSchedulePage.ts +13 -0
  38. package/src/models/Customer.ts +88 -0
  39. package/src/models/CustomerCancellationOption.ts +12 -0
  40. package/src/models/CustomerPage.ts +13 -0
  41. package/src/models/CustomerType.ts +11 -0
  42. package/src/models/DayOfWeek.ts +13 -0
  43. package/src/models/EmailReminderSchedule.ts +49 -0
  44. package/src/models/EmailReminderSchedulePage.ts +13 -0
  45. package/src/models/EmailSetting.ts +61 -0
  46. package/src/models/EmailSettingPage.ts +13 -0
  47. package/src/models/Facility.ts +105 -0
  48. package/src/models/FacilityIndividual.ts +67 -0
  49. package/src/models/FacilityIndividualPage.ts +13 -0
  50. package/src/models/FacilityIndividualsType.ts +19 -0
  51. package/src/models/FacilityPage.ts +13 -0
  52. package/src/models/GenericActivity.ts +112 -0
  53. package/src/models/GenericActivityPage.ts +13 -0
  54. package/src/models/GeocodeResponseModel.ts +18 -0
  55. package/src/models/GooglePrediction.ts +32 -0
  56. package/src/models/HttpStatusCode.ts +67 -0
  57. package/src/models/IOpportunity.ts +55 -0
  58. package/src/models/Image.ts +78 -0
  59. package/src/models/ImagePage.ts +13 -0
  60. package/src/models/InviteStatus.ts +11 -0
  61. package/src/models/LoqateGeocode.ts +21 -0
  62. package/src/models/LoqatePlaceResult.ts +48 -0
  63. package/src/models/LoqatePrediction.ts +21 -0
  64. package/src/models/Northeast.ts +17 -0
  65. package/src/models/NotificationQueue.ts +50 -0
  66. package/src/models/NotificationQueuePage.ts +13 -0
  67. package/src/models/NotificationSetting.ts +89 -0
  68. package/src/models/NotificationSettingPage.ts +13 -0
  69. package/src/models/NotificationType.ts +22 -0
  70. package/src/models/Offer.ts +100 -0
  71. package/src/models/OfferPage.ts +13 -0
  72. package/src/models/OpenactiveFeedIntermediate.ts +50 -0
  73. package/src/models/OpenactiveFeedIntermediatePage.ts +13 -0
  74. package/src/models/OpenactiveFeedItem.ts +56 -0
  75. package/src/models/OpenactiveFeedItemPage.ts +13 -0
  76. package/src/models/OpportunityType.ts +12 -0
  77. package/src/models/Order.ts +212 -0
  78. package/src/models/OrderItem.ts +98 -0
  79. package/src/models/OrderItemPage.ts +13 -0
  80. package/src/models/OrderItemStatus.ts +16 -0
  81. package/src/models/OrderPage.ts +13 -0
  82. package/src/models/OrderSource.ts +11 -0
  83. package/src/models/OrderStage.ts +12 -0
  84. package/src/models/OrderToken.ts +41 -0
  85. package/src/models/OrderTokenPage.ts +13 -0
  86. package/src/models/OrgCourseUtilisation.ts +81 -0
  87. package/src/models/OrgCourseUtilisationPage.ts +13 -0
  88. package/src/models/OrganisationApplicationFeeHandling.ts +11 -0
  89. package/src/models/OrganisationAvailableChannel.ts +11 -0
  90. package/src/models/OrganisationRefundPolicy.ts +12 -0
  91. package/src/models/OrganisationTaxMode.ts +11 -0
  92. package/src/models/OrganisationType.ts +11 -0
  93. package/src/models/Payment.ts +65 -0
  94. package/src/models/PaymentMethod.ts +13 -0
  95. package/src/models/PaymentPage.ts +13 -0
  96. package/src/models/Permission.ts +77 -0
  97. package/src/models/PermissionPage.ts +13 -0
  98. package/src/models/PlaceDetailsResponseModel.ts +12 -0
  99. package/src/models/PlaceGeometry.ts +14 -0
  100. package/src/models/PlaceLocation.ts +17 -0
  101. package/src/models/PlaceResult.ts +20 -0
  102. package/src/models/PlaceViewport.ts +14 -0
  103. package/src/models/PlusCode.ts +17 -0
  104. package/src/models/Prepayment.ts +12 -0
  105. package/src/models/Programme.ts +71 -0
  106. package/src/models/ProgrammePage.ts +13 -0
  107. package/src/models/ReachEntity.ts +18 -0
  108. package/src/models/ReachError.ts +17 -0
  109. package/src/models/ReachOperation.ts +11 -0
  110. package/src/models/RecentOrderActivityReport.ts +81 -0
  111. package/src/models/RecentOrderActivityReportPage.ts +13 -0
  112. package/src/models/ScheduleStatus.ts +13 -0
  113. package/src/models/ScheduledSession.ts +139 -0
  114. package/src/models/ScheduledSessionPage.ts +13 -0
  115. package/src/models/ScheduledSessionSchedule.ts +85 -0
  116. package/src/models/ScheduledSessionSchedulePage.ts +13 -0
  117. package/src/models/ScheduledSessionSearchSortBy.ts +10 -0
  118. package/src/models/SearchSortOrderDirection.ts +11 -0
  119. package/src/models/Session.ts +191 -0
  120. package/src/models/SessionGender.ts +12 -0
  121. package/src/models/SessionPage.ts +13 -0
  122. package/src/models/SessionType.ts +12 -0
  123. package/src/models/Slot.ts +142 -0
  124. package/src/models/SlotAvailabilityStatus.ts +17 -0
  125. package/src/models/SlotOffer.ts +41 -0
  126. package/src/models/SlotOfferPage.ts +13 -0
  127. package/src/models/SlotPage.ts +13 -0
  128. package/src/models/SlotSchedule.ts +107 -0
  129. package/src/models/SlotScheduleOffer.ts +42 -0
  130. package/src/models/SlotScheduleOfferPage.ts +13 -0
  131. package/src/models/SlotSchedulePage.ts +13 -0
  132. package/src/models/SlotStatus.ts +18 -0
  133. package/src/models/Southwest.ts +17 -0
  134. package/src/models/StripeAccount.ts +69 -0
  135. package/src/models/StripeAccountPage.ts +13 -0
  136. package/src/models/StructuredFormatting.ts +17 -0
  137. package/src/models/Surface.ts +24 -0
  138. package/src/models/Survey.ts +51 -0
  139. package/src/models/SurveyAnswer.ts +58 -0
  140. package/src/models/SurveyAnswerPage.ts +13 -0
  141. package/src/models/SurveyPage.ts +13 -0
  142. package/src/models/SurveyQuestion.ts +69 -0
  143. package/src/models/SurveyQuestionOption.ts +45 -0
  144. package/src/models/SurveyQuestionPage.ts +13 -0
  145. package/src/models/SurveyQuestionType.ts +13 -0
  146. package/src/models/SurveyQuestionsTarget.ts +11 -0
  147. package/src/models/SurveySubmissionModel.ts +33 -0
  148. package/src/models/SurveyType.ts +11 -0
  149. package/src/models/Tax.ts +37 -0
  150. package/src/models/Tenant.ts +242 -0
  151. package/src/models/TenantPage.ts +13 -0
  152. package/src/models/TenantWebsiteSetting.ts +89 -0
  153. package/src/models/TenantWebsiteSettingPage.ts +13 -0
  154. package/src/models/Timezone.ts +21 -0
  155. package/src/models/TotalRevenueReport.ts +68 -0
  156. package/src/models/TotalRevenueReportPage.ts +13 -0
  157. package/src/models/User.ts +65 -0
  158. package/src/models/UserPage.ts +13 -0
  159. package/src/models/UserRole.ts +28 -0
  160. package/src/models/Venue.ts +187 -0
  161. package/src/models/VenueOpeningHours.ts +52 -0
  162. package/src/models/VenuePage.ts +13 -0
  163. package/src/models/VenuesReport.ts +81 -0
  164. package/src/models/VenuesReportPage.ts +13 -0
  165. package/src/models/WaitlistActivity.ts +58 -0
  166. package/src/models/WaitlistActivityPage.ts +13 -0
  167. package/src/models/WaitlistOpportunity.ts +68 -0
  168. package/src/models/WaitlistOpportunityPage.ts +13 -0
  169. package/src/services/ActivityService.ts +118 -0
  170. package/src/services/AmenityService.ts +118 -0
  171. package/src/services/BookingService.ts +1037 -0
  172. package/src/services/CountryService.ts +118 -0
  173. package/src/services/CourseSessionSchedulesService.ts +589 -0
  174. package/src/services/CourseSessionsService.ts +715 -0
  175. package/src/services/CoursesService.ts +930 -0
  176. package/src/services/CustomersService.ts +726 -0
  177. package/src/services/EmailReminderSchedulesService.ts +526 -0
  178. package/src/services/EmailSettingsService.ts +528 -0
  179. package/src/services/FacilitiesService.ts +634 -0
  180. package/src/services/FacilityIndividualsService.ts +526 -0
  181. package/src/services/GenericActivityService.ts +564 -0
  182. package/src/services/GeocodeService.ts +43 -0
  183. package/src/services/ImagesService.ts +661 -0
  184. package/src/services/LeasingService.ts +739 -0
  185. package/src/services/LoqatePlacesService.ts +76 -0
  186. package/src/services/NotificationQueueService.ts +508 -0
  187. package/src/services/NotificationSettingsService.ts +708 -0
  188. package/src/services/OffersService.ts +636 -0
  189. package/src/services/OpenactiveFeedIntermediateService.ts +490 -0
  190. package/src/services/OpenactiveFeedItemService.ts +493 -0
  191. package/src/services/OrderItemsService.ts +474 -0
  192. package/src/services/OrdersService.ts +862 -0
  193. package/src/services/OrgCourseUtilisationService.ts +762 -0
  194. package/src/services/PaymentsService.ts +474 -0
  195. package/src/services/PermissionsService.ts +456 -0
  196. package/src/services/PlacesService.ts +70 -0
  197. package/src/services/ProgrammesService.ts +528 -0
  198. package/src/services/PublicBookingService.ts +528 -0
  199. package/src/services/PublicCoursesService.ts +632 -0
  200. package/src/services/PublicFacilitiesService.ts +462 -0
  201. package/src/services/PublicHealthCheckService.ts +25 -0
  202. package/src/services/PublicLeasingService.ts +602 -0
  203. package/src/services/PublicOrderTokensService.ts +468 -0
  204. package/src/services/PublicOrdersService.ts +527 -0
  205. package/src/services/PublicProgrammesService.ts +426 -0
  206. package/src/services/PublicScheduledSessionsService.ts +621 -0
  207. package/src/services/PublicSessionsService.ts +697 -0
  208. package/src/services/PublicSlotsService.ts +810 -0
  209. package/src/services/PublicStripeWebhookService.ts +35 -0
  210. package/src/services/PublicSurveyQuestionsService.ts +424 -0
  211. package/src/services/PublicSurveysService.ts +378 -0
  212. package/src/services/PublicTenantsService.ts +427 -0
  213. package/src/services/PublicVenuesService.ts +522 -0
  214. package/src/services/PublicWaitlistActivityService.ts +442 -0
  215. package/src/services/PublicWaitlistOpportunityService.ts +430 -0
  216. package/src/services/RecentOrderActivityReportService.ts +546 -0
  217. package/src/services/ScheduledSessionsSchedulesService.ts +605 -0
  218. package/src/services/ScheduledSessionsService.ts +903 -0
  219. package/src/services/SessionsService.ts +670 -0
  220. package/src/services/SlotOffersService.ts +492 -0
  221. package/src/services/SlotScheduleOffersService.ts +492 -0
  222. package/src/services/SlotSchedulesService.ts +641 -0
  223. package/src/services/SlotsService.ts +842 -0
  224. package/src/services/StripeAccountService.ts +552 -0
  225. package/src/services/SurfacesService.ts +124 -0
  226. package/src/services/SurveyAnswersService.ts +726 -0
  227. package/src/services/SurveyQuestionsService.ts +474 -0
  228. package/src/services/SurveysService.ts +456 -0
  229. package/src/services/TenantWebsiteSettingsService.ts +456 -0
  230. package/src/services/TenantsService.ts +801 -0
  231. package/src/services/TimezoneService.ts +124 -0
  232. package/src/services/TotalRevenueReportService.ts +528 -0
  233. package/src/services/UsersService.ts +543 -0
  234. package/src/services/VenuesReportService.ts +666 -0
  235. package/src/services/VenuesService.ts +724 -0
  236. package/src/services/WaitlistActivityService.ts +546 -0
  237. package/src/services/WaitlistOpportunityService.ts +528 -0
  238. package/tsconfig.json +11 -0
@@ -0,0 +1,1037 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { Order } from '../models/Order';
5
+ import type { OrderPage } from '../models/OrderPage';
6
+ import type { OrderStage } from '../models/OrderStage';
7
+ import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
8
+
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
11
+
12
+ export class BookingService {
13
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
14
+
15
+ /**
16
+ * Creates a payment intent for an already booked order />.
17
+ * @returns string Success
18
+ * @throws ApiError
19
+ */
20
+ public createPaymentIntent({
21
+ orderId,
22
+ }: {
23
+ /**
24
+ * The order Id.
25
+ */
26
+ orderId: string;
27
+ }): CancelablePromise<string> {
28
+ return this.httpRequest.request({
29
+ method: 'GET',
30
+ url: '/api/bookings/{orderId}/create-payment-intent',
31
+ path: {
32
+ orderId: orderId,
33
+ },
34
+ errors: {
35
+ 400: `Bad Request`,
36
+ 500: `Server Error`,
37
+ },
38
+ });
39
+ }
40
+
41
+ /**
42
+ * Makes the given slot Id Active />.
43
+ * @returns Order Success
44
+ * @throws ApiError
45
+ */
46
+ public checkIn({
47
+ orderId,
48
+ orderItemId,
49
+ requestBody,
50
+ }: {
51
+ /**
52
+ * The order Id.
53
+ */
54
+ orderId: string;
55
+ /**
56
+ * The order item Id.
57
+ */
58
+ orderItemId: string;
59
+ /**
60
+ * The order.
61
+ */
62
+ requestBody?: Order;
63
+ }): CancelablePromise<Order> {
64
+ return this.httpRequest.request({
65
+ method: 'PATCH',
66
+ url: '/api/bookings/{orderId}/check-in/{orderItemId}',
67
+ path: {
68
+ orderId: orderId,
69
+ orderItemId: orderItemId,
70
+ },
71
+ body: requestBody,
72
+ mediaType: 'application/json',
73
+ errors: {
74
+ 400: `Bad Request`,
75
+ 500: `Server Error`,
76
+ },
77
+ });
78
+ }
79
+
80
+ /**
81
+ * Exports the orders list to a csv format.
82
+ * Endpoint has AllowAnonymous attr, however the jwt is validated in the method body (in support of authenticated file downloads.
83
+ * @returns any Success
84
+ * @throws ApiError
85
+ */
86
+ public exportToCsv({
87
+ wildcard,
88
+ accessCode,
89
+ venueId,
90
+ orderIds,
91
+ sessionId,
92
+ facilityId,
93
+ courseId,
94
+ orderStage,
95
+ isBookedOrPendingPayment,
96
+ orderStages,
97
+ orderDateGte,
98
+ orderDateLte,
99
+ pageNumber,
100
+ take,
101
+ limitListRequests,
102
+ tenantId,
103
+ modifiedById,
104
+ modifiedByIds,
105
+ dateCreatedGte,
106
+ dateCreatedLte,
107
+ isLive,
108
+ sortOrderDirection,
109
+ formData,
110
+ }: {
111
+ /**
112
+ * Gets or sets the wildcard for use in a query search.
113
+ */
114
+ wildcard?: string;
115
+ /**
116
+ * Gets or sets the access code for use in a query search.
117
+ */
118
+ accessCode?: string;
119
+ /**
120
+ * Gets or sets the venue Id for use in a query search.
121
+ */
122
+ venueId?: string;
123
+ /**
124
+ * Gets or sets the queryable order ids.
125
+ */
126
+ orderIds?: Array<string>;
127
+ /**
128
+ * Gets or sets the session Id for use in a query search.
129
+ */
130
+ sessionId?: string;
131
+ /**
132
+ * Gets or sets the facility Id for use in a query search.
133
+ */
134
+ facilityId?: string;
135
+ /**
136
+ * Gets or sets the course Id for use in a query search.
137
+ */
138
+ courseId?: string;
139
+ /**
140
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
141
+ */
142
+ orderStage?: OrderStage;
143
+ /**
144
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
145
+ */
146
+ isBookedOrPendingPayment?: boolean;
147
+ /**
148
+ * Gets or sets the queryable order stages.
149
+ */
150
+ orderStages?: Array<OrderStage>;
151
+ /**
152
+ * Gets or sets the queryable order date creted is greater than or equal to.
153
+ */
154
+ orderDateGte?: string;
155
+ /**
156
+ * Gets or sets the queryable order date created is less than or equal to.
157
+ */
158
+ orderDateLte?: string;
159
+ /**
160
+ * Gets or sets the page number for paged queries.
161
+ */
162
+ pageNumber?: number;
163
+ /**
164
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
165
+ */
166
+ take?: number;
167
+ /**
168
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
169
+ */
170
+ limitListRequests?: boolean;
171
+ /**
172
+ * Gets or sets the Tenant Id.
173
+ */
174
+ tenantId?: string;
175
+ /**
176
+ * Gets or sets the Modifed By Id.
177
+ */
178
+ modifiedById?: string;
179
+ /**
180
+ * Gets or sets the Modifed By Ids.
181
+ */
182
+ modifiedByIds?: Array<string>;
183
+ /**
184
+ * Gets or sets the Date Created greater than equal to.
185
+ */
186
+ dateCreatedGte?: string;
187
+ /**
188
+ * Gets or sets the Date Created less than equal to.
189
+ */
190
+ dateCreatedLte?: string;
191
+ /**
192
+ * Gets or sets the queryable only is live status.
193
+ */
194
+ isLive?: boolean;
195
+ /**
196
+ * Gets or sets the sort order direction.
197
+ */
198
+ sortOrderDirection?: SearchSortOrderDirection;
199
+ formData?: {
200
+ /**
201
+ * Gets or sets the auth token.
202
+ */
203
+ Token?: string;
204
+ };
205
+ }): CancelablePromise<any> {
206
+ return this.httpRequest.request({
207
+ method: 'POST',
208
+ url: '/api/bookings/export/csv',
209
+ query: {
210
+ Wildcard: wildcard,
211
+ AccessCode: accessCode,
212
+ VenueId: venueId,
213
+ OrderIds: orderIds,
214
+ SessionId: sessionId,
215
+ FacilityId: facilityId,
216
+ CourseId: courseId,
217
+ OrderStage: orderStage,
218
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
219
+ OrderStages: orderStages,
220
+ OrderDateGTE: orderDateGte,
221
+ OrderDateLTE: orderDateLte,
222
+ PageNumber: pageNumber,
223
+ Take: take,
224
+ LimitListRequests: limitListRequests,
225
+ TenantId: tenantId,
226
+ ModifiedById: modifiedById,
227
+ ModifiedByIds: modifiedByIds,
228
+ DateCreatedGTE: dateCreatedGte,
229
+ DateCreatedLTE: dateCreatedLte,
230
+ IsLive: isLive,
231
+ SortOrderDirection: sortOrderDirection,
232
+ },
233
+ formData: formData,
234
+ mediaType: 'multipart/form-data',
235
+ errors: {
236
+ 400: `Bad Request`,
237
+ 500: `Server Error`,
238
+ },
239
+ });
240
+ }
241
+
242
+ /**
243
+ * Exports the orders list to an xlsx format.
244
+ * Endpoint has AllowAnonymous attr, however the jwt is validated in the method body (in support of authenticated file downloads.
245
+ * @returns any Success
246
+ * @throws ApiError
247
+ */
248
+ public exportToXlsx({
249
+ wildcard,
250
+ accessCode,
251
+ venueId,
252
+ orderIds,
253
+ sessionId,
254
+ facilityId,
255
+ courseId,
256
+ orderStage,
257
+ isBookedOrPendingPayment,
258
+ orderStages,
259
+ orderDateGte,
260
+ orderDateLte,
261
+ pageNumber,
262
+ take,
263
+ limitListRequests,
264
+ tenantId,
265
+ modifiedById,
266
+ modifiedByIds,
267
+ dateCreatedGte,
268
+ dateCreatedLte,
269
+ isLive,
270
+ sortOrderDirection,
271
+ formData,
272
+ }: {
273
+ /**
274
+ * Gets or sets the wildcard for use in a query search.
275
+ */
276
+ wildcard?: string;
277
+ /**
278
+ * Gets or sets the access code for use in a query search.
279
+ */
280
+ accessCode?: string;
281
+ /**
282
+ * Gets or sets the venue Id for use in a query search.
283
+ */
284
+ venueId?: string;
285
+ /**
286
+ * Gets or sets the queryable order ids.
287
+ */
288
+ orderIds?: Array<string>;
289
+ /**
290
+ * Gets or sets the session Id for use in a query search.
291
+ */
292
+ sessionId?: string;
293
+ /**
294
+ * Gets or sets the facility Id for use in a query search.
295
+ */
296
+ facilityId?: string;
297
+ /**
298
+ * Gets or sets the course Id for use in a query search.
299
+ */
300
+ courseId?: string;
301
+ /**
302
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
303
+ */
304
+ orderStage?: OrderStage;
305
+ /**
306
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
307
+ */
308
+ isBookedOrPendingPayment?: boolean;
309
+ /**
310
+ * Gets or sets the queryable order stages.
311
+ */
312
+ orderStages?: Array<OrderStage>;
313
+ /**
314
+ * Gets or sets the queryable order date creted is greater than or equal to.
315
+ */
316
+ orderDateGte?: string;
317
+ /**
318
+ * Gets or sets the queryable order date created is less than or equal to.
319
+ */
320
+ orderDateLte?: string;
321
+ /**
322
+ * Gets or sets the page number for paged queries.
323
+ */
324
+ pageNumber?: number;
325
+ /**
326
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
327
+ */
328
+ take?: number;
329
+ /**
330
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
331
+ */
332
+ limitListRequests?: boolean;
333
+ /**
334
+ * Gets or sets the Tenant Id.
335
+ */
336
+ tenantId?: string;
337
+ /**
338
+ * Gets or sets the Modifed By Id.
339
+ */
340
+ modifiedById?: string;
341
+ /**
342
+ * Gets or sets the Modifed By Ids.
343
+ */
344
+ modifiedByIds?: Array<string>;
345
+ /**
346
+ * Gets or sets the Date Created greater than equal to.
347
+ */
348
+ dateCreatedGte?: string;
349
+ /**
350
+ * Gets or sets the Date Created less than equal to.
351
+ */
352
+ dateCreatedLte?: string;
353
+ /**
354
+ * Gets or sets the queryable only is live status.
355
+ */
356
+ isLive?: boolean;
357
+ /**
358
+ * Gets or sets the sort order direction.
359
+ */
360
+ sortOrderDirection?: SearchSortOrderDirection;
361
+ formData?: {
362
+ /**
363
+ * Gets or sets the auth token.
364
+ */
365
+ Token?: string;
366
+ };
367
+ }): CancelablePromise<any> {
368
+ return this.httpRequest.request({
369
+ method: 'POST',
370
+ url: '/api/bookings/export/xlsx',
371
+ query: {
372
+ Wildcard: wildcard,
373
+ AccessCode: accessCode,
374
+ VenueId: venueId,
375
+ OrderIds: orderIds,
376
+ SessionId: sessionId,
377
+ FacilityId: facilityId,
378
+ CourseId: courseId,
379
+ OrderStage: orderStage,
380
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
381
+ OrderStages: orderStages,
382
+ OrderDateGTE: orderDateGte,
383
+ OrderDateLTE: orderDateLte,
384
+ PageNumber: pageNumber,
385
+ Take: take,
386
+ LimitListRequests: limitListRequests,
387
+ TenantId: tenantId,
388
+ ModifiedById: modifiedById,
389
+ ModifiedByIds: modifiedByIds,
390
+ DateCreatedGTE: dateCreatedGte,
391
+ DateCreatedLTE: dateCreatedLte,
392
+ IsLive: isLive,
393
+ SortOrderDirection: sortOrderDirection,
394
+ },
395
+ formData: formData,
396
+ mediaType: 'multipart/form-data',
397
+ errors: {
398
+ 400: `Bad Request`,
399
+ 500: `Server Error`,
400
+ },
401
+ });
402
+ }
403
+
404
+ /**
405
+ * Gets the resource by its Id.
406
+ * @returns Order Success
407
+ * @throws ApiError
408
+ */
409
+ public getObject({
410
+ id,
411
+ }: {
412
+ /**
413
+ * The <typeparamref name="TObject" /> id.
414
+ */
415
+ id: string;
416
+ }): CancelablePromise<Order> {
417
+ return this.httpRequest.request({
418
+ method: 'GET',
419
+ url: '/api/bookings/{id}',
420
+ path: {
421
+ id: id,
422
+ },
423
+ errors: {
424
+ 400: `Bad Request`,
425
+ 500: `Server Error`,
426
+ },
427
+ });
428
+ }
429
+
430
+ /**
431
+ * Deletes the resource.
432
+ * @returns any Success
433
+ * @throws ApiError
434
+ */
435
+ public deleteById({
436
+ id,
437
+ }: {
438
+ /**
439
+ * The <typeparamref name="TObject" /> id.
440
+ */
441
+ id: string;
442
+ }): CancelablePromise<any> {
443
+ return this.httpRequest.request({
444
+ method: 'DELETE',
445
+ url: '/api/bookings/{id}',
446
+ path: {
447
+ id: id,
448
+ },
449
+ errors: {
450
+ 400: `Bad Request`,
451
+ 500: `Server Error`,
452
+ },
453
+ });
454
+ }
455
+
456
+ /**
457
+ * Returns a value indicating whether the resource exists in the database given the provided search params.
458
+ * @returns boolean Success
459
+ * @throws ApiError
460
+ */
461
+ public exists({
462
+ wildcard,
463
+ accessCode,
464
+ venueId,
465
+ orderIds,
466
+ sessionId,
467
+ facilityId,
468
+ courseId,
469
+ orderStage,
470
+ isBookedOrPendingPayment,
471
+ orderStages,
472
+ orderDateGte,
473
+ orderDateLte,
474
+ pageNumber,
475
+ take,
476
+ limitListRequests,
477
+ tenantId,
478
+ modifiedById,
479
+ modifiedByIds,
480
+ dateCreatedGte,
481
+ dateCreatedLte,
482
+ isLive,
483
+ sortOrderDirection,
484
+ }: {
485
+ /**
486
+ * Gets or sets the wildcard for use in a query search.
487
+ */
488
+ wildcard?: string;
489
+ /**
490
+ * Gets or sets the access code for use in a query search.
491
+ */
492
+ accessCode?: string;
493
+ /**
494
+ * Gets or sets the venue Id for use in a query search.
495
+ */
496
+ venueId?: string;
497
+ /**
498
+ * Gets or sets the queryable order ids.
499
+ */
500
+ orderIds?: Array<string>;
501
+ /**
502
+ * Gets or sets the session Id for use in a query search.
503
+ */
504
+ sessionId?: string;
505
+ /**
506
+ * Gets or sets the facility Id for use in a query search.
507
+ */
508
+ facilityId?: string;
509
+ /**
510
+ * Gets or sets the course Id for use in a query search.
511
+ */
512
+ courseId?: string;
513
+ /**
514
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
515
+ */
516
+ orderStage?: OrderStage;
517
+ /**
518
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
519
+ */
520
+ isBookedOrPendingPayment?: boolean;
521
+ /**
522
+ * Gets or sets the queryable order stages.
523
+ */
524
+ orderStages?: Array<OrderStage>;
525
+ /**
526
+ * Gets or sets the queryable order date creted is greater than or equal to.
527
+ */
528
+ orderDateGte?: string;
529
+ /**
530
+ * Gets or sets the queryable order date created is less than or equal to.
531
+ */
532
+ orderDateLte?: string;
533
+ /**
534
+ * Gets or sets the page number for paged queries.
535
+ */
536
+ pageNumber?: number;
537
+ /**
538
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
539
+ */
540
+ take?: number;
541
+ /**
542
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
543
+ */
544
+ limitListRequests?: boolean;
545
+ /**
546
+ * Gets or sets the Tenant Id.
547
+ */
548
+ tenantId?: string;
549
+ /**
550
+ * Gets or sets the Modifed By Id.
551
+ */
552
+ modifiedById?: string;
553
+ /**
554
+ * Gets or sets the Modifed By Ids.
555
+ */
556
+ modifiedByIds?: Array<string>;
557
+ /**
558
+ * Gets or sets the Date Created greater than equal to.
559
+ */
560
+ dateCreatedGte?: string;
561
+ /**
562
+ * Gets or sets the Date Created less than equal to.
563
+ */
564
+ dateCreatedLte?: string;
565
+ /**
566
+ * Gets or sets the queryable only is live status.
567
+ */
568
+ isLive?: boolean;
569
+ /**
570
+ * Gets or sets the sort order direction.
571
+ */
572
+ sortOrderDirection?: SearchSortOrderDirection;
573
+ }): CancelablePromise<boolean> {
574
+ return this.httpRequest.request({
575
+ method: 'GET',
576
+ url: '/api/bookings/exists',
577
+ query: {
578
+ Wildcard: wildcard,
579
+ AccessCode: accessCode,
580
+ VenueId: venueId,
581
+ OrderIds: orderIds,
582
+ SessionId: sessionId,
583
+ FacilityId: facilityId,
584
+ CourseId: courseId,
585
+ OrderStage: orderStage,
586
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
587
+ OrderStages: orderStages,
588
+ OrderDateGTE: orderDateGte,
589
+ OrderDateLTE: orderDateLte,
590
+ PageNumber: pageNumber,
591
+ Take: take,
592
+ LimitListRequests: limitListRequests,
593
+ TenantId: tenantId,
594
+ ModifiedById: modifiedById,
595
+ ModifiedByIds: modifiedByIds,
596
+ DateCreatedGTE: dateCreatedGte,
597
+ DateCreatedLTE: dateCreatedLte,
598
+ IsLive: isLive,
599
+ SortOrderDirection: sortOrderDirection,
600
+ },
601
+ errors: {
602
+ 400: `Bad Request`,
603
+ 500: `Server Error`,
604
+ },
605
+ });
606
+ }
607
+
608
+ /**
609
+ * Gets a list of resources.
610
+ * @returns OrderPage Success
611
+ * @throws ApiError
612
+ */
613
+ public getPage({
614
+ wildcard,
615
+ accessCode,
616
+ venueId,
617
+ orderIds,
618
+ sessionId,
619
+ facilityId,
620
+ courseId,
621
+ orderStage,
622
+ isBookedOrPendingPayment,
623
+ orderStages,
624
+ orderDateGte,
625
+ orderDateLte,
626
+ pageNumber,
627
+ take,
628
+ limitListRequests,
629
+ tenantId,
630
+ modifiedById,
631
+ modifiedByIds,
632
+ dateCreatedGte,
633
+ dateCreatedLte,
634
+ isLive,
635
+ sortOrderDirection,
636
+ }: {
637
+ /**
638
+ * Gets or sets the wildcard for use in a query search.
639
+ */
640
+ wildcard?: string;
641
+ /**
642
+ * Gets or sets the access code for use in a query search.
643
+ */
644
+ accessCode?: string;
645
+ /**
646
+ * Gets or sets the venue Id for use in a query search.
647
+ */
648
+ venueId?: string;
649
+ /**
650
+ * Gets or sets the queryable order ids.
651
+ */
652
+ orderIds?: Array<string>;
653
+ /**
654
+ * Gets or sets the session Id for use in a query search.
655
+ */
656
+ sessionId?: string;
657
+ /**
658
+ * Gets or sets the facility Id for use in a query search.
659
+ */
660
+ facilityId?: string;
661
+ /**
662
+ * Gets or sets the course Id for use in a query search.
663
+ */
664
+ courseId?: string;
665
+ /**
666
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
667
+ */
668
+ orderStage?: OrderStage;
669
+ /**
670
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
671
+ */
672
+ isBookedOrPendingPayment?: boolean;
673
+ /**
674
+ * Gets or sets the queryable order stages.
675
+ */
676
+ orderStages?: Array<OrderStage>;
677
+ /**
678
+ * Gets or sets the queryable order date creted is greater than or equal to.
679
+ */
680
+ orderDateGte?: string;
681
+ /**
682
+ * Gets or sets the queryable order date created is less than or equal to.
683
+ */
684
+ orderDateLte?: string;
685
+ /**
686
+ * Gets or sets the page number for paged queries.
687
+ */
688
+ pageNumber?: number;
689
+ /**
690
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
691
+ */
692
+ take?: number;
693
+ /**
694
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
695
+ */
696
+ limitListRequests?: boolean;
697
+ /**
698
+ * Gets or sets the Tenant Id.
699
+ */
700
+ tenantId?: string;
701
+ /**
702
+ * Gets or sets the Modifed By Id.
703
+ */
704
+ modifiedById?: string;
705
+ /**
706
+ * Gets or sets the Modifed By Ids.
707
+ */
708
+ modifiedByIds?: Array<string>;
709
+ /**
710
+ * Gets or sets the Date Created greater than equal to.
711
+ */
712
+ dateCreatedGte?: string;
713
+ /**
714
+ * Gets or sets the Date Created less than equal to.
715
+ */
716
+ dateCreatedLte?: string;
717
+ /**
718
+ * Gets or sets the queryable only is live status.
719
+ */
720
+ isLive?: boolean;
721
+ /**
722
+ * Gets or sets the sort order direction.
723
+ */
724
+ sortOrderDirection?: SearchSortOrderDirection;
725
+ }): CancelablePromise<OrderPage> {
726
+ return this.httpRequest.request({
727
+ method: 'GET',
728
+ url: '/api/bookings',
729
+ query: {
730
+ Wildcard: wildcard,
731
+ AccessCode: accessCode,
732
+ VenueId: venueId,
733
+ OrderIds: orderIds,
734
+ SessionId: sessionId,
735
+ FacilityId: facilityId,
736
+ CourseId: courseId,
737
+ OrderStage: orderStage,
738
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
739
+ OrderStages: orderStages,
740
+ OrderDateGTE: orderDateGte,
741
+ OrderDateLTE: orderDateLte,
742
+ PageNumber: pageNumber,
743
+ Take: take,
744
+ LimitListRequests: limitListRequests,
745
+ TenantId: tenantId,
746
+ ModifiedById: modifiedById,
747
+ ModifiedByIds: modifiedByIds,
748
+ DateCreatedGTE: dateCreatedGte,
749
+ DateCreatedLTE: dateCreatedLte,
750
+ IsLive: isLive,
751
+ SortOrderDirection: sortOrderDirection,
752
+ },
753
+ errors: {
754
+ 400: `Bad Request`,
755
+ 500: `Server Error`,
756
+ },
757
+ });
758
+ }
759
+
760
+ /**
761
+ * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
762
+ * @returns Order Success
763
+ * @throws ApiError
764
+ */
765
+ public post({
766
+ requestBody,
767
+ }: {
768
+ /**
769
+ * The <typeparamref name="TObject" /> model.
770
+ */
771
+ requestBody?: Order;
772
+ }): CancelablePromise<Order> {
773
+ return this.httpRequest.request({
774
+ method: 'POST',
775
+ url: '/api/bookings',
776
+ body: requestBody,
777
+ mediaType: 'application/json',
778
+ errors: {
779
+ 400: `Bad Request`,
780
+ 500: `Server Error`,
781
+ },
782
+ });
783
+ }
784
+
785
+ /**
786
+ * Deletes the resource.
787
+ * @returns any Success
788
+ * @throws ApiError
789
+ */
790
+ public deleteByObject({
791
+ requestBody,
792
+ }: {
793
+ /**
794
+ * The <typeparamref name="TObject" /> model.
795
+ */
796
+ requestBody?: Order;
797
+ }): CancelablePromise<any> {
798
+ return this.httpRequest.request({
799
+ method: 'DELETE',
800
+ url: '/api/bookings',
801
+ body: requestBody,
802
+ mediaType: 'application/json',
803
+ errors: {
804
+ 400: `Bad Request`,
805
+ 500: `Server Error`,
806
+ },
807
+ });
808
+ }
809
+
810
+ /**
811
+ * Gets a list of resources.
812
+ * @returns Order Success
813
+ * @throws ApiError
814
+ */
815
+ public getListIdName({
816
+ wildcard,
817
+ accessCode,
818
+ venueId,
819
+ orderIds,
820
+ sessionId,
821
+ facilityId,
822
+ courseId,
823
+ orderStage,
824
+ isBookedOrPendingPayment,
825
+ orderStages,
826
+ orderDateGte,
827
+ orderDateLte,
828
+ pageNumber,
829
+ take,
830
+ limitListRequests,
831
+ tenantId,
832
+ modifiedById,
833
+ modifiedByIds,
834
+ dateCreatedGte,
835
+ dateCreatedLte,
836
+ isLive,
837
+ sortOrderDirection,
838
+ }: {
839
+ /**
840
+ * Gets or sets the wildcard for use in a query search.
841
+ */
842
+ wildcard?: string;
843
+ /**
844
+ * Gets or sets the access code for use in a query search.
845
+ */
846
+ accessCode?: string;
847
+ /**
848
+ * Gets or sets the venue Id for use in a query search.
849
+ */
850
+ venueId?: string;
851
+ /**
852
+ * Gets or sets the queryable order ids.
853
+ */
854
+ orderIds?: Array<string>;
855
+ /**
856
+ * Gets or sets the session Id for use in a query search.
857
+ */
858
+ sessionId?: string;
859
+ /**
860
+ * Gets or sets the facility Id for use in a query search.
861
+ */
862
+ facilityId?: string;
863
+ /**
864
+ * Gets or sets the course Id for use in a query search.
865
+ */
866
+ courseId?: string;
867
+ /**
868
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
869
+ */
870
+ orderStage?: OrderStage;
871
+ /**
872
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
873
+ */
874
+ isBookedOrPendingPayment?: boolean;
875
+ /**
876
+ * Gets or sets the queryable order stages.
877
+ */
878
+ orderStages?: Array<OrderStage>;
879
+ /**
880
+ * Gets or sets the queryable order date creted is greater than or equal to.
881
+ */
882
+ orderDateGte?: string;
883
+ /**
884
+ * Gets or sets the queryable order date created is less than or equal to.
885
+ */
886
+ orderDateLte?: string;
887
+ /**
888
+ * Gets or sets the page number for paged queries.
889
+ */
890
+ pageNumber?: number;
891
+ /**
892
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
893
+ */
894
+ take?: number;
895
+ /**
896
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
897
+ */
898
+ limitListRequests?: boolean;
899
+ /**
900
+ * Gets or sets the Tenant Id.
901
+ */
902
+ tenantId?: string;
903
+ /**
904
+ * Gets or sets the Modifed By Id.
905
+ */
906
+ modifiedById?: string;
907
+ /**
908
+ * Gets or sets the Modifed By Ids.
909
+ */
910
+ modifiedByIds?: Array<string>;
911
+ /**
912
+ * Gets or sets the Date Created greater than equal to.
913
+ */
914
+ dateCreatedGte?: string;
915
+ /**
916
+ * Gets or sets the Date Created less than equal to.
917
+ */
918
+ dateCreatedLte?: string;
919
+ /**
920
+ * Gets or sets the queryable only is live status.
921
+ */
922
+ isLive?: boolean;
923
+ /**
924
+ * Gets or sets the sort order direction.
925
+ */
926
+ sortOrderDirection?: SearchSortOrderDirection;
927
+ }): CancelablePromise<Array<Order>> {
928
+ return this.httpRequest.request({
929
+ method: 'GET',
930
+ url: '/api/bookings/id-name',
931
+ query: {
932
+ Wildcard: wildcard,
933
+ AccessCode: accessCode,
934
+ VenueId: venueId,
935
+ OrderIds: orderIds,
936
+ SessionId: sessionId,
937
+ FacilityId: facilityId,
938
+ CourseId: courseId,
939
+ OrderStage: orderStage,
940
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
941
+ OrderStages: orderStages,
942
+ OrderDateGTE: orderDateGte,
943
+ OrderDateLTE: orderDateLte,
944
+ PageNumber: pageNumber,
945
+ Take: take,
946
+ LimitListRequests: limitListRequests,
947
+ TenantId: tenantId,
948
+ ModifiedById: modifiedById,
949
+ ModifiedByIds: modifiedByIds,
950
+ DateCreatedGTE: dateCreatedGte,
951
+ DateCreatedLTE: dateCreatedLte,
952
+ IsLive: isLive,
953
+ SortOrderDirection: sortOrderDirection,
954
+ },
955
+ errors: {
956
+ 400: `Bad Request`,
957
+ 500: `Server Error`,
958
+ },
959
+ });
960
+ }
961
+
962
+ /**
963
+ * Inserts a list of resources.
964
+ * @returns Order Success
965
+ * @throws ApiError
966
+ */
967
+ public postList({
968
+ requestBody,
969
+ }: {
970
+ /**
971
+ * The list of <typeparamref name="TObject" />.
972
+ */
973
+ requestBody?: Array<Order>;
974
+ }): CancelablePromise<Array<Order>> {
975
+ return this.httpRequest.request({
976
+ method: 'POST',
977
+ url: '/api/bookings/list',
978
+ body: requestBody,
979
+ mediaType: 'application/json',
980
+ errors: {
981
+ 400: `Bad Request`,
982
+ 500: `Server Error`,
983
+ },
984
+ });
985
+ }
986
+
987
+ /**
988
+ * Patches the resource.
989
+ * @returns Order Success
990
+ * @throws ApiError
991
+ */
992
+ public patchWithReferences({
993
+ requestBody,
994
+ }: {
995
+ /**
996
+ * The <typeparamref name="TObject" /> model.
997
+ */
998
+ requestBody?: Order;
999
+ }): CancelablePromise<Order> {
1000
+ return this.httpRequest.request({
1001
+ method: 'PATCH',
1002
+ url: '/api/bookings/with-references',
1003
+ body: requestBody,
1004
+ mediaType: 'application/json',
1005
+ errors: {
1006
+ 400: `Bad Request`,
1007
+ 500: `Server Error`,
1008
+ },
1009
+ });
1010
+ }
1011
+
1012
+ /**
1013
+ * Returns a value indicating whether the resource is deletable.
1014
+ * @returns boolean Success
1015
+ * @throws ApiError
1016
+ */
1017
+ public canDelete({
1018
+ id,
1019
+ }: {
1020
+ /**
1021
+ * The <typeparamref name="TObject" /> id.
1022
+ */
1023
+ id: string;
1024
+ }): CancelablePromise<boolean> {
1025
+ return this.httpRequest.request({
1026
+ method: 'GET',
1027
+ url: '/api/bookings/{id}/deletable',
1028
+ path: {
1029
+ id: id,
1030
+ },
1031
+ errors: {
1032
+ 400: `Bad Request`,
1033
+ 500: `Server Error`,
1034
+ },
1035
+ });
1036
+ }
1037
+ }