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,77 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * Represents permissions within the Reach application.
7
+ */
8
+ export type Permission = {
9
+ /**
10
+ * Gets or sets the entities Id.
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Gets or sets the tenant Id.
15
+ */
16
+ tenantId?: string;
17
+ /**
18
+ * Gets or sets the created date of this entity.
19
+ */
20
+ dateCreated?: string;
21
+ /**
22
+ * Gets or sets the last modified date of this entity.
23
+ */
24
+ dateModified?: string;
25
+ /**
26
+ * Gets or sets the modified by Id.
27
+ */
28
+ modifiedById?: string | null;
29
+ /**
30
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
31
+ */
32
+ isLive?: boolean;
33
+ /**
34
+ * Gets or sets a value indicating whether a venue manager has add activities permissions.
35
+ */
36
+ venueManagerAddActivities?: boolean;
37
+ /**
38
+ * Gets or sets a value indicating whether a venue manager has add templates permissions.
39
+ */
40
+ venueManagerAddTemplates?: boolean;
41
+ /**
42
+ * Gets or sets a value indicating whether a venue manager has add venues permissions.
43
+ */
44
+ venueManagerAddVenues?: boolean;
45
+ /**
46
+ * Gets or sets a value indicating whether a venue manager has edit activities permissions.
47
+ */
48
+ venueManagerEditActivities?: boolean;
49
+ /**
50
+ * Gets or sets a value indicating whether a venue manager has edit prices permissions.
51
+ */
52
+ venueManagerEditPrices?: boolean;
53
+ /**
54
+ * Gets or sets a value indicating whether a venue manager has edit schedules permissions.
55
+ */
56
+ venueManagerEditSchedules?: boolean;
57
+ /**
58
+ * Gets or sets a value indicating whether a venue manager has edit sales tax permissions.
59
+ */
60
+ venueManagerEditSalesTax?: boolean;
61
+ /**
62
+ * Gets or sets a value indicating whether a venue manager has edit venues permissions.
63
+ */
64
+ venueManagerEditVenue?: boolean;
65
+ /**
66
+ * Gets or sets a value indicating whether a venue manager has edit orders permissions.
67
+ */
68
+ venueManagerEditOrders?: boolean;
69
+ /**
70
+ * Gets or sets a value indicating whether a venue manager has view advanced settings permissions.
71
+ */
72
+ venueManagerViewAdvancedSettings?: boolean;
73
+ /**
74
+ * Gets or sets a value indicating whether a venue manager has view advanced settings permissions.
75
+ */
76
+ venueManagerEditAdvancedSettings?: boolean;
77
+ };
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Permission } from './Permission';
6
+
7
+ export type PermissionPage = {
8
+ readonly pageNumber?: number;
9
+ readonly totalPages?: number;
10
+ readonly itemsPerPage?: number;
11
+ readonly totalItems?: number;
12
+ readonly items?: Array<Permission> | null;
13
+ };
@@ -0,0 +1,12 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { PlaceResult } from './PlaceResult';
6
+
7
+ /**
8
+ * PlaceDetailsResponseModel.
9
+ */
10
+ export type PlaceDetailsResponseModel = {
11
+ result?: PlaceResult;
12
+ };
@@ -0,0 +1,14 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { PlaceLocation } from './PlaceLocation';
6
+ import type { PlaceViewport } from './PlaceViewport';
7
+
8
+ /**
9
+ * PlaceGeometry.
10
+ */
11
+ export type PlaceGeometry = {
12
+ location?: PlaceLocation;
13
+ viewport?: PlaceViewport;
14
+ };
@@ -0,0 +1,17 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * PlaceLocation.
7
+ */
8
+ export type PlaceLocation = {
9
+ /**
10
+ * Gets or sets lat.
11
+ */
12
+ lat?: number;
13
+ /**
14
+ * Gets or sets lng.
15
+ */
16
+ lng?: number;
17
+ };
@@ -0,0 +1,20 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { PlaceGeometry } from './PlaceGeometry';
6
+
7
+ /**
8
+ * PlaceResult.
9
+ */
10
+ export type PlaceResult = {
11
+ geometry?: PlaceGeometry;
12
+ /**
13
+ * Gets or sets formatted_address.
14
+ */
15
+ formatted_address?: string | null;
16
+ /**
17
+ * Gets or sets place_id.
18
+ */
19
+ place_id?: string | null;
20
+ };
@@ -0,0 +1,14 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Northeast } from './Northeast';
6
+ import type { Southwest } from './Southwest';
7
+
8
+ /**
9
+ * PlaceViewport.
10
+ */
11
+ export type PlaceViewport = {
12
+ northeast?: Northeast;
13
+ southwest?: Southwest;
14
+ };
@@ -0,0 +1,17 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * PlusCode.
7
+ */
8
+ export type PlusCode = {
9
+ /**
10
+ * Gets or sets plus_code.
11
+ */
12
+ compound_code?: string | null;
13
+ /**
14
+ * Gets description.
15
+ */
16
+ readonly description?: string | null;
17
+ };
@@ -0,0 +1,12 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * Pre payment options.
7
+ */
8
+ export enum Prepayment {
9
+ REQUIRED = 'Required',
10
+ OPTIONAL = 'Optional',
11
+ UNAVAILABLE = 'Unavailable',
12
+ }
@@ -0,0 +1,71 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Course } from './Course';
6
+ import type { Image } from './Image';
7
+ import type { Session } from './Session';
8
+ import type { Tenant } from './Tenant';
9
+
10
+ /**
11
+ * Represents a Programme within the Reach application.
12
+ */
13
+ export type Programme = {
14
+ /**
15
+ * Gets or sets the entities Id.
16
+ */
17
+ id?: string;
18
+ /**
19
+ * Gets or sets the tenant Id.
20
+ */
21
+ tenantId?: string;
22
+ /**
23
+ * Gets or sets the created date of this entity.
24
+ */
25
+ dateCreated?: string;
26
+ /**
27
+ * Gets or sets the last modified date of this entity.
28
+ */
29
+ dateModified?: string;
30
+ /**
31
+ * Gets or sets the modified by Id.
32
+ */
33
+ modifiedById?: string | null;
34
+ /**
35
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
36
+ */
37
+ isLive?: boolean;
38
+ /**
39
+ * Gets or sets the programmes name.
40
+ */
41
+ name: string;
42
+ /**
43
+ * Gets or sets the programmes url slug.
44
+ */
45
+ slug?: string | null;
46
+ /**
47
+ * Gets or sets the programmes description.
48
+ */
49
+ description: string;
50
+ /**
51
+ * Gets or sets a value indicating whether the programme is active.
52
+ */
53
+ active?: boolean | null;
54
+ /**
55
+ * Gets or sets the programmes sort order with 0 as base.
56
+ */
57
+ sortOrder?: number | null;
58
+ tenant?: Tenant;
59
+ /**
60
+ * Gets or sets the programmes referenced sessions.
61
+ */
62
+ sessions?: Array<Session> | null;
63
+ /**
64
+ * Gets or sets the programmes referenced courses.
65
+ */
66
+ courses?: Array<Course> | null;
67
+ /**
68
+ * Gets or sets the programmes referenced images.
69
+ */
70
+ images?: Array<Image> | null;
71
+ };
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Programme } from './Programme';
6
+
7
+ export type ProgrammePage = {
8
+ readonly pageNumber?: number;
9
+ readonly totalPages?: number;
10
+ readonly itemsPerPage?: number;
11
+ readonly totalItems?: number;
12
+ readonly items?: Array<Programme> | null;
13
+ };
@@ -0,0 +1,18 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * The Reach Entity.
7
+ */
8
+ export enum ReachEntity {
9
+ TENANT = 'Tenant',
10
+ VENUE = 'Venue',
11
+ SLOT = 'Slot',
12
+ SLOT_SCHEDULE = 'SlotSchedule',
13
+ FACILITY = 'Facility',
14
+ FACILITY_INDIVIDUAL = 'FacilityIndividual',
15
+ SCHEDULED_SESSION = 'ScheduledSession',
16
+ SESSION = 'Session',
17
+ COURSE = 'Course',
18
+ }
@@ -0,0 +1,17 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { HttpStatusCode } from './HttpStatusCode';
6
+
7
+ export type ReachError = {
8
+ readonly correlationId?: string;
9
+ type?: string | null;
10
+ readonly title?: string | null;
11
+ detail?: string | null;
12
+ clientDetail?: string | null;
13
+ detailCode?: string | null;
14
+ status?: HttpStatusCode;
15
+ errors?: any;
16
+ readonly clientError?: any;
17
+ };
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * The Reach Operation performed on an entity.
7
+ */
8
+ export enum ReachOperation {
9
+ UPDATED = 'Updated',
10
+ DELETED = 'Deleted',
11
+ }
@@ -0,0 +1,81 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * Represents the recent order activity report model.
7
+ */
8
+ export type RecentOrderActivityReport = {
9
+ /**
10
+ * Gets or sets the entities Id.
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Gets or sets the tenant Id.
15
+ */
16
+ tenantId?: string;
17
+ /**
18
+ * Gets or sets the created date of this entity.
19
+ */
20
+ dateCreated?: string;
21
+ /**
22
+ * Gets or sets the last modified date of this entity.
23
+ */
24
+ dateModified?: string;
25
+ /**
26
+ * Gets or sets the modified by Id.
27
+ */
28
+ modifiedById?: string | null;
29
+ /**
30
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
31
+ */
32
+ isLive?: boolean;
33
+ /**
34
+ * Gets or sets the venue name.
35
+ */
36
+ venue?: string | null;
37
+ /**
38
+ * Gets or sets the activity name.
39
+ */
40
+ activity?: string | null;
41
+ /**
42
+ * Gets or sets the programme name.
43
+ */
44
+ programme?: string | null;
45
+ /**
46
+ * Gets or sets the remaining inventory value.
47
+ */
48
+ remainingInventory?: string | null;
49
+ /**
50
+ * Gets or sets the total revenue value.
51
+ */
52
+ totalRevenue?: string | null;
53
+ /**
54
+ * Gets or sets the total orders value.
55
+ */
56
+ totalOrders?: string | null;
57
+ /**
58
+ * Gets or sets the revenu last 24 hours value.
59
+ */
60
+ revenueLast24Hours?: string | null;
61
+ /**
62
+ * Gets or sets the orders last 24 hours value.
63
+ */
64
+ ordersLast24Hours?: string | null;
65
+ /**
66
+ * Gets or sets the revenue last week value.
67
+ */
68
+ revenueLastWeek?: string | null;
69
+ /**
70
+ * Gets or sets the orders last week value.
71
+ */
72
+ ordersLastWeek?: string | null;
73
+ /**
74
+ * Gets or sets the revenue last month value.
75
+ */
76
+ revenueLastMonth?: string | null;
77
+ /**
78
+ * Gets or sets the orders last month value.
79
+ */
80
+ ordersLastMonth?: string | null;
81
+ };
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { RecentOrderActivityReport } from './RecentOrderActivityReport';
6
+
7
+ export type RecentOrderActivityReportPage = {
8
+ readonly pageNumber?: number;
9
+ readonly totalPages?: number;
10
+ readonly itemsPerPage?: number;
11
+ readonly totalItems?: number;
12
+ readonly items?: Array<RecentOrderActivityReport> | null;
13
+ };
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /**
6
+ * The SlotSchedule active status.
7
+ */
8
+ export enum ScheduleStatus {
9
+ PENDING = 'Pending',
10
+ ACTIVE = 'Active',
11
+ OFFLINE = 'Offline',
12
+ EVALUATION_COMPLETE = 'EvaluationComplete',
13
+ }
@@ -0,0 +1,139 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { BookingStatus } from './BookingStatus';
6
+ import type { Offer } from './Offer';
7
+ import type { OrderItem } from './OrderItem';
8
+ import type { ScheduledSessionSchedule } from './ScheduledSessionSchedule';
9
+ import type { Session } from './Session';
10
+ import type { SlotAvailabilityStatus } from './SlotAvailabilityStatus';
11
+ import type { SlotStatus } from './SlotStatus';
12
+ import type { WaitlistOpportunity } from './WaitlistOpportunity';
13
+
14
+ /**
15
+ * Represents an available lease or booked Slot within the Reach application.
16
+ */
17
+ export type ScheduledSession = {
18
+ /**
19
+ * Gets or sets the entities Id.
20
+ */
21
+ id?: string;
22
+ /**
23
+ * Gets or sets the tenant Id.
24
+ */
25
+ tenantId?: string;
26
+ /**
27
+ * Gets or sets the created date of this entity.
28
+ */
29
+ dateCreated?: string;
30
+ /**
31
+ * Gets or sets the last modified date of this entity.
32
+ */
33
+ dateModified?: string;
34
+ /**
35
+ * Gets or sets the modified by Id.
36
+ */
37
+ modifiedById?: string | null;
38
+ /**
39
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
40
+ */
41
+ isLive?: boolean;
42
+ /**
43
+ * Gets a value indicating whether the slot is leased waiting confirmation to be made bookable by the Reach tenant. This status does not refer to a booking lease!.
44
+ */
45
+ readonly isLeased?: boolean;
46
+ /**
47
+ * Gets a value indicating whether the slot has availability also considering leases.
48
+ */
49
+ readonly hasAvailability?: boolean;
50
+ /**
51
+ * Gets the slots remaining uses when also considering Order leases. This is computed at runtime since order leases expire silently, that is, there is no process that recalculates remaining uses when an Order lease expiry is reached.
52
+ */
53
+ readonly actualRemainingUses?: number | null;
54
+ /**
55
+ * Gets a value indicating whether the scheduled session is collidable.
56
+ */
57
+ readonly isCollidable?: boolean;
58
+ /**
59
+ * Gets a value indicating whether the scheduled session is expired due to passing the end date time.
60
+ */
61
+ readonly isExpired?: boolean;
62
+ /**
63
+ * Gets a value indicating whether the scheduled session is booked.
64
+ */
65
+ readonly isCreatedBySchedule?: boolean;
66
+ /**
67
+ * Gets a value indicating whether the scheduled session is deletable.
68
+ */
69
+ readonly isDeletable?: boolean;
70
+ availabilityStatus?: SlotAvailabilityStatus;
71
+ /**
72
+ * Gets or sets the session id.
73
+ */
74
+ sessionId: string;
75
+ status?: SlotStatus;
76
+ /**
77
+ * Gets or sets the scheduled session creation lease expiry. Preventing other scheduled sessions from overwriting until the lease expires.
78
+ */
79
+ leaseExpiry?: string | null;
80
+ bookingStatus?: BookingStatus;
81
+ /**
82
+ * Gets or sets the scheduled session on confirmed conflicted description.
83
+ */
84
+ conflictedDescription?: string | null;
85
+ /**
86
+ * Gets or sets the scheduled session schedule id.
87
+ */
88
+ scheduledSessionScheduleId?: string | null;
89
+ /**
90
+ * Gets or sets the scheduled session start date time in UTC as is the applications required convention. (this datetime must always be UTC).
91
+ */
92
+ startDateTime: string;
93
+ /**
94
+ * Gets or sets the scheduled session end date time in UTC as is the applications required convention. (this datetime must always be UTC).
95
+ */
96
+ endDateTime?: string | null;
97
+ /**
98
+ * Gets the scheduled sessions period label.
99
+ */
100
+ readonly timePeriodLabel?: string | null;
101
+ /**
102
+ * Gets the venue time zone (currently is the tenant timezone).
103
+ */
104
+ readonly venueTimeZone?: string | null;
105
+ /**
106
+ * Gets or sets the scheduled session duration.
107
+ */
108
+ durationMinutes: number;
109
+ /**
110
+ * Gets or sets the scheduled session remaining uses. Defaults to 1.
111
+ */
112
+ remainingUses?: number | null;
113
+ /**
114
+ * Gets or sets the scheduled sessions capacity.
115
+ */
116
+ capacity?: number | null;
117
+ /**
118
+ * Gets or sets a value indicating whether the post activity completion email has been sent.
119
+ */
120
+ postCompletionEmailSent?: boolean;
121
+ /**
122
+ * Gets a value indicating whether this scheduled session has unlimited capacity.
123
+ */
124
+ readonly capacityUnlimited?: boolean | null;
125
+ session?: Session;
126
+ scheduledSessionSchedule?: ScheduledSessionSchedule;
127
+ /**
128
+ * Gets or sets the order items.
129
+ */
130
+ orderItems?: Array<OrderItem> | null;
131
+ /**
132
+ * Gets or sets the customers on the waitlist for the opportunity.
133
+ */
134
+ opportunityWaitlist?: Array<WaitlistOpportunity> | null;
135
+ /**
136
+ * Gets or sets the related offers created for the related session.
137
+ */
138
+ availableOffers?: Array<Offer> | null;
139
+ };
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { ScheduledSession } from './ScheduledSession';
6
+
7
+ export type ScheduledSessionPage = {
8
+ readonly pageNumber?: number;
9
+ readonly totalPages?: number;
10
+ readonly itemsPerPage?: number;
11
+ readonly totalItems?: number;
12
+ readonly items?: Array<ScheduledSession> | null;
13
+ };
@@ -0,0 +1,85 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { ScheduledSession } from './ScheduledSession';
6
+ import type { ScheduleStatus } from './ScheduleStatus';
7
+ import type { Session } from './Session';
8
+ import type { Tenant } from './Tenant';
9
+
10
+ /**
11
+ * Represents an organisation within the Reach application.
12
+ */
13
+ export type ScheduledSessionSchedule = {
14
+ /**
15
+ * Gets or sets the entities Id.
16
+ */
17
+ id?: string;
18
+ /**
19
+ * Gets or sets the tenant Id.
20
+ */
21
+ tenantId?: string;
22
+ /**
23
+ * Gets or sets the created date of this entity.
24
+ */
25
+ dateCreated?: string;
26
+ /**
27
+ * Gets or sets the last modified date of this entity.
28
+ */
29
+ dateModified?: string;
30
+ /**
31
+ * Gets or sets the modified by Id.
32
+ */
33
+ modifiedById?: string | null;
34
+ /**
35
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
36
+ */
37
+ isLive?: boolean;
38
+ /**
39
+ * Gets or sets the facilityid.
40
+ */
41
+ sessionId: string;
42
+ /**
43
+ * Gets or sets the schedules last run date time.
44
+ */
45
+ lastRunDateTime?: string | null;
46
+ /**
47
+ * Gets or sets the schedules first occurrence start date time.
48
+ */
49
+ startDateTime: string;
50
+ /**
51
+ * Gets or sets the schedules first occurrence end date time.
52
+ */
53
+ endDateTime?: string | null;
54
+ /**
55
+ * Gets or sets the schedules first occurrence duration.
56
+ */
57
+ durationMinutes: number;
58
+ status?: ScheduleStatus;
59
+ /**
60
+ * Gets or sets the slots hex identifier.
61
+ */
62
+ hexIdentifier?: string | null;
63
+ /**
64
+ * Gets or sets the schedules evaluated rule string.
65
+ */
66
+ rRuleString: string;
67
+ /**
68
+ * Gets or sets the schedules end date.
69
+ */
70
+ recurUntil?: string | null;
71
+ /**
72
+ * Gets or sets a value indicating whether the schedule should recur indefinately.
73
+ */
74
+ recurIndefinately?: boolean | null;
75
+ /**
76
+ * Gets or sets a value indicating whether the schedule is enabled.
77
+ */
78
+ enabled?: boolean | null;
79
+ tenant?: Tenant;
80
+ session?: Session;
81
+ /**
82
+ * Gets or sets the slots created for this schedule.
83
+ */
84
+ scheduledSessions?: Array<ScheduledSession> | null;
85
+ };