@tennac-booking/sdk 1.0.218 → 1.0.219
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/.openapi-generator/FILES +24 -41
- package/README.md +38 -64
- package/api.ts +1733 -3004
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1419 -2447
- package/dist/api.js +932 -1382
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1419 -2447
- package/dist/esm/api.js +915 -1369
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgendaBooking.md +0 -2
- package/docs/BookingPopulated.md +1 -9
- package/docs/BookingSummary.md +0 -4
- package/docs/BookingsApi.md +79 -25
- package/docs/BookingsStaffApi.md +57 -1
- package/docs/BookingsUserApi.md +6 -6
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/CheckInPlayerSumupResponse.md +24 -0
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/ClubPageResponse.md +0 -14
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +2 -12
- package/docs/ClubSummary.md +0 -6
- package/docs/CreateOpenBookingRequest.md +2 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
- package/docs/EventBookingDetailSummary.md +0 -2
- package/docs/EventBookingResponse.md +0 -2
- package/docs/EventResponse.md +0 -2
- package/docs/EventsApi.md +0 -58
- package/docs/EventsStaffApi.md +25 -119
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
- package/docs/GetOpenBookingPrice200Response.md +24 -0
- package/docs/GetOpenBookingPriceRequest.md +26 -0
- package/docs/IUserAttributes.md +0 -4
- package/docs/JoinPriceEstimateResponse.md +38 -0
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
- package/docs/MyClubInfosResponse.md +2 -0
- package/docs/OpenBookingInfo.md +2 -4
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
- package/docs/{CourtEnvironment.md → PaymentStatus.md} +7 -3
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +0 -12
- package/docs/SportResponse.md +0 -2
- package/docs/StaffEventBookingResponse.md +0 -2
- package/docs/StaffEventsPaginatedResponse.md +26 -0
- package/docs/StaffUserProfileResponse.md +0 -4
- package/docs/SubscriptionPlanDiscountResponse.md +0 -2
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +332 -0
- package/docs/SumupAccountStatusResponse.md +32 -0
- package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
- package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupPairReaderRequest.md +22 -0
- package/docs/{MarkNotificationsReadResponse.md → SumupPairReaderResponse.md} +5 -5
- package/docs/SumupReaderInfo.md +34 -0
- package/docs/{Health200Response.md → SumupReadersResponse.md} +5 -7
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +0 -2
- package/docs/UserProfileResponse.md +0 -12
- package/docs/UsersApi.md +0 -273
- package/docs/WaitListStaffApi.md +0 -55
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AuthApi.md +0 -113
- package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
- package/docs/ClubPricingPeriodPayload.md +0 -32
- package/docs/ComingEventsPageResponse.md +0 -22
- package/docs/EstimateOpenBookingJoinRequest.md +0 -24
- package/docs/JobResult.md +0 -24
- package/docs/JobsApi.md +0 -367
- package/docs/JoinOpenBookingRequest.md +0 -28
- package/docs/MarkNotificationsReadRequest.md +0 -22
- package/docs/NotificationData.md +0 -22
- package/docs/NotificationParticipantPreview.md +0 -22
- package/docs/NotificationPreview.md +0 -60
- package/docs/NotificationResponse.md +0 -36
- package/docs/NotificationType.md +0 -26
- package/docs/OpenBookingBasePriceResponse.md +0 -24
- package/docs/OpenBookingJoinEstimateResponse.md +0 -26
- package/docs/OpenBookingPriceBody.md +0 -26
- package/docs/PartnerSearchItem.md +0 -28
- package/docs/PartnerSearchResponse.md +0 -22
- package/docs/PartnerSearchResponseMeta.md +0 -26
- package/docs/PricingPeriodDiscount.md +0 -24
- package/docs/QuickReservationCourtType.md +0 -10
- package/docs/RequestOrganizationEmailCodeBody.md +0 -22
- package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
- package/docs/RequestVerificationCodeBody.md +0 -26
- package/docs/StaffEventsPageResponse.md +0 -22
- package/docs/UserNextBookingSummary.md +0 -26
- package/docs/UserNotificationsResponse.md +0 -22
- package/docs/UserNotificationsResponseMeta.md +0 -28
- package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
- package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
- package/docs/VerifyVerificationCodeBody.md +0 -24
- package/docs/WaitListEntryWithPlayer.md +0 -44
- package/docs/WaitListPlayer.md +0 -28
- package/docs/WaitListPlayersListResponse.md +0 -22
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.177
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi =
|
|
25
|
+
exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentStatus = exports.PaymentProviderType = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = void 0;
|
|
27
|
+
exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = void 0;
|
|
28
|
+
exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.PaymentsStaffApi = exports.PaymentsStaffApiFactory = exports.PaymentsStaffApiFp = exports.PaymentsStaffApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -68,11 +68,6 @@ exports.BookingStatus = {
|
|
|
68
68
|
Canceled: 'canceled',
|
|
69
69
|
NoShow: 'no-show'
|
|
70
70
|
};
|
|
71
|
-
exports.BookingSummaryUserParticipationStatusEnum = {
|
|
72
|
-
Participant: 'participant',
|
|
73
|
-
WaitingJoinPayment: 'waitingJoinPayment',
|
|
74
|
-
Waitlist: 'waitlist'
|
|
75
|
-
};
|
|
76
71
|
exports.CaptureResultTypeEnum = {
|
|
77
72
|
CreatorPayment: 'creator_payment',
|
|
78
73
|
PlayerPayment: 'player_payment'
|
|
@@ -90,15 +85,6 @@ exports.ClubRoleResponseRoleEnum = {
|
|
|
90
85
|
Manager: 'manager',
|
|
91
86
|
Staff: 'staff'
|
|
92
87
|
};
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @export
|
|
96
|
-
* @enum {string}
|
|
97
|
-
*/
|
|
98
|
-
exports.CourtEnvironment = {
|
|
99
|
-
Indoor: 'indoor',
|
|
100
|
-
Outdoor: 'outdoor'
|
|
101
|
-
};
|
|
102
88
|
/**
|
|
103
89
|
*
|
|
104
90
|
* @export
|
|
@@ -148,11 +134,6 @@ exports.DiscountType = {
|
|
|
148
134
|
Percentage: 'percentage',
|
|
149
135
|
OffPeak: 'off_peak'
|
|
150
136
|
};
|
|
151
|
-
exports.EventBookingDetailSummaryUserParticipationStatusEnum = {
|
|
152
|
-
Participant: 'participant',
|
|
153
|
-
WaitingJoinPayment: 'waitingJoinPayment',
|
|
154
|
-
Waitlist: 'waitlist'
|
|
155
|
-
};
|
|
156
137
|
/**
|
|
157
138
|
*
|
|
158
139
|
* @export
|
|
@@ -252,23 +233,6 @@ exports.InvoiceStatusSETUPPENDING = {
|
|
|
252
233
|
exports.InvoiceStatusSETUPSUCCESS = {
|
|
253
234
|
SetupSuccess: 'setup_success'
|
|
254
235
|
};
|
|
255
|
-
/**
|
|
256
|
-
*
|
|
257
|
-
* @export
|
|
258
|
-
* @enum {string}
|
|
259
|
-
*/
|
|
260
|
-
exports.NotificationType = {
|
|
261
|
-
BookingCreated: 'booking_created',
|
|
262
|
-
BookingSetupRequired: 'booking_setup_required',
|
|
263
|
-
BookingCancelled: 'booking_cancelled',
|
|
264
|
-
BookingReminder: 'booking_reminder',
|
|
265
|
-
EventRegistrationConfirmed: 'event_registration_confirmed',
|
|
266
|
-
EventReminder: 'event_reminder',
|
|
267
|
-
OpenBookingJoined: 'open_booking_joined',
|
|
268
|
-
OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
|
|
269
|
-
WaitlistSpotAvailable: 'waitlist_spot_available',
|
|
270
|
-
WaitlistConfirmed: 'waitlist_confirmed'
|
|
271
|
-
};
|
|
272
236
|
exports.PartialPublicAccessSettingsPaymentModeEnum = {
|
|
273
237
|
Free: 'free',
|
|
274
238
|
AccessFee: 'access_fee',
|
|
@@ -295,6 +259,26 @@ exports.PaymentMethod = {
|
|
|
295
259
|
OnsiteCash: 'onsite_cash',
|
|
296
260
|
Free: 'free'
|
|
297
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @export
|
|
265
|
+
* @enum {string}
|
|
266
|
+
*/
|
|
267
|
+
exports.PaymentProviderType = {
|
|
268
|
+
Stripe: 'stripe',
|
|
269
|
+
Sumup: 'sumup'
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @export
|
|
274
|
+
* @enum {string}
|
|
275
|
+
*/
|
|
276
|
+
exports.PaymentStatus = {
|
|
277
|
+
Pending: 'pending',
|
|
278
|
+
Succeeded: 'succeeded',
|
|
279
|
+
Failed: 'failed',
|
|
280
|
+
Cancelled: 'cancelled'
|
|
281
|
+
};
|
|
298
282
|
/**
|
|
299
283
|
*
|
|
300
284
|
* @export
|
|
@@ -323,15 +307,6 @@ exports.PublicAccessSettingsPaymentModeEnum = {
|
|
|
323
307
|
AccessFee: 'access_fee',
|
|
324
308
|
PerCourt: 'per_court'
|
|
325
309
|
};
|
|
326
|
-
/**
|
|
327
|
-
*
|
|
328
|
-
* @export
|
|
329
|
-
* @enum {string}
|
|
330
|
-
*/
|
|
331
|
-
exports.QuickReservationCourtType = {
|
|
332
|
-
Indoor: 'indoor',
|
|
333
|
-
Outdoor: 'outdoor'
|
|
334
|
-
};
|
|
335
310
|
exports.RecurringDefinitionResponseRecurringTypeEnum = {
|
|
336
311
|
Daily: 'daily',
|
|
337
312
|
Weekly: 'weekly',
|
|
@@ -369,15 +344,6 @@ exports.StaffUserProfileResponseCreatedFromEnum = {
|
|
|
369
344
|
App: 'app',
|
|
370
345
|
Website: 'website'
|
|
371
346
|
};
|
|
372
|
-
/**
|
|
373
|
-
*
|
|
374
|
-
* @export
|
|
375
|
-
* @enum {string}
|
|
376
|
-
*/
|
|
377
|
-
exports.SupportedLanguage = {
|
|
378
|
-
Fr: 'fr',
|
|
379
|
-
En: 'en'
|
|
380
|
-
};
|
|
381
347
|
/**
|
|
382
348
|
*
|
|
383
349
|
* @export
|
|
@@ -466,11 +432,6 @@ exports.VisibilityType = {
|
|
|
466
432
|
Private: 'private',
|
|
467
433
|
Invitation: 'invitation'
|
|
468
434
|
};
|
|
469
|
-
exports.WaitListEntryWithPlayerTargetTypeEnum = {
|
|
470
|
-
Event: 'event',
|
|
471
|
-
Booking: 'booking',
|
|
472
|
-
EventBooking: 'event_booking'
|
|
473
|
-
};
|
|
474
435
|
exports.WaitListResponseTargetTypeEnum = {
|
|
475
436
|
Event: 'event',
|
|
476
437
|
Booking: 'booking',
|
|
@@ -490,170 +451,6 @@ exports.WeekdayKey = {
|
|
|
490
451
|
Saturday: 'saturday',
|
|
491
452
|
Sunday: 'sunday'
|
|
492
453
|
};
|
|
493
|
-
/**
|
|
494
|
-
* AuthApi - axios parameter creator
|
|
495
|
-
* @export
|
|
496
|
-
*/
|
|
497
|
-
const AuthApiAxiosParamCreator = function (configuration) {
|
|
498
|
-
return {
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
*/
|
|
505
|
-
requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
|
|
506
|
-
// verify required parameter 'requestVerificationCodeBody' is not null or undefined
|
|
507
|
-
(0, common_1.assertParamExists)('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
|
|
508
|
-
const localVarPath = `/api/auth/verification-code`;
|
|
509
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
511
|
-
let baseOptions;
|
|
512
|
-
if (configuration) {
|
|
513
|
-
baseOptions = configuration.baseOptions;
|
|
514
|
-
}
|
|
515
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
516
|
-
const localVarHeaderParameter = {};
|
|
517
|
-
const localVarQueryParameter = {};
|
|
518
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
519
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
520
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
522
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestVerificationCodeBody, localVarRequestOptions, configuration);
|
|
523
|
-
return {
|
|
524
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
525
|
-
options: localVarRequestOptions,
|
|
526
|
-
};
|
|
527
|
-
}),
|
|
528
|
-
/**
|
|
529
|
-
*
|
|
530
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
531
|
-
* @param {*} [options] Override http request option.
|
|
532
|
-
* @throws {RequiredError}
|
|
533
|
-
*/
|
|
534
|
-
verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
|
|
535
|
-
// verify required parameter 'verifyVerificationCodeBody' is not null or undefined
|
|
536
|
-
(0, common_1.assertParamExists)('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
|
|
537
|
-
const localVarPath = `/api/auth/verification-code/verify`;
|
|
538
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
539
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
540
|
-
let baseOptions;
|
|
541
|
-
if (configuration) {
|
|
542
|
-
baseOptions = configuration.baseOptions;
|
|
543
|
-
}
|
|
544
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
545
|
-
const localVarHeaderParameter = {};
|
|
546
|
-
const localVarQueryParameter = {};
|
|
547
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
548
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
549
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
550
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
551
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyVerificationCodeBody, localVarRequestOptions, configuration);
|
|
552
|
-
return {
|
|
553
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
554
|
-
options: localVarRequestOptions,
|
|
555
|
-
};
|
|
556
|
-
}),
|
|
557
|
-
};
|
|
558
|
-
};
|
|
559
|
-
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
560
|
-
/**
|
|
561
|
-
* AuthApi - functional programming interface
|
|
562
|
-
* @export
|
|
563
|
-
*/
|
|
564
|
-
const AuthApiFp = function (configuration) {
|
|
565
|
-
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
566
|
-
return {
|
|
567
|
-
/**
|
|
568
|
-
*
|
|
569
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
570
|
-
* @param {*} [options] Override http request option.
|
|
571
|
-
* @throws {RequiredError}
|
|
572
|
-
*/
|
|
573
|
-
requestVerificationCode(requestVerificationCodeBody, options) {
|
|
574
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
-
var _a, _b, _c;
|
|
576
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
|
|
577
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
578
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
579
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
580
|
-
});
|
|
581
|
-
},
|
|
582
|
-
/**
|
|
583
|
-
*
|
|
584
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
585
|
-
* @param {*} [options] Override http request option.
|
|
586
|
-
* @throws {RequiredError}
|
|
587
|
-
*/
|
|
588
|
-
verifyVerificationCode(verifyVerificationCodeBody, options) {
|
|
589
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
-
var _a, _b, _c;
|
|
591
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
|
|
592
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
593
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
594
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
595
|
-
});
|
|
596
|
-
},
|
|
597
|
-
};
|
|
598
|
-
};
|
|
599
|
-
exports.AuthApiFp = AuthApiFp;
|
|
600
|
-
/**
|
|
601
|
-
* AuthApi - factory interface
|
|
602
|
-
* @export
|
|
603
|
-
*/
|
|
604
|
-
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
605
|
-
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
606
|
-
return {
|
|
607
|
-
/**
|
|
608
|
-
*
|
|
609
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
610
|
-
* @param {*} [options] Override http request option.
|
|
611
|
-
* @throws {RequiredError}
|
|
612
|
-
*/
|
|
613
|
-
requestVerificationCode(requestParameters, options) {
|
|
614
|
-
return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
615
|
-
},
|
|
616
|
-
/**
|
|
617
|
-
*
|
|
618
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
619
|
-
* @param {*} [options] Override http request option.
|
|
620
|
-
* @throws {RequiredError}
|
|
621
|
-
*/
|
|
622
|
-
verifyVerificationCode(requestParameters, options) {
|
|
623
|
-
return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
624
|
-
},
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
exports.AuthApiFactory = AuthApiFactory;
|
|
628
|
-
/**
|
|
629
|
-
* AuthApi - object-oriented interface
|
|
630
|
-
* @export
|
|
631
|
-
* @class AuthApi
|
|
632
|
-
* @extends {BaseAPI}
|
|
633
|
-
*/
|
|
634
|
-
class AuthApi extends base_1.BaseAPI {
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
638
|
-
* @param {*} [options] Override http request option.
|
|
639
|
-
* @throws {RequiredError}
|
|
640
|
-
* @memberof AuthApi
|
|
641
|
-
*/
|
|
642
|
-
requestVerificationCode(requestParameters, options) {
|
|
643
|
-
return (0, exports.AuthApiFp)(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
644
|
-
}
|
|
645
|
-
/**
|
|
646
|
-
*
|
|
647
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
648
|
-
* @param {*} [options] Override http request option.
|
|
649
|
-
* @throws {RequiredError}
|
|
650
|
-
* @memberof AuthApi
|
|
651
|
-
*/
|
|
652
|
-
verifyVerificationCode(requestParameters, options) {
|
|
653
|
-
return (0, exports.AuthApiFp)(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
exports.AuthApi = AuthApi;
|
|
657
454
|
/**
|
|
658
455
|
* BookingsApi - axios parameter creator
|
|
659
456
|
* @export
|
|
@@ -690,18 +487,16 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
690
487
|
};
|
|
691
488
|
}),
|
|
692
489
|
/**
|
|
693
|
-
*
|
|
490
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
694
491
|
* @param {string} bookingId
|
|
695
|
-
* @param {
|
|
492
|
+
* @param {number} [creditToUseInCents]
|
|
696
493
|
* @param {*} [options] Override http request option.
|
|
697
494
|
* @throws {RequiredError}
|
|
698
495
|
*/
|
|
699
|
-
|
|
496
|
+
estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
700
497
|
// verify required parameter 'bookingId' is not null or undefined
|
|
701
|
-
(0, common_1.assertParamExists)('
|
|
702
|
-
|
|
703
|
-
(0, common_1.assertParamExists)('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
|
|
704
|
-
const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
|
|
498
|
+
(0, common_1.assertParamExists)('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
499
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate`
|
|
705
500
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
706
501
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
707
502
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -709,17 +504,18 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
709
504
|
if (configuration) {
|
|
710
505
|
baseOptions = configuration.baseOptions;
|
|
711
506
|
}
|
|
712
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
713
508
|
const localVarHeaderParameter = {};
|
|
714
509
|
const localVarQueryParameter = {};
|
|
715
510
|
// authentication bearerAuth required
|
|
716
511
|
// http bearer authentication required
|
|
717
512
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
718
|
-
|
|
513
|
+
if (creditToUseInCents !== undefined) {
|
|
514
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
515
|
+
}
|
|
719
516
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
720
517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
721
518
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
722
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
|
|
723
519
|
return {
|
|
724
520
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
725
521
|
options: localVarRequestOptions,
|
|
@@ -818,15 +614,50 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
818
614
|
};
|
|
819
615
|
}),
|
|
820
616
|
/**
|
|
821
|
-
*
|
|
617
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
618
|
+
* @param {string} bookingId
|
|
619
|
+
* @param {number} [creditToUseInCents]
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
*/
|
|
623
|
+
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
624
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
625
|
+
(0, common_1.assertParamExists)('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
626
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
627
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
629
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
630
|
+
let baseOptions;
|
|
631
|
+
if (configuration) {
|
|
632
|
+
baseOptions = configuration.baseOptions;
|
|
633
|
+
}
|
|
634
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
635
|
+
const localVarHeaderParameter = {};
|
|
636
|
+
const localVarQueryParameter = {};
|
|
637
|
+
// authentication bearerAuth required
|
|
638
|
+
// http bearer authentication required
|
|
639
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
640
|
+
if (creditToUseInCents !== undefined) {
|
|
641
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
642
|
+
}
|
|
643
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
644
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
645
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
646
|
+
return {
|
|
647
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
648
|
+
options: localVarRequestOptions,
|
|
649
|
+
};
|
|
650
|
+
}),
|
|
651
|
+
/**
|
|
652
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
822
653
|
* @param {string} bookingId
|
|
823
654
|
* @param {*} [options] Override http request option.
|
|
824
655
|
* @throws {RequiredError}
|
|
825
656
|
*/
|
|
826
|
-
|
|
657
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
827
658
|
// verify required parameter 'bookingId' is not null or undefined
|
|
828
|
-
(0, common_1.assertParamExists)('
|
|
829
|
-
const localVarPath = `/api/bookings/{bookingId}/open/
|
|
659
|
+
(0, common_1.assertParamExists)('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
660
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
830
661
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
831
662
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
832
663
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -950,15 +781,15 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
950
781
|
/**
|
|
951
782
|
*
|
|
952
783
|
* @param {string} bookingId
|
|
953
|
-
* @param {
|
|
784
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
954
785
|
* @param {*} [options] Override http request option.
|
|
955
786
|
* @throws {RequiredError}
|
|
956
787
|
*/
|
|
957
|
-
joinOpenBooking: (bookingId_1,
|
|
788
|
+
joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
|
|
958
789
|
// verify required parameter 'bookingId' is not null or undefined
|
|
959
790
|
(0, common_1.assertParamExists)('joinOpenBooking', 'bookingId', bookingId);
|
|
960
|
-
// verify required parameter '
|
|
961
|
-
(0, common_1.assertParamExists)('joinOpenBooking', '
|
|
791
|
+
// verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
|
|
792
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
|
|
962
793
|
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
963
794
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
964
795
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -977,7 +808,7 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
977
808
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
978
809
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
979
810
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
980
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
811
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
|
|
981
812
|
return {
|
|
982
813
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
983
814
|
options: localVarRequestOptions,
|
|
@@ -1040,18 +871,18 @@ const BookingsApiFp = function (configuration) {
|
|
|
1040
871
|
});
|
|
1041
872
|
},
|
|
1042
873
|
/**
|
|
1043
|
-
*
|
|
874
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1044
875
|
* @param {string} bookingId
|
|
1045
|
-
* @param {
|
|
876
|
+
* @param {number} [creditToUseInCents]
|
|
1046
877
|
* @param {*} [options] Override http request option.
|
|
1047
878
|
* @throws {RequiredError}
|
|
1048
879
|
*/
|
|
1049
|
-
|
|
880
|
+
estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
|
|
1050
881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1051
882
|
var _a, _b, _c;
|
|
1052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
|
|
1053
884
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1054
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.
|
|
885
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1055
886
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1056
887
|
});
|
|
1057
888
|
},
|
|
@@ -1101,17 +932,33 @@ const BookingsApiFp = function (configuration) {
|
|
|
1101
932
|
});
|
|
1102
933
|
},
|
|
1103
934
|
/**
|
|
1104
|
-
*
|
|
935
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
936
|
+
* @param {string} bookingId
|
|
937
|
+
* @param {number} [creditToUseInCents]
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
|
|
942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
943
|
+
var _a, _b, _c;
|
|
944
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
945
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
946
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
947
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
948
|
+
});
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1105
952
|
* @param {string} bookingId
|
|
1106
953
|
* @param {*} [options] Override http request option.
|
|
1107
954
|
* @throws {RequiredError}
|
|
1108
955
|
*/
|
|
1109
|
-
|
|
956
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
1110
957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
958
|
var _a, _b, _c;
|
|
1112
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
959
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
1113
960
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1114
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.
|
|
961
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1115
962
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1116
963
|
});
|
|
1117
964
|
},
|
|
@@ -1158,14 +1005,14 @@ const BookingsApiFp = function (configuration) {
|
|
|
1158
1005
|
/**
|
|
1159
1006
|
*
|
|
1160
1007
|
* @param {string} bookingId
|
|
1161
|
-
* @param {
|
|
1008
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
1162
1009
|
* @param {*} [options] Override http request option.
|
|
1163
1010
|
* @throws {RequiredError}
|
|
1164
1011
|
*/
|
|
1165
|
-
joinOpenBooking(bookingId,
|
|
1012
|
+
joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
|
|
1166
1013
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
1014
|
var _a, _b, _c;
|
|
1168
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId,
|
|
1015
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
|
|
1169
1016
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1170
1017
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1171
1018
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1206,13 +1053,13 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1206
1053
|
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
1207
1054
|
},
|
|
1208
1055
|
/**
|
|
1209
|
-
*
|
|
1210
|
-
* @param {
|
|
1056
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1057
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1211
1058
|
* @param {*} [options] Override http request option.
|
|
1212
1059
|
* @throws {RequiredError}
|
|
1213
1060
|
*/
|
|
1214
|
-
|
|
1215
|
-
return localVarFp.
|
|
1061
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
1062
|
+
return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1216
1063
|
},
|
|
1217
1064
|
/**
|
|
1218
1065
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1242,13 +1089,22 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1242
1089
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1243
1090
|
},
|
|
1244
1091
|
/**
|
|
1245
|
-
*
|
|
1246
|
-
* @param {
|
|
1092
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1093
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1247
1094
|
* @param {*} [options] Override http request option.
|
|
1248
1095
|
* @throws {RequiredError}
|
|
1249
1096
|
*/
|
|
1250
|
-
|
|
1251
|
-
return localVarFp.
|
|
1097
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1098
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1099
|
+
},
|
|
1100
|
+
/**
|
|
1101
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1102
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1103
|
+
* @param {*} [options] Override http request option.
|
|
1104
|
+
* @throws {RequiredError}
|
|
1105
|
+
*/
|
|
1106
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1107
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1252
1108
|
},
|
|
1253
1109
|
/**
|
|
1254
1110
|
*
|
|
@@ -1275,7 +1131,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1275
1131
|
* @throws {RequiredError}
|
|
1276
1132
|
*/
|
|
1277
1133
|
joinOpenBooking(requestParameters, options) {
|
|
1278
|
-
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1134
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
|
|
1279
1135
|
},
|
|
1280
1136
|
/**
|
|
1281
1137
|
*
|
|
@@ -1307,14 +1163,14 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1307
1163
|
return (0, exports.BookingsApiFp)(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1308
1164
|
}
|
|
1309
1165
|
/**
|
|
1310
|
-
*
|
|
1311
|
-
* @param {
|
|
1166
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1167
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1312
1168
|
* @param {*} [options] Override http request option.
|
|
1313
1169
|
* @throws {RequiredError}
|
|
1314
1170
|
* @memberof BookingsApi
|
|
1315
1171
|
*/
|
|
1316
|
-
|
|
1317
|
-
return (0, exports.BookingsApiFp)(this.configuration).
|
|
1172
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
1173
|
+
return (0, exports.BookingsApiFp)(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1318
1174
|
}
|
|
1319
1175
|
/**
|
|
1320
1176
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1347,14 +1203,24 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1347
1203
|
return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1348
1204
|
}
|
|
1349
1205
|
/**
|
|
1350
|
-
*
|
|
1351
|
-
* @param {
|
|
1206
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1207
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
* @memberof BookingsApi
|
|
1211
|
+
*/
|
|
1212
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1213
|
+
return (0, exports.BookingsApiFp)(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1217
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1352
1218
|
* @param {*} [options] Override http request option.
|
|
1353
1219
|
* @throws {RequiredError}
|
|
1354
1220
|
* @memberof BookingsApi
|
|
1355
1221
|
*/
|
|
1356
|
-
|
|
1357
|
-
return (0, exports.BookingsApiFp)(this.configuration).
|
|
1222
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1223
|
+
return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1358
1224
|
}
|
|
1359
1225
|
/**
|
|
1360
1226
|
*
|
|
@@ -1384,7 +1250,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1384
1250
|
* @memberof BookingsApi
|
|
1385
1251
|
*/
|
|
1386
1252
|
joinOpenBooking(requestParameters, options) {
|
|
1387
|
-
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1253
|
+
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1388
1254
|
}
|
|
1389
1255
|
/**
|
|
1390
1256
|
*
|
|
@@ -1579,7 +1445,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
1579
1445
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1580
1446
|
return {
|
|
1581
1447
|
/**
|
|
1582
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1448
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1583
1449
|
* @param {string} bookingId
|
|
1584
1450
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1585
1451
|
* @param {*} [options] Override http request option.
|
|
@@ -1614,6 +1480,42 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1614
1480
|
options: localVarRequestOptions,
|
|
1615
1481
|
};
|
|
1616
1482
|
}),
|
|
1483
|
+
/**
|
|
1484
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1485
|
+
* @param {string} bookingId
|
|
1486
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1487
|
+
* @param {*} [options] Override http request option.
|
|
1488
|
+
* @throws {RequiredError}
|
|
1489
|
+
*/
|
|
1490
|
+
checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
|
|
1491
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1492
|
+
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'bookingId', bookingId);
|
|
1493
|
+
// verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
|
|
1494
|
+
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
|
|
1495
|
+
const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
|
|
1496
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1498
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1499
|
+
let baseOptions;
|
|
1500
|
+
if (configuration) {
|
|
1501
|
+
baseOptions = configuration.baseOptions;
|
|
1502
|
+
}
|
|
1503
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1504
|
+
const localVarHeaderParameter = {};
|
|
1505
|
+
const localVarQueryParameter = {};
|
|
1506
|
+
// authentication bearerAuth required
|
|
1507
|
+
// http bearer authentication required
|
|
1508
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1509
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1510
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1511
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1512
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1513
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1514
|
+
return {
|
|
1515
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1516
|
+
options: localVarRequestOptions,
|
|
1517
|
+
};
|
|
1518
|
+
}),
|
|
1617
1519
|
/**
|
|
1618
1520
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1619
1521
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1859,7 +1761,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1859
1761
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1860
1762
|
return {
|
|
1861
1763
|
/**
|
|
1862
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1764
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1863
1765
|
* @param {string} bookingId
|
|
1864
1766
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1865
1767
|
* @param {*} [options] Override http request option.
|
|
@@ -1875,7 +1777,23 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1875
1777
|
});
|
|
1876
1778
|
},
|
|
1877
1779
|
/**
|
|
1878
|
-
*
|
|
1780
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1781
|
+
* @param {string} bookingId
|
|
1782
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1783
|
+
* @param {*} [options] Override http request option.
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
*/
|
|
1786
|
+
checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
|
|
1787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1788
|
+
var _a, _b, _c;
|
|
1789
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
|
|
1790
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1791
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1792
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1793
|
+
});
|
|
1794
|
+
},
|
|
1795
|
+
/**
|
|
1796
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1879
1797
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
1880
1798
|
* @param {*} [options] Override http request option.
|
|
1881
1799
|
* @throws {RequiredError}
|
|
@@ -1994,7 +1912,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1994
1912
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1995
1913
|
return {
|
|
1996
1914
|
/**
|
|
1997
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1915
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1998
1916
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1999
1917
|
* @param {*} [options] Override http request option.
|
|
2000
1918
|
* @throws {RequiredError}
|
|
@@ -2002,6 +1920,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2002
1920
|
checkInPlayer(requestParameters, options) {
|
|
2003
1921
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
2004
1922
|
},
|
|
1923
|
+
/**
|
|
1924
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1925
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
*/
|
|
1929
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
1930
|
+
return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
|
|
1931
|
+
},
|
|
2005
1932
|
/**
|
|
2006
1933
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2007
1934
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2076,7 +2003,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
2076
2003
|
*/
|
|
2077
2004
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
2078
2005
|
/**
|
|
2079
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
2006
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
2080
2007
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2081
2008
|
* @param {*} [options] Override http request option.
|
|
2082
2009
|
* @throws {RequiredError}
|
|
@@ -2085,6 +2012,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
2085
2012
|
checkInPlayer(requestParameters, options) {
|
|
2086
2013
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2087
2014
|
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
2017
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
* @memberof BookingsStaffApi
|
|
2021
|
+
*/
|
|
2022
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
2023
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
+
}
|
|
2088
2025
|
/**
|
|
2089
2026
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2090
2027
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2260,13 +2197,13 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2260
2197
|
}),
|
|
2261
2198
|
/**
|
|
2262
2199
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2263
|
-
* @param {
|
|
2200
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2264
2201
|
* @param {*} [options] Override http request option.
|
|
2265
2202
|
* @throws {RequiredError}
|
|
2266
2203
|
*/
|
|
2267
|
-
getOpenBookingPrice: (
|
|
2268
|
-
// verify required parameter '
|
|
2269
|
-
(0, common_1.assertParamExists)('getOpenBookingPrice', '
|
|
2204
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
|
|
2205
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
2206
|
+
(0, common_1.assertParamExists)('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
|
|
2270
2207
|
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2271
2208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2272
2209
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2284,7 +2221,7 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2284
2221
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2285
2222
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2286
2223
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2287
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2224
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2288
2225
|
return {
|
|
2289
2226
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2290
2227
|
options: localVarRequestOptions,
|
|
@@ -2383,14 +2320,14 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2383
2320
|
},
|
|
2384
2321
|
/**
|
|
2385
2322
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2386
|
-
* @param {
|
|
2323
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2387
2324
|
* @param {*} [options] Override http request option.
|
|
2388
2325
|
* @throws {RequiredError}
|
|
2389
2326
|
*/
|
|
2390
|
-
getOpenBookingPrice(
|
|
2327
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2391
2328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2392
2329
|
var _a, _b, _c;
|
|
2393
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(
|
|
2330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2394
2331
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2395
2332
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2396
2333
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2456,7 +2393,7 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2456
2393
|
* @throws {RequiredError}
|
|
2457
2394
|
*/
|
|
2458
2395
|
getOpenBookingPrice(requestParameters, options) {
|
|
2459
|
-
return localVarFp.getOpenBookingPrice(requestParameters.
|
|
2396
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2460
2397
|
},
|
|
2461
2398
|
/**
|
|
2462
2399
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -2515,7 +2452,7 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2515
2452
|
* @memberof BookingsUserApi
|
|
2516
2453
|
*/
|
|
2517
2454
|
getOpenBookingPrice(requestParameters, options) {
|
|
2518
|
-
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.
|
|
2455
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2519
2456
|
}
|
|
2520
2457
|
/**
|
|
2521
2458
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -9602,41 +9539,6 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9602
9539
|
options: localVarRequestOptions,
|
|
9603
9540
|
};
|
|
9604
9541
|
}),
|
|
9605
|
-
/**
|
|
9606
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9607
|
-
* @param {string} [clubId]
|
|
9608
|
-
* @param {number} [page]
|
|
9609
|
-
* @param {*} [options] Override http request option.
|
|
9610
|
-
* @throws {RequiredError}
|
|
9611
|
-
*/
|
|
9612
|
-
getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
|
|
9613
|
-
const localVarPath = `/api/events/coming`;
|
|
9614
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9615
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9616
|
-
let baseOptions;
|
|
9617
|
-
if (configuration) {
|
|
9618
|
-
baseOptions = configuration.baseOptions;
|
|
9619
|
-
}
|
|
9620
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9621
|
-
const localVarHeaderParameter = {};
|
|
9622
|
-
const localVarQueryParameter = {};
|
|
9623
|
-
// authentication bearerAuth required
|
|
9624
|
-
// http bearer authentication required
|
|
9625
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9626
|
-
if (clubId !== undefined) {
|
|
9627
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
9628
|
-
}
|
|
9629
|
-
if (page !== undefined) {
|
|
9630
|
-
localVarQueryParameter['page'] = page;
|
|
9631
|
-
}
|
|
9632
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9633
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9634
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9635
|
-
return {
|
|
9636
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9637
|
-
options: localVarRequestOptions,
|
|
9638
|
-
};
|
|
9639
|
-
}),
|
|
9640
9542
|
/**
|
|
9641
9543
|
* Get a specific event by ID
|
|
9642
9544
|
* @param {string} eventId
|
|
@@ -9964,22 +9866,6 @@ const EventsApiFp = function (configuration) {
|
|
|
9964
9866
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9965
9867
|
});
|
|
9966
9868
|
},
|
|
9967
|
-
/**
|
|
9968
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9969
|
-
* @param {string} [clubId]
|
|
9970
|
-
* @param {number} [page]
|
|
9971
|
-
* @param {*} [options] Override http request option.
|
|
9972
|
-
* @throws {RequiredError}
|
|
9973
|
-
*/
|
|
9974
|
-
getComingEvent(clubId, page, options) {
|
|
9975
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9976
|
-
var _a, _b, _c;
|
|
9977
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
9978
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9979
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9980
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9981
|
-
});
|
|
9982
|
-
},
|
|
9983
9869
|
/**
|
|
9984
9870
|
* Get a specific event by ID
|
|
9985
9871
|
* @param {string} eventId
|
|
@@ -10144,15 +10030,6 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10144
10030
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10145
10031
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
10146
10032
|
},
|
|
10147
|
-
/**
|
|
10148
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10149
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10150
|
-
* @param {*} [options] Override http request option.
|
|
10151
|
-
* @throws {RequiredError}
|
|
10152
|
-
*/
|
|
10153
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10154
|
-
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
10155
|
-
},
|
|
10156
10033
|
/**
|
|
10157
10034
|
* Get a specific event by ID
|
|
10158
10035
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -10265,16 +10142,6 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
10265
10142
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10266
10143
|
return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
10267
10144
|
}
|
|
10268
|
-
/**
|
|
10269
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10270
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10271
|
-
* @param {*} [options] Override http request option.
|
|
10272
|
-
* @throws {RequiredError}
|
|
10273
|
-
* @memberof EventsApi
|
|
10274
|
-
*/
|
|
10275
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10276
|
-
return (0, exports.EventsApiFp)(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
10277
|
-
}
|
|
10278
10145
|
/**
|
|
10279
10146
|
* Get a specific event by ID
|
|
10280
10147
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -11105,12 +10972,16 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11105
10972
|
};
|
|
11106
10973
|
}),
|
|
11107
10974
|
/**
|
|
11108
|
-
*
|
|
10975
|
+
* Get a specific event by ID (staff)
|
|
10976
|
+
* @param {string} eventId
|
|
11109
10977
|
* @param {*} [options] Override http request option.
|
|
11110
10978
|
* @throws {RequiredError}
|
|
11111
10979
|
*/
|
|
11112
|
-
|
|
11113
|
-
|
|
10980
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10981
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10982
|
+
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
10983
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10984
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11114
10985
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11115
10986
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11116
10987
|
let baseOptions;
|
|
@@ -11132,16 +11003,12 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11132
11003
|
};
|
|
11133
11004
|
}),
|
|
11134
11005
|
/**
|
|
11135
|
-
*
|
|
11136
|
-
* @param {string} eventId
|
|
11006
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11137
11007
|
* @param {*} [options] Override http request option.
|
|
11138
11008
|
* @throws {RequiredError}
|
|
11139
11009
|
*/
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
11143
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
11144
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11010
|
+
getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11011
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
11145
11012
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11146
11013
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11147
11014
|
let baseOptions;
|
|
@@ -11209,60 +11076,6 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11209
11076
|
options: localVarRequestOptions,
|
|
11210
11077
|
};
|
|
11211
11078
|
}),
|
|
11212
|
-
/**
|
|
11213
|
-
*
|
|
11214
|
-
* @param {*} [options] Override http request option.
|
|
11215
|
-
* @throws {RequiredError}
|
|
11216
|
-
*/
|
|
11217
|
-
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11218
|
-
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
11219
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11220
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11221
|
-
let baseOptions;
|
|
11222
|
-
if (configuration) {
|
|
11223
|
-
baseOptions = configuration.baseOptions;
|
|
11224
|
-
}
|
|
11225
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11226
|
-
const localVarHeaderParameter = {};
|
|
11227
|
-
const localVarQueryParameter = {};
|
|
11228
|
-
// authentication bearerAuth required
|
|
11229
|
-
// http bearer authentication required
|
|
11230
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11231
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11232
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11233
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11234
|
-
return {
|
|
11235
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11236
|
-
options: localVarRequestOptions,
|
|
11237
|
-
};
|
|
11238
|
-
}),
|
|
11239
|
-
/**
|
|
11240
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11241
|
-
* @param {*} [options] Override http request option.
|
|
11242
|
-
* @throws {RequiredError}
|
|
11243
|
-
*/
|
|
11244
|
-
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11245
|
-
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
11246
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11247
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11248
|
-
let baseOptions;
|
|
11249
|
-
if (configuration) {
|
|
11250
|
-
baseOptions = configuration.baseOptions;
|
|
11251
|
-
}
|
|
11252
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11253
|
-
const localVarHeaderParameter = {};
|
|
11254
|
-
const localVarQueryParameter = {};
|
|
11255
|
-
// authentication bearerAuth required
|
|
11256
|
-
// http bearer authentication required
|
|
11257
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11258
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11259
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11260
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11261
|
-
return {
|
|
11262
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11263
|
-
options: localVarRequestOptions,
|
|
11264
|
-
};
|
|
11265
|
-
}),
|
|
11266
11079
|
/**
|
|
11267
11080
|
* Get events for the week view (30 day sliding window)
|
|
11268
11081
|
* @param {string} [clubId]
|
|
@@ -11356,31 +11169,31 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11356
11169
|
});
|
|
11357
11170
|
},
|
|
11358
11171
|
/**
|
|
11359
|
-
*
|
|
11172
|
+
* Get a specific event by ID (staff)
|
|
11173
|
+
* @param {string} eventId
|
|
11360
11174
|
* @param {*} [options] Override http request option.
|
|
11361
11175
|
* @throws {RequiredError}
|
|
11362
11176
|
*/
|
|
11363
|
-
|
|
11177
|
+
getEventByIdForStaff(eventId, options) {
|
|
11364
11178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11365
11179
|
var _a, _b, _c;
|
|
11366
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11367
11181
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11368
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11182
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11369
11183
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11370
11184
|
});
|
|
11371
11185
|
},
|
|
11372
11186
|
/**
|
|
11373
|
-
*
|
|
11374
|
-
* @param {string} eventId
|
|
11187
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11375
11188
|
* @param {*} [options] Override http request option.
|
|
11376
11189
|
* @throws {RequiredError}
|
|
11377
11190
|
*/
|
|
11378
|
-
|
|
11191
|
+
getEventsByClub(options) {
|
|
11379
11192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11380
11193
|
var _a, _b, _c;
|
|
11381
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11194
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
|
|
11382
11195
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11383
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11196
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11384
11197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11385
11198
|
});
|
|
11386
11199
|
},
|
|
@@ -11403,34 +11216,6 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11403
11216
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11404
11217
|
});
|
|
11405
11218
|
},
|
|
11406
|
-
/**
|
|
11407
|
-
*
|
|
11408
|
-
* @param {*} [options] Override http request option.
|
|
11409
|
-
* @throws {RequiredError}
|
|
11410
|
-
*/
|
|
11411
|
-
getPastEventsByClub(options) {
|
|
11412
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11413
|
-
var _a, _b, _c;
|
|
11414
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
11415
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11416
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11417
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11418
|
-
});
|
|
11419
|
-
},
|
|
11420
|
-
/**
|
|
11421
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11422
|
-
* @param {*} [options] Override http request option.
|
|
11423
|
-
* @throws {RequiredError}
|
|
11424
|
-
*/
|
|
11425
|
-
getUpcomingEventsByClub(options) {
|
|
11426
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11427
|
-
var _a, _b, _c;
|
|
11428
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11429
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11430
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11431
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11432
|
-
});
|
|
11433
|
-
},
|
|
11434
11219
|
/**
|
|
11435
11220
|
* Get events for the week view (30 day sliding window)
|
|
11436
11221
|
* @param {string} [clubId]
|
|
@@ -11478,14 +11263,6 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11478
11263
|
getDailyEvents(requestParameters = {}, options) {
|
|
11479
11264
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11480
11265
|
},
|
|
11481
|
-
/**
|
|
11482
|
-
*
|
|
11483
|
-
* @param {*} [options] Override http request option.
|
|
11484
|
-
* @throws {RequiredError}
|
|
11485
|
-
*/
|
|
11486
|
-
getDraftEventsByClub(options) {
|
|
11487
|
-
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11488
|
-
},
|
|
11489
11266
|
/**
|
|
11490
11267
|
* Get a specific event by ID (staff)
|
|
11491
11268
|
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
@@ -11496,29 +11273,21 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11496
11273
|
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11497
11274
|
},
|
|
11498
11275
|
/**
|
|
11499
|
-
*
|
|
11500
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11501
|
-
* @param {*} [options] Override http request option.
|
|
11502
|
-
* @throws {RequiredError}
|
|
11503
|
-
*/
|
|
11504
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
11505
|
-
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11506
|
-
},
|
|
11507
|
-
/**
|
|
11508
|
-
*
|
|
11276
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11509
11277
|
* @param {*} [options] Override http request option.
|
|
11510
11278
|
* @throws {RequiredError}
|
|
11511
11279
|
*/
|
|
11512
|
-
|
|
11513
|
-
return localVarFp.
|
|
11280
|
+
getEventsByClub(options) {
|
|
11281
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
11514
11282
|
},
|
|
11515
11283
|
/**
|
|
11516
|
-
*
|
|
11284
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
11285
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11517
11286
|
* @param {*} [options] Override http request option.
|
|
11518
11287
|
* @throws {RequiredError}
|
|
11519
11288
|
*/
|
|
11520
|
-
|
|
11521
|
-
return localVarFp.
|
|
11289
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
11290
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11522
11291
|
},
|
|
11523
11292
|
/**
|
|
11524
11293
|
* Get events for the week view (30 day sliding window)
|
|
@@ -11559,15 +11328,6 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11559
11328
|
getDailyEvents(requestParameters = {}, options) {
|
|
11560
11329
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11561
11330
|
}
|
|
11562
|
-
/**
|
|
11563
|
-
*
|
|
11564
|
-
* @param {*} [options] Override http request option.
|
|
11565
|
-
* @throws {RequiredError}
|
|
11566
|
-
* @memberof EventsStaffApi
|
|
11567
|
-
*/
|
|
11568
|
-
getDraftEventsByClub(options) {
|
|
11569
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11570
|
-
}
|
|
11571
11331
|
/**
|
|
11572
11332
|
* Get a specific event by ID (staff)
|
|
11573
11333
|
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
@@ -11579,32 +11339,23 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11579
11339
|
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11580
11340
|
}
|
|
11581
11341
|
/**
|
|
11582
|
-
*
|
|
11583
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11584
|
-
* @param {*} [options] Override http request option.
|
|
11585
|
-
* @throws {RequiredError}
|
|
11586
|
-
* @memberof EventsStaffApi
|
|
11587
|
-
*/
|
|
11588
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
11589
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11590
|
-
}
|
|
11591
|
-
/**
|
|
11592
|
-
*
|
|
11342
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11593
11343
|
* @param {*} [options] Override http request option.
|
|
11594
11344
|
* @throws {RequiredError}
|
|
11595
11345
|
* @memberof EventsStaffApi
|
|
11596
11346
|
*/
|
|
11597
|
-
|
|
11598
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11347
|
+
getEventsByClub(options) {
|
|
11348
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11599
11349
|
}
|
|
11600
11350
|
/**
|
|
11601
|
-
*
|
|
11351
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
11352
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11602
11353
|
* @param {*} [options] Override http request option.
|
|
11603
11354
|
* @throws {RequiredError}
|
|
11604
11355
|
* @memberof EventsStaffApi
|
|
11605
11356
|
*/
|
|
11606
|
-
|
|
11607
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11357
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
11358
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11608
11359
|
}
|
|
11609
11360
|
/**
|
|
11610
11361
|
* Get events for the week view (30 day sliding window)
|
|
@@ -11768,515 +11519,188 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11768
11519
|
}
|
|
11769
11520
|
exports.ImagesApi = ImagesApi;
|
|
11770
11521
|
/**
|
|
11771
|
-
*
|
|
11522
|
+
* PaymentsStaffApi - axios parameter creator
|
|
11772
11523
|
* @export
|
|
11773
11524
|
*/
|
|
11774
|
-
const
|
|
11525
|
+
const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
11775
11526
|
return {
|
|
11776
11527
|
/**
|
|
11777
|
-
*
|
|
11778
|
-
* @
|
|
11528
|
+
* Cancel a SumUp reader checkout.
|
|
11529
|
+
* @param {string} clubId
|
|
11530
|
+
* @param {string} paymentId
|
|
11531
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11779
11532
|
* @param {*} [options] Override http request option.
|
|
11780
11533
|
* @throws {RequiredError}
|
|
11781
11534
|
*/
|
|
11782
|
-
|
|
11783
|
-
|
|
11535
|
+
cancelSumupPayment: (clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1], void 0, function* (clubId, paymentId, sumupCancelPaymentRequest, options = {}) {
|
|
11536
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11537
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'clubId', clubId);
|
|
11538
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
11539
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'paymentId', paymentId);
|
|
11540
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
11541
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
11542
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
11784
11543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11785
11544
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11786
11545
|
let baseOptions;
|
|
11787
11546
|
if (configuration) {
|
|
11788
11547
|
baseOptions = configuration.baseOptions;
|
|
11789
11548
|
}
|
|
11790
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11549
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11791
11550
|
const localVarHeaderParameter = {};
|
|
11792
11551
|
const localVarQueryParameter = {};
|
|
11552
|
+
// authentication bearerAuth required
|
|
11553
|
+
// http bearer authentication required
|
|
11554
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11555
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11793
11556
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11794
11557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11795
11558
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11559
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
11796
11560
|
return {
|
|
11797
11561
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11798
11562
|
options: localVarRequestOptions,
|
|
11799
11563
|
};
|
|
11800
11564
|
}),
|
|
11801
11565
|
/**
|
|
11802
|
-
*
|
|
11803
|
-
* @
|
|
11566
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11567
|
+
* @param {string} clubId
|
|
11568
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11804
11569
|
* @param {*} [options] Override http request option.
|
|
11805
11570
|
* @throws {RequiredError}
|
|
11806
11571
|
*/
|
|
11807
|
-
|
|
11808
|
-
|
|
11572
|
+
createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
|
|
11573
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11574
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'clubId', clubId);
|
|
11575
|
+
// verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
|
|
11576
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
11577
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
11578
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
11809
11579
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11810
11580
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11811
11581
|
let baseOptions;
|
|
11812
11582
|
if (configuration) {
|
|
11813
11583
|
baseOptions = configuration.baseOptions;
|
|
11814
11584
|
}
|
|
11815
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11585
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11816
11586
|
const localVarHeaderParameter = {};
|
|
11817
11587
|
const localVarQueryParameter = {};
|
|
11588
|
+
// authentication bearerAuth required
|
|
11589
|
+
// http bearer authentication required
|
|
11590
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11591
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11818
11592
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11819
11593
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11820
11594
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11595
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
11821
11596
|
return {
|
|
11822
11597
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11823
11598
|
options: localVarRequestOptions,
|
|
11824
11599
|
};
|
|
11825
11600
|
}),
|
|
11601
|
+
};
|
|
11602
|
+
};
|
|
11603
|
+
exports.PaymentsStaffApiAxiosParamCreator = PaymentsStaffApiAxiosParamCreator;
|
|
11604
|
+
/**
|
|
11605
|
+
* PaymentsStaffApi - functional programming interface
|
|
11606
|
+
* @export
|
|
11607
|
+
*/
|
|
11608
|
+
const PaymentsStaffApiFp = function (configuration) {
|
|
11609
|
+
const localVarAxiosParamCreator = (0, exports.PaymentsStaffApiAxiosParamCreator)(configuration);
|
|
11610
|
+
return {
|
|
11826
11611
|
/**
|
|
11827
|
-
*
|
|
11828
|
-
* @
|
|
11612
|
+
* Cancel a SumUp reader checkout.
|
|
11613
|
+
* @param {string} clubId
|
|
11614
|
+
* @param {string} paymentId
|
|
11615
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11829
11616
|
* @param {*} [options] Override http request option.
|
|
11830
11617
|
* @throws {RequiredError}
|
|
11831
11618
|
*/
|
|
11832
|
-
|
|
11833
|
-
const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
|
|
11834
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11835
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11836
|
-
let baseOptions;
|
|
11837
|
-
if (configuration) {
|
|
11838
|
-
baseOptions = configuration.baseOptions;
|
|
11839
|
-
}
|
|
11840
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11841
|
-
const localVarHeaderParameter = {};
|
|
11842
|
-
const localVarQueryParameter = {};
|
|
11843
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11844
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11845
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11846
|
-
return {
|
|
11847
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11848
|
-
options: localVarRequestOptions,
|
|
11849
|
-
};
|
|
11850
|
-
}),
|
|
11851
|
-
/**
|
|
11852
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
11853
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
11854
|
-
* @param {*} [options] Override http request option.
|
|
11855
|
-
* @throws {RequiredError}
|
|
11856
|
-
*/
|
|
11857
|
-
expireWaitlistPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11858
|
-
const localVarPath = `/api/jobs/expire-waitlist-payments`;
|
|
11859
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11860
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11861
|
-
let baseOptions;
|
|
11862
|
-
if (configuration) {
|
|
11863
|
-
baseOptions = configuration.baseOptions;
|
|
11864
|
-
}
|
|
11865
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11866
|
-
const localVarHeaderParameter = {};
|
|
11867
|
-
const localVarQueryParameter = {};
|
|
11868
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11869
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11870
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11871
|
-
return {
|
|
11872
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11873
|
-
options: localVarRequestOptions,
|
|
11874
|
-
};
|
|
11875
|
-
}),
|
|
11876
|
-
/**
|
|
11877
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
11878
|
-
* @summary Health check pour les jobs
|
|
11879
|
-
* @param {*} [options] Override http request option.
|
|
11880
|
-
* @throws {RequiredError}
|
|
11881
|
-
*/
|
|
11882
|
-
health: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11883
|
-
const localVarPath = `/api/jobs/health`;
|
|
11884
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11885
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11886
|
-
let baseOptions;
|
|
11887
|
-
if (configuration) {
|
|
11888
|
-
baseOptions = configuration.baseOptions;
|
|
11889
|
-
}
|
|
11890
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11891
|
-
const localVarHeaderParameter = {};
|
|
11892
|
-
const localVarQueryParameter = {};
|
|
11893
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11894
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11895
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11896
|
-
return {
|
|
11897
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11898
|
-
options: localVarRequestOptions,
|
|
11899
|
-
};
|
|
11900
|
-
}),
|
|
11901
|
-
/**
|
|
11902
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
11903
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
11904
|
-
* @param {*} [options] Override http request option.
|
|
11905
|
-
* @throws {RequiredError}
|
|
11906
|
-
*/
|
|
11907
|
-
maintainSlots: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11908
|
-
const localVarPath = `/api/jobs/maintain-slots`;
|
|
11909
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11910
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11911
|
-
let baseOptions;
|
|
11912
|
-
if (configuration) {
|
|
11913
|
-
baseOptions = configuration.baseOptions;
|
|
11914
|
-
}
|
|
11915
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11916
|
-
const localVarHeaderParameter = {};
|
|
11917
|
-
const localVarQueryParameter = {};
|
|
11918
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11919
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11920
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11921
|
-
return {
|
|
11922
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11923
|
-
options: localVarRequestOptions,
|
|
11924
|
-
};
|
|
11925
|
-
}),
|
|
11926
|
-
/**
|
|
11927
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
11928
|
-
* @summary Libère les anciennes réservations terminées
|
|
11929
|
-
* @param {*} [options] Override http request option.
|
|
11930
|
-
* @throws {RequiredError}
|
|
11931
|
-
*/
|
|
11932
|
-
releaseOldBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11933
|
-
const localVarPath = `/api/jobs/release-old-bookings`;
|
|
11934
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11935
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11936
|
-
let baseOptions;
|
|
11937
|
-
if (configuration) {
|
|
11938
|
-
baseOptions = configuration.baseOptions;
|
|
11939
|
-
}
|
|
11940
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11941
|
-
const localVarHeaderParameter = {};
|
|
11942
|
-
const localVarQueryParameter = {};
|
|
11943
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11944
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11945
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11946
|
-
return {
|
|
11947
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11948
|
-
options: localVarRequestOptions,
|
|
11949
|
-
};
|
|
11950
|
-
}),
|
|
11951
|
-
/**
|
|
11952
|
-
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
11953
|
-
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
11954
|
-
* @param {*} [options] Override http request option.
|
|
11955
|
-
* @throws {RequiredError}
|
|
11956
|
-
*/
|
|
11957
|
-
sendBookingReminders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11958
|
-
const localVarPath = `/api/jobs/send-booking-reminders`;
|
|
11959
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11960
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11961
|
-
let baseOptions;
|
|
11962
|
-
if (configuration) {
|
|
11963
|
-
baseOptions = configuration.baseOptions;
|
|
11964
|
-
}
|
|
11965
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11966
|
-
const localVarHeaderParameter = {};
|
|
11967
|
-
const localVarQueryParameter = {};
|
|
11968
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11969
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11970
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11971
|
-
return {
|
|
11972
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11973
|
-
options: localVarRequestOptions,
|
|
11974
|
-
};
|
|
11975
|
-
}),
|
|
11976
|
-
};
|
|
11977
|
-
};
|
|
11978
|
-
exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
|
|
11979
|
-
/**
|
|
11980
|
-
* JobsApi - functional programming interface
|
|
11981
|
-
* @export
|
|
11982
|
-
*/
|
|
11983
|
-
const JobsApiFp = function (configuration) {
|
|
11984
|
-
const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
|
|
11985
|
-
return {
|
|
11986
|
-
/**
|
|
11987
|
-
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
11988
|
-
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
11989
|
-
* @param {*} [options] Override http request option.
|
|
11990
|
-
* @throws {RequiredError}
|
|
11991
|
-
*/
|
|
11992
|
-
captureExpiringAuthorizations(options) {
|
|
11993
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11994
|
-
var _a, _b, _c;
|
|
11995
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
|
|
11996
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11997
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11998
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11999
|
-
});
|
|
12000
|
-
},
|
|
12001
|
-
/**
|
|
12002
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12003
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12004
|
-
* @param {*} [options] Override http request option.
|
|
12005
|
-
* @throws {RequiredError}
|
|
12006
|
-
*/
|
|
12007
|
-
capturePastReservations(options) {
|
|
12008
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12009
|
-
var _a, _b, _c;
|
|
12010
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
|
|
12011
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12012
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12013
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12014
|
-
});
|
|
12015
|
-
},
|
|
12016
|
-
/**
|
|
12017
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12018
|
-
* @summary Expire les réservations en attente de paiement
|
|
12019
|
-
* @param {*} [options] Override http request option.
|
|
12020
|
-
* @throws {RequiredError}
|
|
12021
|
-
*/
|
|
12022
|
-
expireBookingWaitingPayments(options) {
|
|
12023
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12024
|
-
var _a, _b, _c;
|
|
12025
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
|
|
12026
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12027
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12028
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12029
|
-
});
|
|
12030
|
-
},
|
|
12031
|
-
/**
|
|
12032
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12033
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12034
|
-
* @param {*} [options] Override http request option.
|
|
12035
|
-
* @throws {RequiredError}
|
|
12036
|
-
*/
|
|
12037
|
-
expireWaitlistPayments(options) {
|
|
12038
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12039
|
-
var _a, _b, _c;
|
|
12040
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
|
|
12041
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12042
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12043
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12044
|
-
});
|
|
12045
|
-
},
|
|
12046
|
-
/**
|
|
12047
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12048
|
-
* @summary Health check pour les jobs
|
|
12049
|
-
* @param {*} [options] Override http request option.
|
|
12050
|
-
* @throws {RequiredError}
|
|
12051
|
-
*/
|
|
12052
|
-
health(options) {
|
|
12053
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12054
|
-
var _a, _b, _c;
|
|
12055
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
|
|
12056
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12057
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12058
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12059
|
-
});
|
|
12060
|
-
},
|
|
12061
|
-
/**
|
|
12062
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12063
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12064
|
-
* @param {*} [options] Override http request option.
|
|
12065
|
-
* @throws {RequiredError}
|
|
12066
|
-
*/
|
|
12067
|
-
maintainSlots(options) {
|
|
12068
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12069
|
-
var _a, _b, _c;
|
|
12070
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.maintainSlots(options);
|
|
12071
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12072
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.maintainSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12073
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12074
|
-
});
|
|
12075
|
-
},
|
|
12076
|
-
/**
|
|
12077
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12078
|
-
* @summary Libère les anciennes réservations terminées
|
|
12079
|
-
* @param {*} [options] Override http request option.
|
|
12080
|
-
* @throws {RequiredError}
|
|
12081
|
-
*/
|
|
12082
|
-
releaseOldBookings(options) {
|
|
11619
|
+
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
12083
11620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12084
11621
|
var _a, _b, _c;
|
|
12085
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
12086
11623
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12087
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
11624
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12088
11625
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12089
11626
|
});
|
|
12090
11627
|
},
|
|
12091
11628
|
/**
|
|
12092
|
-
*
|
|
12093
|
-
* @
|
|
11629
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11630
|
+
* @param {string} clubId
|
|
11631
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
12094
11632
|
* @param {*} [options] Override http request option.
|
|
12095
11633
|
* @throws {RequiredError}
|
|
12096
11634
|
*/
|
|
12097
|
-
|
|
11635
|
+
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
12098
11636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12099
11637
|
var _a, _b, _c;
|
|
12100
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11638
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
12101
11639
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12102
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
11640
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12103
11641
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12104
11642
|
});
|
|
12105
11643
|
},
|
|
12106
11644
|
};
|
|
12107
11645
|
};
|
|
12108
|
-
exports.
|
|
11646
|
+
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
12109
11647
|
/**
|
|
12110
|
-
*
|
|
11648
|
+
* PaymentsStaffApi - factory interface
|
|
12111
11649
|
* @export
|
|
12112
11650
|
*/
|
|
12113
|
-
const
|
|
12114
|
-
const localVarFp = (0, exports.
|
|
11651
|
+
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11652
|
+
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
12115
11653
|
return {
|
|
12116
11654
|
/**
|
|
12117
|
-
*
|
|
12118
|
-
* @
|
|
12119
|
-
* @param {*} [options] Override http request option.
|
|
12120
|
-
* @throws {RequiredError}
|
|
12121
|
-
*/
|
|
12122
|
-
captureExpiringAuthorizations(options) {
|
|
12123
|
-
return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
|
|
12124
|
-
},
|
|
12125
|
-
/**
|
|
12126
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12127
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12128
|
-
* @param {*} [options] Override http request option.
|
|
12129
|
-
* @throws {RequiredError}
|
|
12130
|
-
*/
|
|
12131
|
-
capturePastReservations(options) {
|
|
12132
|
-
return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
|
|
12133
|
-
},
|
|
12134
|
-
/**
|
|
12135
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12136
|
-
* @summary Expire les réservations en attente de paiement
|
|
12137
|
-
* @param {*} [options] Override http request option.
|
|
12138
|
-
* @throws {RequiredError}
|
|
12139
|
-
*/
|
|
12140
|
-
expireBookingWaitingPayments(options) {
|
|
12141
|
-
return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
|
|
12142
|
-
},
|
|
12143
|
-
/**
|
|
12144
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12145
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12146
|
-
* @param {*} [options] Override http request option.
|
|
12147
|
-
* @throws {RequiredError}
|
|
12148
|
-
*/
|
|
12149
|
-
expireWaitlistPayments(options) {
|
|
12150
|
-
return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
|
|
12151
|
-
},
|
|
12152
|
-
/**
|
|
12153
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12154
|
-
* @summary Health check pour les jobs
|
|
12155
|
-
* @param {*} [options] Override http request option.
|
|
12156
|
-
* @throws {RequiredError}
|
|
12157
|
-
*/
|
|
12158
|
-
health(options) {
|
|
12159
|
-
return localVarFp.health(options).then((request) => request(axios, basePath));
|
|
12160
|
-
},
|
|
12161
|
-
/**
|
|
12162
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12163
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12164
|
-
* @param {*} [options] Override http request option.
|
|
12165
|
-
* @throws {RequiredError}
|
|
12166
|
-
*/
|
|
12167
|
-
maintainSlots(options) {
|
|
12168
|
-
return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
|
|
12169
|
-
},
|
|
12170
|
-
/**
|
|
12171
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12172
|
-
* @summary Libère les anciennes réservations terminées
|
|
11655
|
+
* Cancel a SumUp reader checkout.
|
|
11656
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
12173
11657
|
* @param {*} [options] Override http request option.
|
|
12174
11658
|
* @throws {RequiredError}
|
|
12175
11659
|
*/
|
|
12176
|
-
|
|
12177
|
-
return localVarFp.
|
|
11660
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11661
|
+
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
12178
11662
|
},
|
|
12179
11663
|
/**
|
|
12180
|
-
*
|
|
12181
|
-
* @
|
|
11664
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11665
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
12182
11666
|
* @param {*} [options] Override http request option.
|
|
12183
11667
|
* @throws {RequiredError}
|
|
12184
11668
|
*/
|
|
12185
|
-
|
|
12186
|
-
return localVarFp.
|
|
11669
|
+
createSumupPayment(requestParameters, options) {
|
|
11670
|
+
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
12187
11671
|
},
|
|
12188
11672
|
};
|
|
12189
11673
|
};
|
|
12190
|
-
exports.
|
|
11674
|
+
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
12191
11675
|
/**
|
|
12192
|
-
*
|
|
11676
|
+
* PaymentsStaffApi - object-oriented interface
|
|
12193
11677
|
* @export
|
|
12194
|
-
* @class
|
|
11678
|
+
* @class PaymentsStaffApi
|
|
12195
11679
|
* @extends {BaseAPI}
|
|
12196
11680
|
*/
|
|
12197
|
-
class
|
|
12198
|
-
/**
|
|
12199
|
-
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
12200
|
-
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
12201
|
-
* @param {*} [options] Override http request option.
|
|
12202
|
-
* @throws {RequiredError}
|
|
12203
|
-
* @memberof JobsApi
|
|
12204
|
-
*/
|
|
12205
|
-
captureExpiringAuthorizations(options) {
|
|
12206
|
-
return (0, exports.JobsApiFp)(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
|
|
12207
|
-
}
|
|
12208
|
-
/**
|
|
12209
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12210
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12211
|
-
* @param {*} [options] Override http request option.
|
|
12212
|
-
* @throws {RequiredError}
|
|
12213
|
-
* @memberof JobsApi
|
|
12214
|
-
*/
|
|
12215
|
-
capturePastReservations(options) {
|
|
12216
|
-
return (0, exports.JobsApiFp)(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
|
|
12217
|
-
}
|
|
12218
|
-
/**
|
|
12219
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12220
|
-
* @summary Expire les réservations en attente de paiement
|
|
12221
|
-
* @param {*} [options] Override http request option.
|
|
12222
|
-
* @throws {RequiredError}
|
|
12223
|
-
* @memberof JobsApi
|
|
12224
|
-
*/
|
|
12225
|
-
expireBookingWaitingPayments(options) {
|
|
12226
|
-
return (0, exports.JobsApiFp)(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12227
|
-
}
|
|
12228
|
-
/**
|
|
12229
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12230
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12231
|
-
* @param {*} [options] Override http request option.
|
|
12232
|
-
* @throws {RequiredError}
|
|
12233
|
-
* @memberof JobsApi
|
|
12234
|
-
*/
|
|
12235
|
-
expireWaitlistPayments(options) {
|
|
12236
|
-
return (0, exports.JobsApiFp)(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12237
|
-
}
|
|
12238
|
-
/**
|
|
12239
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12240
|
-
* @summary Health check pour les jobs
|
|
12241
|
-
* @param {*} [options] Override http request option.
|
|
12242
|
-
* @throws {RequiredError}
|
|
12243
|
-
* @memberof JobsApi
|
|
12244
|
-
*/
|
|
12245
|
-
health(options) {
|
|
12246
|
-
return (0, exports.JobsApiFp)(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
|
|
12247
|
-
}
|
|
12248
|
-
/**
|
|
12249
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12250
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12251
|
-
* @param {*} [options] Override http request option.
|
|
12252
|
-
* @throws {RequiredError}
|
|
12253
|
-
* @memberof JobsApi
|
|
12254
|
-
*/
|
|
12255
|
-
maintainSlots(options) {
|
|
12256
|
-
return (0, exports.JobsApiFp)(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
|
|
12257
|
-
}
|
|
11681
|
+
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
12258
11682
|
/**
|
|
12259
|
-
*
|
|
12260
|
-
* @
|
|
11683
|
+
* Cancel a SumUp reader checkout.
|
|
11684
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
12261
11685
|
* @param {*} [options] Override http request option.
|
|
12262
11686
|
* @throws {RequiredError}
|
|
12263
|
-
* @memberof
|
|
11687
|
+
* @memberof PaymentsStaffApi
|
|
12264
11688
|
*/
|
|
12265
|
-
|
|
12266
|
-
return (0, exports.
|
|
11689
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11690
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12267
11691
|
}
|
|
12268
11692
|
/**
|
|
12269
|
-
*
|
|
12270
|
-
* @
|
|
11693
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11694
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
12271
11695
|
* @param {*} [options] Override http request option.
|
|
12272
11696
|
* @throws {RequiredError}
|
|
12273
|
-
* @memberof
|
|
11697
|
+
* @memberof PaymentsStaffApi
|
|
12274
11698
|
*/
|
|
12275
|
-
|
|
12276
|
-
return (0, exports.
|
|
11699
|
+
createSumupPayment(requestParameters, options) {
|
|
11700
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12277
11701
|
}
|
|
12278
11702
|
}
|
|
12279
|
-
exports.
|
|
11703
|
+
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
12280
11704
|
/**
|
|
12281
11705
|
* PublicEmailApi - axios parameter creator
|
|
12282
11706
|
* @export
|
|
@@ -12318,9 +11742,9 @@ const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
|
12318
11742
|
* @param {*} [options] Override http request option.
|
|
12319
11743
|
* @throws {RequiredError}
|
|
12320
11744
|
*/
|
|
12321
|
-
|
|
11745
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
12322
11746
|
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
12323
|
-
(0, common_1.assertParamExists)('
|
|
11747
|
+
(0, common_1.assertParamExists)('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
12324
11748
|
const localVarPath = `/api/public-email/request-verification-code`;
|
|
12325
11749
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12326
11750
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12401,12 +11825,12 @@ const PublicEmailApiFp = function (configuration) {
|
|
|
12401
11825
|
* @param {*} [options] Override http request option.
|
|
12402
11826
|
* @throws {RequiredError}
|
|
12403
11827
|
*/
|
|
12404
|
-
|
|
11828
|
+
requestVerificationCode(requestEmailCodeBody, options) {
|
|
12405
11829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12406
11830
|
var _a, _b, _c;
|
|
12407
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
|
|
12408
11832
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12409
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.
|
|
11833
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12410
11834
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12411
11835
|
});
|
|
12412
11836
|
},
|
|
@@ -12446,12 +11870,12 @@ const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
|
12446
11870
|
},
|
|
12447
11871
|
/**
|
|
12448
11872
|
*
|
|
12449
|
-
* @param {
|
|
11873
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12450
11874
|
* @param {*} [options] Override http request option.
|
|
12451
11875
|
* @throws {RequiredError}
|
|
12452
11876
|
*/
|
|
12453
|
-
|
|
12454
|
-
return localVarFp.
|
|
11877
|
+
requestVerificationCode(requestParameters, options) {
|
|
11878
|
+
return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12455
11879
|
},
|
|
12456
11880
|
/**
|
|
12457
11881
|
*
|
|
@@ -12484,13 +11908,13 @@ class PublicEmailApi extends base_1.BaseAPI {
|
|
|
12484
11908
|
}
|
|
12485
11909
|
/**
|
|
12486
11910
|
*
|
|
12487
|
-
* @param {
|
|
11911
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12488
11912
|
* @param {*} [options] Override http request option.
|
|
12489
11913
|
* @throws {RequiredError}
|
|
12490
11914
|
* @memberof PublicEmailApi
|
|
12491
11915
|
*/
|
|
12492
|
-
|
|
12493
|
-
return (0, exports.PublicEmailApiFp)(this.configuration).
|
|
11916
|
+
requestVerificationCode(requestParameters, options) {
|
|
11917
|
+
return (0, exports.PublicEmailApiFp)(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
12494
11918
|
}
|
|
12495
11919
|
/**
|
|
12496
11920
|
*
|
|
@@ -13702,21 +13126,569 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
13702
13126
|
}
|
|
13703
13127
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13704
13128
|
/**
|
|
13705
|
-
*
|
|
13129
|
+
* SumUpApi - axios parameter creator
|
|
13706
13130
|
* @export
|
|
13707
13131
|
*/
|
|
13708
|
-
const
|
|
13132
|
+
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13709
13133
|
return {
|
|
13710
13134
|
/**
|
|
13711
|
-
*
|
|
13712
|
-
* @param {string}
|
|
13135
|
+
* OAuth callback for SumUp.
|
|
13136
|
+
* @param {string} code
|
|
13137
|
+
* @param {string} state
|
|
13713
13138
|
* @param {*} [options] Override http request option.
|
|
13714
13139
|
* @throws {RequiredError}
|
|
13715
13140
|
*/
|
|
13716
|
-
|
|
13717
|
-
// verify required parameter '
|
|
13718
|
-
(0, common_1.assertParamExists)('
|
|
13719
|
-
|
|
13141
|
+
sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
|
|
13142
|
+
// verify required parameter 'code' is not null or undefined
|
|
13143
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'code', code);
|
|
13144
|
+
// verify required parameter 'state' is not null or undefined
|
|
13145
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'state', state);
|
|
13146
|
+
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13148
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13149
|
+
let baseOptions;
|
|
13150
|
+
if (configuration) {
|
|
13151
|
+
baseOptions = configuration.baseOptions;
|
|
13152
|
+
}
|
|
13153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13154
|
+
const localVarHeaderParameter = {};
|
|
13155
|
+
const localVarQueryParameter = {};
|
|
13156
|
+
if (code !== undefined) {
|
|
13157
|
+
localVarQueryParameter['code'] = code;
|
|
13158
|
+
}
|
|
13159
|
+
if (state !== undefined) {
|
|
13160
|
+
localVarQueryParameter['state'] = state;
|
|
13161
|
+
}
|
|
13162
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13163
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13164
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13165
|
+
return {
|
|
13166
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13167
|
+
options: localVarRequestOptions,
|
|
13168
|
+
};
|
|
13169
|
+
}),
|
|
13170
|
+
};
|
|
13171
|
+
};
|
|
13172
|
+
exports.SumUpApiAxiosParamCreator = SumUpApiAxiosParamCreator;
|
|
13173
|
+
/**
|
|
13174
|
+
* SumUpApi - functional programming interface
|
|
13175
|
+
* @export
|
|
13176
|
+
*/
|
|
13177
|
+
const SumUpApiFp = function (configuration) {
|
|
13178
|
+
const localVarAxiosParamCreator = (0, exports.SumUpApiAxiosParamCreator)(configuration);
|
|
13179
|
+
return {
|
|
13180
|
+
/**
|
|
13181
|
+
* OAuth callback for SumUp.
|
|
13182
|
+
* @param {string} code
|
|
13183
|
+
* @param {string} state
|
|
13184
|
+
* @param {*} [options] Override http request option.
|
|
13185
|
+
* @throws {RequiredError}
|
|
13186
|
+
*/
|
|
13187
|
+
sumupOauthCallback(code, state, options) {
|
|
13188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13189
|
+
var _a, _b, _c;
|
|
13190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13191
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13192
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13194
|
+
});
|
|
13195
|
+
},
|
|
13196
|
+
};
|
|
13197
|
+
};
|
|
13198
|
+
exports.SumUpApiFp = SumUpApiFp;
|
|
13199
|
+
/**
|
|
13200
|
+
* SumUpApi - factory interface
|
|
13201
|
+
* @export
|
|
13202
|
+
*/
|
|
13203
|
+
const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13204
|
+
const localVarFp = (0, exports.SumUpApiFp)(configuration);
|
|
13205
|
+
return {
|
|
13206
|
+
/**
|
|
13207
|
+
* OAuth callback for SumUp.
|
|
13208
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13209
|
+
* @param {*} [options] Override http request option.
|
|
13210
|
+
* @throws {RequiredError}
|
|
13211
|
+
*/
|
|
13212
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13213
|
+
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13214
|
+
},
|
|
13215
|
+
};
|
|
13216
|
+
};
|
|
13217
|
+
exports.SumUpApiFactory = SumUpApiFactory;
|
|
13218
|
+
/**
|
|
13219
|
+
* SumUpApi - object-oriented interface
|
|
13220
|
+
* @export
|
|
13221
|
+
* @class SumUpApi
|
|
13222
|
+
* @extends {BaseAPI}
|
|
13223
|
+
*/
|
|
13224
|
+
class SumUpApi extends base_1.BaseAPI {
|
|
13225
|
+
/**
|
|
13226
|
+
* OAuth callback for SumUp.
|
|
13227
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13228
|
+
* @param {*} [options] Override http request option.
|
|
13229
|
+
* @throws {RequiredError}
|
|
13230
|
+
* @memberof SumUpApi
|
|
13231
|
+
*/
|
|
13232
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13233
|
+
return (0, exports.SumUpApiFp)(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13234
|
+
}
|
|
13235
|
+
}
|
|
13236
|
+
exports.SumUpApi = SumUpApi;
|
|
13237
|
+
/**
|
|
13238
|
+
* SumUpManagerApi - axios parameter creator
|
|
13239
|
+
* @export
|
|
13240
|
+
*/
|
|
13241
|
+
const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13242
|
+
return {
|
|
13243
|
+
/**
|
|
13244
|
+
* Disconnect SumUp account for a club.
|
|
13245
|
+
* @param {string} clubId
|
|
13246
|
+
* @param {*} [options] Override http request option.
|
|
13247
|
+
* @throws {RequiredError}
|
|
13248
|
+
*/
|
|
13249
|
+
disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13250
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13251
|
+
(0, common_1.assertParamExists)('disconnectSumup', 'clubId', clubId);
|
|
13252
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13253
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13256
|
+
let baseOptions;
|
|
13257
|
+
if (configuration) {
|
|
13258
|
+
baseOptions = configuration.baseOptions;
|
|
13259
|
+
}
|
|
13260
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13261
|
+
const localVarHeaderParameter = {};
|
|
13262
|
+
const localVarQueryParameter = {};
|
|
13263
|
+
// authentication bearerAuth required
|
|
13264
|
+
// http bearer authentication required
|
|
13265
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13266
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13267
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13268
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13269
|
+
return {
|
|
13270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13271
|
+
options: localVarRequestOptions,
|
|
13272
|
+
};
|
|
13273
|
+
}),
|
|
13274
|
+
/**
|
|
13275
|
+
* Start SumUp OAuth connection for a club.
|
|
13276
|
+
* @param {string} clubId
|
|
13277
|
+
* @param {*} [options] Override http request option.
|
|
13278
|
+
* @throws {RequiredError}
|
|
13279
|
+
*/
|
|
13280
|
+
getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13281
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13282
|
+
(0, common_1.assertParamExists)('getSumupConnectUrl', 'clubId', clubId);
|
|
13283
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13284
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13286
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13287
|
+
let baseOptions;
|
|
13288
|
+
if (configuration) {
|
|
13289
|
+
baseOptions = configuration.baseOptions;
|
|
13290
|
+
}
|
|
13291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13292
|
+
const localVarHeaderParameter = {};
|
|
13293
|
+
const localVarQueryParameter = {};
|
|
13294
|
+
// authentication bearerAuth required
|
|
13295
|
+
// http bearer authentication required
|
|
13296
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13297
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13299
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13300
|
+
return {
|
|
13301
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13302
|
+
options: localVarRequestOptions,
|
|
13303
|
+
};
|
|
13304
|
+
}),
|
|
13305
|
+
/**
|
|
13306
|
+
* Get SumUp connection status for a club.
|
|
13307
|
+
* @param {string} clubId
|
|
13308
|
+
* @param {*} [options] Override http request option.
|
|
13309
|
+
* @throws {RequiredError}
|
|
13310
|
+
*/
|
|
13311
|
+
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13312
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13313
|
+
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
13314
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13315
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13317
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13318
|
+
let baseOptions;
|
|
13319
|
+
if (configuration) {
|
|
13320
|
+
baseOptions = configuration.baseOptions;
|
|
13321
|
+
}
|
|
13322
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13323
|
+
const localVarHeaderParameter = {};
|
|
13324
|
+
const localVarQueryParameter = {};
|
|
13325
|
+
// authentication bearerAuth required
|
|
13326
|
+
// http bearer authentication required
|
|
13327
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13331
|
+
return {
|
|
13332
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13333
|
+
options: localVarRequestOptions,
|
|
13334
|
+
};
|
|
13335
|
+
}),
|
|
13336
|
+
/**
|
|
13337
|
+
* List SumUp readers for a club.
|
|
13338
|
+
* @param {string} clubId
|
|
13339
|
+
* @param {*} [options] Override http request option.
|
|
13340
|
+
* @throws {RequiredError}
|
|
13341
|
+
*/
|
|
13342
|
+
listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13343
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13344
|
+
(0, common_1.assertParamExists)('listSumupReaders', 'clubId', clubId);
|
|
13345
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13346
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13348
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13349
|
+
let baseOptions;
|
|
13350
|
+
if (configuration) {
|
|
13351
|
+
baseOptions = configuration.baseOptions;
|
|
13352
|
+
}
|
|
13353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13354
|
+
const localVarHeaderParameter = {};
|
|
13355
|
+
const localVarQueryParameter = {};
|
|
13356
|
+
// authentication bearerAuth required
|
|
13357
|
+
// http bearer authentication required
|
|
13358
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13362
|
+
return {
|
|
13363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13364
|
+
options: localVarRequestOptions,
|
|
13365
|
+
};
|
|
13366
|
+
}),
|
|
13367
|
+
/**
|
|
13368
|
+
* Pair a SumUp reader with a club.
|
|
13369
|
+
* @param {string} clubId
|
|
13370
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13371
|
+
* @param {*} [options] Override http request option.
|
|
13372
|
+
* @throws {RequiredError}
|
|
13373
|
+
*/
|
|
13374
|
+
pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
|
|
13375
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13376
|
+
(0, common_1.assertParamExists)('pairSumupReader', 'clubId', clubId);
|
|
13377
|
+
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
13378
|
+
(0, common_1.assertParamExists)('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
13379
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
|
|
13380
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13382
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13383
|
+
let baseOptions;
|
|
13384
|
+
if (configuration) {
|
|
13385
|
+
baseOptions = configuration.baseOptions;
|
|
13386
|
+
}
|
|
13387
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13388
|
+
const localVarHeaderParameter = {};
|
|
13389
|
+
const localVarQueryParameter = {};
|
|
13390
|
+
// authentication bearerAuth required
|
|
13391
|
+
// http bearer authentication required
|
|
13392
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13393
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13394
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13396
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13397
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13398
|
+
return {
|
|
13399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13400
|
+
options: localVarRequestOptions,
|
|
13401
|
+
};
|
|
13402
|
+
}),
|
|
13403
|
+
/**
|
|
13404
|
+
* Select a SumUp reader for a club.
|
|
13405
|
+
* @param {string} clubId
|
|
13406
|
+
* @param {string} readerId
|
|
13407
|
+
* @param {*} [options] Override http request option.
|
|
13408
|
+
* @throws {RequiredError}
|
|
13409
|
+
*/
|
|
13410
|
+
selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
|
|
13411
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13412
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'clubId', clubId);
|
|
13413
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13414
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'readerId', readerId);
|
|
13415
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
13416
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13417
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13419
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13420
|
+
let baseOptions;
|
|
13421
|
+
if (configuration) {
|
|
13422
|
+
baseOptions = configuration.baseOptions;
|
|
13423
|
+
}
|
|
13424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13425
|
+
const localVarHeaderParameter = {};
|
|
13426
|
+
const localVarQueryParameter = {};
|
|
13427
|
+
// authentication bearerAuth required
|
|
13428
|
+
// http bearer authentication required
|
|
13429
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13433
|
+
return {
|
|
13434
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13435
|
+
options: localVarRequestOptions,
|
|
13436
|
+
};
|
|
13437
|
+
}),
|
|
13438
|
+
};
|
|
13439
|
+
};
|
|
13440
|
+
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
13441
|
+
/**
|
|
13442
|
+
* SumUpManagerApi - functional programming interface
|
|
13443
|
+
* @export
|
|
13444
|
+
*/
|
|
13445
|
+
const SumUpManagerApiFp = function (configuration) {
|
|
13446
|
+
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
13447
|
+
return {
|
|
13448
|
+
/**
|
|
13449
|
+
* Disconnect SumUp account for a club.
|
|
13450
|
+
* @param {string} clubId
|
|
13451
|
+
* @param {*} [options] Override http request option.
|
|
13452
|
+
* @throws {RequiredError}
|
|
13453
|
+
*/
|
|
13454
|
+
disconnectSumup(clubId, options) {
|
|
13455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13456
|
+
var _a, _b, _c;
|
|
13457
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13458
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13459
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13460
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13461
|
+
});
|
|
13462
|
+
},
|
|
13463
|
+
/**
|
|
13464
|
+
* Start SumUp OAuth connection for a club.
|
|
13465
|
+
* @param {string} clubId
|
|
13466
|
+
* @param {*} [options] Override http request option.
|
|
13467
|
+
* @throws {RequiredError}
|
|
13468
|
+
*/
|
|
13469
|
+
getSumupConnectUrl(clubId, options) {
|
|
13470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13471
|
+
var _a, _b, _c;
|
|
13472
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13473
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13474
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13475
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13476
|
+
});
|
|
13477
|
+
},
|
|
13478
|
+
/**
|
|
13479
|
+
* Get SumUp connection status for a club.
|
|
13480
|
+
* @param {string} clubId
|
|
13481
|
+
* @param {*} [options] Override http request option.
|
|
13482
|
+
* @throws {RequiredError}
|
|
13483
|
+
*/
|
|
13484
|
+
getSumupStatus(clubId, options) {
|
|
13485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13486
|
+
var _a, _b, _c;
|
|
13487
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13488
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13489
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13490
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13491
|
+
});
|
|
13492
|
+
},
|
|
13493
|
+
/**
|
|
13494
|
+
* List SumUp readers for a club.
|
|
13495
|
+
* @param {string} clubId
|
|
13496
|
+
* @param {*} [options] Override http request option.
|
|
13497
|
+
* @throws {RequiredError}
|
|
13498
|
+
*/
|
|
13499
|
+
listSumupReaders(clubId, options) {
|
|
13500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13501
|
+
var _a, _b, _c;
|
|
13502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13506
|
+
});
|
|
13507
|
+
},
|
|
13508
|
+
/**
|
|
13509
|
+
* Pair a SumUp reader with a club.
|
|
13510
|
+
* @param {string} clubId
|
|
13511
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13512
|
+
* @param {*} [options] Override http request option.
|
|
13513
|
+
* @throws {RequiredError}
|
|
13514
|
+
*/
|
|
13515
|
+
pairSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
13516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13517
|
+
var _a, _b, _c;
|
|
13518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
|
|
13519
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13520
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13521
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13522
|
+
});
|
|
13523
|
+
},
|
|
13524
|
+
/**
|
|
13525
|
+
* Select a SumUp reader for a club.
|
|
13526
|
+
* @param {string} clubId
|
|
13527
|
+
* @param {string} readerId
|
|
13528
|
+
* @param {*} [options] Override http request option.
|
|
13529
|
+
* @throws {RequiredError}
|
|
13530
|
+
*/
|
|
13531
|
+
selectSumupReader(clubId, readerId, options) {
|
|
13532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13533
|
+
var _a, _b, _c;
|
|
13534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
13535
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13536
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13537
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13538
|
+
});
|
|
13539
|
+
},
|
|
13540
|
+
};
|
|
13541
|
+
};
|
|
13542
|
+
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
13543
|
+
/**
|
|
13544
|
+
* SumUpManagerApi - factory interface
|
|
13545
|
+
* @export
|
|
13546
|
+
*/
|
|
13547
|
+
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13548
|
+
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
13549
|
+
return {
|
|
13550
|
+
/**
|
|
13551
|
+
* Disconnect SumUp account for a club.
|
|
13552
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13553
|
+
* @param {*} [options] Override http request option.
|
|
13554
|
+
* @throws {RequiredError}
|
|
13555
|
+
*/
|
|
13556
|
+
disconnectSumup(requestParameters, options) {
|
|
13557
|
+
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13558
|
+
},
|
|
13559
|
+
/**
|
|
13560
|
+
* Start SumUp OAuth connection for a club.
|
|
13561
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13562
|
+
* @param {*} [options] Override http request option.
|
|
13563
|
+
* @throws {RequiredError}
|
|
13564
|
+
*/
|
|
13565
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13566
|
+
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13567
|
+
},
|
|
13568
|
+
/**
|
|
13569
|
+
* Get SumUp connection status for a club.
|
|
13570
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13571
|
+
* @param {*} [options] Override http request option.
|
|
13572
|
+
* @throws {RequiredError}
|
|
13573
|
+
*/
|
|
13574
|
+
getSumupStatus(requestParameters, options) {
|
|
13575
|
+
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13576
|
+
},
|
|
13577
|
+
/**
|
|
13578
|
+
* List SumUp readers for a club.
|
|
13579
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13580
|
+
* @param {*} [options] Override http request option.
|
|
13581
|
+
* @throws {RequiredError}
|
|
13582
|
+
*/
|
|
13583
|
+
listSumupReaders(requestParameters, options) {
|
|
13584
|
+
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13585
|
+
},
|
|
13586
|
+
/**
|
|
13587
|
+
* Pair a SumUp reader with a club.
|
|
13588
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13589
|
+
* @param {*} [options] Override http request option.
|
|
13590
|
+
* @throws {RequiredError}
|
|
13591
|
+
*/
|
|
13592
|
+
pairSumupReader(requestParameters, options) {
|
|
13593
|
+
return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
13594
|
+
},
|
|
13595
|
+
/**
|
|
13596
|
+
* Select a SumUp reader for a club.
|
|
13597
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13598
|
+
* @param {*} [options] Override http request option.
|
|
13599
|
+
* @throws {RequiredError}
|
|
13600
|
+
*/
|
|
13601
|
+
selectSumupReader(requestParameters, options) {
|
|
13602
|
+
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
13603
|
+
},
|
|
13604
|
+
};
|
|
13605
|
+
};
|
|
13606
|
+
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
13607
|
+
/**
|
|
13608
|
+
* SumUpManagerApi - object-oriented interface
|
|
13609
|
+
* @export
|
|
13610
|
+
* @class SumUpManagerApi
|
|
13611
|
+
* @extends {BaseAPI}
|
|
13612
|
+
*/
|
|
13613
|
+
class SumUpManagerApi extends base_1.BaseAPI {
|
|
13614
|
+
/**
|
|
13615
|
+
* Disconnect SumUp account for a club.
|
|
13616
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13617
|
+
* @param {*} [options] Override http request option.
|
|
13618
|
+
* @throws {RequiredError}
|
|
13619
|
+
* @memberof SumUpManagerApi
|
|
13620
|
+
*/
|
|
13621
|
+
disconnectSumup(requestParameters, options) {
|
|
13622
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13623
|
+
}
|
|
13624
|
+
/**
|
|
13625
|
+
* Start SumUp OAuth connection for a club.
|
|
13626
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13627
|
+
* @param {*} [options] Override http request option.
|
|
13628
|
+
* @throws {RequiredError}
|
|
13629
|
+
* @memberof SumUpManagerApi
|
|
13630
|
+
*/
|
|
13631
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13632
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13633
|
+
}
|
|
13634
|
+
/**
|
|
13635
|
+
* Get SumUp connection status for a club.
|
|
13636
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13637
|
+
* @param {*} [options] Override http request option.
|
|
13638
|
+
* @throws {RequiredError}
|
|
13639
|
+
* @memberof SumUpManagerApi
|
|
13640
|
+
*/
|
|
13641
|
+
getSumupStatus(requestParameters, options) {
|
|
13642
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13643
|
+
}
|
|
13644
|
+
/**
|
|
13645
|
+
* List SumUp readers for a club.
|
|
13646
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13647
|
+
* @param {*} [options] Override http request option.
|
|
13648
|
+
* @throws {RequiredError}
|
|
13649
|
+
* @memberof SumUpManagerApi
|
|
13650
|
+
*/
|
|
13651
|
+
listSumupReaders(requestParameters, options) {
|
|
13652
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13653
|
+
}
|
|
13654
|
+
/**
|
|
13655
|
+
* Pair a SumUp reader with a club.
|
|
13656
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13657
|
+
* @param {*} [options] Override http request option.
|
|
13658
|
+
* @throws {RequiredError}
|
|
13659
|
+
* @memberof SumUpManagerApi
|
|
13660
|
+
*/
|
|
13661
|
+
pairSumupReader(requestParameters, options) {
|
|
13662
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13663
|
+
}
|
|
13664
|
+
/**
|
|
13665
|
+
* Select a SumUp reader for a club.
|
|
13666
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13667
|
+
* @param {*} [options] Override http request option.
|
|
13668
|
+
* @throws {RequiredError}
|
|
13669
|
+
* @memberof SumUpManagerApi
|
|
13670
|
+
*/
|
|
13671
|
+
selectSumupReader(requestParameters, options) {
|
|
13672
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
13673
|
+
}
|
|
13674
|
+
}
|
|
13675
|
+
exports.SumUpManagerApi = SumUpManagerApi;
|
|
13676
|
+
/**
|
|
13677
|
+
* UserApi - axios parameter creator
|
|
13678
|
+
* @export
|
|
13679
|
+
*/
|
|
13680
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
13681
|
+
return {
|
|
13682
|
+
/**
|
|
13683
|
+
* Récupère les informations du club de l\'utilisateur
|
|
13684
|
+
* @param {string} clubId
|
|
13685
|
+
* @param {*} [options] Override http request option.
|
|
13686
|
+
* @throws {RequiredError}
|
|
13687
|
+
*/
|
|
13688
|
+
getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13689
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13690
|
+
(0, common_1.assertParamExists)('getMyClubInfos', 'clubId', clubId);
|
|
13691
|
+
const localVarPath = `/api/users/me/club-infos`;
|
|
13720
13692
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13721
13693
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13722
13694
|
let baseOptions;
|
|
@@ -14439,47 +14411,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14439
14411
|
options: localVarRequestOptions,
|
|
14440
14412
|
};
|
|
14441
14413
|
}),
|
|
14442
|
-
/**
|
|
14443
|
-
*
|
|
14444
|
-
* @param {number} [limit]
|
|
14445
|
-
* @param {number} [skip]
|
|
14446
|
-
* @param {any} [includeRead]
|
|
14447
|
-
* @param {*} [options] Override http request option.
|
|
14448
|
-
* @throws {RequiredError}
|
|
14449
|
-
*/
|
|
14450
|
-
getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
|
|
14451
|
-
const localVarPath = `/api/users/me/notifications`;
|
|
14452
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14453
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14454
|
-
let baseOptions;
|
|
14455
|
-
if (configuration) {
|
|
14456
|
-
baseOptions = configuration.baseOptions;
|
|
14457
|
-
}
|
|
14458
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14459
|
-
const localVarHeaderParameter = {};
|
|
14460
|
-
const localVarQueryParameter = {};
|
|
14461
|
-
// authentication bearerAuth required
|
|
14462
|
-
// http bearer authentication required
|
|
14463
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14464
|
-
if (limit !== undefined) {
|
|
14465
|
-
localVarQueryParameter['limit'] = limit;
|
|
14466
|
-
}
|
|
14467
|
-
if (skip !== undefined) {
|
|
14468
|
-
localVarQueryParameter['skip'] = skip;
|
|
14469
|
-
}
|
|
14470
|
-
if (includeRead !== undefined) {
|
|
14471
|
-
for (const [key, value] of Object.entries(includeRead)) {
|
|
14472
|
-
localVarQueryParameter[key] = value;
|
|
14473
|
-
}
|
|
14474
|
-
}
|
|
14475
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14476
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14477
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14478
|
-
return {
|
|
14479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14480
|
-
options: localVarRequestOptions,
|
|
14481
|
-
};
|
|
14482
|
-
}),
|
|
14483
14414
|
/**
|
|
14484
14415
|
*
|
|
14485
14416
|
* @param {string} id
|
|
@@ -14667,38 +14598,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14667
14598
|
options: localVarRequestOptions,
|
|
14668
14599
|
};
|
|
14669
14600
|
}),
|
|
14670
|
-
/**
|
|
14671
|
-
*
|
|
14672
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
14673
|
-
* @param {*} [options] Override http request option.
|
|
14674
|
-
* @throws {RequiredError}
|
|
14675
|
-
*/
|
|
14676
|
-
markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
|
|
14677
|
-
// verify required parameter 'markNotificationsReadRequest' is not null or undefined
|
|
14678
|
-
(0, common_1.assertParamExists)('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
|
|
14679
|
-
const localVarPath = `/api/users/me/notifications/read`;
|
|
14680
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14681
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14682
|
-
let baseOptions;
|
|
14683
|
-
if (configuration) {
|
|
14684
|
-
baseOptions = configuration.baseOptions;
|
|
14685
|
-
}
|
|
14686
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14687
|
-
const localVarHeaderParameter = {};
|
|
14688
|
-
const localVarQueryParameter = {};
|
|
14689
|
-
// authentication bearerAuth required
|
|
14690
|
-
// http bearer authentication required
|
|
14691
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14692
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14693
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14694
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14695
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14696
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markNotificationsReadRequest, localVarRequestOptions, configuration);
|
|
14697
|
-
return {
|
|
14698
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14699
|
-
options: localVarRequestOptions,
|
|
14700
|
-
};
|
|
14701
|
-
}),
|
|
14702
14601
|
/**
|
|
14703
14602
|
*
|
|
14704
14603
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14822,59 +14721,27 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14822
14721
|
* @param {string} favoritePlayerId
|
|
14823
14722
|
* @param {*} [options] Override http request option.
|
|
14824
14723
|
* @throws {RequiredError}
|
|
14825
|
-
*/
|
|
14826
|
-
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
14827
|
-
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
14828
|
-
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
14829
|
-
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
14830
|
-
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
14831
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14832
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14833
|
-
let baseOptions;
|
|
14834
|
-
if (configuration) {
|
|
14835
|
-
baseOptions = configuration.baseOptions;
|
|
14836
|
-
}
|
|
14837
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14838
|
-
const localVarHeaderParameter = {};
|
|
14839
|
-
const localVarQueryParameter = {};
|
|
14840
|
-
// authentication bearerAuth required
|
|
14841
|
-
// http bearer authentication required
|
|
14842
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14843
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14844
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14845
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14846
|
-
return {
|
|
14847
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14848
|
-
options: localVarRequestOptions,
|
|
14849
|
-
};
|
|
14850
|
-
}),
|
|
14851
|
-
/**
|
|
14852
|
-
*
|
|
14853
|
-
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14854
|
-
* @param {*} [options] Override http request option.
|
|
14855
|
-
* @throws {RequiredError}
|
|
14856
|
-
*/
|
|
14857
|
-
removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
14858
|
-
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
14859
|
-
(0, common_1.assertParamExists)('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
14860
|
-
const localVarPath = `/api/users/me/remove-organization`;
|
|
14724
|
+
*/
|
|
14725
|
+
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
14726
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
14727
|
+
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
14728
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
14729
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
14861
14730
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14862
14731
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14863
14732
|
let baseOptions;
|
|
14864
14733
|
if (configuration) {
|
|
14865
14734
|
baseOptions = configuration.baseOptions;
|
|
14866
14735
|
}
|
|
14867
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
14736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14868
14737
|
const localVarHeaderParameter = {};
|
|
14869
14738
|
const localVarQueryParameter = {};
|
|
14870
14739
|
// authentication bearerAuth required
|
|
14871
14740
|
// http bearer authentication required
|
|
14872
14741
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14873
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14874
14742
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14875
14743
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14876
14744
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14877
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14878
14745
|
return {
|
|
14879
14746
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14880
14747
|
options: localVarRequestOptions,
|
|
@@ -14882,11 +14749,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14882
14749
|
}),
|
|
14883
14750
|
/**
|
|
14884
14751
|
*
|
|
14752
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14885
14753
|
* @param {*} [options] Override http request option.
|
|
14886
14754
|
* @throws {RequiredError}
|
|
14887
14755
|
*/
|
|
14888
|
-
|
|
14889
|
-
|
|
14756
|
+
removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
14757
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
14758
|
+
(0, common_1.assertParamExists)('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
14759
|
+
const localVarPath = `/api/users/me/remove-organization`;
|
|
14890
14760
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14891
14761
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14892
14762
|
let baseOptions;
|
|
@@ -14899,9 +14769,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14899
14769
|
// authentication bearerAuth required
|
|
14900
14770
|
// http bearer authentication required
|
|
14901
14771
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14772
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14902
14773
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14903
14774
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14904
14775
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14776
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14905
14777
|
return {
|
|
14906
14778
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14907
14779
|
options: localVarRequestOptions,
|
|
@@ -14909,14 +14781,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14909
14781
|
}),
|
|
14910
14782
|
/**
|
|
14911
14783
|
*
|
|
14912
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
14913
14784
|
* @param {*} [options] Override http request option.
|
|
14914
14785
|
* @throws {RequiredError}
|
|
14915
14786
|
*/
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
(0, common_1.assertParamExists)('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
|
|
14919
|
-
const localVarPath = `/api/users/me/request-organization-code`;
|
|
14787
|
+
requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14788
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
14920
14789
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14921
14790
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14922
14791
|
let baseOptions;
|
|
@@ -14929,11 +14798,9 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14929
14798
|
// authentication bearerAuth required
|
|
14930
14799
|
// http bearer authentication required
|
|
14931
14800
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14932
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14933
14801
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14934
14802
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14935
14803
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14936
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
14937
14804
|
return {
|
|
14938
14805
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14939
14806
|
options: localVarRequestOptions,
|
|
@@ -14997,51 +14864,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14997
14864
|
options: localVarRequestOptions,
|
|
14998
14865
|
};
|
|
14999
14866
|
}),
|
|
15000
|
-
/**
|
|
15001
|
-
*
|
|
15002
|
-
* @param {string} q
|
|
15003
|
-
* @param {number} [page]
|
|
15004
|
-
* @param {number} [limit]
|
|
15005
|
-
* @param {Array<string>} [excludeIds]
|
|
15006
|
-
* @param {*} [options] Override http request option.
|
|
15007
|
-
* @throws {RequiredError}
|
|
15008
|
-
*/
|
|
15009
|
-
searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
|
|
15010
|
-
// verify required parameter 'q' is not null or undefined
|
|
15011
|
-
(0, common_1.assertParamExists)('searchPartner', 'q', q);
|
|
15012
|
-
const localVarPath = `/api/users/searchPartner`;
|
|
15013
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15014
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15015
|
-
let baseOptions;
|
|
15016
|
-
if (configuration) {
|
|
15017
|
-
baseOptions = configuration.baseOptions;
|
|
15018
|
-
}
|
|
15019
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15020
|
-
const localVarHeaderParameter = {};
|
|
15021
|
-
const localVarQueryParameter = {};
|
|
15022
|
-
// authentication bearerAuth required
|
|
15023
|
-
// http bearer authentication required
|
|
15024
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15025
|
-
if (q !== undefined) {
|
|
15026
|
-
localVarQueryParameter['q'] = q;
|
|
15027
|
-
}
|
|
15028
|
-
if (page !== undefined) {
|
|
15029
|
-
localVarQueryParameter['page'] = page;
|
|
15030
|
-
}
|
|
15031
|
-
if (limit !== undefined) {
|
|
15032
|
-
localVarQueryParameter['limit'] = limit;
|
|
15033
|
-
}
|
|
15034
|
-
if (excludeIds) {
|
|
15035
|
-
localVarQueryParameter['excludeIds'] = excludeIds;
|
|
15036
|
-
}
|
|
15037
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15038
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15039
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15040
|
-
return {
|
|
15041
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15042
|
-
options: localVarRequestOptions,
|
|
15043
|
-
};
|
|
15044
|
-
}),
|
|
15045
14867
|
/**
|
|
15046
14868
|
*
|
|
15047
14869
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -15257,38 +15079,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15257
15079
|
options: localVarRequestOptions,
|
|
15258
15080
|
};
|
|
15259
15081
|
}),
|
|
15260
|
-
/**
|
|
15261
|
-
*
|
|
15262
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15263
|
-
* @param {*} [options] Override http request option.
|
|
15264
|
-
* @throws {RequiredError}
|
|
15265
|
-
*/
|
|
15266
|
-
verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
|
|
15267
|
-
// verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
|
|
15268
|
-
(0, common_1.assertParamExists)('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
|
|
15269
|
-
const localVarPath = `/api/users/me/verify-organization-code`;
|
|
15270
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15271
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15272
|
-
let baseOptions;
|
|
15273
|
-
if (configuration) {
|
|
15274
|
-
baseOptions = configuration.baseOptions;
|
|
15275
|
-
}
|
|
15276
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15277
|
-
const localVarHeaderParameter = {};
|
|
15278
|
-
const localVarQueryParameter = {};
|
|
15279
|
-
// authentication bearerAuth required
|
|
15280
|
-
// http bearer authentication required
|
|
15281
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15282
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15283
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15284
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15285
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15286
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
15287
|
-
return {
|
|
15288
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15289
|
-
options: localVarRequestOptions,
|
|
15290
|
-
};
|
|
15291
|
-
}),
|
|
15292
15082
|
};
|
|
15293
15083
|
};
|
|
15294
15084
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -15601,23 +15391,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15601
15391
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15602
15392
|
});
|
|
15603
15393
|
},
|
|
15604
|
-
/**
|
|
15605
|
-
*
|
|
15606
|
-
* @param {number} [limit]
|
|
15607
|
-
* @param {number} [skip]
|
|
15608
|
-
* @param {any} [includeRead]
|
|
15609
|
-
* @param {*} [options] Override http request option.
|
|
15610
|
-
* @throws {RequiredError}
|
|
15611
|
-
*/
|
|
15612
|
-
getUserNotifications(limit, skip, includeRead, options) {
|
|
15613
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15614
|
-
var _a, _b, _c;
|
|
15615
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
|
|
15616
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15617
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15618
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15619
|
-
});
|
|
15620
|
-
},
|
|
15621
15394
|
/**
|
|
15622
15395
|
*
|
|
15623
15396
|
* @param {string} id
|
|
@@ -15702,21 +15475,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15702
15475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15703
15476
|
});
|
|
15704
15477
|
},
|
|
15705
|
-
/**
|
|
15706
|
-
*
|
|
15707
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
15708
|
-
* @param {*} [options] Override http request option.
|
|
15709
|
-
* @throws {RequiredError}
|
|
15710
|
-
*/
|
|
15711
|
-
markNotificationsRead(markNotificationsReadRequest, options) {
|
|
15712
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15713
|
-
var _a, _b, _c;
|
|
15714
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
|
|
15715
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15716
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15717
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15718
|
-
});
|
|
15719
|
-
},
|
|
15720
15478
|
/**
|
|
15721
15479
|
*
|
|
15722
15480
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -15821,21 +15579,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15821
15579
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15822
15580
|
});
|
|
15823
15581
|
},
|
|
15824
|
-
/**
|
|
15825
|
-
*
|
|
15826
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
15827
|
-
* @param {*} [options] Override http request option.
|
|
15828
|
-
* @throws {RequiredError}
|
|
15829
|
-
*/
|
|
15830
|
-
requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
|
|
15831
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15832
|
-
var _a, _b, _c;
|
|
15833
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
|
|
15834
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15835
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15836
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15837
|
-
});
|
|
15838
|
-
},
|
|
15839
15582
|
/**
|
|
15840
15583
|
*
|
|
15841
15584
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -15866,24 +15609,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15866
15609
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15867
15610
|
});
|
|
15868
15611
|
},
|
|
15869
|
-
/**
|
|
15870
|
-
*
|
|
15871
|
-
* @param {string} q
|
|
15872
|
-
* @param {number} [page]
|
|
15873
|
-
* @param {number} [limit]
|
|
15874
|
-
* @param {Array<string>} [excludeIds]
|
|
15875
|
-
* @param {*} [options] Override http request option.
|
|
15876
|
-
* @throws {RequiredError}
|
|
15877
|
-
*/
|
|
15878
|
-
searchPartner(q, page, limit, excludeIds, options) {
|
|
15879
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15880
|
-
var _a, _b, _c;
|
|
15881
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
|
|
15882
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15883
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.searchPartner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15884
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15885
|
-
});
|
|
15886
|
-
},
|
|
15887
15612
|
/**
|
|
15888
15613
|
*
|
|
15889
15614
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -15989,21 +15714,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15989
15714
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15990
15715
|
});
|
|
15991
15716
|
},
|
|
15992
|
-
/**
|
|
15993
|
-
*
|
|
15994
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15995
|
-
* @param {*} [options] Override http request option.
|
|
15996
|
-
* @throws {RequiredError}
|
|
15997
|
-
*/
|
|
15998
|
-
verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
|
|
15999
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16000
|
-
var _a, _b, _c;
|
|
16001
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
|
|
16002
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16003
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16004
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16005
|
-
});
|
|
16006
|
-
},
|
|
16007
15717
|
};
|
|
16008
15718
|
};
|
|
16009
15719
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -16186,15 +15896,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16186
15896
|
getUserEvents(requestParameters = {}, options) {
|
|
16187
15897
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
16188
15898
|
},
|
|
16189
|
-
/**
|
|
16190
|
-
*
|
|
16191
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16192
|
-
* @param {*} [options] Override http request option.
|
|
16193
|
-
* @throws {RequiredError}
|
|
16194
|
-
*/
|
|
16195
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16196
|
-
return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
|
|
16197
|
-
},
|
|
16198
15899
|
/**
|
|
16199
15900
|
*
|
|
16200
15901
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16240,15 +15941,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16240
15941
|
loginClubMember(requestParameters, options) {
|
|
16241
15942
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
16242
15943
|
},
|
|
16243
|
-
/**
|
|
16244
|
-
*
|
|
16245
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16246
|
-
* @param {*} [options] Override http request option.
|
|
16247
|
-
* @throws {RequiredError}
|
|
16248
|
-
*/
|
|
16249
|
-
markNotificationsRead(requestParameters, options) {
|
|
16250
|
-
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
16251
|
-
},
|
|
16252
15944
|
/**
|
|
16253
15945
|
*
|
|
16254
15946
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16311,15 +16003,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16311
16003
|
requestEmailVerification(options) {
|
|
16312
16004
|
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
16313
16005
|
},
|
|
16314
|
-
/**
|
|
16315
|
-
*
|
|
16316
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16317
|
-
* @param {*} [options] Override http request option.
|
|
16318
|
-
* @throws {RequiredError}
|
|
16319
|
-
*/
|
|
16320
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16321
|
-
return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16322
|
-
},
|
|
16323
16006
|
/**
|
|
16324
16007
|
*
|
|
16325
16008
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16338,15 +16021,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16338
16021
|
resetPassword(requestParameters, options) {
|
|
16339
16022
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
16340
16023
|
},
|
|
16341
|
-
/**
|
|
16342
|
-
*
|
|
16343
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16344
|
-
* @param {*} [options] Override http request option.
|
|
16345
|
-
* @throws {RequiredError}
|
|
16346
|
-
*/
|
|
16347
|
-
searchPartner(requestParameters, options) {
|
|
16348
|
-
return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
|
|
16349
|
-
},
|
|
16350
16024
|
/**
|
|
16351
16025
|
*
|
|
16352
16026
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16410,15 +16084,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16410
16084
|
verifyOrganization(requestParameters, options) {
|
|
16411
16085
|
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16412
16086
|
},
|
|
16413
|
-
/**
|
|
16414
|
-
*
|
|
16415
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16416
|
-
* @param {*} [options] Override http request option.
|
|
16417
|
-
* @throws {RequiredError}
|
|
16418
|
-
*/
|
|
16419
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16420
|
-
return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16421
|
-
},
|
|
16422
16087
|
};
|
|
16423
16088
|
};
|
|
16424
16089
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -16621,16 +16286,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16621
16286
|
getUserEvents(requestParameters = {}, options) {
|
|
16622
16287
|
return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
16623
16288
|
}
|
|
16624
|
-
/**
|
|
16625
|
-
*
|
|
16626
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16627
|
-
* @param {*} [options] Override http request option.
|
|
16628
|
-
* @throws {RequiredError}
|
|
16629
|
-
* @memberof UsersApi
|
|
16630
|
-
*/
|
|
16631
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16632
|
-
return (0, exports.UsersApiFp)(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
|
|
16633
|
-
}
|
|
16634
16289
|
/**
|
|
16635
16290
|
*
|
|
16636
16291
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16681,16 +16336,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16681
16336
|
loginClubMember(requestParameters, options) {
|
|
16682
16337
|
return (0, exports.UsersApiFp)(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
16683
16338
|
}
|
|
16684
|
-
/**
|
|
16685
|
-
*
|
|
16686
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16687
|
-
* @param {*} [options] Override http request option.
|
|
16688
|
-
* @throws {RequiredError}
|
|
16689
|
-
* @memberof UsersApi
|
|
16690
|
-
*/
|
|
16691
|
-
markNotificationsRead(requestParameters, options) {
|
|
16692
|
-
return (0, exports.UsersApiFp)(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16693
|
-
}
|
|
16694
16339
|
/**
|
|
16695
16340
|
*
|
|
16696
16341
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16760,16 +16405,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16760
16405
|
requestEmailVerification(options) {
|
|
16761
16406
|
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
16762
16407
|
}
|
|
16763
|
-
/**
|
|
16764
|
-
*
|
|
16765
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16766
|
-
* @param {*} [options] Override http request option.
|
|
16767
|
-
* @throws {RequiredError}
|
|
16768
|
-
* @memberof UsersApi
|
|
16769
|
-
*/
|
|
16770
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16771
|
-
return (0, exports.UsersApiFp)(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16772
|
-
}
|
|
16773
16408
|
/**
|
|
16774
16409
|
*
|
|
16775
16410
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16790,16 +16425,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16790
16425
|
resetPassword(requestParameters, options) {
|
|
16791
16426
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16792
16427
|
}
|
|
16793
|
-
/**
|
|
16794
|
-
*
|
|
16795
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16796
|
-
* @param {*} [options] Override http request option.
|
|
16797
|
-
* @throws {RequiredError}
|
|
16798
|
-
* @memberof UsersApi
|
|
16799
|
-
*/
|
|
16800
|
-
searchPartner(requestParameters, options) {
|
|
16801
|
-
return (0, exports.UsersApiFp)(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
|
|
16802
|
-
}
|
|
16803
16428
|
/**
|
|
16804
16429
|
*
|
|
16805
16430
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16870,16 +16495,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16870
16495
|
verifyOrganization(requestParameters, options) {
|
|
16871
16496
|
return (0, exports.UsersApiFp)(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16872
16497
|
}
|
|
16873
|
-
/**
|
|
16874
|
-
*
|
|
16875
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16876
|
-
* @param {*} [options] Override http request option.
|
|
16877
|
-
* @throws {RequiredError}
|
|
16878
|
-
* @memberof UsersApi
|
|
16879
|
-
*/
|
|
16880
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16881
|
-
return (0, exports.UsersApiFp)(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16882
|
-
}
|
|
16883
16498
|
}
|
|
16884
16499
|
exports.UsersApi = UsersApi;
|
|
16885
16500
|
/**
|
|
@@ -17604,37 +17219,6 @@ const WaitListStaffApiAxiosParamCreator = function (configuration) {
|
|
|
17604
17219
|
options: localVarRequestOptions,
|
|
17605
17220
|
};
|
|
17606
17221
|
}),
|
|
17607
|
-
/**
|
|
17608
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17609
|
-
* @param {string} eventId
|
|
17610
|
-
* @param {*} [options] Override http request option.
|
|
17611
|
-
* @throws {RequiredError}
|
|
17612
|
-
*/
|
|
17613
|
-
getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
17614
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
17615
|
-
(0, common_1.assertParamExists)('getEventWaitListPlayers', 'eventId', eventId);
|
|
17616
|
-
const localVarPath = `/api/waitlist/event/{eventId}/players`
|
|
17617
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
17618
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17619
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17620
|
-
let baseOptions;
|
|
17621
|
-
if (configuration) {
|
|
17622
|
-
baseOptions = configuration.baseOptions;
|
|
17623
|
-
}
|
|
17624
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17625
|
-
const localVarHeaderParameter = {};
|
|
17626
|
-
const localVarQueryParameter = {};
|
|
17627
|
-
// authentication bearerAuth required
|
|
17628
|
-
// http bearer authentication required
|
|
17629
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17630
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17631
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17632
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17633
|
-
return {
|
|
17634
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17635
|
-
options: localVarRequestOptions,
|
|
17636
|
-
};
|
|
17637
|
-
}),
|
|
17638
17222
|
/**
|
|
17639
17223
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17640
17224
|
* @param {string} bookingId
|
|
@@ -17783,21 +17367,6 @@ const WaitListStaffApiFp = function (configuration) {
|
|
|
17783
17367
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17784
17368
|
});
|
|
17785
17369
|
},
|
|
17786
|
-
/**
|
|
17787
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17788
|
-
* @param {string} eventId
|
|
17789
|
-
* @param {*} [options] Override http request option.
|
|
17790
|
-
* @throws {RequiredError}
|
|
17791
|
-
*/
|
|
17792
|
-
getEventWaitListPlayers(eventId, options) {
|
|
17793
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17794
|
-
var _a, _b, _c;
|
|
17795
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
|
|
17796
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17797
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17798
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17799
|
-
});
|
|
17800
|
-
},
|
|
17801
17370
|
/**
|
|
17802
17371
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17803
17372
|
* @param {string} bookingId
|
|
@@ -17880,15 +17449,6 @@ const WaitListStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
17880
17449
|
getEventWaitList(requestParameters, options) {
|
|
17881
17450
|
return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17882
17451
|
},
|
|
17883
|
-
/**
|
|
17884
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17885
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17886
|
-
* @param {*} [options] Override http request option.
|
|
17887
|
-
* @throws {RequiredError}
|
|
17888
|
-
*/
|
|
17889
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17890
|
-
return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17891
|
-
},
|
|
17892
17452
|
/**
|
|
17893
17453
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17894
17454
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|
|
@@ -17956,16 +17516,6 @@ class WaitListStaffApi extends base_1.BaseAPI {
|
|
|
17956
17516
|
getEventWaitList(requestParameters, options) {
|
|
17957
17517
|
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17958
17518
|
}
|
|
17959
|
-
/**
|
|
17960
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17961
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17962
|
-
* @param {*} [options] Override http request option.
|
|
17963
|
-
* @throws {RequiredError}
|
|
17964
|
-
* @memberof WaitListStaffApi
|
|
17965
|
-
*/
|
|
17966
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17967
|
-
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17968
|
-
}
|
|
17969
17519
|
/**
|
|
17970
17520
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17971
17521
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|