@tennac-booking/sdk 1.0.79 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -147,6 +147,62 @@ export interface BookingAnalyticsResponse {
147
147
  */
148
148
  'paymentByPlayersStatus': Array<any>;
149
149
  }
150
+ /**
151
+ *
152
+ * @export
153
+ * @interface BookingClubInfo
154
+ */
155
+ export interface BookingClubInfo {
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof BookingClubInfo
160
+ */
161
+ 'id': string;
162
+ /**
163
+ *
164
+ * @type {string}
165
+ * @memberof BookingClubInfo
166
+ */
167
+ 'name'?: string | null;
168
+ /**
169
+ *
170
+ * @type {string}
171
+ * @memberof BookingClubInfo
172
+ */
173
+ 'picture'?: string | null;
174
+ /**
175
+ *
176
+ * @type {string}
177
+ * @memberof BookingClubInfo
178
+ */
179
+ 'address'?: string | null;
180
+ /**
181
+ * Construct a type with a set of properties K of type T
182
+ * @type {{ [key: string]: any; }}
183
+ * @memberof BookingClubInfo
184
+ */
185
+ 'location'?: { [key: string]: any; } | null;
186
+ }
187
+ /**
188
+ *
189
+ * @export
190
+ * @interface BookingCourtInfo
191
+ */
192
+ export interface BookingCourtInfo {
193
+ /**
194
+ *
195
+ * @type {string}
196
+ * @memberof BookingCourtInfo
197
+ */
198
+ 'id'?: string | null;
199
+ /**
200
+ *
201
+ * @type {string}
202
+ * @memberof BookingCourtInfo
203
+ */
204
+ 'name'?: string | null;
205
+ }
150
206
  /**
151
207
  *
152
208
  * @export
@@ -159,6 +215,132 @@ export interface BookingDetailResponse {
159
215
  * @memberof BookingDetailResponse
160
216
  */
161
217
  'id': string;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof BookingDetailResponse
222
+ */
223
+ 'clubId': string;
224
+ /**
225
+ *
226
+ * @type {string}
227
+ * @memberof BookingDetailResponse
228
+ */
229
+ 'userId': string;
230
+ /**
231
+ *
232
+ * @type {Array<string>}
233
+ * @memberof BookingDetailResponse
234
+ */
235
+ 'playersIds': Array<string>;
236
+ /**
237
+ *
238
+ * @type {BookingStatus}
239
+ * @memberof BookingDetailResponse
240
+ */
241
+ 'status': BookingStatus;
242
+ /**
243
+ *
244
+ * @type {Array<BookingPaymentStatus>}
245
+ * @memberof BookingDetailResponse
246
+ */
247
+ 'paymentByPlayersStatus': Array<BookingPaymentStatus>;
248
+ /**
249
+ *
250
+ * @type {boolean}
251
+ * @memberof BookingDetailResponse
252
+ */
253
+ 'isCreatorPayingAll': boolean;
254
+ /**
255
+ *
256
+ * @type {number}
257
+ * @memberof BookingDetailResponse
258
+ */
259
+ 'totalPrice': number;
260
+ /**
261
+ *
262
+ * @type {Array<string>}
263
+ * @memberof BookingDetailResponse
264
+ */
265
+ 'slotIds': Array<string>;
266
+ /**
267
+ *
268
+ * @type {boolean}
269
+ * @memberof BookingDetailResponse
270
+ */
271
+ 'isPublic': boolean;
272
+ /**
273
+ *
274
+ * @type {string}
275
+ * @memberof BookingDetailResponse
276
+ */
277
+ 'creatorPaymentMethodId'?: string | null;
278
+ /**
279
+ *
280
+ * @type {boolean}
281
+ * @memberof BookingDetailResponse
282
+ */
283
+ 'paymentMethodSetupCompleted': boolean;
284
+ /**
285
+ *
286
+ * @type {number}
287
+ * @memberof BookingDetailResponse
288
+ */
289
+ 'noShowChargeAmount'?: number | null;
290
+ /**
291
+ *
292
+ * @type {boolean}
293
+ * @memberof BookingDetailResponse
294
+ */
295
+ 'noShowChargeApplied'?: boolean;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof BookingDetailResponse
300
+ */
301
+ 'noShowChargeIntentId'?: string | null;
302
+ /**
303
+ *
304
+ * @type {string}
305
+ * @memberof BookingDetailResponse
306
+ */
307
+ 'cancellationReason'?: string | null;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof BookingDetailResponse
312
+ */
313
+ 'cancelledBy'?: string | null;
314
+ /**
315
+ *
316
+ * @type {string}
317
+ * @memberof BookingDetailResponse
318
+ */
319
+ 'cancelledAt'?: string | null;
320
+ /**
321
+ *
322
+ * @type {boolean}
323
+ * @memberof BookingDetailResponse
324
+ */
325
+ 'cancelledByManager'?: boolean;
326
+ /**
327
+ *
328
+ * @type {string}
329
+ * @memberof BookingDetailResponse
330
+ */
331
+ 'createdAt': string | null;
332
+ /**
333
+ *
334
+ * @type {string}
335
+ * @memberof BookingDetailResponse
336
+ */
337
+ 'updatedAt': string | null;
338
+ /**
339
+ *
340
+ * @type {number}
341
+ * @memberof BookingDetailResponse
342
+ */
343
+ 'playersCount'?: number | null;
162
344
  /**
163
345
  *
164
346
  * @type {string}
@@ -185,10 +367,10 @@ export interface BookingDetailResponse {
185
367
  'startDate'?: string;
186
368
  /**
187
369
  *
188
- * @type {string}
370
+ * @type {InvoiceStatus}
189
371
  * @memberof BookingDetailResponse
190
372
  */
191
- 'myPaymentStatus'?: string;
373
+ 'myPaymentStatus'?: InvoiceStatus | null;
192
374
  /**
193
375
  *
194
376
  * @type {string}
@@ -231,6 +413,36 @@ export interface BookingDetailResponse {
231
413
  * @memberof BookingDetailResponse
232
414
  */
233
415
  'bookingHistory'?: BookingHistoryPopulated;
416
+ /**
417
+ *
418
+ * @type {BookingClubInfo}
419
+ * @memberof BookingDetailResponse
420
+ */
421
+ 'club'?: BookingClubInfo | null;
422
+ /**
423
+ *
424
+ * @type {Array<BookingSlotInfo>}
425
+ * @memberof BookingDetailResponse
426
+ */
427
+ 'slots': Array<BookingSlotInfo>;
428
+ /**
429
+ *
430
+ * @type {BookingCourtInfo}
431
+ * @memberof BookingDetailResponse
432
+ */
433
+ 'court'?: BookingCourtInfo | null;
434
+ /**
435
+ *
436
+ * @type {BookingSportInfo}
437
+ * @memberof BookingDetailResponse
438
+ */
439
+ 'sport'?: BookingSportInfo | null;
440
+ /**
441
+ *
442
+ * @type {Array<BookingPlayerPaymentSummary>}
443
+ * @memberof BookingDetailResponse
444
+ */
445
+ 'players': Array<BookingPlayerPaymentSummary>;
234
446
  /**
235
447
  *
236
448
  * @type {Array<{ [key: string]: any; }>}
@@ -238,6 +450,8 @@ export interface BookingDetailResponse {
238
450
  */
239
451
  'paymentStatus': Array<{ [key: string]: any; }>;
240
452
  }
453
+
454
+
241
455
  /**
242
456
  *
243
457
  * @export
@@ -407,6 +621,33 @@ export interface BookingInfo {
407
621
  }
408
622
 
409
623
 
624
+ /**
625
+ *
626
+ * @export
627
+ * @interface BookingPaymentStatus
628
+ */
629
+ export interface BookingPaymentStatus {
630
+ /**
631
+ *
632
+ * @type {string}
633
+ * @memberof BookingPaymentStatus
634
+ */
635
+ 'playerId': string;
636
+ /**
637
+ *
638
+ * @type {string}
639
+ * @memberof BookingPaymentStatus
640
+ */
641
+ 'invoiceId'?: string | null;
642
+ /**
643
+ *
644
+ * @type {InvoiceStatus}
645
+ * @memberof BookingPaymentStatus
646
+ */
647
+ 'invoiceStatus'?: InvoiceStatus | null;
648
+ }
649
+
650
+
410
651
  /**
411
652
  *
412
653
  * @export
@@ -502,6 +743,63 @@ export interface BookingPaymentStatusResponseSummary {
502
743
  */
503
744
  'totalPlayers': number;
504
745
  }
746
+ /**
747
+ *
748
+ * @export
749
+ * @interface BookingPlayerPaymentSummary
750
+ */
751
+ export interface BookingPlayerPaymentSummary {
752
+ /**
753
+ *
754
+ * @type {string}
755
+ * @memberof BookingPlayerPaymentSummary
756
+ */
757
+ 'id': string;
758
+ /**
759
+ *
760
+ * @type {string}
761
+ * @memberof BookingPlayerPaymentSummary
762
+ */
763
+ 'firstName'?: string | null;
764
+ /**
765
+ *
766
+ * @type {string}
767
+ * @memberof BookingPlayerPaymentSummary
768
+ */
769
+ 'lastName'?: string | null;
770
+ /**
771
+ *
772
+ * @type {string}
773
+ * @memberof BookingPlayerPaymentSummary
774
+ */
775
+ 'profilePicture'?: string | null;
776
+ /**
777
+ *
778
+ * @type {number}
779
+ * @memberof BookingPlayerPaymentSummary
780
+ */
781
+ 'amountToPay': number;
782
+ /**
783
+ *
784
+ * @type {string}
785
+ * @memberof BookingPlayerPaymentSummary
786
+ */
787
+ 'invoiceId'?: string | null;
788
+ /**
789
+ *
790
+ * @type {InvoiceStatus}
791
+ * @memberof BookingPlayerPaymentSummary
792
+ */
793
+ 'invoiceStatus'?: InvoiceStatus | null;
794
+ /**
795
+ *
796
+ * @type {boolean}
797
+ * @memberof BookingPlayerPaymentSummary
798
+ */
799
+ 'isCreator': boolean;
800
+ }
801
+
802
+
505
803
  /**
506
804
  *
507
805
  * @export
@@ -682,6 +980,68 @@ export interface BookingResponseOnsitePaymentsInner {
682
980
  */
683
981
  'playerId': string;
684
982
  }
983
+ /**
984
+ *
985
+ * @export
986
+ * @interface BookingSlotInfo
987
+ */
988
+ export interface BookingSlotInfo {
989
+ /**
990
+ *
991
+ * @type {string}
992
+ * @memberof BookingSlotInfo
993
+ */
994
+ 'id': string;
995
+ /**
996
+ *
997
+ * @type {string}
998
+ * @memberof BookingSlotInfo
999
+ */
1000
+ 'startDate'?: string | null;
1001
+ /**
1002
+ *
1003
+ * @type {string}
1004
+ * @memberof BookingSlotInfo
1005
+ */
1006
+ 'endDate'?: string | null;
1007
+ /**
1008
+ *
1009
+ * @type {number}
1010
+ * @memberof BookingSlotInfo
1011
+ */
1012
+ 'durationMinutes'?: number | null;
1013
+ /**
1014
+ *
1015
+ * @type {BookingCourtInfo}
1016
+ * @memberof BookingSlotInfo
1017
+ */
1018
+ 'court'?: BookingCourtInfo | null;
1019
+ /**
1020
+ *
1021
+ * @type {BookingSportInfo}
1022
+ * @memberof BookingSlotInfo
1023
+ */
1024
+ 'sport'?: BookingSportInfo | null;
1025
+ }
1026
+ /**
1027
+ *
1028
+ * @export
1029
+ * @interface BookingSportInfo
1030
+ */
1031
+ export interface BookingSportInfo {
1032
+ /**
1033
+ *
1034
+ * @type {string}
1035
+ * @memberof BookingSportInfo
1036
+ */
1037
+ 'id'?: string | null;
1038
+ /**
1039
+ *
1040
+ * @type {string}
1041
+ * @memberof BookingSportInfo
1042
+ */
1043
+ 'key'?: string | null;
1044
+ }
685
1045
  /**
686
1046
  *
687
1047
  * @export
@@ -713,6 +1073,132 @@ export interface BookingSummary {
713
1073
  * @memberof BookingSummary
714
1074
  */
715
1075
  'id': string;
1076
+ /**
1077
+ *
1078
+ * @type {string}
1079
+ * @memberof BookingSummary
1080
+ */
1081
+ 'clubId': string;
1082
+ /**
1083
+ *
1084
+ * @type {string}
1085
+ * @memberof BookingSummary
1086
+ */
1087
+ 'userId': string;
1088
+ /**
1089
+ *
1090
+ * @type {Array<string>}
1091
+ * @memberof BookingSummary
1092
+ */
1093
+ 'playersIds': Array<string>;
1094
+ /**
1095
+ *
1096
+ * @type {BookingStatus}
1097
+ * @memberof BookingSummary
1098
+ */
1099
+ 'status': BookingStatus;
1100
+ /**
1101
+ *
1102
+ * @type {Array<BookingPaymentStatus>}
1103
+ * @memberof BookingSummary
1104
+ */
1105
+ 'paymentByPlayersStatus': Array<BookingPaymentStatus>;
1106
+ /**
1107
+ *
1108
+ * @type {boolean}
1109
+ * @memberof BookingSummary
1110
+ */
1111
+ 'isCreatorPayingAll': boolean;
1112
+ /**
1113
+ *
1114
+ * @type {number}
1115
+ * @memberof BookingSummary
1116
+ */
1117
+ 'totalPrice': number;
1118
+ /**
1119
+ *
1120
+ * @type {Array<string>}
1121
+ * @memberof BookingSummary
1122
+ */
1123
+ 'slotIds': Array<string>;
1124
+ /**
1125
+ *
1126
+ * @type {boolean}
1127
+ * @memberof BookingSummary
1128
+ */
1129
+ 'isPublic': boolean;
1130
+ /**
1131
+ *
1132
+ * @type {string}
1133
+ * @memberof BookingSummary
1134
+ */
1135
+ 'creatorPaymentMethodId'?: string | null;
1136
+ /**
1137
+ *
1138
+ * @type {boolean}
1139
+ * @memberof BookingSummary
1140
+ */
1141
+ 'paymentMethodSetupCompleted': boolean;
1142
+ /**
1143
+ *
1144
+ * @type {number}
1145
+ * @memberof BookingSummary
1146
+ */
1147
+ 'noShowChargeAmount'?: number | null;
1148
+ /**
1149
+ *
1150
+ * @type {boolean}
1151
+ * @memberof BookingSummary
1152
+ */
1153
+ 'noShowChargeApplied'?: boolean;
1154
+ /**
1155
+ *
1156
+ * @type {string}
1157
+ * @memberof BookingSummary
1158
+ */
1159
+ 'noShowChargeIntentId'?: string | null;
1160
+ /**
1161
+ *
1162
+ * @type {string}
1163
+ * @memberof BookingSummary
1164
+ */
1165
+ 'cancellationReason'?: string | null;
1166
+ /**
1167
+ *
1168
+ * @type {string}
1169
+ * @memberof BookingSummary
1170
+ */
1171
+ 'cancelledBy'?: string | null;
1172
+ /**
1173
+ *
1174
+ * @type {string}
1175
+ * @memberof BookingSummary
1176
+ */
1177
+ 'cancelledAt'?: string | null;
1178
+ /**
1179
+ *
1180
+ * @type {boolean}
1181
+ * @memberof BookingSummary
1182
+ */
1183
+ 'cancelledByManager'?: boolean;
1184
+ /**
1185
+ *
1186
+ * @type {string}
1187
+ * @memberof BookingSummary
1188
+ */
1189
+ 'createdAt': string | null;
1190
+ /**
1191
+ *
1192
+ * @type {string}
1193
+ * @memberof BookingSummary
1194
+ */
1195
+ 'updatedAt': string | null;
1196
+ /**
1197
+ *
1198
+ * @type {number}
1199
+ * @memberof BookingSummary
1200
+ */
1201
+ 'playersCount'?: number | null;
716
1202
  /**
717
1203
  *
718
1204
  * @type {string}
@@ -739,10 +1225,10 @@ export interface BookingSummary {
739
1225
  'startDate'?: string;
740
1226
  /**
741
1227
  *
742
- * @type {string}
1228
+ * @type {InvoiceStatus}
743
1229
  * @memberof BookingSummary
744
1230
  */
745
- 'myPaymentStatus'?: string;
1231
+ 'myPaymentStatus'?: InvoiceStatus | null;
746
1232
  /**
747
1233
  *
748
1234
  * @type {string}
@@ -785,7 +1271,39 @@ export interface BookingSummary {
785
1271
  * @memberof BookingSummary
786
1272
  */
787
1273
  'bookingHistory'?: BookingHistoryPopulated;
1274
+ /**
1275
+ *
1276
+ * @type {BookingClubInfo}
1277
+ * @memberof BookingSummary
1278
+ */
1279
+ 'club'?: BookingClubInfo | null;
1280
+ /**
1281
+ *
1282
+ * @type {Array<BookingSlotInfo>}
1283
+ * @memberof BookingSummary
1284
+ */
1285
+ 'slots': Array<BookingSlotInfo>;
1286
+ /**
1287
+ *
1288
+ * @type {BookingCourtInfo}
1289
+ * @memberof BookingSummary
1290
+ */
1291
+ 'court'?: BookingCourtInfo | null;
1292
+ /**
1293
+ *
1294
+ * @type {BookingSportInfo}
1295
+ * @memberof BookingSummary
1296
+ */
1297
+ 'sport'?: BookingSportInfo | null;
1298
+ /**
1299
+ *
1300
+ * @type {Array<BookingPlayerPaymentSummary>}
1301
+ * @memberof BookingSummary
1302
+ */
1303
+ 'players': Array<BookingPlayerPaymentSummary>;
788
1304
  }
1305
+
1306
+
789
1307
  /**
790
1308
  *
791
1309
  * @export
@@ -3400,6 +3918,26 @@ export interface InvoiceInfo {
3400
3918
  */
3401
3919
  'status': string;
3402
3920
  }
3921
+ /**
3922
+ *
3923
+ * @export
3924
+ * @enum {string}
3925
+ */
3926
+
3927
+ export const InvoiceStatus = {
3928
+ SetupPending: 'setup_pending',
3929
+ SetupSuccess: 'setup_success',
3930
+ Pending: 'pending',
3931
+ Paid: 'paid',
3932
+ Failed: 'failed',
3933
+ Authorized: 'authorized',
3934
+ Canceled: 'canceled',
3935
+ Expired: 'expired'
3936
+ } as const;
3937
+
3938
+ export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
3939
+
3940
+
3403
3941
  /**
3404
3942
  *
3405
3943
  * @export
@@ -7281,6 +7819,43 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
7281
7819
  */
7282
7820
  'sport': string;
7283
7821
  }
7822
+ /**
7823
+ *
7824
+ * @export
7825
+ * @interface UserBookingsResponse
7826
+ */
7827
+ export interface UserBookingsResponse {
7828
+ /**
7829
+ *
7830
+ * @type {number}
7831
+ * @memberof UserBookingsResponse
7832
+ */
7833
+ 'total': number;
7834
+ /**
7835
+ *
7836
+ * @type {number}
7837
+ * @memberof UserBookingsResponse
7838
+ */
7839
+ 'limit': number;
7840
+ /**
7841
+ *
7842
+ * @type {number}
7843
+ * @memberof UserBookingsResponse
7844
+ */
7845
+ 'skip': number;
7846
+ /**
7847
+ *
7848
+ * @type {boolean}
7849
+ * @memberof UserBookingsResponse
7850
+ */
7851
+ 'hasMore': boolean;
7852
+ /**
7853
+ *
7854
+ * @type {Array<BookingSummary>}
7855
+ * @memberof UserBookingsResponse
7856
+ */
7857
+ 'bookings': Array<BookingSummary>;
7858
+ }
7284
7859
  /**
7285
7860
  *
7286
7861
  * @export
@@ -7867,12 +8442,13 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
7867
8442
  * @param {string} [startTime]
7868
8443
  * @param {number} [priceMax]
7869
8444
  * @param {string} [courtTypes]
8445
+ * @param {string} [surfaceTypes]
7870
8446
  * @param {number} [limitPerClub]
7871
8447
  * @param {number} [maxClubs]
7872
8448
  * @param {*} [options] Override http request option.
7873
8449
  * @throws {RequiredError}
7874
8450
  */
7875
- getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8451
+ getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, surfaceTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7876
8452
  const localVarPath = `/api/bookings/quick-reservations`;
7877
8453
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7878
8454
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7917,6 +8493,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
7917
8493
  localVarQueryParameter['courtTypes'] = courtTypes;
7918
8494
  }
7919
8495
 
8496
+ if (surfaceTypes !== undefined) {
8497
+ localVarQueryParameter['surfaceTypes'] = surfaceTypes;
8498
+ }
8499
+
7920
8500
  if (limitPerClub !== undefined) {
7921
8501
  localVarQueryParameter['_limitPerClub'] = limitPerClub;
7922
8502
  }
@@ -7980,13 +8560,14 @@ export const BookingsApiFp = function(configuration?: Configuration) {
7980
8560
  * @param {string} [startTime]
7981
8561
  * @param {number} [priceMax]
7982
8562
  * @param {string} [courtTypes]
8563
+ * @param {string} [surfaceTypes]
7983
8564
  * @param {number} [limitPerClub]
7984
8565
  * @param {number} [maxClubs]
7985
8566
  * @param {*} [options] Override http request option.
7986
8567
  * @throws {RequiredError}
7987
8568
  */
7988
- async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
7989
- const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
8569
+ async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, surfaceTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
8570
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
7990
8571
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7991
8572
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
7992
8573
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8026,7 +8607,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8026
8607
  * @throws {RequiredError}
8027
8608
  */
8028
8609
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
8029
- return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
8610
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
8030
8611
  },
8031
8612
  };
8032
8613
  };
@@ -8121,6 +8702,13 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
8121
8702
  */
8122
8703
  readonly courtTypes?: string
8123
8704
 
8705
+ /**
8706
+ *
8707
+ * @type {string}
8708
+ * @memberof BookingsApiGetQuickReservationSlots
8709
+ */
8710
+ readonly surfaceTypes?: string
8711
+
8124
8712
  /**
8125
8713
  *
8126
8714
  * @type {number}
@@ -8173,7 +8761,7 @@ export class BookingsApi extends BaseAPI {
8173
8761
  * @memberof BookingsApi
8174
8762
  */
8175
8763
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
8176
- return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
8764
+ return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
8177
8765
  }
8178
8766
  }
8179
8767
 
@@ -18128,7 +18716,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
18128
18716
  * @param {*} [options] Override http request option.
18129
18717
  * @throws {RequiredError}
18130
18718
  */
18131
- async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingSummary>>> {
18719
+ async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
18132
18720
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
18133
18721
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18134
18722
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
@@ -18511,7 +19099,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18511
19099
  * @param {*} [options] Override http request option.
18512
19100
  * @throws {RequiredError}
18513
19101
  */
18514
- getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingSummary>> {
19102
+ getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
18515
19103
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
18516
19104
  },
18517
19105
  /**