@tennac-booking/sdk 1.0.220 → 1.0.221
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 -47
- package/README.md +38 -70
- package/api.ts +1834 -3355
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1784 -3051
- package/dist/api.js +1137 -1603
- 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 +1784 -3051
- package/dist/esm/api.js +1114 -1584
- 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/{NotificationActorType.md → PaymentStatus.md} +6 -4
- 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/CourtEnvironment.md +0 -10
- 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/NotificationInitiator.md +0 -28
- package/docs/NotificationParticipantPreview.md +0 -24
- package/docs/NotificationPreview.md +0 -78
- package/docs/NotificationResponse.md +0 -46
- package/docs/NotificationResponseClub.md +0 -24
- package/docs/NotificationSlotPreview.md +0 -24
- package/docs/NotificationSportPreview.md +0 -24
- package/docs/NotificationTargetPreview.md +0 -22
- 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.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
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,39 +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.NotificationActorType = {
|
|
261
|
-
User: 'user',
|
|
262
|
-
Club: 'club',
|
|
263
|
-
System: 'system'
|
|
264
|
-
};
|
|
265
|
-
exports.NotificationTargetPreviewTypeEnum = {
|
|
266
|
-
Booking: 'booking',
|
|
267
|
-
Event: 'event',
|
|
268
|
-
Waitlist: 'waitlist',
|
|
269
|
-
Unknown: 'unknown'
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
* @export
|
|
274
|
-
* @enum {string}
|
|
275
|
-
*/
|
|
276
|
-
exports.NotificationType = {
|
|
277
|
-
BookingCreated: 'booking_created',
|
|
278
|
-
BookingSetupRequired: 'booking_setup_required',
|
|
279
|
-
BookingCancelled: 'booking_cancelled',
|
|
280
|
-
BookingReminder: 'booking_reminder',
|
|
281
|
-
EventRegistrationConfirmed: 'event_registration_confirmed',
|
|
282
|
-
EventReminder: 'event_reminder',
|
|
283
|
-
OpenBookingJoined: 'open_booking_joined',
|
|
284
|
-
OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
|
|
285
|
-
WaitlistSpotAvailable: 'waitlist_spot_available',
|
|
286
|
-
WaitlistConfirmed: 'waitlist_confirmed'
|
|
287
|
-
};
|
|
288
236
|
exports.PartialPublicAccessSettingsPaymentModeEnum = {
|
|
289
237
|
Free: 'free',
|
|
290
238
|
AccessFee: 'access_fee',
|
|
@@ -311,6 +259,26 @@ exports.PaymentMethod = {
|
|
|
311
259
|
OnsiteCash: 'onsite_cash',
|
|
312
260
|
Free: 'free'
|
|
313
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
|
+
};
|
|
314
282
|
/**
|
|
315
283
|
*
|
|
316
284
|
* @export
|
|
@@ -339,15 +307,6 @@ exports.PublicAccessSettingsPaymentModeEnum = {
|
|
|
339
307
|
AccessFee: 'access_fee',
|
|
340
308
|
PerCourt: 'per_court'
|
|
341
309
|
};
|
|
342
|
-
/**
|
|
343
|
-
*
|
|
344
|
-
* @export
|
|
345
|
-
* @enum {string}
|
|
346
|
-
*/
|
|
347
|
-
exports.QuickReservationCourtType = {
|
|
348
|
-
Indoor: 'indoor',
|
|
349
|
-
Outdoor: 'outdoor'
|
|
350
|
-
};
|
|
351
310
|
exports.RecurringDefinitionResponseRecurringTypeEnum = {
|
|
352
311
|
Daily: 'daily',
|
|
353
312
|
Weekly: 'weekly',
|
|
@@ -385,15 +344,6 @@ exports.StaffUserProfileResponseCreatedFromEnum = {
|
|
|
385
344
|
App: 'app',
|
|
386
345
|
Website: 'website'
|
|
387
346
|
};
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @export
|
|
391
|
-
* @enum {string}
|
|
392
|
-
*/
|
|
393
|
-
exports.SupportedLanguage = {
|
|
394
|
-
Fr: 'fr',
|
|
395
|
-
En: 'en'
|
|
396
|
-
};
|
|
397
347
|
/**
|
|
398
348
|
*
|
|
399
349
|
* @export
|
|
@@ -482,11 +432,6 @@ exports.VisibilityType = {
|
|
|
482
432
|
Private: 'private',
|
|
483
433
|
Invitation: 'invitation'
|
|
484
434
|
};
|
|
485
|
-
exports.WaitListEntryWithPlayerTargetTypeEnum = {
|
|
486
|
-
Event: 'event',
|
|
487
|
-
Booking: 'booking',
|
|
488
|
-
EventBooking: 'event_booking'
|
|
489
|
-
};
|
|
490
435
|
exports.WaitListResponseTargetTypeEnum = {
|
|
491
436
|
Event: 'event',
|
|
492
437
|
Booking: 'booking',
|
|
@@ -506,170 +451,6 @@ exports.WeekdayKey = {
|
|
|
506
451
|
Saturday: 'saturday',
|
|
507
452
|
Sunday: 'sunday'
|
|
508
453
|
};
|
|
509
|
-
/**
|
|
510
|
-
* AuthApi - axios parameter creator
|
|
511
|
-
* @export
|
|
512
|
-
*/
|
|
513
|
-
const AuthApiAxiosParamCreator = function (configuration) {
|
|
514
|
-
return {
|
|
515
|
-
/**
|
|
516
|
-
*
|
|
517
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
518
|
-
* @param {*} [options] Override http request option.
|
|
519
|
-
* @throws {RequiredError}
|
|
520
|
-
*/
|
|
521
|
-
requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
|
|
522
|
-
// verify required parameter 'requestVerificationCodeBody' is not null or undefined
|
|
523
|
-
(0, common_1.assertParamExists)('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
|
|
524
|
-
const localVarPath = `/api/auth/verification-code`;
|
|
525
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
527
|
-
let baseOptions;
|
|
528
|
-
if (configuration) {
|
|
529
|
-
baseOptions = configuration.baseOptions;
|
|
530
|
-
}
|
|
531
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
532
|
-
const localVarHeaderParameter = {};
|
|
533
|
-
const localVarQueryParameter = {};
|
|
534
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
535
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
536
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
538
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestVerificationCodeBody, localVarRequestOptions, configuration);
|
|
539
|
-
return {
|
|
540
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
541
|
-
options: localVarRequestOptions,
|
|
542
|
-
};
|
|
543
|
-
}),
|
|
544
|
-
/**
|
|
545
|
-
*
|
|
546
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
|
|
551
|
-
// verify required parameter 'verifyVerificationCodeBody' is not null or undefined
|
|
552
|
-
(0, common_1.assertParamExists)('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
|
|
553
|
-
const localVarPath = `/api/auth/verification-code/verify`;
|
|
554
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
555
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
556
|
-
let baseOptions;
|
|
557
|
-
if (configuration) {
|
|
558
|
-
baseOptions = configuration.baseOptions;
|
|
559
|
-
}
|
|
560
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
561
|
-
const localVarHeaderParameter = {};
|
|
562
|
-
const localVarQueryParameter = {};
|
|
563
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
564
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
565
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
566
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
567
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyVerificationCodeBody, localVarRequestOptions, configuration);
|
|
568
|
-
return {
|
|
569
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
570
|
-
options: localVarRequestOptions,
|
|
571
|
-
};
|
|
572
|
-
}),
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
576
|
-
/**
|
|
577
|
-
* AuthApi - functional programming interface
|
|
578
|
-
* @export
|
|
579
|
-
*/
|
|
580
|
-
const AuthApiFp = function (configuration) {
|
|
581
|
-
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
582
|
-
return {
|
|
583
|
-
/**
|
|
584
|
-
*
|
|
585
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
586
|
-
* @param {*} [options] Override http request option.
|
|
587
|
-
* @throws {RequiredError}
|
|
588
|
-
*/
|
|
589
|
-
requestVerificationCode(requestVerificationCodeBody, options) {
|
|
590
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
591
|
-
var _a, _b, _c;
|
|
592
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
|
|
593
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
594
|
-
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;
|
|
595
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
|
-
/**
|
|
599
|
-
*
|
|
600
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
601
|
-
* @param {*} [options] Override http request option.
|
|
602
|
-
* @throws {RequiredError}
|
|
603
|
-
*/
|
|
604
|
-
verifyVerificationCode(verifyVerificationCodeBody, options) {
|
|
605
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
606
|
-
var _a, _b, _c;
|
|
607
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
|
|
608
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
609
|
-
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;
|
|
610
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
611
|
-
});
|
|
612
|
-
},
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
exports.AuthApiFp = AuthApiFp;
|
|
616
|
-
/**
|
|
617
|
-
* AuthApi - factory interface
|
|
618
|
-
* @export
|
|
619
|
-
*/
|
|
620
|
-
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
621
|
-
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
622
|
-
return {
|
|
623
|
-
/**
|
|
624
|
-
*
|
|
625
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
626
|
-
* @param {*} [options] Override http request option.
|
|
627
|
-
* @throws {RequiredError}
|
|
628
|
-
*/
|
|
629
|
-
requestVerificationCode(requestParameters, options) {
|
|
630
|
-
return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
631
|
-
},
|
|
632
|
-
/**
|
|
633
|
-
*
|
|
634
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
635
|
-
* @param {*} [options] Override http request option.
|
|
636
|
-
* @throws {RequiredError}
|
|
637
|
-
*/
|
|
638
|
-
verifyVerificationCode(requestParameters, options) {
|
|
639
|
-
return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
640
|
-
},
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
exports.AuthApiFactory = AuthApiFactory;
|
|
644
|
-
/**
|
|
645
|
-
* AuthApi - object-oriented interface
|
|
646
|
-
* @export
|
|
647
|
-
* @class AuthApi
|
|
648
|
-
* @extends {BaseAPI}
|
|
649
|
-
*/
|
|
650
|
-
class AuthApi extends base_1.BaseAPI {
|
|
651
|
-
/**
|
|
652
|
-
*
|
|
653
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
654
|
-
* @param {*} [options] Override http request option.
|
|
655
|
-
* @throws {RequiredError}
|
|
656
|
-
* @memberof AuthApi
|
|
657
|
-
*/
|
|
658
|
-
requestVerificationCode(requestParameters, options) {
|
|
659
|
-
return (0, exports.AuthApiFp)(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
|
-
*
|
|
663
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
664
|
-
* @param {*} [options] Override http request option.
|
|
665
|
-
* @throws {RequiredError}
|
|
666
|
-
* @memberof AuthApi
|
|
667
|
-
*/
|
|
668
|
-
verifyVerificationCode(requestParameters, options) {
|
|
669
|
-
return (0, exports.AuthApiFp)(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
exports.AuthApi = AuthApi;
|
|
673
454
|
/**
|
|
674
455
|
* BookingsApi - axios parameter creator
|
|
675
456
|
* @export
|
|
@@ -706,18 +487,16 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
706
487
|
};
|
|
707
488
|
}),
|
|
708
489
|
/**
|
|
709
|
-
*
|
|
490
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
710
491
|
* @param {string} bookingId
|
|
711
|
-
* @param {
|
|
492
|
+
* @param {number} [creditToUseInCents]
|
|
712
493
|
* @param {*} [options] Override http request option.
|
|
713
494
|
* @throws {RequiredError}
|
|
714
495
|
*/
|
|
715
|
-
|
|
496
|
+
estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
716
497
|
// verify required parameter 'bookingId' is not null or undefined
|
|
717
|
-
(0, common_1.assertParamExists)('
|
|
718
|
-
|
|
719
|
-
(0, common_1.assertParamExists)('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
|
|
720
|
-
const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
|
|
498
|
+
(0, common_1.assertParamExists)('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
499
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate`
|
|
721
500
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
722
501
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
723
502
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -725,17 +504,18 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
725
504
|
if (configuration) {
|
|
726
505
|
baseOptions = configuration.baseOptions;
|
|
727
506
|
}
|
|
728
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
729
508
|
const localVarHeaderParameter = {};
|
|
730
509
|
const localVarQueryParameter = {};
|
|
731
510
|
// authentication bearerAuth required
|
|
732
511
|
// http bearer authentication required
|
|
733
512
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
734
|
-
|
|
513
|
+
if (creditToUseInCents !== undefined) {
|
|
514
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
515
|
+
}
|
|
735
516
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
736
517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
737
518
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
738
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
|
|
739
519
|
return {
|
|
740
520
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
741
521
|
options: localVarRequestOptions,
|
|
@@ -834,15 +614,50 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
834
614
|
};
|
|
835
615
|
}),
|
|
836
616
|
/**
|
|
837
|
-
*
|
|
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
|
|
838
653
|
* @param {string} bookingId
|
|
839
654
|
* @param {*} [options] Override http request option.
|
|
840
655
|
* @throws {RequiredError}
|
|
841
656
|
*/
|
|
842
|
-
|
|
657
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
843
658
|
// verify required parameter 'bookingId' is not null or undefined
|
|
844
|
-
(0, common_1.assertParamExists)('
|
|
845
|
-
const localVarPath = `/api/bookings/{bookingId}/open/
|
|
659
|
+
(0, common_1.assertParamExists)('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
660
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
846
661
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
847
662
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
848
663
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -966,15 +781,15 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
966
781
|
/**
|
|
967
782
|
*
|
|
968
783
|
* @param {string} bookingId
|
|
969
|
-
* @param {
|
|
784
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
970
785
|
* @param {*} [options] Override http request option.
|
|
971
786
|
* @throws {RequiredError}
|
|
972
787
|
*/
|
|
973
|
-
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 = {}) {
|
|
974
789
|
// verify required parameter 'bookingId' is not null or undefined
|
|
975
790
|
(0, common_1.assertParamExists)('joinOpenBooking', 'bookingId', bookingId);
|
|
976
|
-
// verify required parameter '
|
|
977
|
-
(0, common_1.assertParamExists)('joinOpenBooking', '
|
|
791
|
+
// verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
|
|
792
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
|
|
978
793
|
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
979
794
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
980
795
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -993,7 +808,7 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
993
808
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
994
809
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
995
810
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
996
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
811
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
|
|
997
812
|
return {
|
|
998
813
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
999
814
|
options: localVarRequestOptions,
|
|
@@ -1056,18 +871,18 @@ const BookingsApiFp = function (configuration) {
|
|
|
1056
871
|
});
|
|
1057
872
|
},
|
|
1058
873
|
/**
|
|
1059
|
-
*
|
|
874
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1060
875
|
* @param {string} bookingId
|
|
1061
|
-
* @param {
|
|
876
|
+
* @param {number} [creditToUseInCents]
|
|
1062
877
|
* @param {*} [options] Override http request option.
|
|
1063
878
|
* @throws {RequiredError}
|
|
1064
879
|
*/
|
|
1065
|
-
|
|
880
|
+
estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
|
|
1066
881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1067
882
|
var _a, _b, _c;
|
|
1068
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
|
|
1069
884
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1070
|
-
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;
|
|
1071
886
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1072
887
|
});
|
|
1073
888
|
},
|
|
@@ -1117,17 +932,33 @@ const BookingsApiFp = function (configuration) {
|
|
|
1117
932
|
});
|
|
1118
933
|
},
|
|
1119
934
|
/**
|
|
1120
|
-
*
|
|
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
|
|
1121
952
|
* @param {string} bookingId
|
|
1122
953
|
* @param {*} [options] Override http request option.
|
|
1123
954
|
* @throws {RequiredError}
|
|
1124
955
|
*/
|
|
1125
|
-
|
|
956
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
1126
957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1127
958
|
var _a, _b, _c;
|
|
1128
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
959
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
1129
960
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1130
|
-
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;
|
|
1131
962
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1132
963
|
});
|
|
1133
964
|
},
|
|
@@ -1174,14 +1005,14 @@ const BookingsApiFp = function (configuration) {
|
|
|
1174
1005
|
/**
|
|
1175
1006
|
*
|
|
1176
1007
|
* @param {string} bookingId
|
|
1177
|
-
* @param {
|
|
1008
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
1178
1009
|
* @param {*} [options] Override http request option.
|
|
1179
1010
|
* @throws {RequiredError}
|
|
1180
1011
|
*/
|
|
1181
|
-
joinOpenBooking(bookingId,
|
|
1012
|
+
joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
|
|
1182
1013
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
1014
|
var _a, _b, _c;
|
|
1184
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId,
|
|
1015
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
|
|
1185
1016
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1186
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;
|
|
1187
1018
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1222,13 +1053,13 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1222
1053
|
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
1223
1054
|
},
|
|
1224
1055
|
/**
|
|
1225
|
-
*
|
|
1226
|
-
* @param {
|
|
1056
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1057
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1227
1058
|
* @param {*} [options] Override http request option.
|
|
1228
1059
|
* @throws {RequiredError}
|
|
1229
1060
|
*/
|
|
1230
|
-
|
|
1231
|
-
return localVarFp.
|
|
1061
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
1062
|
+
return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1232
1063
|
},
|
|
1233
1064
|
/**
|
|
1234
1065
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1258,13 +1089,22 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1258
1089
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1259
1090
|
},
|
|
1260
1091
|
/**
|
|
1261
|
-
*
|
|
1262
|
-
* @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.
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
*/
|
|
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.
|
|
1263
1103
|
* @param {*} [options] Override http request option.
|
|
1264
1104
|
* @throws {RequiredError}
|
|
1265
1105
|
*/
|
|
1266
|
-
|
|
1267
|
-
return localVarFp.
|
|
1106
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1107
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1268
1108
|
},
|
|
1269
1109
|
/**
|
|
1270
1110
|
*
|
|
@@ -1291,7 +1131,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1291
1131
|
* @throws {RequiredError}
|
|
1292
1132
|
*/
|
|
1293
1133
|
joinOpenBooking(requestParameters, options) {
|
|
1294
|
-
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1134
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
|
|
1295
1135
|
},
|
|
1296
1136
|
/**
|
|
1297
1137
|
*
|
|
@@ -1323,14 +1163,14 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1323
1163
|
return (0, exports.BookingsApiFp)(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1324
1164
|
}
|
|
1325
1165
|
/**
|
|
1326
|
-
*
|
|
1327
|
-
* @param {
|
|
1166
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1167
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1328
1168
|
* @param {*} [options] Override http request option.
|
|
1329
1169
|
* @throws {RequiredError}
|
|
1330
1170
|
* @memberof BookingsApi
|
|
1331
1171
|
*/
|
|
1332
|
-
|
|
1333
|
-
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));
|
|
1334
1174
|
}
|
|
1335
1175
|
/**
|
|
1336
1176
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1363,14 +1203,24 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1363
1203
|
return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1364
1204
|
}
|
|
1365
1205
|
/**
|
|
1366
|
-
*
|
|
1367
|
-
* @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.
|
|
1368
1208
|
* @param {*} [options] Override http request option.
|
|
1369
1209
|
* @throws {RequiredError}
|
|
1370
1210
|
* @memberof BookingsApi
|
|
1371
1211
|
*/
|
|
1372
|
-
|
|
1373
|
-
return (0, exports.BookingsApiFp)(this.configuration).
|
|
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.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof BookingsApi
|
|
1221
|
+
*/
|
|
1222
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1223
|
+
return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1374
1224
|
}
|
|
1375
1225
|
/**
|
|
1376
1226
|
*
|
|
@@ -1400,7 +1250,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1400
1250
|
* @memberof BookingsApi
|
|
1401
1251
|
*/
|
|
1402
1252
|
joinOpenBooking(requestParameters, options) {
|
|
1403
|
-
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));
|
|
1404
1254
|
}
|
|
1405
1255
|
/**
|
|
1406
1256
|
*
|
|
@@ -1595,7 +1445,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
1595
1445
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1596
1446
|
return {
|
|
1597
1447
|
/**
|
|
1598
|
-
* 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)
|
|
1599
1449
|
* @param {string} bookingId
|
|
1600
1450
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1601
1451
|
* @param {*} [options] Override http request option.
|
|
@@ -1631,15 +1481,19 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1631
1481
|
};
|
|
1632
1482
|
}),
|
|
1633
1483
|
/**
|
|
1634
|
-
*
|
|
1635
|
-
* @param {
|
|
1484
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1485
|
+
* @param {string} bookingId
|
|
1486
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1636
1487
|
* @param {*} [options] Override http request option.
|
|
1637
1488
|
* @throws {RequiredError}
|
|
1638
1489
|
*/
|
|
1639
|
-
|
|
1640
|
-
// verify required parameter '
|
|
1641
|
-
(0, common_1.assertParamExists)('
|
|
1642
|
-
|
|
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)));
|
|
1643
1497
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1644
1498
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1645
1499
|
let baseOptions;
|
|
@@ -1656,22 +1510,54 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1656
1510
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1657
1511
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1658
1512
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1659
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1513
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1660
1514
|
return {
|
|
1661
1515
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1662
1516
|
options: localVarRequestOptions,
|
|
1663
1517
|
};
|
|
1664
1518
|
}),
|
|
1665
1519
|
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @param {
|
|
1520
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1521
|
+
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
1668
1522
|
* @param {*} [options] Override http request option.
|
|
1669
1523
|
* @throws {RequiredError}
|
|
1670
1524
|
*/
|
|
1671
|
-
|
|
1672
|
-
// verify required parameter '
|
|
1673
|
-
(0, common_1.assertParamExists)('
|
|
1674
|
-
const localVarPath = `/api/bookings/
|
|
1525
|
+
createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
|
|
1526
|
+
// verify required parameter 'staffCreateBookingRequest' is not null or undefined
|
|
1527
|
+
(0, common_1.assertParamExists)('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
|
|
1528
|
+
const localVarPath = `/api/bookings/staff`;
|
|
1529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1530
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1531
|
+
let baseOptions;
|
|
1532
|
+
if (configuration) {
|
|
1533
|
+
baseOptions = configuration.baseOptions;
|
|
1534
|
+
}
|
|
1535
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1536
|
+
const localVarHeaderParameter = {};
|
|
1537
|
+
const localVarQueryParameter = {};
|
|
1538
|
+
// authentication bearerAuth required
|
|
1539
|
+
// http bearer authentication required
|
|
1540
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1541
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1544
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1545
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(staffCreateBookingRequest, localVarRequestOptions, configuration);
|
|
1546
|
+
return {
|
|
1547
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1548
|
+
options: localVarRequestOptions,
|
|
1549
|
+
};
|
|
1550
|
+
}),
|
|
1551
|
+
/**
|
|
1552
|
+
* Obtenir une réservation par ID
|
|
1553
|
+
* @param {string} bookingId
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
*/
|
|
1557
|
+
getBookingById: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
1558
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1559
|
+
(0, common_1.assertParamExists)('getBookingById', 'bookingId', bookingId);
|
|
1560
|
+
const localVarPath = `/api/bookings/{bookingId}`
|
|
1675
1561
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1676
1562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1677
1563
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1875,7 +1761,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1875
1761
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1876
1762
|
return {
|
|
1877
1763
|
/**
|
|
1878
|
-
* 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)
|
|
1879
1765
|
* @param {string} bookingId
|
|
1880
1766
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1881
1767
|
* @param {*} [options] Override http request option.
|
|
@@ -1890,6 +1776,22 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1890
1776
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1891
1777
|
});
|
|
1892
1778
|
},
|
|
1779
|
+
/**
|
|
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
|
+
},
|
|
1893
1795
|
/**
|
|
1894
1796
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1895
1797
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -2010,7 +1912,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2010
1912
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
2011
1913
|
return {
|
|
2012
1914
|
/**
|
|
2013
|
-
* 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)
|
|
2014
1916
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2015
1917
|
* @param {*} [options] Override http request option.
|
|
2016
1918
|
* @throws {RequiredError}
|
|
@@ -2018,6 +1920,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2018
1920
|
checkInPlayer(requestParameters, options) {
|
|
2019
1921
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
2020
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
|
+
},
|
|
2021
1932
|
/**
|
|
2022
1933
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2023
1934
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2092,7 +2003,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
2092
2003
|
*/
|
|
2093
2004
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
2094
2005
|
/**
|
|
2095
|
-
* 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)
|
|
2096
2007
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2097
2008
|
* @param {*} [options] Override http request option.
|
|
2098
2009
|
* @throws {RequiredError}
|
|
@@ -2101,6 +2012,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
2101
2012
|
checkInPlayer(requestParameters, options) {
|
|
2102
2013
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2103
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
|
+
}
|
|
2104
2025
|
/**
|
|
2105
2026
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2106
2027
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2276,13 +2197,13 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2276
2197
|
}),
|
|
2277
2198
|
/**
|
|
2278
2199
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2279
|
-
* @param {
|
|
2200
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2280
2201
|
* @param {*} [options] Override http request option.
|
|
2281
2202
|
* @throws {RequiredError}
|
|
2282
2203
|
*/
|
|
2283
|
-
getOpenBookingPrice: (
|
|
2284
|
-
// verify required parameter '
|
|
2285
|
-
(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);
|
|
2286
2207
|
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2287
2208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2288
2209
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2300,7 +2221,7 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2300
2221
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2301
2222
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2302
2223
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2303
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2224
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2304
2225
|
return {
|
|
2305
2226
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2306
2227
|
options: localVarRequestOptions,
|
|
@@ -2399,14 +2320,14 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2399
2320
|
},
|
|
2400
2321
|
/**
|
|
2401
2322
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2402
|
-
* @param {
|
|
2323
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2403
2324
|
* @param {*} [options] Override http request option.
|
|
2404
2325
|
* @throws {RequiredError}
|
|
2405
2326
|
*/
|
|
2406
|
-
getOpenBookingPrice(
|
|
2327
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2407
2328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2408
2329
|
var _a, _b, _c;
|
|
2409
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(
|
|
2330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2410
2331
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2411
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;
|
|
2412
2333
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2472,7 +2393,7 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2472
2393
|
* @throws {RequiredError}
|
|
2473
2394
|
*/
|
|
2474
2395
|
getOpenBookingPrice(requestParameters, options) {
|
|
2475
|
-
return localVarFp.getOpenBookingPrice(requestParameters.
|
|
2396
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2476
2397
|
},
|
|
2477
2398
|
/**
|
|
2478
2399
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -2531,7 +2452,7 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2531
2452
|
* @memberof BookingsUserApi
|
|
2532
2453
|
*/
|
|
2533
2454
|
getOpenBookingPrice(requestParameters, options) {
|
|
2534
|
-
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));
|
|
2535
2456
|
}
|
|
2536
2457
|
/**
|
|
2537
2458
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -9618,41 +9539,6 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9618
9539
|
options: localVarRequestOptions,
|
|
9619
9540
|
};
|
|
9620
9541
|
}),
|
|
9621
|
-
/**
|
|
9622
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9623
|
-
* @param {string} [clubId]
|
|
9624
|
-
* @param {number} [page]
|
|
9625
|
-
* @param {*} [options] Override http request option.
|
|
9626
|
-
* @throws {RequiredError}
|
|
9627
|
-
*/
|
|
9628
|
-
getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
|
|
9629
|
-
const localVarPath = `/api/events/coming`;
|
|
9630
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9631
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9632
|
-
let baseOptions;
|
|
9633
|
-
if (configuration) {
|
|
9634
|
-
baseOptions = configuration.baseOptions;
|
|
9635
|
-
}
|
|
9636
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9637
|
-
const localVarHeaderParameter = {};
|
|
9638
|
-
const localVarQueryParameter = {};
|
|
9639
|
-
// authentication bearerAuth required
|
|
9640
|
-
// http bearer authentication required
|
|
9641
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9642
|
-
if (clubId !== undefined) {
|
|
9643
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
9644
|
-
}
|
|
9645
|
-
if (page !== undefined) {
|
|
9646
|
-
localVarQueryParameter['page'] = page;
|
|
9647
|
-
}
|
|
9648
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9649
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9650
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9651
|
-
return {
|
|
9652
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9653
|
-
options: localVarRequestOptions,
|
|
9654
|
-
};
|
|
9655
|
-
}),
|
|
9656
9542
|
/**
|
|
9657
9543
|
* Get a specific event by ID
|
|
9658
9544
|
* @param {string} eventId
|
|
@@ -9980,22 +9866,6 @@ const EventsApiFp = function (configuration) {
|
|
|
9980
9866
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9981
9867
|
});
|
|
9982
9868
|
},
|
|
9983
|
-
/**
|
|
9984
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9985
|
-
* @param {string} [clubId]
|
|
9986
|
-
* @param {number} [page]
|
|
9987
|
-
* @param {*} [options] Override http request option.
|
|
9988
|
-
* @throws {RequiredError}
|
|
9989
|
-
*/
|
|
9990
|
-
getComingEvent(clubId, page, options) {
|
|
9991
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9992
|
-
var _a, _b, _c;
|
|
9993
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
9994
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9995
|
-
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;
|
|
9996
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9997
|
-
});
|
|
9998
|
-
},
|
|
9999
9869
|
/**
|
|
10000
9870
|
* Get a specific event by ID
|
|
10001
9871
|
* @param {string} eventId
|
|
@@ -10160,15 +10030,6 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10160
10030
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10161
10031
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
10162
10032
|
},
|
|
10163
|
-
/**
|
|
10164
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10165
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10166
|
-
* @param {*} [options] Override http request option.
|
|
10167
|
-
* @throws {RequiredError}
|
|
10168
|
-
*/
|
|
10169
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10170
|
-
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
10171
|
-
},
|
|
10172
10033
|
/**
|
|
10173
10034
|
* Get a specific event by ID
|
|
10174
10035
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -10281,16 +10142,6 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
10281
10142
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10282
10143
|
return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
10283
10144
|
}
|
|
10284
|
-
/**
|
|
10285
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10286
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10287
|
-
* @param {*} [options] Override http request option.
|
|
10288
|
-
* @throws {RequiredError}
|
|
10289
|
-
* @memberof EventsApi
|
|
10290
|
-
*/
|
|
10291
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10292
|
-
return (0, exports.EventsApiFp)(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
10293
|
-
}
|
|
10294
10145
|
/**
|
|
10295
10146
|
* Get a specific event by ID
|
|
10296
10147
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -11121,12 +10972,16 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11121
10972
|
};
|
|
11122
10973
|
}),
|
|
11123
10974
|
/**
|
|
11124
|
-
*
|
|
10975
|
+
* Get a specific event by ID (staff)
|
|
10976
|
+
* @param {string} eventId
|
|
11125
10977
|
* @param {*} [options] Override http request option.
|
|
11126
10978
|
* @throws {RequiredError}
|
|
11127
10979
|
*/
|
|
11128
|
-
|
|
11129
|
-
|
|
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)));
|
|
11130
10985
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11131
10986
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11132
10987
|
let baseOptions;
|
|
@@ -11148,16 +11003,12 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11148
11003
|
};
|
|
11149
11004
|
}),
|
|
11150
11005
|
/**
|
|
11151
|
-
*
|
|
11152
|
-
* @param {string} eventId
|
|
11006
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11153
11007
|
* @param {*} [options] Override http request option.
|
|
11154
11008
|
* @throws {RequiredError}
|
|
11155
11009
|
*/
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
11159
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
11160
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11010
|
+
getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11011
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
11161
11012
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11162
11013
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11163
11014
|
let baseOptions;
|
|
@@ -11225,60 +11076,6 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11225
11076
|
options: localVarRequestOptions,
|
|
11226
11077
|
};
|
|
11227
11078
|
}),
|
|
11228
|
-
/**
|
|
11229
|
-
*
|
|
11230
|
-
* @param {*} [options] Override http request option.
|
|
11231
|
-
* @throws {RequiredError}
|
|
11232
|
-
*/
|
|
11233
|
-
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11234
|
-
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
11235
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11236
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11237
|
-
let baseOptions;
|
|
11238
|
-
if (configuration) {
|
|
11239
|
-
baseOptions = configuration.baseOptions;
|
|
11240
|
-
}
|
|
11241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11242
|
-
const localVarHeaderParameter = {};
|
|
11243
|
-
const localVarQueryParameter = {};
|
|
11244
|
-
// authentication bearerAuth required
|
|
11245
|
-
// http bearer authentication required
|
|
11246
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11247
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11248
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11249
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11250
|
-
return {
|
|
11251
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11252
|
-
options: localVarRequestOptions,
|
|
11253
|
-
};
|
|
11254
|
-
}),
|
|
11255
|
-
/**
|
|
11256
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11257
|
-
* @param {*} [options] Override http request option.
|
|
11258
|
-
* @throws {RequiredError}
|
|
11259
|
-
*/
|
|
11260
|
-
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11261
|
-
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
11262
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11263
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11264
|
-
let baseOptions;
|
|
11265
|
-
if (configuration) {
|
|
11266
|
-
baseOptions = configuration.baseOptions;
|
|
11267
|
-
}
|
|
11268
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11269
|
-
const localVarHeaderParameter = {};
|
|
11270
|
-
const localVarQueryParameter = {};
|
|
11271
|
-
// authentication bearerAuth required
|
|
11272
|
-
// http bearer authentication required
|
|
11273
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11274
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11275
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11276
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11277
|
-
return {
|
|
11278
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11279
|
-
options: localVarRequestOptions,
|
|
11280
|
-
};
|
|
11281
|
-
}),
|
|
11282
11079
|
/**
|
|
11283
11080
|
* Get events for the week view (30 day sliding window)
|
|
11284
11081
|
* @param {string} [clubId]
|
|
@@ -11372,31 +11169,31 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11372
11169
|
});
|
|
11373
11170
|
},
|
|
11374
11171
|
/**
|
|
11375
|
-
*
|
|
11172
|
+
* Get a specific event by ID (staff)
|
|
11173
|
+
* @param {string} eventId
|
|
11376
11174
|
* @param {*} [options] Override http request option.
|
|
11377
11175
|
* @throws {RequiredError}
|
|
11378
11176
|
*/
|
|
11379
|
-
|
|
11177
|
+
getEventByIdForStaff(eventId, options) {
|
|
11380
11178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11381
11179
|
var _a, _b, _c;
|
|
11382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11383
11181
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11384
|
-
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;
|
|
11385
11183
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11386
11184
|
});
|
|
11387
11185
|
},
|
|
11388
11186
|
/**
|
|
11389
|
-
*
|
|
11390
|
-
* @param {string} eventId
|
|
11187
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11391
11188
|
* @param {*} [options] Override http request option.
|
|
11392
11189
|
* @throws {RequiredError}
|
|
11393
11190
|
*/
|
|
11394
|
-
|
|
11191
|
+
getEventsByClub(options) {
|
|
11395
11192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11396
11193
|
var _a, _b, _c;
|
|
11397
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11194
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
|
|
11398
11195
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11399
|
-
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;
|
|
11400
11197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11401
11198
|
});
|
|
11402
11199
|
},
|
|
@@ -11419,34 +11216,6 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11419
11216
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11420
11217
|
});
|
|
11421
11218
|
},
|
|
11422
|
-
/**
|
|
11423
|
-
*
|
|
11424
|
-
* @param {*} [options] Override http request option.
|
|
11425
|
-
* @throws {RequiredError}
|
|
11426
|
-
*/
|
|
11427
|
-
getPastEventsByClub(options) {
|
|
11428
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11429
|
-
var _a, _b, _c;
|
|
11430
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
11431
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11432
|
-
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;
|
|
11433
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11434
|
-
});
|
|
11435
|
-
},
|
|
11436
|
-
/**
|
|
11437
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11438
|
-
* @param {*} [options] Override http request option.
|
|
11439
|
-
* @throws {RequiredError}
|
|
11440
|
-
*/
|
|
11441
|
-
getUpcomingEventsByClub(options) {
|
|
11442
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11443
|
-
var _a, _b, _c;
|
|
11444
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11445
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11446
|
-
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;
|
|
11447
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11448
|
-
});
|
|
11449
|
-
},
|
|
11450
11219
|
/**
|
|
11451
11220
|
* Get events for the week view (30 day sliding window)
|
|
11452
11221
|
* @param {string} [clubId]
|
|
@@ -11494,14 +11263,6 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11494
11263
|
getDailyEvents(requestParameters = {}, options) {
|
|
11495
11264
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11496
11265
|
},
|
|
11497
|
-
/**
|
|
11498
|
-
*
|
|
11499
|
-
* @param {*} [options] Override http request option.
|
|
11500
|
-
* @throws {RequiredError}
|
|
11501
|
-
*/
|
|
11502
|
-
getDraftEventsByClub(options) {
|
|
11503
|
-
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11504
|
-
},
|
|
11505
11266
|
/**
|
|
11506
11267
|
* Get a specific event by ID (staff)
|
|
11507
11268
|
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
@@ -11512,29 +11273,21 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11512
11273
|
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11513
11274
|
},
|
|
11514
11275
|
/**
|
|
11515
|
-
*
|
|
11516
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11517
|
-
* @param {*} [options] Override http request option.
|
|
11518
|
-
* @throws {RequiredError}
|
|
11519
|
-
*/
|
|
11520
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
11521
|
-
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11522
|
-
},
|
|
11523
|
-
/**
|
|
11524
|
-
*
|
|
11276
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11525
11277
|
* @param {*} [options] Override http request option.
|
|
11526
11278
|
* @throws {RequiredError}
|
|
11527
11279
|
*/
|
|
11528
|
-
|
|
11529
|
-
return localVarFp.
|
|
11280
|
+
getEventsByClub(options) {
|
|
11281
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
11530
11282
|
},
|
|
11531
11283
|
/**
|
|
11532
|
-
*
|
|
11284
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
11285
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11533
11286
|
* @param {*} [options] Override http request option.
|
|
11534
11287
|
* @throws {RequiredError}
|
|
11535
11288
|
*/
|
|
11536
|
-
|
|
11537
|
-
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));
|
|
11538
11291
|
},
|
|
11539
11292
|
/**
|
|
11540
11293
|
* Get events for the week view (30 day sliding window)
|
|
@@ -11576,23 +11329,23 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11576
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));
|
|
11577
11330
|
}
|
|
11578
11331
|
/**
|
|
11579
|
-
*
|
|
11332
|
+
* Get a specific event by ID (staff)
|
|
11333
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11580
11334
|
* @param {*} [options] Override http request option.
|
|
11581
11335
|
* @throws {RequiredError}
|
|
11582
11336
|
* @memberof EventsStaffApi
|
|
11583
11337
|
*/
|
|
11584
|
-
|
|
11585
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11338
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11339
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11586
11340
|
}
|
|
11587
11341
|
/**
|
|
11588
|
-
*
|
|
11589
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11342
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11590
11343
|
* @param {*} [options] Override http request option.
|
|
11591
11344
|
* @throws {RequiredError}
|
|
11592
11345
|
* @memberof EventsStaffApi
|
|
11593
11346
|
*/
|
|
11594
|
-
|
|
11595
|
-
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));
|
|
11596
11349
|
}
|
|
11597
11350
|
/**
|
|
11598
11351
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11605,32 +11358,14 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11605
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));
|
|
11606
11359
|
}
|
|
11607
11360
|
/**
|
|
11608
|
-
*
|
|
11361
|
+
* Get events for the week view (30 day sliding window)
|
|
11362
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
11609
11363
|
* @param {*} [options] Override http request option.
|
|
11610
11364
|
* @throws {RequiredError}
|
|
11611
11365
|
* @memberof EventsStaffApi
|
|
11612
11366
|
*/
|
|
11613
|
-
|
|
11614
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11615
|
-
}
|
|
11616
|
-
/**
|
|
11617
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11618
|
-
* @param {*} [options] Override http request option.
|
|
11619
|
-
* @throws {RequiredError}
|
|
11620
|
-
* @memberof EventsStaffApi
|
|
11621
|
-
*/
|
|
11622
|
-
getUpcomingEventsByClub(options) {
|
|
11623
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11624
|
-
}
|
|
11625
|
-
/**
|
|
11626
|
-
* Get events for the week view (30 day sliding window)
|
|
11627
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
11628
|
-
* @param {*} [options] Override http request option.
|
|
11629
|
-
* @throws {RequiredError}
|
|
11630
|
-
* @memberof EventsStaffApi
|
|
11631
|
-
*/
|
|
11632
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
11633
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11367
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
11368
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11634
11369
|
}
|
|
11635
11370
|
}
|
|
11636
11371
|
exports.EventsStaffApi = EventsStaffApi;
|
|
@@ -11784,206 +11519,276 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11784
11519
|
}
|
|
11785
11520
|
exports.ImagesApi = ImagesApi;
|
|
11786
11521
|
/**
|
|
11787
|
-
*
|
|
11522
|
+
* PaymentsStaffApi - axios parameter creator
|
|
11788
11523
|
* @export
|
|
11789
11524
|
*/
|
|
11790
|
-
const
|
|
11525
|
+
const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
11791
11526
|
return {
|
|
11792
11527
|
/**
|
|
11793
|
-
*
|
|
11794
|
-
* @
|
|
11528
|
+
* Cancel a SumUp reader checkout.
|
|
11529
|
+
* @param {string} clubId
|
|
11530
|
+
* @param {string} paymentId
|
|
11531
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11795
11532
|
* @param {*} [options] Override http request option.
|
|
11796
11533
|
* @throws {RequiredError}
|
|
11797
11534
|
*/
|
|
11798
|
-
|
|
11799
|
-
|
|
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)));
|
|
11800
11543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11801
11544
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11802
11545
|
let baseOptions;
|
|
11803
11546
|
if (configuration) {
|
|
11804
11547
|
baseOptions = configuration.baseOptions;
|
|
11805
11548
|
}
|
|
11806
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11549
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11807
11550
|
const localVarHeaderParameter = {};
|
|
11808
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';
|
|
11809
11556
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11810
11557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11811
11558
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11559
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
11812
11560
|
return {
|
|
11813
11561
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11814
11562
|
options: localVarRequestOptions,
|
|
11815
11563
|
};
|
|
11816
11564
|
}),
|
|
11817
11565
|
/**
|
|
11818
|
-
*
|
|
11819
|
-
* @
|
|
11566
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11567
|
+
* @param {string} clubId
|
|
11568
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11820
11569
|
* @param {*} [options] Override http request option.
|
|
11821
11570
|
* @throws {RequiredError}
|
|
11822
11571
|
*/
|
|
11823
|
-
|
|
11824
|
-
|
|
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)));
|
|
11825
11579
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11826
11580
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11827
11581
|
let baseOptions;
|
|
11828
11582
|
if (configuration) {
|
|
11829
11583
|
baseOptions = configuration.baseOptions;
|
|
11830
11584
|
}
|
|
11831
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11585
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11832
11586
|
const localVarHeaderParameter = {};
|
|
11833
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';
|
|
11834
11592
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11835
11593
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11836
11594
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11595
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
11837
11596
|
return {
|
|
11838
11597
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11839
11598
|
options: localVarRequestOptions,
|
|
11840
11599
|
};
|
|
11841
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 {
|
|
11842
11611
|
/**
|
|
11843
|
-
*
|
|
11844
|
-
* @
|
|
11612
|
+
* Cancel a SumUp reader checkout.
|
|
11613
|
+
* @param {string} clubId
|
|
11614
|
+
* @param {string} paymentId
|
|
11615
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11845
11616
|
* @param {*} [options] Override http request option.
|
|
11846
11617
|
* @throws {RequiredError}
|
|
11847
11618
|
*/
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
}
|
|
11856
|
-
|
|
11857
|
-
const localVarHeaderParameter = {};
|
|
11858
|
-
const localVarQueryParameter = {};
|
|
11859
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11860
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11861
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11862
|
-
return {
|
|
11863
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11864
|
-
options: localVarRequestOptions,
|
|
11865
|
-
};
|
|
11866
|
-
}),
|
|
11619
|
+
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
11620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11621
|
+
var _a, _b, _c;
|
|
11622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
11623
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
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;
|
|
11625
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11626
|
+
});
|
|
11627
|
+
},
|
|
11867
11628
|
/**
|
|
11868
|
-
*
|
|
11869
|
-
* @
|
|
11629
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11630
|
+
* @param {string} clubId
|
|
11631
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11870
11632
|
* @param {*} [options] Override http request option.
|
|
11871
11633
|
* @throws {RequiredError}
|
|
11872
11634
|
*/
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
}
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11635
|
+
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
11636
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11637
|
+
var _a, _b, _c;
|
|
11638
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
11639
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
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;
|
|
11641
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11642
|
+
});
|
|
11643
|
+
},
|
|
11644
|
+
};
|
|
11645
|
+
};
|
|
11646
|
+
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
11647
|
+
/**
|
|
11648
|
+
* PaymentsStaffApi - factory interface
|
|
11649
|
+
* @export
|
|
11650
|
+
*/
|
|
11651
|
+
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11652
|
+
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
11653
|
+
return {
|
|
11892
11654
|
/**
|
|
11893
|
-
*
|
|
11894
|
-
* @
|
|
11655
|
+
* Cancel a SumUp reader checkout.
|
|
11656
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11895
11657
|
* @param {*} [options] Override http request option.
|
|
11896
11658
|
* @throws {RequiredError}
|
|
11897
11659
|
*/
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11660
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11661
|
+
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
11662
|
+
},
|
|
11663
|
+
/**
|
|
11664
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11665
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11666
|
+
* @param {*} [options] Override http request option.
|
|
11667
|
+
* @throws {RequiredError}
|
|
11668
|
+
*/
|
|
11669
|
+
createSumupPayment(requestParameters, options) {
|
|
11670
|
+
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
11671
|
+
},
|
|
11672
|
+
};
|
|
11673
|
+
};
|
|
11674
|
+
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
11675
|
+
/**
|
|
11676
|
+
* PaymentsStaffApi - object-oriented interface
|
|
11677
|
+
* @export
|
|
11678
|
+
* @class PaymentsStaffApi
|
|
11679
|
+
* @extends {BaseAPI}
|
|
11680
|
+
*/
|
|
11681
|
+
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
11682
|
+
/**
|
|
11683
|
+
* Cancel a SumUp reader checkout.
|
|
11684
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11685
|
+
* @param {*} [options] Override http request option.
|
|
11686
|
+
* @throws {RequiredError}
|
|
11687
|
+
* @memberof PaymentsStaffApi
|
|
11688
|
+
*/
|
|
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));
|
|
11691
|
+
}
|
|
11692
|
+
/**
|
|
11693
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11694
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11695
|
+
* @param {*} [options] Override http request option.
|
|
11696
|
+
* @throws {RequiredError}
|
|
11697
|
+
* @memberof PaymentsStaffApi
|
|
11698
|
+
*/
|
|
11699
|
+
createSumupPayment(requestParameters, options) {
|
|
11700
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11701
|
+
}
|
|
11702
|
+
}
|
|
11703
|
+
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
11704
|
+
/**
|
|
11705
|
+
* PublicEmailApi - axios parameter creator
|
|
11706
|
+
* @export
|
|
11707
|
+
*/
|
|
11708
|
+
const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11709
|
+
return {
|
|
11917
11710
|
/**
|
|
11918
|
-
*
|
|
11919
|
-
* @
|
|
11711
|
+
*
|
|
11712
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11920
11713
|
* @param {*} [options] Override http request option.
|
|
11921
11714
|
* @throws {RequiredError}
|
|
11922
11715
|
*/
|
|
11923
|
-
|
|
11924
|
-
|
|
11716
|
+
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11717
|
+
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11718
|
+
(0, common_1.assertParamExists)('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11719
|
+
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11925
11720
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11926
11721
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11927
11722
|
let baseOptions;
|
|
11928
11723
|
if (configuration) {
|
|
11929
11724
|
baseOptions = configuration.baseOptions;
|
|
11930
11725
|
}
|
|
11931
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11932
11727
|
const localVarHeaderParameter = {};
|
|
11933
11728
|
const localVarQueryParameter = {};
|
|
11729
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11934
11730
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11935
11731
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11936
11732
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11733
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11937
11734
|
return {
|
|
11938
11735
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11939
11736
|
options: localVarRequestOptions,
|
|
11940
11737
|
};
|
|
11941
11738
|
}),
|
|
11942
11739
|
/**
|
|
11943
|
-
*
|
|
11944
|
-
* @
|
|
11740
|
+
*
|
|
11741
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11945
11742
|
* @param {*} [options] Override http request option.
|
|
11946
11743
|
* @throws {RequiredError}
|
|
11947
11744
|
*/
|
|
11948
|
-
|
|
11949
|
-
|
|
11745
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11746
|
+
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11747
|
+
(0, common_1.assertParamExists)('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11748
|
+
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11950
11749
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11951
11750
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11952
11751
|
let baseOptions;
|
|
11953
11752
|
if (configuration) {
|
|
11954
11753
|
baseOptions = configuration.baseOptions;
|
|
11955
11754
|
}
|
|
11956
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11957
11756
|
const localVarHeaderParameter = {};
|
|
11958
11757
|
const localVarQueryParameter = {};
|
|
11758
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11959
11759
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11960
11760
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11961
11761
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11762
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11962
11763
|
return {
|
|
11963
11764
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11964
11765
|
options: localVarRequestOptions,
|
|
11965
11766
|
};
|
|
11966
11767
|
}),
|
|
11967
11768
|
/**
|
|
11968
|
-
*
|
|
11969
|
-
* @
|
|
11769
|
+
*
|
|
11770
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11970
11771
|
* @param {*} [options] Override http request option.
|
|
11971
11772
|
* @throws {RequiredError}
|
|
11972
11773
|
*/
|
|
11973
|
-
|
|
11974
|
-
|
|
11774
|
+
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
11775
|
+
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
11776
|
+
(0, common_1.assertParamExists)('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
11777
|
+
const localVarPath = `/api/public-email/verify-code`;
|
|
11975
11778
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11976
11779
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11977
11780
|
let baseOptions;
|
|
11978
11781
|
if (configuration) {
|
|
11979
11782
|
baseOptions = configuration.baseOptions;
|
|
11980
11783
|
}
|
|
11981
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11784
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11982
11785
|
const localVarHeaderParameter = {};
|
|
11983
11786
|
const localVarQueryParameter = {};
|
|
11787
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11984
11788
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11985
11789
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11986
11790
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11791
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
11987
11792
|
return {
|
|
11988
11793
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11989
11794
|
options: localVarRequestOptions,
|
|
@@ -11991,492 +11796,95 @@ const JobsApiAxiosParamCreator = function (configuration) {
|
|
|
11991
11796
|
}),
|
|
11992
11797
|
};
|
|
11993
11798
|
};
|
|
11994
|
-
exports.
|
|
11799
|
+
exports.PublicEmailApiAxiosParamCreator = PublicEmailApiAxiosParamCreator;
|
|
11995
11800
|
/**
|
|
11996
|
-
*
|
|
11801
|
+
* PublicEmailApi - functional programming interface
|
|
11997
11802
|
* @export
|
|
11998
11803
|
*/
|
|
11999
|
-
const
|
|
12000
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
11804
|
+
const PublicEmailApiFp = function (configuration) {
|
|
11805
|
+
const localVarAxiosParamCreator = (0, exports.PublicEmailApiAxiosParamCreator)(configuration);
|
|
12001
11806
|
return {
|
|
12002
11807
|
/**
|
|
12003
|
-
*
|
|
12004
|
-
* @
|
|
12005
|
-
* @param {*} [options] Override http request option.
|
|
12006
|
-
* @throws {RequiredError}
|
|
12007
|
-
*/
|
|
12008
|
-
captureExpiringAuthorizations(options) {
|
|
12009
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12010
|
-
var _a, _b, _c;
|
|
12011
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
|
|
12012
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12013
|
-
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;
|
|
12014
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12015
|
-
});
|
|
12016
|
-
},
|
|
12017
|
-
/**
|
|
12018
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12019
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12020
|
-
* @param {*} [options] Override http request option.
|
|
12021
|
-
* @throws {RequiredError}
|
|
12022
|
-
*/
|
|
12023
|
-
capturePastReservations(options) {
|
|
12024
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12025
|
-
var _a, _b, _c;
|
|
12026
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
|
|
12027
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12028
|
-
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;
|
|
12029
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12030
|
-
});
|
|
12031
|
-
},
|
|
12032
|
-
/**
|
|
12033
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12034
|
-
* @summary Expire les réservations en attente de paiement
|
|
12035
|
-
* @param {*} [options] Override http request option.
|
|
12036
|
-
* @throws {RequiredError}
|
|
12037
|
-
*/
|
|
12038
|
-
expireBookingWaitingPayments(options) {
|
|
12039
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12040
|
-
var _a, _b, _c;
|
|
12041
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
|
|
12042
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12043
|
-
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;
|
|
12044
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12045
|
-
});
|
|
12046
|
-
},
|
|
12047
|
-
/**
|
|
12048
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12049
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12050
|
-
* @param {*} [options] Override http request option.
|
|
12051
|
-
* @throws {RequiredError}
|
|
12052
|
-
*/
|
|
12053
|
-
expireWaitlistPayments(options) {
|
|
12054
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12055
|
-
var _a, _b, _c;
|
|
12056
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
|
|
12057
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12058
|
-
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;
|
|
12059
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12060
|
-
});
|
|
12061
|
-
},
|
|
12062
|
-
/**
|
|
12063
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12064
|
-
* @summary Health check pour les jobs
|
|
12065
|
-
* @param {*} [options] Override http request option.
|
|
12066
|
-
* @throws {RequiredError}
|
|
12067
|
-
*/
|
|
12068
|
-
health(options) {
|
|
12069
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12070
|
-
var _a, _b, _c;
|
|
12071
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
|
|
12072
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12073
|
-
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;
|
|
12074
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12075
|
-
});
|
|
12076
|
-
},
|
|
12077
|
-
/**
|
|
12078
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12079
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
11808
|
+
*
|
|
11809
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
12080
11810
|
* @param {*} [options] Override http request option.
|
|
12081
11811
|
* @throws {RequiredError}
|
|
12082
11812
|
*/
|
|
12083
|
-
|
|
11813
|
+
authEmailExists(emailExistsRequestBody, options) {
|
|
12084
11814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12085
11815
|
var _a, _b, _c;
|
|
12086
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
12087
11817
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12088
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
11818
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12089
11819
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12090
11820
|
});
|
|
12091
11821
|
},
|
|
12092
11822
|
/**
|
|
12093
|
-
*
|
|
12094
|
-
* @
|
|
11823
|
+
*
|
|
11824
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
12095
11825
|
* @param {*} [options] Override http request option.
|
|
12096
11826
|
* @throws {RequiredError}
|
|
12097
11827
|
*/
|
|
12098
|
-
|
|
11828
|
+
requestVerificationCode(requestEmailCodeBody, options) {
|
|
12099
11829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12100
11830
|
var _a, _b, _c;
|
|
12101
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
|
|
12102
11832
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12103
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
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;
|
|
12104
11834
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12105
11835
|
});
|
|
12106
11836
|
},
|
|
12107
11837
|
/**
|
|
12108
|
-
*
|
|
12109
|
-
* @
|
|
11838
|
+
*
|
|
11839
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12110
11840
|
* @param {*} [options] Override http request option.
|
|
12111
11841
|
* @throws {RequiredError}
|
|
12112
11842
|
*/
|
|
12113
|
-
|
|
11843
|
+
verifyCode(verifyEmailCodeBody, options) {
|
|
12114
11844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12115
11845
|
var _a, _b, _c;
|
|
12116
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11846
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
12117
11847
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12118
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
11848
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12119
11849
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12120
11850
|
});
|
|
12121
11851
|
},
|
|
12122
11852
|
};
|
|
12123
11853
|
};
|
|
12124
|
-
exports.
|
|
11854
|
+
exports.PublicEmailApiFp = PublicEmailApiFp;
|
|
12125
11855
|
/**
|
|
12126
|
-
*
|
|
11856
|
+
* PublicEmailApi - factory interface
|
|
12127
11857
|
* @export
|
|
12128
11858
|
*/
|
|
12129
|
-
const
|
|
12130
|
-
const localVarFp = (0, exports.
|
|
11859
|
+
const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
11860
|
+
const localVarFp = (0, exports.PublicEmailApiFp)(configuration);
|
|
12131
11861
|
return {
|
|
12132
11862
|
/**
|
|
12133
|
-
*
|
|
12134
|
-
* @
|
|
12135
|
-
* @param {*} [options] Override http request option.
|
|
12136
|
-
* @throws {RequiredError}
|
|
12137
|
-
*/
|
|
12138
|
-
captureExpiringAuthorizations(options) {
|
|
12139
|
-
return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
|
|
12140
|
-
},
|
|
12141
|
-
/**
|
|
12142
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12143
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12144
|
-
* @param {*} [options] Override http request option.
|
|
12145
|
-
* @throws {RequiredError}
|
|
12146
|
-
*/
|
|
12147
|
-
capturePastReservations(options) {
|
|
12148
|
-
return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
|
|
12149
|
-
},
|
|
12150
|
-
/**
|
|
12151
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12152
|
-
* @summary Expire les réservations en attente de paiement
|
|
11863
|
+
*
|
|
11864
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
12153
11865
|
* @param {*} [options] Override http request option.
|
|
12154
11866
|
* @throws {RequiredError}
|
|
12155
11867
|
*/
|
|
12156
|
-
|
|
12157
|
-
return localVarFp.
|
|
11868
|
+
authEmailExists(requestParameters, options) {
|
|
11869
|
+
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
12158
11870
|
},
|
|
12159
11871
|
/**
|
|
12160
|
-
*
|
|
12161
|
-
* @
|
|
11872
|
+
*
|
|
11873
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12162
11874
|
* @param {*} [options] Override http request option.
|
|
12163
11875
|
* @throws {RequiredError}
|
|
12164
11876
|
*/
|
|
12165
|
-
|
|
12166
|
-
return localVarFp.
|
|
11877
|
+
requestVerificationCode(requestParameters, options) {
|
|
11878
|
+
return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12167
11879
|
},
|
|
12168
11880
|
/**
|
|
12169
|
-
*
|
|
12170
|
-
* @
|
|
11881
|
+
*
|
|
11882
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
12171
11883
|
* @param {*} [options] Override http request option.
|
|
12172
11884
|
* @throws {RequiredError}
|
|
12173
11885
|
*/
|
|
12174
|
-
|
|
12175
|
-
return localVarFp.
|
|
12176
|
-
},
|
|
12177
|
-
/**
|
|
12178
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12179
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12180
|
-
* @param {*} [options] Override http request option.
|
|
12181
|
-
* @throws {RequiredError}
|
|
12182
|
-
*/
|
|
12183
|
-
maintainSlots(options) {
|
|
12184
|
-
return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
|
|
12185
|
-
},
|
|
12186
|
-
/**
|
|
12187
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12188
|
-
* @summary Libère les anciennes réservations terminées
|
|
12189
|
-
* @param {*} [options] Override http request option.
|
|
12190
|
-
* @throws {RequiredError}
|
|
12191
|
-
*/
|
|
12192
|
-
releaseOldBookings(options) {
|
|
12193
|
-
return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
|
|
12194
|
-
},
|
|
12195
|
-
/**
|
|
12196
|
-
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12197
|
-
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12198
|
-
* @param {*} [options] Override http request option.
|
|
12199
|
-
* @throws {RequiredError}
|
|
12200
|
-
*/
|
|
12201
|
-
sendBookingReminders(options) {
|
|
12202
|
-
return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
|
|
12203
|
-
},
|
|
12204
|
-
};
|
|
12205
|
-
};
|
|
12206
|
-
exports.JobsApiFactory = JobsApiFactory;
|
|
12207
|
-
/**
|
|
12208
|
-
* JobsApi - object-oriented interface
|
|
12209
|
-
* @export
|
|
12210
|
-
* @class JobsApi
|
|
12211
|
-
* @extends {BaseAPI}
|
|
12212
|
-
*/
|
|
12213
|
-
class JobsApi extends base_1.BaseAPI {
|
|
12214
|
-
/**
|
|
12215
|
-
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
12216
|
-
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
12217
|
-
* @param {*} [options] Override http request option.
|
|
12218
|
-
* @throws {RequiredError}
|
|
12219
|
-
* @memberof JobsApi
|
|
12220
|
-
*/
|
|
12221
|
-
captureExpiringAuthorizations(options) {
|
|
12222
|
-
return (0, exports.JobsApiFp)(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
|
|
12223
|
-
}
|
|
12224
|
-
/**
|
|
12225
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12226
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12227
|
-
* @param {*} [options] Override http request option.
|
|
12228
|
-
* @throws {RequiredError}
|
|
12229
|
-
* @memberof JobsApi
|
|
12230
|
-
*/
|
|
12231
|
-
capturePastReservations(options) {
|
|
12232
|
-
return (0, exports.JobsApiFp)(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
|
|
12233
|
-
}
|
|
12234
|
-
/**
|
|
12235
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12236
|
-
* @summary Expire les réservations en attente de paiement
|
|
12237
|
-
* @param {*} [options] Override http request option.
|
|
12238
|
-
* @throws {RequiredError}
|
|
12239
|
-
* @memberof JobsApi
|
|
12240
|
-
*/
|
|
12241
|
-
expireBookingWaitingPayments(options) {
|
|
12242
|
-
return (0, exports.JobsApiFp)(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12243
|
-
}
|
|
12244
|
-
/**
|
|
12245
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12246
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12247
|
-
* @param {*} [options] Override http request option.
|
|
12248
|
-
* @throws {RequiredError}
|
|
12249
|
-
* @memberof JobsApi
|
|
12250
|
-
*/
|
|
12251
|
-
expireWaitlistPayments(options) {
|
|
12252
|
-
return (0, exports.JobsApiFp)(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12253
|
-
}
|
|
12254
|
-
/**
|
|
12255
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12256
|
-
* @summary Health check pour les jobs
|
|
12257
|
-
* @param {*} [options] Override http request option.
|
|
12258
|
-
* @throws {RequiredError}
|
|
12259
|
-
* @memberof JobsApi
|
|
12260
|
-
*/
|
|
12261
|
-
health(options) {
|
|
12262
|
-
return (0, exports.JobsApiFp)(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
|
|
12263
|
-
}
|
|
12264
|
-
/**
|
|
12265
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12266
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12267
|
-
* @param {*} [options] Override http request option.
|
|
12268
|
-
* @throws {RequiredError}
|
|
12269
|
-
* @memberof JobsApi
|
|
12270
|
-
*/
|
|
12271
|
-
maintainSlots(options) {
|
|
12272
|
-
return (0, exports.JobsApiFp)(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
|
|
12273
|
-
}
|
|
12274
|
-
/**
|
|
12275
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12276
|
-
* @summary Libère les anciennes réservations terminées
|
|
12277
|
-
* @param {*} [options] Override http request option.
|
|
12278
|
-
* @throws {RequiredError}
|
|
12279
|
-
* @memberof JobsApi
|
|
12280
|
-
*/
|
|
12281
|
-
releaseOldBookings(options) {
|
|
12282
|
-
return (0, exports.JobsApiFp)(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
|
|
12283
|
-
}
|
|
12284
|
-
/**
|
|
12285
|
-
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12286
|
-
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12287
|
-
* @param {*} [options] Override http request option.
|
|
12288
|
-
* @throws {RequiredError}
|
|
12289
|
-
* @memberof JobsApi
|
|
12290
|
-
*/
|
|
12291
|
-
sendBookingReminders(options) {
|
|
12292
|
-
return (0, exports.JobsApiFp)(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
|
|
12293
|
-
}
|
|
12294
|
-
}
|
|
12295
|
-
exports.JobsApi = JobsApi;
|
|
12296
|
-
/**
|
|
12297
|
-
* PublicEmailApi - axios parameter creator
|
|
12298
|
-
* @export
|
|
12299
|
-
*/
|
|
12300
|
-
const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
12301
|
-
return {
|
|
12302
|
-
/**
|
|
12303
|
-
*
|
|
12304
|
-
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
12305
|
-
* @param {*} [options] Override http request option.
|
|
12306
|
-
* @throws {RequiredError}
|
|
12307
|
-
*/
|
|
12308
|
-
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
12309
|
-
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
12310
|
-
(0, common_1.assertParamExists)('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
12311
|
-
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
12312
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12313
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12314
|
-
let baseOptions;
|
|
12315
|
-
if (configuration) {
|
|
12316
|
-
baseOptions = configuration.baseOptions;
|
|
12317
|
-
}
|
|
12318
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12319
|
-
const localVarHeaderParameter = {};
|
|
12320
|
-
const localVarQueryParameter = {};
|
|
12321
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12322
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12323
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12324
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12325
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
12326
|
-
return {
|
|
12327
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12328
|
-
options: localVarRequestOptions,
|
|
12329
|
-
};
|
|
12330
|
-
}),
|
|
12331
|
-
/**
|
|
12332
|
-
*
|
|
12333
|
-
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
12334
|
-
* @param {*} [options] Override http request option.
|
|
12335
|
-
* @throws {RequiredError}
|
|
12336
|
-
*/
|
|
12337
|
-
requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
12338
|
-
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
12339
|
-
(0, common_1.assertParamExists)('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
12340
|
-
const localVarPath = `/api/public-email/request-verification-code`;
|
|
12341
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12342
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12343
|
-
let baseOptions;
|
|
12344
|
-
if (configuration) {
|
|
12345
|
-
baseOptions = configuration.baseOptions;
|
|
12346
|
-
}
|
|
12347
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12348
|
-
const localVarHeaderParameter = {};
|
|
12349
|
-
const localVarQueryParameter = {};
|
|
12350
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12351
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12352
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12353
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12354
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
12355
|
-
return {
|
|
12356
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12357
|
-
options: localVarRequestOptions,
|
|
12358
|
-
};
|
|
12359
|
-
}),
|
|
12360
|
-
/**
|
|
12361
|
-
*
|
|
12362
|
-
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12363
|
-
* @param {*} [options] Override http request option.
|
|
12364
|
-
* @throws {RequiredError}
|
|
12365
|
-
*/
|
|
12366
|
-
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
12367
|
-
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
12368
|
-
(0, common_1.assertParamExists)('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
12369
|
-
const localVarPath = `/api/public-email/verify-code`;
|
|
12370
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12371
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12372
|
-
let baseOptions;
|
|
12373
|
-
if (configuration) {
|
|
12374
|
-
baseOptions = configuration.baseOptions;
|
|
12375
|
-
}
|
|
12376
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12377
|
-
const localVarHeaderParameter = {};
|
|
12378
|
-
const localVarQueryParameter = {};
|
|
12379
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12380
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12381
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12382
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12383
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
12384
|
-
return {
|
|
12385
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12386
|
-
options: localVarRequestOptions,
|
|
12387
|
-
};
|
|
12388
|
-
}),
|
|
12389
|
-
};
|
|
12390
|
-
};
|
|
12391
|
-
exports.PublicEmailApiAxiosParamCreator = PublicEmailApiAxiosParamCreator;
|
|
12392
|
-
/**
|
|
12393
|
-
* PublicEmailApi - functional programming interface
|
|
12394
|
-
* @export
|
|
12395
|
-
*/
|
|
12396
|
-
const PublicEmailApiFp = function (configuration) {
|
|
12397
|
-
const localVarAxiosParamCreator = (0, exports.PublicEmailApiAxiosParamCreator)(configuration);
|
|
12398
|
-
return {
|
|
12399
|
-
/**
|
|
12400
|
-
*
|
|
12401
|
-
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
12402
|
-
* @param {*} [options] Override http request option.
|
|
12403
|
-
* @throws {RequiredError}
|
|
12404
|
-
*/
|
|
12405
|
-
authEmailExists(emailExistsRequestBody, options) {
|
|
12406
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12407
|
-
var _a, _b, _c;
|
|
12408
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
12409
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12410
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12411
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12412
|
-
});
|
|
12413
|
-
},
|
|
12414
|
-
/**
|
|
12415
|
-
*
|
|
12416
|
-
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
12417
|
-
* @param {*} [options] Override http request option.
|
|
12418
|
-
* @throws {RequiredError}
|
|
12419
|
-
*/
|
|
12420
|
-
requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
|
|
12421
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12422
|
-
var _a, _b, _c;
|
|
12423
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
|
|
12424
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12425
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12426
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12427
|
-
});
|
|
12428
|
-
},
|
|
12429
|
-
/**
|
|
12430
|
-
*
|
|
12431
|
-
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12432
|
-
* @param {*} [options] Override http request option.
|
|
12433
|
-
* @throws {RequiredError}
|
|
12434
|
-
*/
|
|
12435
|
-
verifyCode(verifyEmailCodeBody, options) {
|
|
12436
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12437
|
-
var _a, _b, _c;
|
|
12438
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
12439
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12440
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12441
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12442
|
-
});
|
|
12443
|
-
},
|
|
12444
|
-
};
|
|
12445
|
-
};
|
|
12446
|
-
exports.PublicEmailApiFp = PublicEmailApiFp;
|
|
12447
|
-
/**
|
|
12448
|
-
* PublicEmailApi - factory interface
|
|
12449
|
-
* @export
|
|
12450
|
-
*/
|
|
12451
|
-
const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
12452
|
-
const localVarFp = (0, exports.PublicEmailApiFp)(configuration);
|
|
12453
|
-
return {
|
|
12454
|
-
/**
|
|
12455
|
-
*
|
|
12456
|
-
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
12457
|
-
* @param {*} [options] Override http request option.
|
|
12458
|
-
* @throws {RequiredError}
|
|
12459
|
-
*/
|
|
12460
|
-
authEmailExists(requestParameters, options) {
|
|
12461
|
-
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
12462
|
-
},
|
|
12463
|
-
/**
|
|
12464
|
-
*
|
|
12465
|
-
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
12466
|
-
* @param {*} [options] Override http request option.
|
|
12467
|
-
* @throws {RequiredError}
|
|
12468
|
-
*/
|
|
12469
|
-
requestPublicEmailVerificationCode(requestParameters, options) {
|
|
12470
|
-
return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12471
|
-
},
|
|
12472
|
-
/**
|
|
12473
|
-
*
|
|
12474
|
-
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
12475
|
-
* @param {*} [options] Override http request option.
|
|
12476
|
-
* @throws {RequiredError}
|
|
12477
|
-
*/
|
|
12478
|
-
verifyCode(requestParameters, options) {
|
|
12479
|
-
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11886
|
+
verifyCode(requestParameters, options) {
|
|
11887
|
+
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12480
11888
|
},
|
|
12481
11889
|
};
|
|
12482
11890
|
};
|
|
@@ -12500,13 +11908,13 @@ class PublicEmailApi extends base_1.BaseAPI {
|
|
|
12500
11908
|
}
|
|
12501
11909
|
/**
|
|
12502
11910
|
*
|
|
12503
|
-
* @param {
|
|
11911
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12504
11912
|
* @param {*} [options] Override http request option.
|
|
12505
11913
|
* @throws {RequiredError}
|
|
12506
11914
|
* @memberof PublicEmailApi
|
|
12507
11915
|
*/
|
|
12508
|
-
|
|
12509
|
-
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));
|
|
12510
11918
|
}
|
|
12511
11919
|
/**
|
|
12512
11920
|
*
|
|
@@ -13422,27 +12830,496 @@ exports.SubscriptionsStaffApi = SubscriptionsStaffApi;
|
|
|
13422
12830
|
const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
13423
12831
|
return {
|
|
13424
12832
|
/**
|
|
13425
|
-
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12833
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12834
|
+
* @param {string} clubId
|
|
12835
|
+
* @param {string} subscriptionId
|
|
12836
|
+
* @param {*} [options] Override http request option.
|
|
12837
|
+
* @throws {RequiredError}
|
|
12838
|
+
*/
|
|
12839
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
12840
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12841
|
+
(0, common_1.assertParamExists)('cancel', 'clubId', clubId);
|
|
12842
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
12843
|
+
(0, common_1.assertParamExists)('cancel', 'subscriptionId', subscriptionId);
|
|
12844
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
12845
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
12846
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
12847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12848
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12849
|
+
let baseOptions;
|
|
12850
|
+
if (configuration) {
|
|
12851
|
+
baseOptions = configuration.baseOptions;
|
|
12852
|
+
}
|
|
12853
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12854
|
+
const localVarHeaderParameter = {};
|
|
12855
|
+
const localVarQueryParameter = {};
|
|
12856
|
+
// authentication bearerAuth required
|
|
12857
|
+
// http bearer authentication required
|
|
12858
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12859
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12860
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12861
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12862
|
+
return {
|
|
12863
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12864
|
+
options: localVarRequestOptions,
|
|
12865
|
+
};
|
|
12866
|
+
}),
|
|
12867
|
+
/**
|
|
12868
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12869
|
+
* @param {*} [options] Override http request option.
|
|
12870
|
+
* @throws {RequiredError}
|
|
12871
|
+
*/
|
|
12872
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
12873
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
12874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12875
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12876
|
+
let baseOptions;
|
|
12877
|
+
if (configuration) {
|
|
12878
|
+
baseOptions = configuration.baseOptions;
|
|
12879
|
+
}
|
|
12880
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12881
|
+
const localVarHeaderParameter = {};
|
|
12882
|
+
const localVarQueryParameter = {};
|
|
12883
|
+
// authentication bearerAuth required
|
|
12884
|
+
// http bearer authentication required
|
|
12885
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12886
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12889
|
+
return {
|
|
12890
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12891
|
+
options: localVarRequestOptions,
|
|
12892
|
+
};
|
|
12893
|
+
}),
|
|
12894
|
+
/**
|
|
12895
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
12896
|
+
* @param {string} clubId
|
|
12897
|
+
* @param {string} subscriptionId
|
|
12898
|
+
* @param {*} [options] Override http request option.
|
|
12899
|
+
* @throws {RequiredError}
|
|
12900
|
+
*/
|
|
12901
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
12902
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12903
|
+
(0, common_1.assertParamExists)('resume', 'clubId', clubId);
|
|
12904
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
12905
|
+
(0, common_1.assertParamExists)('resume', 'subscriptionId', subscriptionId);
|
|
12906
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
12907
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
12908
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
12909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12910
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12911
|
+
let baseOptions;
|
|
12912
|
+
if (configuration) {
|
|
12913
|
+
baseOptions = configuration.baseOptions;
|
|
12914
|
+
}
|
|
12915
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12916
|
+
const localVarHeaderParameter = {};
|
|
12917
|
+
const localVarQueryParameter = {};
|
|
12918
|
+
// authentication bearerAuth required
|
|
12919
|
+
// http bearer authentication required
|
|
12920
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12921
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12923
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12924
|
+
return {
|
|
12925
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12926
|
+
options: localVarRequestOptions,
|
|
12927
|
+
};
|
|
12928
|
+
}),
|
|
12929
|
+
/**
|
|
12930
|
+
* S\'abonner à un plan (auth classique)
|
|
12931
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
12932
|
+
* @param {*} [options] Override http request option.
|
|
12933
|
+
* @throws {RequiredError}
|
|
12934
|
+
*/
|
|
12935
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
12936
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
12937
|
+
(0, common_1.assertParamExists)('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
12938
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
12939
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12940
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12941
|
+
let baseOptions;
|
|
12942
|
+
if (configuration) {
|
|
12943
|
+
baseOptions = configuration.baseOptions;
|
|
12944
|
+
}
|
|
12945
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12946
|
+
const localVarHeaderParameter = {};
|
|
12947
|
+
const localVarQueryParameter = {};
|
|
12948
|
+
// authentication bearerAuth required
|
|
12949
|
+
// http bearer authentication required
|
|
12950
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12951
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12952
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12954
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12955
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
12956
|
+
return {
|
|
12957
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12958
|
+
options: localVarRequestOptions,
|
|
12959
|
+
};
|
|
12960
|
+
}),
|
|
12961
|
+
};
|
|
12962
|
+
};
|
|
12963
|
+
exports.SubscriptionsUserApiAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator;
|
|
12964
|
+
/**
|
|
12965
|
+
* SubscriptionsUserApi - functional programming interface
|
|
12966
|
+
* @export
|
|
12967
|
+
*/
|
|
12968
|
+
const SubscriptionsUserApiFp = function (configuration) {
|
|
12969
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsUserApiAxiosParamCreator)(configuration);
|
|
12970
|
+
return {
|
|
12971
|
+
/**
|
|
12972
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12973
|
+
* @param {string} clubId
|
|
12974
|
+
* @param {string} subscriptionId
|
|
12975
|
+
* @param {*} [options] Override http request option.
|
|
12976
|
+
* @throws {RequiredError}
|
|
12977
|
+
*/
|
|
12978
|
+
cancel(clubId, subscriptionId, options) {
|
|
12979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12980
|
+
var _a, _b, _c;
|
|
12981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
12982
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12983
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12984
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12985
|
+
});
|
|
12986
|
+
},
|
|
12987
|
+
/**
|
|
12988
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12989
|
+
* @param {*} [options] Override http request option.
|
|
12990
|
+
* @throws {RequiredError}
|
|
12991
|
+
*/
|
|
12992
|
+
mySubscriptions(options) {
|
|
12993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12994
|
+
var _a, _b, _c;
|
|
12995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
12996
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12997
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12998
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12999
|
+
});
|
|
13000
|
+
},
|
|
13001
|
+
/**
|
|
13002
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
13003
|
+
* @param {string} clubId
|
|
13004
|
+
* @param {string} subscriptionId
|
|
13005
|
+
* @param {*} [options] Override http request option.
|
|
13006
|
+
* @throws {RequiredError}
|
|
13007
|
+
*/
|
|
13008
|
+
resume(clubId, subscriptionId, options) {
|
|
13009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13010
|
+
var _a, _b, _c;
|
|
13011
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
13012
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13013
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13014
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13015
|
+
});
|
|
13016
|
+
},
|
|
13017
|
+
/**
|
|
13018
|
+
* S\'abonner à un plan (auth classique)
|
|
13019
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
13020
|
+
* @param {*} [options] Override http request option.
|
|
13021
|
+
* @throws {RequiredError}
|
|
13022
|
+
*/
|
|
13023
|
+
subscribe(subscribeRequestBody, options) {
|
|
13024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13025
|
+
var _a, _b, _c;
|
|
13026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
13027
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13028
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13029
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13030
|
+
});
|
|
13031
|
+
},
|
|
13032
|
+
};
|
|
13033
|
+
};
|
|
13034
|
+
exports.SubscriptionsUserApiFp = SubscriptionsUserApiFp;
|
|
13035
|
+
/**
|
|
13036
|
+
* SubscriptionsUserApi - factory interface
|
|
13037
|
+
* @export
|
|
13038
|
+
*/
|
|
13039
|
+
const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
13040
|
+
const localVarFp = (0, exports.SubscriptionsUserApiFp)(configuration);
|
|
13041
|
+
return {
|
|
13042
|
+
/**
|
|
13043
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
13044
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
13045
|
+
* @param {*} [options] Override http request option.
|
|
13046
|
+
* @throws {RequiredError}
|
|
13047
|
+
*/
|
|
13048
|
+
cancel(requestParameters, options) {
|
|
13049
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
13050
|
+
},
|
|
13051
|
+
/**
|
|
13052
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
13053
|
+
* @param {*} [options] Override http request option.
|
|
13054
|
+
* @throws {RequiredError}
|
|
13055
|
+
*/
|
|
13056
|
+
mySubscriptions(options) {
|
|
13057
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
13058
|
+
},
|
|
13059
|
+
/**
|
|
13060
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
13061
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
13062
|
+
* @param {*} [options] Override http request option.
|
|
13063
|
+
* @throws {RequiredError}
|
|
13064
|
+
*/
|
|
13065
|
+
resume(requestParameters, options) {
|
|
13066
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
13067
|
+
},
|
|
13068
|
+
/**
|
|
13069
|
+
* S\'abonner à un plan (auth classique)
|
|
13070
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
13071
|
+
* @param {*} [options] Override http request option.
|
|
13072
|
+
* @throws {RequiredError}
|
|
13073
|
+
*/
|
|
13074
|
+
subscribe(requestParameters, options) {
|
|
13075
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
13076
|
+
},
|
|
13077
|
+
};
|
|
13078
|
+
};
|
|
13079
|
+
exports.SubscriptionsUserApiFactory = SubscriptionsUserApiFactory;
|
|
13080
|
+
/**
|
|
13081
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
13082
|
+
* @export
|
|
13083
|
+
* @class SubscriptionsUserApi
|
|
13084
|
+
* @extends {BaseAPI}
|
|
13085
|
+
*/
|
|
13086
|
+
class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
13087
|
+
/**
|
|
13088
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
13089
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
13090
|
+
* @param {*} [options] Override http request option.
|
|
13091
|
+
* @throws {RequiredError}
|
|
13092
|
+
* @memberof SubscriptionsUserApi
|
|
13093
|
+
*/
|
|
13094
|
+
cancel(requestParameters, options) {
|
|
13095
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
13096
|
+
}
|
|
13097
|
+
/**
|
|
13098
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
13099
|
+
* @param {*} [options] Override http request option.
|
|
13100
|
+
* @throws {RequiredError}
|
|
13101
|
+
* @memberof SubscriptionsUserApi
|
|
13102
|
+
*/
|
|
13103
|
+
mySubscriptions(options) {
|
|
13104
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
13105
|
+
}
|
|
13106
|
+
/**
|
|
13107
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
13108
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
13109
|
+
* @param {*} [options] Override http request option.
|
|
13110
|
+
* @throws {RequiredError}
|
|
13111
|
+
* @memberof SubscriptionsUserApi
|
|
13112
|
+
*/
|
|
13113
|
+
resume(requestParameters, options) {
|
|
13114
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
13115
|
+
}
|
|
13116
|
+
/**
|
|
13117
|
+
* S\'abonner à un plan (auth classique)
|
|
13118
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
13119
|
+
* @param {*} [options] Override http request option.
|
|
13120
|
+
* @throws {RequiredError}
|
|
13121
|
+
* @memberof SubscriptionsUserApi
|
|
13122
|
+
*/
|
|
13123
|
+
subscribe(requestParameters, options) {
|
|
13124
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
13125
|
+
}
|
|
13126
|
+
}
|
|
13127
|
+
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13128
|
+
/**
|
|
13129
|
+
* SumUpApi - axios parameter creator
|
|
13130
|
+
* @export
|
|
13131
|
+
*/
|
|
13132
|
+
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13133
|
+
return {
|
|
13134
|
+
/**
|
|
13135
|
+
* OAuth callback for SumUp.
|
|
13136
|
+
* @param {string} code
|
|
13137
|
+
* @param {string} state
|
|
13138
|
+
* @param {*} [options] Override http request option.
|
|
13139
|
+
* @throws {RequiredError}
|
|
13140
|
+
*/
|
|
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.
|
|
13426
13307
|
* @param {string} clubId
|
|
13427
|
-
* @param {string} subscriptionId
|
|
13428
13308
|
* @param {*} [options] Override http request option.
|
|
13429
13309
|
* @throws {RequiredError}
|
|
13430
13310
|
*/
|
|
13431
|
-
|
|
13311
|
+
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13432
13312
|
// verify required parameter 'clubId' is not null or undefined
|
|
13433
|
-
(0, common_1.assertParamExists)('
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
13437
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13438
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
13313
|
+
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
13314
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13315
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13439
13316
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13440
13317
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13441
13318
|
let baseOptions;
|
|
13442
13319
|
if (configuration) {
|
|
13443
13320
|
baseOptions = configuration.baseOptions;
|
|
13444
13321
|
}
|
|
13445
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13322
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13446
13323
|
const localVarHeaderParameter = {};
|
|
13447
13324
|
const localVarQueryParameter = {};
|
|
13448
13325
|
// authentication bearerAuth required
|
|
@@ -13457,12 +13334,16 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13457
13334
|
};
|
|
13458
13335
|
}),
|
|
13459
13336
|
/**
|
|
13460
|
-
*
|
|
13337
|
+
* List SumUp readers for a club.
|
|
13338
|
+
* @param {string} clubId
|
|
13461
13339
|
* @param {*} [options] Override http request option.
|
|
13462
13340
|
* @throws {RequiredError}
|
|
13463
13341
|
*/
|
|
13464
|
-
|
|
13465
|
-
|
|
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)));
|
|
13466
13347
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13467
13348
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13468
13349
|
let baseOptions;
|
|
@@ -13484,20 +13365,19 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13484
13365
|
};
|
|
13485
13366
|
}),
|
|
13486
13367
|
/**
|
|
13487
|
-
*
|
|
13368
|
+
* Pair a SumUp reader with a club.
|
|
13488
13369
|
* @param {string} clubId
|
|
13489
|
-
* @param {
|
|
13370
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13490
13371
|
* @param {*} [options] Override http request option.
|
|
13491
13372
|
* @throws {RequiredError}
|
|
13492
13373
|
*/
|
|
13493
|
-
|
|
13374
|
+
pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
|
|
13494
13375
|
// verify required parameter 'clubId' is not null or undefined
|
|
13495
|
-
(0, common_1.assertParamExists)('
|
|
13496
|
-
// verify required parameter '
|
|
13497
|
-
(0, common_1.assertParamExists)('
|
|
13498
|
-
const localVarPath = `/api/
|
|
13499
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13500
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
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)));
|
|
13501
13381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13502
13382
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13503
13383
|
let baseOptions;
|
|
@@ -13510,24 +13390,31 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13510
13390
|
// authentication bearerAuth required
|
|
13511
13391
|
// http bearer authentication required
|
|
13512
13392
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13393
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13513
13394
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13514
13395
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13515
13396
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13397
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13516
13398
|
return {
|
|
13517
13399
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13518
13400
|
options: localVarRequestOptions,
|
|
13519
13401
|
};
|
|
13520
13402
|
}),
|
|
13521
13403
|
/**
|
|
13522
|
-
*
|
|
13523
|
-
* @param {
|
|
13404
|
+
* Select a SumUp reader for a club.
|
|
13405
|
+
* @param {string} clubId
|
|
13406
|
+
* @param {string} readerId
|
|
13524
13407
|
* @param {*} [options] Override http request option.
|
|
13525
13408
|
* @throws {RequiredError}
|
|
13526
13409
|
*/
|
|
13527
|
-
|
|
13528
|
-
// verify required parameter '
|
|
13529
|
-
(0, common_1.assertParamExists)('
|
|
13530
|
-
|
|
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)));
|
|
13531
13418
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13532
13419
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13533
13420
|
let baseOptions;
|
|
@@ -13540,11 +13427,9 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13540
13427
|
// authentication bearerAuth required
|
|
13541
13428
|
// http bearer authentication required
|
|
13542
13429
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13543
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13544
13430
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13545
13431
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13546
13432
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13547
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
13548
13433
|
return {
|
|
13549
13434
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13550
13435
|
options: localVarRequestOptions,
|
|
@@ -13552,171 +13437,242 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13552
13437
|
}),
|
|
13553
13438
|
};
|
|
13554
13439
|
};
|
|
13555
|
-
exports.
|
|
13440
|
+
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
13556
13441
|
/**
|
|
13557
|
-
*
|
|
13442
|
+
* SumUpManagerApi - functional programming interface
|
|
13558
13443
|
* @export
|
|
13559
13444
|
*/
|
|
13560
|
-
const
|
|
13561
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
13445
|
+
const SumUpManagerApiFp = function (configuration) {
|
|
13446
|
+
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
13562
13447
|
return {
|
|
13563
13448
|
/**
|
|
13564
|
-
*
|
|
13449
|
+
* Disconnect SumUp account for a club.
|
|
13565
13450
|
* @param {string} clubId
|
|
13566
|
-
* @param {string} subscriptionId
|
|
13567
13451
|
* @param {*} [options] Override http request option.
|
|
13568
13452
|
* @throws {RequiredError}
|
|
13569
13453
|
*/
|
|
13570
|
-
|
|
13454
|
+
disconnectSumup(clubId, options) {
|
|
13571
13455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13572
13456
|
var _a, _b, _c;
|
|
13573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13457
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13574
13458
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13575
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
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;
|
|
13576
13460
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13577
13461
|
});
|
|
13578
13462
|
},
|
|
13579
13463
|
/**
|
|
13580
|
-
*
|
|
13464
|
+
* Start SumUp OAuth connection for a club.
|
|
13465
|
+
* @param {string} clubId
|
|
13581
13466
|
* @param {*} [options] Override http request option.
|
|
13582
13467
|
* @throws {RequiredError}
|
|
13583
13468
|
*/
|
|
13584
|
-
|
|
13469
|
+
getSumupConnectUrl(clubId, options) {
|
|
13585
13470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13586
13471
|
var _a, _b, _c;
|
|
13587
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13472
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13588
13473
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13589
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
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;
|
|
13590
13475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13591
13476
|
});
|
|
13592
13477
|
},
|
|
13593
13478
|
/**
|
|
13594
|
-
*
|
|
13479
|
+
* Get SumUp connection status for a club.
|
|
13595
13480
|
* @param {string} clubId
|
|
13596
|
-
* @param {string} subscriptionId
|
|
13597
13481
|
* @param {*} [options] Override http request option.
|
|
13598
13482
|
* @throws {RequiredError}
|
|
13599
13483
|
*/
|
|
13600
|
-
|
|
13484
|
+
getSumupStatus(clubId, options) {
|
|
13601
13485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13602
13486
|
var _a, _b, _c;
|
|
13603
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13487
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13604
13488
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13605
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
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;
|
|
13606
13490
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13607
13491
|
});
|
|
13608
13492
|
},
|
|
13609
13493
|
/**
|
|
13610
|
-
*
|
|
13611
|
-
* @param {
|
|
13494
|
+
* List SumUp readers for a club.
|
|
13495
|
+
* @param {string} clubId
|
|
13612
13496
|
* @param {*} [options] Override http request option.
|
|
13613
13497
|
* @throws {RequiredError}
|
|
13614
13498
|
*/
|
|
13615
|
-
|
|
13499
|
+
listSumupReaders(clubId, options) {
|
|
13616
13500
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13617
13501
|
var _a, _b, _c;
|
|
13618
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13619
13503
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13620
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
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;
|
|
13621
13537
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13622
13538
|
});
|
|
13623
13539
|
},
|
|
13624
13540
|
};
|
|
13625
13541
|
};
|
|
13626
|
-
exports.
|
|
13542
|
+
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
13627
13543
|
/**
|
|
13628
|
-
*
|
|
13544
|
+
* SumUpManagerApi - factory interface
|
|
13629
13545
|
* @export
|
|
13630
13546
|
*/
|
|
13631
|
-
const
|
|
13632
|
-
const localVarFp = (0, exports.
|
|
13547
|
+
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13548
|
+
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
13633
13549
|
return {
|
|
13634
13550
|
/**
|
|
13635
|
-
*
|
|
13636
|
-
* @param {
|
|
13551
|
+
* Disconnect SumUp account for a club.
|
|
13552
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13637
13553
|
* @param {*} [options] Override http request option.
|
|
13638
13554
|
* @throws {RequiredError}
|
|
13639
13555
|
*/
|
|
13640
|
-
|
|
13641
|
-
return localVarFp.
|
|
13556
|
+
disconnectSumup(requestParameters, options) {
|
|
13557
|
+
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13642
13558
|
},
|
|
13643
13559
|
/**
|
|
13644
|
-
*
|
|
13560
|
+
* Start SumUp OAuth connection for a club.
|
|
13561
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13645
13562
|
* @param {*} [options] Override http request option.
|
|
13646
13563
|
* @throws {RequiredError}
|
|
13647
13564
|
*/
|
|
13648
|
-
|
|
13649
|
-
return localVarFp.
|
|
13565
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13566
|
+
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13650
13567
|
},
|
|
13651
13568
|
/**
|
|
13652
|
-
*
|
|
13653
|
-
* @param {
|
|
13569
|
+
* Get SumUp connection status for a club.
|
|
13570
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13654
13571
|
* @param {*} [options] Override http request option.
|
|
13655
13572
|
* @throws {RequiredError}
|
|
13656
13573
|
*/
|
|
13657
|
-
|
|
13658
|
-
return localVarFp.
|
|
13574
|
+
getSumupStatus(requestParameters, options) {
|
|
13575
|
+
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13659
13576
|
},
|
|
13660
13577
|
/**
|
|
13661
|
-
*
|
|
13662
|
-
* @param {
|
|
13578
|
+
* List SumUp readers for a club.
|
|
13579
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13663
13580
|
* @param {*} [options] Override http request option.
|
|
13664
13581
|
* @throws {RequiredError}
|
|
13665
13582
|
*/
|
|
13666
|
-
|
|
13667
|
-
return localVarFp.
|
|
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));
|
|
13668
13603
|
},
|
|
13669
13604
|
};
|
|
13670
13605
|
};
|
|
13671
|
-
exports.
|
|
13606
|
+
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
13672
13607
|
/**
|
|
13673
|
-
*
|
|
13608
|
+
* SumUpManagerApi - object-oriented interface
|
|
13674
13609
|
* @export
|
|
13675
|
-
* @class
|
|
13610
|
+
* @class SumUpManagerApi
|
|
13676
13611
|
* @extends {BaseAPI}
|
|
13677
13612
|
*/
|
|
13678
|
-
class
|
|
13613
|
+
class SumUpManagerApi extends base_1.BaseAPI {
|
|
13679
13614
|
/**
|
|
13680
|
-
*
|
|
13681
|
-
* @param {
|
|
13615
|
+
* Disconnect SumUp account for a club.
|
|
13616
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13682
13617
|
* @param {*} [options] Override http request option.
|
|
13683
13618
|
* @throws {RequiredError}
|
|
13684
|
-
* @memberof
|
|
13619
|
+
* @memberof SumUpManagerApi
|
|
13685
13620
|
*/
|
|
13686
|
-
|
|
13687
|
-
return (0, exports.
|
|
13621
|
+
disconnectSumup(requestParameters, options) {
|
|
13622
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13688
13623
|
}
|
|
13689
13624
|
/**
|
|
13690
|
-
*
|
|
13625
|
+
* Start SumUp OAuth connection for a club.
|
|
13626
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13691
13627
|
* @param {*} [options] Override http request option.
|
|
13692
13628
|
* @throws {RequiredError}
|
|
13693
|
-
* @memberof
|
|
13629
|
+
* @memberof SumUpManagerApi
|
|
13694
13630
|
*/
|
|
13695
|
-
|
|
13696
|
-
return (0, exports.
|
|
13631
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13632
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13697
13633
|
}
|
|
13698
13634
|
/**
|
|
13699
|
-
*
|
|
13700
|
-
* @param {
|
|
13635
|
+
* Get SumUp connection status for a club.
|
|
13636
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13701
13637
|
* @param {*} [options] Override http request option.
|
|
13702
13638
|
* @throws {RequiredError}
|
|
13703
|
-
* @memberof
|
|
13639
|
+
* @memberof SumUpManagerApi
|
|
13704
13640
|
*/
|
|
13705
|
-
|
|
13706
|
-
return (0, exports.
|
|
13641
|
+
getSumupStatus(requestParameters, options) {
|
|
13642
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13707
13643
|
}
|
|
13708
13644
|
/**
|
|
13709
|
-
*
|
|
13710
|
-
* @param {
|
|
13645
|
+
* List SumUp readers for a club.
|
|
13646
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13711
13647
|
* @param {*} [options] Override http request option.
|
|
13712
13648
|
* @throws {RequiredError}
|
|
13713
|
-
* @memberof
|
|
13649
|
+
* @memberof SumUpManagerApi
|
|
13714
13650
|
*/
|
|
13715
|
-
|
|
13716
|
-
return (0, exports.
|
|
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));
|
|
13717
13673
|
}
|
|
13718
13674
|
}
|
|
13719
|
-
exports.
|
|
13675
|
+
exports.SumUpManagerApi = SumUpManagerApi;
|
|
13720
13676
|
/**
|
|
13721
13677
|
* UserApi - axios parameter creator
|
|
13722
13678
|
* @export
|
|
@@ -14455,47 +14411,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14455
14411
|
options: localVarRequestOptions,
|
|
14456
14412
|
};
|
|
14457
14413
|
}),
|
|
14458
|
-
/**
|
|
14459
|
-
*
|
|
14460
|
-
* @param {number} [limit]
|
|
14461
|
-
* @param {number} [skip]
|
|
14462
|
-
* @param {any} [includeRead]
|
|
14463
|
-
* @param {*} [options] Override http request option.
|
|
14464
|
-
* @throws {RequiredError}
|
|
14465
|
-
*/
|
|
14466
|
-
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 = {}) {
|
|
14467
|
-
const localVarPath = `/api/users/me/notifications`;
|
|
14468
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14469
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14470
|
-
let baseOptions;
|
|
14471
|
-
if (configuration) {
|
|
14472
|
-
baseOptions = configuration.baseOptions;
|
|
14473
|
-
}
|
|
14474
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14475
|
-
const localVarHeaderParameter = {};
|
|
14476
|
-
const localVarQueryParameter = {};
|
|
14477
|
-
// authentication bearerAuth required
|
|
14478
|
-
// http bearer authentication required
|
|
14479
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14480
|
-
if (limit !== undefined) {
|
|
14481
|
-
localVarQueryParameter['limit'] = limit;
|
|
14482
|
-
}
|
|
14483
|
-
if (skip !== undefined) {
|
|
14484
|
-
localVarQueryParameter['skip'] = skip;
|
|
14485
|
-
}
|
|
14486
|
-
if (includeRead !== undefined) {
|
|
14487
|
-
for (const [key, value] of Object.entries(includeRead)) {
|
|
14488
|
-
localVarQueryParameter[key] = value;
|
|
14489
|
-
}
|
|
14490
|
-
}
|
|
14491
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14492
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14493
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14494
|
-
return {
|
|
14495
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14496
|
-
options: localVarRequestOptions,
|
|
14497
|
-
};
|
|
14498
|
-
}),
|
|
14499
14414
|
/**
|
|
14500
14415
|
*
|
|
14501
14416
|
* @param {string} id
|
|
@@ -14683,38 +14598,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14683
14598
|
options: localVarRequestOptions,
|
|
14684
14599
|
};
|
|
14685
14600
|
}),
|
|
14686
|
-
/**
|
|
14687
|
-
*
|
|
14688
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
14689
|
-
* @param {*} [options] Override http request option.
|
|
14690
|
-
* @throws {RequiredError}
|
|
14691
|
-
*/
|
|
14692
|
-
markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
|
|
14693
|
-
// verify required parameter 'markNotificationsReadRequest' is not null or undefined
|
|
14694
|
-
(0, common_1.assertParamExists)('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
|
|
14695
|
-
const localVarPath = `/api/users/me/notifications/read`;
|
|
14696
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14697
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14698
|
-
let baseOptions;
|
|
14699
|
-
if (configuration) {
|
|
14700
|
-
baseOptions = configuration.baseOptions;
|
|
14701
|
-
}
|
|
14702
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14703
|
-
const localVarHeaderParameter = {};
|
|
14704
|
-
const localVarQueryParameter = {};
|
|
14705
|
-
// authentication bearerAuth required
|
|
14706
|
-
// http bearer authentication required
|
|
14707
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14708
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14709
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14710
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14711
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14712
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markNotificationsReadRequest, localVarRequestOptions, configuration);
|
|
14713
|
-
return {
|
|
14714
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14715
|
-
options: localVarRequestOptions,
|
|
14716
|
-
};
|
|
14717
|
-
}),
|
|
14718
14601
|
/**
|
|
14719
14602
|
*
|
|
14720
14603
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14838,59 +14721,27 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14838
14721
|
* @param {string} favoritePlayerId
|
|
14839
14722
|
* @param {*} [options] Override http request option.
|
|
14840
14723
|
* @throws {RequiredError}
|
|
14841
|
-
*/
|
|
14842
|
-
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
14843
|
-
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
14844
|
-
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
14845
|
-
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
14846
|
-
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
14847
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14848
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14849
|
-
let baseOptions;
|
|
14850
|
-
if (configuration) {
|
|
14851
|
-
baseOptions = configuration.baseOptions;
|
|
14852
|
-
}
|
|
14853
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14854
|
-
const localVarHeaderParameter = {};
|
|
14855
|
-
const localVarQueryParameter = {};
|
|
14856
|
-
// authentication bearerAuth required
|
|
14857
|
-
// http bearer authentication required
|
|
14858
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14859
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14860
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14861
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14862
|
-
return {
|
|
14863
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14864
|
-
options: localVarRequestOptions,
|
|
14865
|
-
};
|
|
14866
|
-
}),
|
|
14867
|
-
/**
|
|
14868
|
-
*
|
|
14869
|
-
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14870
|
-
* @param {*} [options] Override http request option.
|
|
14871
|
-
* @throws {RequiredError}
|
|
14872
|
-
*/
|
|
14873
|
-
removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
14874
|
-
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
14875
|
-
(0, common_1.assertParamExists)('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
14876
|
-
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)));
|
|
14877
14730
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14878
14731
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14879
14732
|
let baseOptions;
|
|
14880
14733
|
if (configuration) {
|
|
14881
14734
|
baseOptions = configuration.baseOptions;
|
|
14882
14735
|
}
|
|
14883
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
14736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14884
14737
|
const localVarHeaderParameter = {};
|
|
14885
14738
|
const localVarQueryParameter = {};
|
|
14886
14739
|
// authentication bearerAuth required
|
|
14887
14740
|
// http bearer authentication required
|
|
14888
14741
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14889
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14890
14742
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14891
14743
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14892
14744
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14893
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14894
14745
|
return {
|
|
14895
14746
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14896
14747
|
options: localVarRequestOptions,
|
|
@@ -14898,11 +14749,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14898
14749
|
}),
|
|
14899
14750
|
/**
|
|
14900
14751
|
*
|
|
14752
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14901
14753
|
* @param {*} [options] Override http request option.
|
|
14902
14754
|
* @throws {RequiredError}
|
|
14903
14755
|
*/
|
|
14904
|
-
|
|
14905
|
-
|
|
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`;
|
|
14906
14760
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14907
14761
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14908
14762
|
let baseOptions;
|
|
@@ -14915,9 +14769,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14915
14769
|
// authentication bearerAuth required
|
|
14916
14770
|
// http bearer authentication required
|
|
14917
14771
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14772
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14918
14773
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14919
14774
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14920
14775
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14776
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14921
14777
|
return {
|
|
14922
14778
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14923
14779
|
options: localVarRequestOptions,
|
|
@@ -14925,14 +14781,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14925
14781
|
}),
|
|
14926
14782
|
/**
|
|
14927
14783
|
*
|
|
14928
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
14929
14784
|
* @param {*} [options] Override http request option.
|
|
14930
14785
|
* @throws {RequiredError}
|
|
14931
14786
|
*/
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
(0, common_1.assertParamExists)('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
|
|
14935
|
-
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`;
|
|
14936
14789
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14937
14790
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14938
14791
|
let baseOptions;
|
|
@@ -14945,11 +14798,9 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14945
14798
|
// authentication bearerAuth required
|
|
14946
14799
|
// http bearer authentication required
|
|
14947
14800
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14948
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14949
14801
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14950
14802
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14951
14803
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14952
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
14953
14804
|
return {
|
|
14954
14805
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14955
14806
|
options: localVarRequestOptions,
|
|
@@ -15013,51 +14864,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15013
14864
|
options: localVarRequestOptions,
|
|
15014
14865
|
};
|
|
15015
14866
|
}),
|
|
15016
|
-
/**
|
|
15017
|
-
*
|
|
15018
|
-
* @param {string} q
|
|
15019
|
-
* @param {number} [page]
|
|
15020
|
-
* @param {number} [limit]
|
|
15021
|
-
* @param {Array<string>} [excludeIds]
|
|
15022
|
-
* @param {*} [options] Override http request option.
|
|
15023
|
-
* @throws {RequiredError}
|
|
15024
|
-
*/
|
|
15025
|
-
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 = {}) {
|
|
15026
|
-
// verify required parameter 'q' is not null or undefined
|
|
15027
|
-
(0, common_1.assertParamExists)('searchPartner', 'q', q);
|
|
15028
|
-
const localVarPath = `/api/users/searchPartner`;
|
|
15029
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15030
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15031
|
-
let baseOptions;
|
|
15032
|
-
if (configuration) {
|
|
15033
|
-
baseOptions = configuration.baseOptions;
|
|
15034
|
-
}
|
|
15035
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15036
|
-
const localVarHeaderParameter = {};
|
|
15037
|
-
const localVarQueryParameter = {};
|
|
15038
|
-
// authentication bearerAuth required
|
|
15039
|
-
// http bearer authentication required
|
|
15040
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15041
|
-
if (q !== undefined) {
|
|
15042
|
-
localVarQueryParameter['q'] = q;
|
|
15043
|
-
}
|
|
15044
|
-
if (page !== undefined) {
|
|
15045
|
-
localVarQueryParameter['page'] = page;
|
|
15046
|
-
}
|
|
15047
|
-
if (limit !== undefined) {
|
|
15048
|
-
localVarQueryParameter['limit'] = limit;
|
|
15049
|
-
}
|
|
15050
|
-
if (excludeIds) {
|
|
15051
|
-
localVarQueryParameter['excludeIds'] = excludeIds;
|
|
15052
|
-
}
|
|
15053
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15054
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15055
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15056
|
-
return {
|
|
15057
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15058
|
-
options: localVarRequestOptions,
|
|
15059
|
-
};
|
|
15060
|
-
}),
|
|
15061
14867
|
/**
|
|
15062
14868
|
*
|
|
15063
14869
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -15273,38 +15079,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15273
15079
|
options: localVarRequestOptions,
|
|
15274
15080
|
};
|
|
15275
15081
|
}),
|
|
15276
|
-
/**
|
|
15277
|
-
*
|
|
15278
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15279
|
-
* @param {*} [options] Override http request option.
|
|
15280
|
-
* @throws {RequiredError}
|
|
15281
|
-
*/
|
|
15282
|
-
verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
|
|
15283
|
-
// verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
|
|
15284
|
-
(0, common_1.assertParamExists)('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
|
|
15285
|
-
const localVarPath = `/api/users/me/verify-organization-code`;
|
|
15286
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15287
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15288
|
-
let baseOptions;
|
|
15289
|
-
if (configuration) {
|
|
15290
|
-
baseOptions = configuration.baseOptions;
|
|
15291
|
-
}
|
|
15292
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15293
|
-
const localVarHeaderParameter = {};
|
|
15294
|
-
const localVarQueryParameter = {};
|
|
15295
|
-
// authentication bearerAuth required
|
|
15296
|
-
// http bearer authentication required
|
|
15297
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15298
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15299
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15300
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15301
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15302
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
15303
|
-
return {
|
|
15304
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15305
|
-
options: localVarRequestOptions,
|
|
15306
|
-
};
|
|
15307
|
-
}),
|
|
15308
15082
|
};
|
|
15309
15083
|
};
|
|
15310
15084
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -15617,23 +15391,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15617
15391
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15618
15392
|
});
|
|
15619
15393
|
},
|
|
15620
|
-
/**
|
|
15621
|
-
*
|
|
15622
|
-
* @param {number} [limit]
|
|
15623
|
-
* @param {number} [skip]
|
|
15624
|
-
* @param {any} [includeRead]
|
|
15625
|
-
* @param {*} [options] Override http request option.
|
|
15626
|
-
* @throws {RequiredError}
|
|
15627
|
-
*/
|
|
15628
|
-
getUserNotifications(limit, skip, includeRead, options) {
|
|
15629
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15630
|
-
var _a, _b, _c;
|
|
15631
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
|
|
15632
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15633
|
-
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;
|
|
15634
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15635
|
-
});
|
|
15636
|
-
},
|
|
15637
15394
|
/**
|
|
15638
15395
|
*
|
|
15639
15396
|
* @param {string} id
|
|
@@ -15718,21 +15475,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15718
15475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15719
15476
|
});
|
|
15720
15477
|
},
|
|
15721
|
-
/**
|
|
15722
|
-
*
|
|
15723
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
15724
|
-
* @param {*} [options] Override http request option.
|
|
15725
|
-
* @throws {RequiredError}
|
|
15726
|
-
*/
|
|
15727
|
-
markNotificationsRead(markNotificationsReadRequest, options) {
|
|
15728
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15729
|
-
var _a, _b, _c;
|
|
15730
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
|
|
15731
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15732
|
-
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;
|
|
15733
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15734
|
-
});
|
|
15735
|
-
},
|
|
15736
15478
|
/**
|
|
15737
15479
|
*
|
|
15738
15480
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -15837,21 +15579,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15837
15579
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15838
15580
|
});
|
|
15839
15581
|
},
|
|
15840
|
-
/**
|
|
15841
|
-
*
|
|
15842
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
15843
|
-
* @param {*} [options] Override http request option.
|
|
15844
|
-
* @throws {RequiredError}
|
|
15845
|
-
*/
|
|
15846
|
-
requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
|
|
15847
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15848
|
-
var _a, _b, _c;
|
|
15849
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
|
|
15850
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15851
|
-
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;
|
|
15852
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15853
|
-
});
|
|
15854
|
-
},
|
|
15855
15582
|
/**
|
|
15856
15583
|
*
|
|
15857
15584
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -15882,24 +15609,6 @@ const UsersApiFp = function (configuration) {
|
|
|
15882
15609
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15883
15610
|
});
|
|
15884
15611
|
},
|
|
15885
|
-
/**
|
|
15886
|
-
*
|
|
15887
|
-
* @param {string} q
|
|
15888
|
-
* @param {number} [page]
|
|
15889
|
-
* @param {number} [limit]
|
|
15890
|
-
* @param {Array<string>} [excludeIds]
|
|
15891
|
-
* @param {*} [options] Override http request option.
|
|
15892
|
-
* @throws {RequiredError}
|
|
15893
|
-
*/
|
|
15894
|
-
searchPartner(q, page, limit, excludeIds, options) {
|
|
15895
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15896
|
-
var _a, _b, _c;
|
|
15897
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
|
|
15898
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15899
|
-
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;
|
|
15900
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15901
|
-
});
|
|
15902
|
-
},
|
|
15903
15612
|
/**
|
|
15904
15613
|
*
|
|
15905
15614
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -16005,21 +15714,6 @@ const UsersApiFp = function (configuration) {
|
|
|
16005
15714
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16006
15715
|
});
|
|
16007
15716
|
},
|
|
16008
|
-
/**
|
|
16009
|
-
*
|
|
16010
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
16011
|
-
* @param {*} [options] Override http request option.
|
|
16012
|
-
* @throws {RequiredError}
|
|
16013
|
-
*/
|
|
16014
|
-
verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
|
|
16015
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16016
|
-
var _a, _b, _c;
|
|
16017
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
|
|
16018
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16019
|
-
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;
|
|
16020
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16021
|
-
});
|
|
16022
|
-
},
|
|
16023
15717
|
};
|
|
16024
15718
|
};
|
|
16025
15719
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -16202,15 +15896,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16202
15896
|
getUserEvents(requestParameters = {}, options) {
|
|
16203
15897
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
16204
15898
|
},
|
|
16205
|
-
/**
|
|
16206
|
-
*
|
|
16207
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16208
|
-
* @param {*} [options] Override http request option.
|
|
16209
|
-
* @throws {RequiredError}
|
|
16210
|
-
*/
|
|
16211
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16212
|
-
return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
|
|
16213
|
-
},
|
|
16214
15899
|
/**
|
|
16215
15900
|
*
|
|
16216
15901
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16256,15 +15941,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16256
15941
|
loginClubMember(requestParameters, options) {
|
|
16257
15942
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
16258
15943
|
},
|
|
16259
|
-
/**
|
|
16260
|
-
*
|
|
16261
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16262
|
-
* @param {*} [options] Override http request option.
|
|
16263
|
-
* @throws {RequiredError}
|
|
16264
|
-
*/
|
|
16265
|
-
markNotificationsRead(requestParameters, options) {
|
|
16266
|
-
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
16267
|
-
},
|
|
16268
15944
|
/**
|
|
16269
15945
|
*
|
|
16270
15946
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16327,15 +16003,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16327
16003
|
requestEmailVerification(options) {
|
|
16328
16004
|
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
16329
16005
|
},
|
|
16330
|
-
/**
|
|
16331
|
-
*
|
|
16332
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16333
|
-
* @param {*} [options] Override http request option.
|
|
16334
|
-
* @throws {RequiredError}
|
|
16335
|
-
*/
|
|
16336
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16337
|
-
return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16338
|
-
},
|
|
16339
16006
|
/**
|
|
16340
16007
|
*
|
|
16341
16008
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16354,15 +16021,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16354
16021
|
resetPassword(requestParameters, options) {
|
|
16355
16022
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
16356
16023
|
},
|
|
16357
|
-
/**
|
|
16358
|
-
*
|
|
16359
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16360
|
-
* @param {*} [options] Override http request option.
|
|
16361
|
-
* @throws {RequiredError}
|
|
16362
|
-
*/
|
|
16363
|
-
searchPartner(requestParameters, options) {
|
|
16364
|
-
return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
|
|
16365
|
-
},
|
|
16366
16024
|
/**
|
|
16367
16025
|
*
|
|
16368
16026
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16426,15 +16084,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16426
16084
|
verifyOrganization(requestParameters, options) {
|
|
16427
16085
|
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16428
16086
|
},
|
|
16429
|
-
/**
|
|
16430
|
-
*
|
|
16431
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16432
|
-
* @param {*} [options] Override http request option.
|
|
16433
|
-
* @throws {RequiredError}
|
|
16434
|
-
*/
|
|
16435
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16436
|
-
return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16437
|
-
},
|
|
16438
16087
|
};
|
|
16439
16088
|
};
|
|
16440
16089
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -16637,16 +16286,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16637
16286
|
getUserEvents(requestParameters = {}, options) {
|
|
16638
16287
|
return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
16639
16288
|
}
|
|
16640
|
-
/**
|
|
16641
|
-
*
|
|
16642
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16643
|
-
* @param {*} [options] Override http request option.
|
|
16644
|
-
* @throws {RequiredError}
|
|
16645
|
-
* @memberof UsersApi
|
|
16646
|
-
*/
|
|
16647
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16648
|
-
return (0, exports.UsersApiFp)(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
|
|
16649
|
-
}
|
|
16650
16289
|
/**
|
|
16651
16290
|
*
|
|
16652
16291
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16697,16 +16336,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16697
16336
|
loginClubMember(requestParameters, options) {
|
|
16698
16337
|
return (0, exports.UsersApiFp)(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
16699
16338
|
}
|
|
16700
|
-
/**
|
|
16701
|
-
*
|
|
16702
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16703
|
-
* @param {*} [options] Override http request option.
|
|
16704
|
-
* @throws {RequiredError}
|
|
16705
|
-
* @memberof UsersApi
|
|
16706
|
-
*/
|
|
16707
|
-
markNotificationsRead(requestParameters, options) {
|
|
16708
|
-
return (0, exports.UsersApiFp)(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16709
|
-
}
|
|
16710
16339
|
/**
|
|
16711
16340
|
*
|
|
16712
16341
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16776,16 +16405,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16776
16405
|
requestEmailVerification(options) {
|
|
16777
16406
|
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
16778
16407
|
}
|
|
16779
|
-
/**
|
|
16780
|
-
*
|
|
16781
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16782
|
-
* @param {*} [options] Override http request option.
|
|
16783
|
-
* @throws {RequiredError}
|
|
16784
|
-
* @memberof UsersApi
|
|
16785
|
-
*/
|
|
16786
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16787
|
-
return (0, exports.UsersApiFp)(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16788
|
-
}
|
|
16789
16408
|
/**
|
|
16790
16409
|
*
|
|
16791
16410
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16806,16 +16425,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16806
16425
|
resetPassword(requestParameters, options) {
|
|
16807
16426
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16808
16427
|
}
|
|
16809
|
-
/**
|
|
16810
|
-
*
|
|
16811
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16812
|
-
* @param {*} [options] Override http request option.
|
|
16813
|
-
* @throws {RequiredError}
|
|
16814
|
-
* @memberof UsersApi
|
|
16815
|
-
*/
|
|
16816
|
-
searchPartner(requestParameters, options) {
|
|
16817
|
-
return (0, exports.UsersApiFp)(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
|
|
16818
|
-
}
|
|
16819
16428
|
/**
|
|
16820
16429
|
*
|
|
16821
16430
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16886,16 +16495,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16886
16495
|
verifyOrganization(requestParameters, options) {
|
|
16887
16496
|
return (0, exports.UsersApiFp)(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16888
16497
|
}
|
|
16889
|
-
/**
|
|
16890
|
-
*
|
|
16891
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16892
|
-
* @param {*} [options] Override http request option.
|
|
16893
|
-
* @throws {RequiredError}
|
|
16894
|
-
* @memberof UsersApi
|
|
16895
|
-
*/
|
|
16896
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16897
|
-
return (0, exports.UsersApiFp)(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16898
|
-
}
|
|
16899
16498
|
}
|
|
16900
16499
|
exports.UsersApi = UsersApi;
|
|
16901
16500
|
/**
|
|
@@ -17620,37 +17219,6 @@ const WaitListStaffApiAxiosParamCreator = function (configuration) {
|
|
|
17620
17219
|
options: localVarRequestOptions,
|
|
17621
17220
|
};
|
|
17622
17221
|
}),
|
|
17623
|
-
/**
|
|
17624
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17625
|
-
* @param {string} eventId
|
|
17626
|
-
* @param {*} [options] Override http request option.
|
|
17627
|
-
* @throws {RequiredError}
|
|
17628
|
-
*/
|
|
17629
|
-
getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
17630
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
17631
|
-
(0, common_1.assertParamExists)('getEventWaitListPlayers', 'eventId', eventId);
|
|
17632
|
-
const localVarPath = `/api/waitlist/event/{eventId}/players`
|
|
17633
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
17634
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17635
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17636
|
-
let baseOptions;
|
|
17637
|
-
if (configuration) {
|
|
17638
|
-
baseOptions = configuration.baseOptions;
|
|
17639
|
-
}
|
|
17640
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17641
|
-
const localVarHeaderParameter = {};
|
|
17642
|
-
const localVarQueryParameter = {};
|
|
17643
|
-
// authentication bearerAuth required
|
|
17644
|
-
// http bearer authentication required
|
|
17645
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17646
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17647
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17648
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17649
|
-
return {
|
|
17650
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17651
|
-
options: localVarRequestOptions,
|
|
17652
|
-
};
|
|
17653
|
-
}),
|
|
17654
17222
|
/**
|
|
17655
17223
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17656
17224
|
* @param {string} bookingId
|
|
@@ -17799,21 +17367,6 @@ const WaitListStaffApiFp = function (configuration) {
|
|
|
17799
17367
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17800
17368
|
});
|
|
17801
17369
|
},
|
|
17802
|
-
/**
|
|
17803
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17804
|
-
* @param {string} eventId
|
|
17805
|
-
* @param {*} [options] Override http request option.
|
|
17806
|
-
* @throws {RequiredError}
|
|
17807
|
-
*/
|
|
17808
|
-
getEventWaitListPlayers(eventId, options) {
|
|
17809
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17810
|
-
var _a, _b, _c;
|
|
17811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
|
|
17812
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17813
|
-
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;
|
|
17814
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17815
|
-
});
|
|
17816
|
-
},
|
|
17817
17370
|
/**
|
|
17818
17371
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17819
17372
|
* @param {string} bookingId
|
|
@@ -17896,15 +17449,6 @@ const WaitListStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
17896
17449
|
getEventWaitList(requestParameters, options) {
|
|
17897
17450
|
return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17898
17451
|
},
|
|
17899
|
-
/**
|
|
17900
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17901
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17902
|
-
* @param {*} [options] Override http request option.
|
|
17903
|
-
* @throws {RequiredError}
|
|
17904
|
-
*/
|
|
17905
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17906
|
-
return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17907
|
-
},
|
|
17908
17452
|
/**
|
|
17909
17453
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17910
17454
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|
|
@@ -17972,16 +17516,6 @@ class WaitListStaffApi extends base_1.BaseAPI {
|
|
|
17972
17516
|
getEventWaitList(requestParameters, options) {
|
|
17973
17517
|
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17974
17518
|
}
|
|
17975
|
-
/**
|
|
17976
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17977
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17978
|
-
* @param {*} [options] Override http request option.
|
|
17979
|
-
* @throws {RequiredError}
|
|
17980
|
-
* @memberof WaitListStaffApi
|
|
17981
|
-
*/
|
|
17982
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17983
|
-
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17984
|
-
}
|
|
17985
17519
|
/**
|
|
17986
17520
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17987
17521
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|