@drttix/drt-sdk 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +54 -54
  2. package/dist/cjs/index.d.ts +3 -0
  3. package/dist/cjs/index.js +5 -1
  4. package/dist/cjs/src/definitions/scanner.d.ts +1 -0
  5. package/dist/cjs/src/definitions/scanner.js +36 -1
  6. package/dist/cjs/src/definitions/shopper.d.ts +3 -0
  7. package/dist/cjs/src/definitions/shopper.js +43 -6
  8. package/dist/cjs/src/generated/scanner/types.d.ts +31 -0
  9. package/dist/cjs/src/generated/scanner/types.js +4 -0
  10. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  11. package/dist/cjs/src/generated/shopper/index.d.ts +7 -0
  12. package/dist/cjs/src/generated/shopper/index.js +3 -1
  13. package/dist/cjs/src/generated/shopper/models/GiftCardApplyDto.d.ts +18 -0
  14. package/dist/cjs/src/generated/shopper/models/GiftCardApplyDto.js +2 -0
  15. package/dist/cjs/src/generated/shopper/models/GiftCardApplyResponse.d.ts +30 -0
  16. package/dist/cjs/src/generated/shopper/models/GiftCardApplyResponse.js +2 -0
  17. package/dist/cjs/src/generated/shopper/models/GiftCardCheckoutInfo.d.ts +30 -0
  18. package/dist/cjs/src/generated/shopper/models/GiftCardCheckoutInfo.js +2 -0
  19. package/dist/cjs/src/generated/shopper/models/GiftCardEditFormResponse.d.ts +10 -0
  20. package/dist/cjs/src/generated/shopper/models/GiftCardEditFormResponse.js +2 -0
  21. package/dist/cjs/src/generated/shopper/models/GiftCardLookupResponse.d.ts +18 -0
  22. package/dist/cjs/src/generated/shopper/models/GiftCardLookupResponse.js +2 -0
  23. package/dist/cjs/src/generated/shopper/models/GiftCardRemoveResponse.d.ts +14 -0
  24. package/dist/cjs/src/generated/shopper/models/GiftCardRemoveResponse.js +2 -0
  25. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +62 -0
  26. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +142 -0
  27. package/dist/cjs/src/generated/shopper/types.d.ts +100 -0
  28. package/dist/cjs/src/generated/shopper/types.js +4 -0
  29. package/dist/cjs/src/scripts/build-all.js +28 -21
  30. package/dist/cjs/src/scripts/generate-definition.js +34 -9
  31. package/dist/esm/index.d.ts +3 -0
  32. package/dist/esm/index.js +2 -0
  33. package/dist/esm/src/definitions/scanner.d.ts +1 -0
  34. package/dist/esm/src/definitions/scanner.js +2 -0
  35. package/dist/esm/src/definitions/shopper.d.ts +3 -0
  36. package/dist/esm/src/definitions/shopper.js +4 -0
  37. package/dist/esm/src/generated/scanner/types.d.ts +31 -0
  38. package/dist/esm/src/generated/scanner/types.js +3 -0
  39. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  40. package/dist/esm/src/generated/shopper/index.d.ts +7 -0
  41. package/dist/esm/src/generated/shopper/index.js +1 -0
  42. package/dist/esm/src/generated/shopper/models/GiftCardApplyDto.d.ts +18 -0
  43. package/dist/esm/src/generated/shopper/models/GiftCardApplyDto.js +1 -0
  44. package/dist/esm/src/generated/shopper/models/GiftCardApplyResponse.d.ts +30 -0
  45. package/dist/esm/src/generated/shopper/models/GiftCardApplyResponse.js +1 -0
  46. package/dist/esm/src/generated/shopper/models/GiftCardCheckoutInfo.d.ts +30 -0
  47. package/dist/esm/src/generated/shopper/models/GiftCardCheckoutInfo.js +1 -0
  48. package/dist/esm/src/generated/shopper/models/GiftCardEditFormResponse.d.ts +10 -0
  49. package/dist/esm/src/generated/shopper/models/GiftCardEditFormResponse.js +1 -0
  50. package/dist/esm/src/generated/shopper/models/GiftCardLookupResponse.d.ts +18 -0
  51. package/dist/esm/src/generated/shopper/models/GiftCardLookupResponse.js +1 -0
  52. package/dist/esm/src/generated/shopper/models/GiftCardRemoveResponse.d.ts +14 -0
  53. package/dist/esm/src/generated/shopper/models/GiftCardRemoveResponse.js +1 -0
  54. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +62 -0
  55. package/dist/esm/src/generated/shopper/services/GiftCardService.js +138 -0
  56. package/dist/esm/src/generated/shopper/types.d.ts +100 -0
  57. package/dist/esm/src/generated/shopper/types.js +3 -0
  58. package/dist/esm/src/scripts/build-all.js +31 -24
  59. package/dist/esm/src/scripts/generate-definition.js +36 -11
  60. package/drt-api-specs.json +10 -10
  61. package/index.ts +3 -0
  62. package/package.json +27 -27
  63. package/src/custom/custom-request.txt +382 -382
  64. package/src/definitions/scanner.ts +3 -0
  65. package/src/definitions/shopper.ts +5 -0
  66. package/src/functions/setBaseURL.ts +34 -34
  67. package/src/generated/scanner/core/ApiError.ts +1 -1
  68. package/src/generated/scanner/core/ApiRequestOptions.ts +1 -1
  69. package/src/generated/scanner/core/ApiResult.ts +1 -1
  70. package/src/generated/scanner/core/CancelablePromise.ts +1 -1
  71. package/src/generated/scanner/core/OpenAPI.ts +1 -1
  72. package/src/generated/scanner/core/request.ts +1 -1
  73. package/src/generated/scanner/models/DatabaseUpload.ts +10 -10
  74. package/src/generated/scanner/models/DatabaseUploadData.ts +10 -10
  75. package/src/generated/scanner/models/DisplayMessage.ts +10 -10
  76. package/src/generated/scanner/models/EventResponse.ts +16 -16
  77. package/src/generated/scanner/models/EventResponseStats.ts +11 -11
  78. package/src/generated/scanner/models/EventSkin.ts +23 -23
  79. package/src/generated/scanner/models/MobileReceiptResponse.ts +21 -21
  80. package/src/generated/scanner/models/OrderDetails.ts +15 -15
  81. package/src/generated/scanner/models/OrderProduct.ts +15 -15
  82. package/src/generated/scanner/models/OrderSeat.ts +19 -19
  83. package/src/generated/scanner/models/OrderSummary.ts +11 -11
  84. package/src/generated/scanner/models/Product.ts +15 -15
  85. package/src/generated/scanner/models/ProductQR.ts +8 -8
  86. package/src/generated/scanner/models/ProductScan.ts +16 -16
  87. package/src/generated/scanner/models/QueryDatabaseUnionResult.ts +13 -13
  88. package/src/generated/scanner/models/ReceiptBuyerDetails.ts +11 -11
  89. package/src/generated/scanner/models/ReceiptEventDetails.ts +12 -12
  90. package/src/generated/scanner/models/ReceiptProductDetails.ts +19 -19
  91. package/src/generated/scanner/models/ReceiptResponse.ts +21 -21
  92. package/src/generated/scanner/models/ReceiptSeatDetails.ts +15 -15
  93. package/src/generated/scanner/models/ResultMessage.ts +9 -9
  94. package/src/generated/scanner/models/RowResult.ts +8 -8
  95. package/src/generated/scanner/models/SeatQR.ts +8 -8
  96. package/src/generated/scanner/models/SeatResponse.ts +12 -12
  97. package/src/generated/scanner/models/SeatResult.ts +8 -8
  98. package/src/generated/scanner/models/SectionResult.ts +8 -8
  99. package/src/generated/scanner/models/TicketDatabase.ts +19 -19
  100. package/src/generated/scanner/models/TicketScan.ts +24 -24
  101. package/src/generated/scanner/models/TicketScanStats.ts +10 -10
  102. package/src/generated/scanner/models/TicketSeats.ts +14 -14
  103. package/src/generated/scanner/models/UploadDatabaseResponse.ts +10 -10
  104. package/src/generated/scanner/services/DatabaseService.ts +110 -110
  105. package/src/generated/scanner/services/OrdersService.ts +114 -114
  106. package/src/generated/scanner/services/ScanningService.ts +331 -331
  107. package/src/generated/scanner/types.ts +34 -0
  108. package/src/generated/shopper/core/ApiError.ts +1 -1
  109. package/src/generated/shopper/core/ApiRequestOptions.ts +1 -1
  110. package/src/generated/shopper/core/ApiResult.ts +1 -1
  111. package/src/generated/shopper/core/CancelablePromise.ts +1 -1
  112. package/src/generated/shopper/core/OpenAPI.ts +2 -2
  113. package/src/generated/shopper/core/request.ts +382 -382
  114. package/src/generated/shopper/index.ts +7 -0
  115. package/src/generated/shopper/models/Account.ts +57 -57
  116. package/src/generated/shopper/models/Album.ts +13 -13
  117. package/src/generated/shopper/models/AlbumImage.ts +13 -13
  118. package/src/generated/shopper/models/AlbumWithImages.ts +11 -11
  119. package/src/generated/shopper/models/AssignNamesReturn.ts +9 -9
  120. package/src/generated/shopper/models/BAHold.ts +10 -10
  121. package/src/generated/shopper/models/BlockOfTickets.ts +18 -18
  122. package/src/generated/shopper/models/Cart.ts +13 -13
  123. package/src/generated/shopper/models/CartWithTime.ts +10 -10
  124. package/src/generated/shopper/models/Chart.ts +13 -13
  125. package/src/generated/shopper/models/CodeDto.ts +11 -11
  126. package/src/generated/shopper/models/CompleteBody.ts +9 -9
  127. package/src/generated/shopper/models/CreateCustomerResponse.ts +9 -9
  128. package/src/generated/shopper/models/DigitalAsset.ts +21 -21
  129. package/src/generated/shopper/models/DonationContribution.ts +10 -10
  130. package/src/generated/shopper/models/DonationFund.ts +34 -34
  131. package/src/generated/shopper/models/DonationInCart.ts +19 -19
  132. package/src/generated/shopper/models/DonationResult.ts +23 -23
  133. package/src/generated/shopper/models/DonationText.ts +9 -9
  134. package/src/generated/shopper/models/DonationsandContributions.ts +17 -17
  135. package/src/generated/shopper/models/EmailUpdate.ts +12 -12
  136. package/src/generated/shopper/models/EngineSeat.ts +7 -7
  137. package/src/generated/shopper/models/EventDetails.ts +51 -51
  138. package/src/generated/shopper/models/EventGroup.ts +16 -16
  139. package/src/generated/shopper/models/ExistingRefundDetails.ts +9 -9
  140. package/src/generated/shopper/models/FullEventDetails.ts +17 -17
  141. package/src/generated/shopper/models/GAHold.ts +11 -11
  142. package/src/generated/shopper/models/GAResponse.ts +19 -19
  143. package/src/generated/shopper/models/GASeatRelease.ts +10 -10
  144. package/src/generated/shopper/models/GetEventsResponse.ts +11 -11
  145. package/src/generated/shopper/models/GiftCardApplyDto.ts +23 -0
  146. package/src/generated/shopper/models/GiftCardApplyResponse.ts +35 -0
  147. package/src/generated/shopper/models/GiftCardCheckoutInfo.ts +35 -0
  148. package/src/generated/shopper/models/GiftCardEditFormResponse.ts +15 -0
  149. package/src/generated/shopper/models/GiftCardLookupResponse.ts +23 -0
  150. package/src/generated/shopper/models/GiftCardRemoveResponse.ts +19 -0
  151. package/src/generated/shopper/models/GuidReturn.ts +8 -8
  152. package/src/generated/shopper/models/HasAccessResponse.ts +8 -8
  153. package/src/generated/shopper/models/LandingConfig.ts +27 -27
  154. package/src/generated/shopper/models/LandingPageResponse.ts +17 -17
  155. package/src/generated/shopper/models/LinkWithSuccess.ts +9 -9
  156. package/src/generated/shopper/models/NameUpdate.ts +9 -9
  157. package/src/generated/shopper/models/OrderDetails.ts +42 -42
  158. package/src/generated/shopper/models/OrderRecalc.ts +11 -11
  159. package/src/generated/shopper/models/OrderRefundDetails.ts +10 -10
  160. package/src/generated/shopper/models/OrderSeat.ts +30 -30
  161. package/src/generated/shopper/models/OrderStream.ts +16 -16
  162. package/src/generated/shopper/models/OrderTicketReceipt.ts +30 -30
  163. package/src/generated/shopper/models/PatronName.ts +10 -10
  164. package/src/generated/shopper/models/PaymentDetail.ts +40 -40
  165. package/src/generated/shopper/models/PaymentFail.ts +23 -23
  166. package/src/generated/shopper/models/PaymentSuccess.ts +23 -23
  167. package/src/generated/shopper/models/PerformerEventList.ts +9 -9
  168. package/src/generated/shopper/models/PickupReturn.ts +11 -11
  169. package/src/generated/shopper/models/PriorityCode.ts +10 -10
  170. package/src/generated/shopper/models/Product.ts +28 -28
  171. package/src/generated/shopper/models/ProductAddResponse.ts +12 -12
  172. package/src/generated/shopper/models/ProductBody.ts +12 -12
  173. package/src/generated/shopper/models/ProductData.ts +11 -11
  174. package/src/generated/shopper/models/ProductDeleteBody.ts +11 -11
  175. package/src/generated/shopper/models/ProductDetails.ts +16 -16
  176. package/src/generated/shopper/models/ProductInCart.ts +17 -17
  177. package/src/generated/shopper/models/ProductUpdateResponse.ts +10 -10
  178. package/src/generated/shopper/models/ProductVariant.ts +18 -18
  179. package/src/generated/shopper/models/RecalcResponse.ts +10 -10
  180. package/src/generated/shopper/models/RecalcReturn.ts +31 -31
  181. package/src/generated/shopper/models/Receipt.ts +38 -38
  182. package/src/generated/shopper/models/ReceiptMessages.ts +8 -8
  183. package/src/generated/shopper/models/ReceiptQuestions.ts +12 -12
  184. package/src/generated/shopper/models/Refund.ts +12 -12
  185. package/src/generated/shopper/models/RefundPolicy.ts +8 -8
  186. package/src/generated/shopper/models/RefundReason.ts +12 -12
  187. package/src/generated/shopper/models/RefundRequest.ts +13 -13
  188. package/src/generated/shopper/models/RefundRequestInfo.ts +15 -15
  189. package/src/generated/shopper/models/RegisterStreamRequest.ts +9 -9
  190. package/src/generated/shopper/models/RegisterStreamResponse.ts +10 -10
  191. package/src/generated/shopper/models/RootConfigResponse.ts +22 -22
  192. package/src/generated/shopper/models/SeatData.ts +9 -9
  193. package/src/generated/shopper/models/SeatHoldReturn.ts +11 -11
  194. package/src/generated/shopper/models/SeatInCart.ts +26 -26
  195. package/src/generated/shopper/models/SeatingTier.ts +27 -27
  196. package/src/generated/shopper/models/Section.ts +20 -20
  197. package/src/generated/shopper/models/SectionRule.ts +15 -15
  198. package/src/generated/shopper/models/SessionHeartbeatDto.ts +9 -9
  199. package/src/generated/shopper/models/SessionInfoDto.ts +20 -20
  200. package/src/generated/shopper/models/SiteDisposition.ts +10 -10
  201. package/src/generated/shopper/models/SiteTheme.ts +40 -40
  202. package/src/generated/shopper/models/StudioOrderSettings.ts +14 -14
  203. package/src/generated/shopper/models/SuccessResponse.ts +8 -8
  204. package/src/generated/shopper/models/SuccessWithTime.ts +15 -15
  205. package/src/generated/shopper/models/SummaryBody.ts +8 -8
  206. package/src/generated/shopper/models/TheatreAddresses.ts +15 -15
  207. package/src/generated/shopper/models/Ticket.ts +9 -9
  208. package/src/generated/shopper/models/TicketBlock.ts +18 -18
  209. package/src/generated/shopper/models/TicketInstructions.ts +8 -8
  210. package/src/generated/shopper/models/UniversalCodeResponse.ts +27 -27
  211. package/src/generated/shopper/models/UpdateTierData.ts +10 -10
  212. package/src/generated/shopper/models/UpdateTierFail.ts +10 -10
  213. package/src/generated/shopper/models/WaitlistResponse.ts +9 -9
  214. package/src/generated/shopper/models/WaitlistUpdate.ts +14 -14
  215. package/src/generated/shopper/services/AccountService.ts +129 -129
  216. package/src/generated/shopper/services/CartService.ts +68 -68
  217. package/src/generated/shopper/services/CodeService.ts +180 -180
  218. package/src/generated/shopper/services/DonationService.ts +77 -77
  219. package/src/generated/shopper/services/EventService.ts +144 -144
  220. package/src/generated/shopper/services/GiftCardService.ts +172 -0
  221. package/src/generated/shopper/services/OrderService.ts +513 -513
  222. package/src/generated/shopper/services/PaymentService.ts +109 -109
  223. package/src/generated/shopper/services/ProductService.ts +109 -109
  224. package/src/generated/shopper/services/SeatService.ts +231 -231
  225. package/src/generated/shopper/services/SessionService.ts +69 -69
  226. package/src/generated/shopper/types.ts +103 -0
  227. package/src/scripts/build-all.ts +95 -83
  228. package/src/scripts/check-version-not-published.ts +28 -28
  229. package/src/scripts/generate-definition.ts +89 -55
  230. package/test.ts +28 -13
  231. package/tsconfig.cjs.json +11 -11
  232. package/tsconfig.esm.json +11 -11
  233. package/tsconfig.json +16 -16
@@ -1,231 +1,231 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { BAHold } from '../models/BAHold';
6
- import type { GAHold } from '../models/GAHold';
7
- import type { GAResponse } from '../models/GAResponse';
8
- import type { GASeatRelease } from '../models/GASeatRelease';
9
- import type { SeatData } from '../models/SeatData';
10
- import type { SeatHoldReturn } from '../models/SeatHoldReturn';
11
- import type { UpdateTierData } from '../models/UpdateTierData';
12
- import type { CancelablePromise } from '../core/CancelablePromise';
13
- import { OpenAPI } from '../core/OpenAPI';
14
- import { request as __request } from '../core/request';
15
- export class SeatService {
16
- /**
17
- * Health check endpoint
18
- * Checks if the server is healthy
19
- * @returns any Healthy.
20
- * @throws ApiError
21
- */
22
- public static health(): CancelablePromise<any> {
23
- return __request(OpenAPI, {
24
- method: 'GET',
25
- url: '/seat/health',
26
- errors: {
27
- 400: `Bad Request error with error details.`,
28
- 404: `Not found error with error details.`,
29
- 500: `Internal Server Error, please contact developers.`,
30
- },
31
- });
32
- }
33
- /**
34
- * Hold a reserved seat
35
- * Holds a reserved seat for the shopper.
36
- * @param shopperguid Unique identifier for the shopper.
37
- * @param accountid Unique identifier for the account.
38
- * @param apikey API key for authentication.
39
- * @param requestBody Seat data for holding a reserved seat
40
- * @returns SeatHoldReturn Successfully held the reserved seat.
41
- * @throws ApiError
42
- */
43
- public static holdReservedSeat(
44
- shopperguid: string,
45
- accountid: string,
46
- apikey: string,
47
- requestBody: SeatData,
48
- ): CancelablePromise<SeatHoldReturn> {
49
- return __request(OpenAPI, {
50
- method: 'POST',
51
- url: '/seat/hold-reserved',
52
- headers: {
53
- 'shopperguid': shopperguid,
54
- 'accountid': accountid,
55
- 'apikey': apikey,
56
- },
57
- body: requestBody,
58
- mediaType: 'application/json',
59
- errors: {
60
- 400: `Bad Request error with error details.`,
61
- 404: `Not found error with error details.`,
62
- 500: `Internal Server Error, please contact developers.`,
63
- },
64
- });
65
- }
66
- /**
67
- * Hold a general admission seat
68
- * Holds a general admission seat for the shopper.
69
- * @param shopperguid Unique identifier for the shopper.
70
- * @param accountid Unique identifier for the account.
71
- * @param apikey API key for authentication.
72
- * @param requestBody Seat data for holding a general admission seat
73
- * @returns GAResponse Successfully held the general admission seat.
74
- * @throws ApiError
75
- */
76
- public static holdGaSeat(
77
- shopperguid: string,
78
- accountid: string,
79
- apikey: string,
80
- requestBody: GAHold,
81
- ): CancelablePromise<GAResponse> {
82
- return __request(OpenAPI, {
83
- method: 'POST',
84
- url: '/seat/hold-ga',
85
- headers: {
86
- 'shopperguid': shopperguid,
87
- 'accountid': accountid,
88
- 'apikey': apikey,
89
- },
90
- body: requestBody,
91
- mediaType: 'application/json',
92
- errors: {
93
- 400: `Bad Request error with error details.`,
94
- 404: `Not found error with error details.`,
95
- 500: `Internal Server Error, please contact developers.`,
96
- },
97
- });
98
- }
99
- /**
100
- * Hold a reserved seat for a BA event
101
- * Holds a reserved seat for a BA event.
102
- * @param shopperguid Unique identifier for the shopper.
103
- * @param accountid Unique identifier for the account.
104
- * @param apikey API key for authentication.
105
- * @param requestBody Seat data for holding a reserved seat for a BA event
106
- * @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
107
- * @throws ApiError
108
- */
109
- public static holdBaSeat(
110
- shopperguid: string,
111
- accountid: string,
112
- apikey: string,
113
- requestBody: BAHold,
114
- ): CancelablePromise<SeatHoldReturn> {
115
- return __request(OpenAPI, {
116
- method: 'POST',
117
- url: '/seat/hold-ba',
118
- headers: {
119
- 'shopperguid': shopperguid,
120
- 'accountid': accountid,
121
- 'apikey': apikey,
122
- },
123
- body: requestBody,
124
- mediaType: 'application/json',
125
- errors: {
126
- 400: `Bad Request error with error details.`,
127
- 404: `Not found error with error details.`,
128
- 500: `Internal Server Error, please contact developers.`,
129
- },
130
- });
131
- }
132
- /**
133
- * Release a reserved seat
134
- * Releases a reserved seat for the shopper.
135
- * @param shopperguid Unique identifier for the shopper.
136
- * @param accountid Unique identifier for the account.
137
- * @param apikey API key for authentication.
138
- * @param requestBody Seat data for releasing a reserved seat
139
- * @returns any Successfully released the reserved seat.
140
- * @throws ApiError
141
- */
142
- public static releaseReservedSeat(
143
- shopperguid: string,
144
- accountid: string,
145
- apikey: string,
146
- requestBody: SeatData,
147
- ): CancelablePromise<any> {
148
- return __request(OpenAPI, {
149
- method: 'DELETE',
150
- url: '/seat/release-reserved',
151
- headers: {
152
- 'shopperguid': shopperguid,
153
- 'accountid': accountid,
154
- 'apikey': apikey,
155
- },
156
- body: requestBody,
157
- mediaType: 'application/json',
158
- errors: {
159
- 400: `Bad Request error with error details.`,
160
- 404: `Not found error with error details.`,
161
- 500: `Internal Server Error, please contact developers.`,
162
- },
163
- });
164
- }
165
- /**
166
- * Release a general admission seat
167
- * Releases a general admission seat for the shopper.
168
- * @param shopperguid Unique identifier for the shopper.
169
- * @param accountid Unique identifier for the account.
170
- * @param apikey API key for authentication.
171
- * @param requestBody Seat data for releasing a general admission seat
172
- * @returns any
173
- * @throws ApiError
174
- */
175
- public static releaseGaSeat(
176
- shopperguid: string,
177
- accountid: string,
178
- apikey: string,
179
- requestBody: GASeatRelease,
180
- ): CancelablePromise<any> {
181
- return __request(OpenAPI, {
182
- method: 'DELETE',
183
- url: '/seat/release-ga',
184
- headers: {
185
- 'shopperguid': shopperguid,
186
- 'accountid': accountid,
187
- 'apikey': apikey,
188
- },
189
- body: requestBody,
190
- mediaType: 'application/json',
191
- errors: {
192
- 400: `Bad Request error with error details.`,
193
- 404: `Not found error with error details.`,
194
- 500: `Internal Server Error, please contact developers.`,
195
- },
196
- });
197
- }
198
- /**
199
- * Update tier information for a seat
200
- * Updates the tier information for a seat.
201
- * @param shopperguid Unique identifier for the shopper.
202
- * @param accountid Unique identifier for the account.
203
- * @param apikey API key for authentication.
204
- * @param requestBody Data for updating tier information
205
- * @returns UpdateTierData Successfully updated the tier information.
206
- * @throws ApiError
207
- */
208
- public static updateTier(
209
- shopperguid: string,
210
- accountid: string,
211
- apikey: string,
212
- requestBody: UpdateTierData,
213
- ): CancelablePromise<UpdateTierData> {
214
- return __request(OpenAPI, {
215
- method: 'POST',
216
- url: '/seat/update-tier',
217
- headers: {
218
- 'shopperguid': shopperguid,
219
- 'accountid': accountid,
220
- 'apikey': apikey,
221
- },
222
- body: requestBody,
223
- mediaType: 'application/json',
224
- errors: {
225
- 400: `Failed to update the tier information.`,
226
- 404: `Not found error with error details.`,
227
- 500: `Internal Server Error, please contact developers.`,
228
- },
229
- });
230
- }
231
- }
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { BAHold } from '../models/BAHold';
6
+ import type { GAHold } from '../models/GAHold';
7
+ import type { GAResponse } from '../models/GAResponse';
8
+ import type { GASeatRelease } from '../models/GASeatRelease';
9
+ import type { SeatData } from '../models/SeatData';
10
+ import type { SeatHoldReturn } from '../models/SeatHoldReturn';
11
+ import type { UpdateTierData } from '../models/UpdateTierData';
12
+ import type { CancelablePromise } from '../core/CancelablePromise';
13
+ import { OpenAPI } from '../core/OpenAPI';
14
+ import { request as __request } from '../core/request';
15
+ export class SeatService {
16
+ /**
17
+ * Health check endpoint
18
+ * Checks if the server is healthy
19
+ * @returns any Healthy.
20
+ * @throws ApiError
21
+ */
22
+ public static health(): CancelablePromise<any> {
23
+ return __request(OpenAPI, {
24
+ method: 'GET',
25
+ url: '/seat/health',
26
+ errors: {
27
+ 400: `Bad Request error with error details.`,
28
+ 404: `Not found error with error details.`,
29
+ 500: `Internal Server Error, please contact developers.`,
30
+ },
31
+ });
32
+ }
33
+ /**
34
+ * Hold a reserved seat
35
+ * Holds a reserved seat for the shopper.
36
+ * @param shopperguid Unique identifier for the shopper.
37
+ * @param accountid Unique identifier for the account.
38
+ * @param apikey API key for authentication.
39
+ * @param requestBody Seat data for holding a reserved seat
40
+ * @returns SeatHoldReturn Successfully held the reserved seat.
41
+ * @throws ApiError
42
+ */
43
+ public static holdReservedSeat(
44
+ shopperguid: string,
45
+ accountid: string,
46
+ apikey: string,
47
+ requestBody: SeatData,
48
+ ): CancelablePromise<SeatHoldReturn> {
49
+ return __request(OpenAPI, {
50
+ method: 'POST',
51
+ url: '/seat/hold-reserved',
52
+ headers: {
53
+ 'shopperguid': shopperguid,
54
+ 'accountid': accountid,
55
+ 'apikey': apikey,
56
+ },
57
+ body: requestBody,
58
+ mediaType: 'application/json',
59
+ errors: {
60
+ 400: `Bad Request error with error details.`,
61
+ 404: `Not found error with error details.`,
62
+ 500: `Internal Server Error, please contact developers.`,
63
+ },
64
+ });
65
+ }
66
+ /**
67
+ * Hold a general admission seat
68
+ * Holds a general admission seat for the shopper.
69
+ * @param shopperguid Unique identifier for the shopper.
70
+ * @param accountid Unique identifier for the account.
71
+ * @param apikey API key for authentication.
72
+ * @param requestBody Seat data for holding a general admission seat
73
+ * @returns GAResponse Successfully held the general admission seat.
74
+ * @throws ApiError
75
+ */
76
+ public static holdGaSeat(
77
+ shopperguid: string,
78
+ accountid: string,
79
+ apikey: string,
80
+ requestBody: GAHold,
81
+ ): CancelablePromise<GAResponse> {
82
+ return __request(OpenAPI, {
83
+ method: 'POST',
84
+ url: '/seat/hold-ga',
85
+ headers: {
86
+ 'shopperguid': shopperguid,
87
+ 'accountid': accountid,
88
+ 'apikey': apikey,
89
+ },
90
+ body: requestBody,
91
+ mediaType: 'application/json',
92
+ errors: {
93
+ 400: `Bad Request error with error details.`,
94
+ 404: `Not found error with error details.`,
95
+ 500: `Internal Server Error, please contact developers.`,
96
+ },
97
+ });
98
+ }
99
+ /**
100
+ * Hold a reserved seat for a BA event
101
+ * Holds a reserved seat for a BA event.
102
+ * @param shopperguid Unique identifier for the shopper.
103
+ * @param accountid Unique identifier for the account.
104
+ * @param apikey API key for authentication.
105
+ * @param requestBody Seat data for holding a reserved seat for a BA event
106
+ * @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
107
+ * @throws ApiError
108
+ */
109
+ public static holdBaSeat(
110
+ shopperguid: string,
111
+ accountid: string,
112
+ apikey: string,
113
+ requestBody: BAHold,
114
+ ): CancelablePromise<SeatHoldReturn> {
115
+ return __request(OpenAPI, {
116
+ method: 'POST',
117
+ url: '/seat/hold-ba',
118
+ headers: {
119
+ 'shopperguid': shopperguid,
120
+ 'accountid': accountid,
121
+ 'apikey': apikey,
122
+ },
123
+ body: requestBody,
124
+ mediaType: 'application/json',
125
+ errors: {
126
+ 400: `Bad Request error with error details.`,
127
+ 404: `Not found error with error details.`,
128
+ 500: `Internal Server Error, please contact developers.`,
129
+ },
130
+ });
131
+ }
132
+ /**
133
+ * Release a reserved seat
134
+ * Releases a reserved seat for the shopper.
135
+ * @param shopperguid Unique identifier for the shopper.
136
+ * @param accountid Unique identifier for the account.
137
+ * @param apikey API key for authentication.
138
+ * @param requestBody Seat data for releasing a reserved seat
139
+ * @returns any Successfully released the reserved seat.
140
+ * @throws ApiError
141
+ */
142
+ public static releaseReservedSeat(
143
+ shopperguid: string,
144
+ accountid: string,
145
+ apikey: string,
146
+ requestBody: SeatData,
147
+ ): CancelablePromise<any> {
148
+ return __request(OpenAPI, {
149
+ method: 'DELETE',
150
+ url: '/seat/release-reserved',
151
+ headers: {
152
+ 'shopperguid': shopperguid,
153
+ 'accountid': accountid,
154
+ 'apikey': apikey,
155
+ },
156
+ body: requestBody,
157
+ mediaType: 'application/json',
158
+ errors: {
159
+ 400: `Bad Request error with error details.`,
160
+ 404: `Not found error with error details.`,
161
+ 500: `Internal Server Error, please contact developers.`,
162
+ },
163
+ });
164
+ }
165
+ /**
166
+ * Release a general admission seat
167
+ * Releases a general admission seat for the shopper.
168
+ * @param shopperguid Unique identifier for the shopper.
169
+ * @param accountid Unique identifier for the account.
170
+ * @param apikey API key for authentication.
171
+ * @param requestBody Seat data for releasing a general admission seat
172
+ * @returns any
173
+ * @throws ApiError
174
+ */
175
+ public static releaseGaSeat(
176
+ shopperguid: string,
177
+ accountid: string,
178
+ apikey: string,
179
+ requestBody: GASeatRelease,
180
+ ): CancelablePromise<any> {
181
+ return __request(OpenAPI, {
182
+ method: 'DELETE',
183
+ url: '/seat/release-ga',
184
+ headers: {
185
+ 'shopperguid': shopperguid,
186
+ 'accountid': accountid,
187
+ 'apikey': apikey,
188
+ },
189
+ body: requestBody,
190
+ mediaType: 'application/json',
191
+ errors: {
192
+ 400: `Bad Request error with error details.`,
193
+ 404: `Not found error with error details.`,
194
+ 500: `Internal Server Error, please contact developers.`,
195
+ },
196
+ });
197
+ }
198
+ /**
199
+ * Update tier information for a seat
200
+ * Updates the tier information for a seat.
201
+ * @param shopperguid Unique identifier for the shopper.
202
+ * @param accountid Unique identifier for the account.
203
+ * @param apikey API key for authentication.
204
+ * @param requestBody Data for updating tier information
205
+ * @returns UpdateTierData Successfully updated the tier information.
206
+ * @throws ApiError
207
+ */
208
+ public static updateTier(
209
+ shopperguid: string,
210
+ accountid: string,
211
+ apikey: string,
212
+ requestBody: UpdateTierData,
213
+ ): CancelablePromise<UpdateTierData> {
214
+ return __request(OpenAPI, {
215
+ method: 'POST',
216
+ url: '/seat/update-tier',
217
+ headers: {
218
+ 'shopperguid': shopperguid,
219
+ 'accountid': accountid,
220
+ 'apikey': apikey,
221
+ },
222
+ body: requestBody,
223
+ mediaType: 'application/json',
224
+ errors: {
225
+ 400: `Failed to update the tier information.`,
226
+ 404: `Not found error with error details.`,
227
+ 500: `Internal Server Error, please contact developers.`,
228
+ },
229
+ });
230
+ }
231
+ }
@@ -1,69 +1,69 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { SessionHeartbeatDto } from '../models/SessionHeartbeatDto';
6
- import type { SessionInfoDto } from '../models/SessionInfoDto';
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- import { OpenAPI } from '../core/OpenAPI';
9
- import { request as __request } from '../core/request';
10
- export class SessionService {
11
- /**
12
- * Get Session information
13
- * Retrieves all Sessions available for the specified account.
14
- * @param shopperguid Unique identifier for the shopper.
15
- * @param accountid Unique identifier for the account.
16
- * @param apikey API key for authentication.
17
- * @returns SessionInfoDto Returns session data for the provided shopperguid.
18
- * @throws ApiError
19
- */
20
- public static getSessions(
21
- shopperguid: string,
22
- accountid: string,
23
- apikey: string,
24
- ): CancelablePromise<SessionInfoDto> {
25
- return __request(OpenAPI, {
26
- method: 'GET',
27
- url: '/session',
28
- headers: {
29
- 'shopperguid': shopperguid,
30
- 'accountid': accountid,
31
- 'apikey': apikey,
32
- },
33
- errors: {
34
- 400: `Bad Request error with error details.`,
35
- 404: `Not found error with error details.`,
36
- 500: `Internal Server Error, please contact developers.`,
37
- },
38
- });
39
- }
40
- /**
41
- * Get Session Timer Heartbeat
42
- * Retrieves the heartbeat for the sessions timer in ms.
43
- * @param shopperguid Unique identifier for the shopper.
44
- * @param accountid Unique identifier for the account.
45
- * @param apikey API key for authentication.
46
- * @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
47
- * @throws ApiError
48
- */
49
- public static getHeartbeat(
50
- shopperguid: string,
51
- accountid: string,
52
- apikey: string,
53
- ): CancelablePromise<SessionHeartbeatDto> {
54
- return __request(OpenAPI, {
55
- method: 'GET',
56
- url: '/session/heartbeat',
57
- headers: {
58
- 'shopperguid': shopperguid,
59
- 'accountid': accountid,
60
- 'apikey': apikey,
61
- },
62
- errors: {
63
- 400: `Bad Request error with error details.`,
64
- 404: `Not found error with error details.`,
65
- 500: `Internal Server Error, please contact developers.`,
66
- },
67
- });
68
- }
69
- }
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SessionHeartbeatDto } from '../models/SessionHeartbeatDto';
6
+ import type { SessionInfoDto } from '../models/SessionInfoDto';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import { OpenAPI } from '../core/OpenAPI';
9
+ import { request as __request } from '../core/request';
10
+ export class SessionService {
11
+ /**
12
+ * Get Session information
13
+ * Retrieves all Sessions available for the specified account.
14
+ * @param shopperguid Unique identifier for the shopper.
15
+ * @param accountid Unique identifier for the account.
16
+ * @param apikey API key for authentication.
17
+ * @returns SessionInfoDto Returns session data for the provided shopperguid.
18
+ * @throws ApiError
19
+ */
20
+ public static getSessions(
21
+ shopperguid: string,
22
+ accountid: string,
23
+ apikey: string,
24
+ ): CancelablePromise<SessionInfoDto> {
25
+ return __request(OpenAPI, {
26
+ method: 'GET',
27
+ url: '/session',
28
+ headers: {
29
+ 'shopperguid': shopperguid,
30
+ 'accountid': accountid,
31
+ 'apikey': apikey,
32
+ },
33
+ errors: {
34
+ 400: `Bad Request error with error details.`,
35
+ 404: `Not found error with error details.`,
36
+ 500: `Internal Server Error, please contact developers.`,
37
+ },
38
+ });
39
+ }
40
+ /**
41
+ * Get Session Timer Heartbeat
42
+ * Retrieves the heartbeat for the sessions timer in ms.
43
+ * @param shopperguid Unique identifier for the shopper.
44
+ * @param accountid Unique identifier for the account.
45
+ * @param apikey API key for authentication.
46
+ * @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
47
+ * @throws ApiError
48
+ */
49
+ public static getHeartbeat(
50
+ shopperguid: string,
51
+ accountid: string,
52
+ apikey: string,
53
+ ): CancelablePromise<SessionHeartbeatDto> {
54
+ return __request(OpenAPI, {
55
+ method: 'GET',
56
+ url: '/session/heartbeat',
57
+ headers: {
58
+ 'shopperguid': shopperguid,
59
+ 'accountid': accountid,
60
+ 'apikey': apikey,
61
+ },
62
+ errors: {
63
+ 400: `Bad Request error with error details.`,
64
+ 404: `Not found error with error details.`,
65
+ 500: `Internal Server Error, please contact developers.`,
66
+ },
67
+ });
68
+ }
69
+ }