@tennac-booking/sdk 1.0.116 → 1.0.117
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 +3 -0
- package/README.md +5 -2
- package/api.ts +211 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +173 -1
- package/dist/api.js +68 -1
- 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 +173 -1
- package/dist/esm/api.js +68 -1
- 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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
- package/docs/EstimateEventPrice200Response.md +6 -0
- package/docs/EstimateEventPriceRequest.md +4 -0
- package/docs/EventsApi.md +57 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinEventResponse.md +14 -0
- package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -24
- package/docs/ActiveClubListResponse.md +0 -20
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddFavoriteClubRequestBody.md +0 -20
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/ApiErrorResponse.md +0 -22
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
- package/docs/BookingPopulatedUserId.md +0 -24
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -46
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubListResponse.md +0 -22
- package/docs/ClubMember.md +0 -34
- package/docs/ClubMembersResponse.md +0 -22
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubsResponse.md +0 -22
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/Court.md +0 -32
- package/docs/CourtsResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/DeleteEvent200Response.md +0 -20
- package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
- package/docs/DeleteSlotsResponse.md +0 -20
- package/docs/DeleteSport200Response.md +0 -20
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/FrequentlyVisitedClubItem.md +0 -24
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetNumberOfClubUsers200Response.md +0 -20
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/ManagerBookingsApi.md +0 -125
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -108
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerClubsApi.md +0 -253
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerEventsApi.md +0 -227
- package/docs/ManagerSportsApi.md +0 -174
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PriceResponse.md +0 -32
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/SlotsResponse.md +0 -22
- package/docs/Sport.md +0 -24
- package/docs/SportsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -104
- package/docs/StaffClubBookingsApi.md +0 -52
- package/docs/StaffClubsApi.md +0 -100
- package/docs/StaffEventResponse.md +0 -20
- package/docs/StaffEventsApi.md +0 -54
- package/docs/StaffProfileApi.md +0 -54
- package/docs/StripeStatus.md +0 -16
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -28
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/User.md +0 -40
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingsApi.md +0 -120
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -53
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1201
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersResponse.md +0 -22
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
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.117
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7037,6 +7037,38 @@ exports.DefaultApi = DefaultApi;
|
|
|
7037
7037
|
*/
|
|
7038
7038
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
7039
7039
|
return {
|
|
7040
|
+
/**
|
|
7041
|
+
* Check team name availability for TEAM participation events
|
|
7042
|
+
* @param {string} eventId
|
|
7043
|
+
* @param {string} [teamName]
|
|
7044
|
+
* @param {*} [options] Override http request option.
|
|
7045
|
+
* @throws {RequiredError}
|
|
7046
|
+
*/
|
|
7047
|
+
checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
|
|
7048
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7049
|
+
(0, common_1.assertParamExists)('checkTeamNameAvailability', 'eventId', eventId);
|
|
7050
|
+
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
7051
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7052
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7053
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7054
|
+
let baseOptions;
|
|
7055
|
+
if (configuration) {
|
|
7056
|
+
baseOptions = configuration.baseOptions;
|
|
7057
|
+
}
|
|
7058
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7059
|
+
const localVarHeaderParameter = {};
|
|
7060
|
+
const localVarQueryParameter = {};
|
|
7061
|
+
if (teamName !== undefined) {
|
|
7062
|
+
localVarQueryParameter['teamName'] = teamName;
|
|
7063
|
+
}
|
|
7064
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7065
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7066
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7067
|
+
return {
|
|
7068
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7069
|
+
options: localVarRequestOptions,
|
|
7070
|
+
};
|
|
7071
|
+
}),
|
|
7040
7072
|
/**
|
|
7041
7073
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7042
7074
|
* @param {string} eventId
|
|
@@ -7215,6 +7247,22 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
7215
7247
|
const EventsApiFp = function (configuration) {
|
|
7216
7248
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
7217
7249
|
return {
|
|
7250
|
+
/**
|
|
7251
|
+
* Check team name availability for TEAM participation events
|
|
7252
|
+
* @param {string} eventId
|
|
7253
|
+
* @param {string} [teamName]
|
|
7254
|
+
* @param {*} [options] Override http request option.
|
|
7255
|
+
* @throws {RequiredError}
|
|
7256
|
+
*/
|
|
7257
|
+
checkTeamNameAvailability(eventId, teamName, options) {
|
|
7258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7259
|
+
var _a, _b, _c;
|
|
7260
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
7261
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7262
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7263
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7264
|
+
});
|
|
7265
|
+
},
|
|
7218
7266
|
/**
|
|
7219
7267
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7220
7268
|
* @param {string} eventId
|
|
@@ -7305,6 +7353,15 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
7305
7353
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7306
7354
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
7307
7355
|
return {
|
|
7356
|
+
/**
|
|
7357
|
+
* Check team name availability for TEAM participation events
|
|
7358
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7359
|
+
* @param {*} [options] Override http request option.
|
|
7360
|
+
* @throws {RequiredError}
|
|
7361
|
+
*/
|
|
7362
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7363
|
+
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
7364
|
+
},
|
|
7308
7365
|
/**
|
|
7309
7366
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7310
7367
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
@@ -7360,6 +7417,16 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
7360
7417
|
* @extends {BaseAPI}
|
|
7361
7418
|
*/
|
|
7362
7419
|
class EventsApi extends base_1.BaseAPI {
|
|
7420
|
+
/**
|
|
7421
|
+
* Check team name availability for TEAM participation events
|
|
7422
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7423
|
+
* @param {*} [options] Override http request option.
|
|
7424
|
+
* @throws {RequiredError}
|
|
7425
|
+
* @memberof EventsApi
|
|
7426
|
+
*/
|
|
7427
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7428
|
+
return (0, exports.EventsApiFp)(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
7429
|
+
}
|
|
7363
7430
|
/**
|
|
7364
7431
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7365
7432
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.117
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1450,6 +1450,19 @@ export interface CheckInPlayersResponse {
|
|
|
1450
1450
|
*/
|
|
1451
1451
|
'invoices': Array<CheckedInPlayer>;
|
|
1452
1452
|
}
|
|
1453
|
+
/**
|
|
1454
|
+
*
|
|
1455
|
+
* @export
|
|
1456
|
+
* @interface CheckTeamNameAvailability200Response
|
|
1457
|
+
*/
|
|
1458
|
+
export interface CheckTeamNameAvailability200Response {
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @type {boolean}
|
|
1462
|
+
* @memberof CheckTeamNameAvailability200Response
|
|
1463
|
+
*/
|
|
1464
|
+
'available': boolean;
|
|
1465
|
+
}
|
|
1453
1466
|
/**
|
|
1454
1467
|
*
|
|
1455
1468
|
* @export
|
|
@@ -4180,6 +4193,26 @@ export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
|
4180
4193
|
* @interface EstimateEventPrice200Response
|
|
4181
4194
|
*/
|
|
4182
4195
|
export interface EstimateEventPrice200Response {
|
|
4196
|
+
/**
|
|
4197
|
+
* Construct a type with a set of properties K of type T
|
|
4198
|
+
* @type {{ [key: string]: number; }}
|
|
4199
|
+
* @memberof EstimateEventPrice200Response
|
|
4200
|
+
*/
|
|
4201
|
+
'perPayerAfterCredits'?: {
|
|
4202
|
+
[key: string]: number;
|
|
4203
|
+
};
|
|
4204
|
+
/**
|
|
4205
|
+
*
|
|
4206
|
+
* @type {number}
|
|
4207
|
+
* @memberof EstimateEventPrice200Response
|
|
4208
|
+
*/
|
|
4209
|
+
'totalAfterCredits'?: number;
|
|
4210
|
+
/**
|
|
4211
|
+
*
|
|
4212
|
+
* @type {number}
|
|
4213
|
+
* @memberof EstimateEventPrice200Response
|
|
4214
|
+
*/
|
|
4215
|
+
'creditsAppliedInCents'?: number;
|
|
4183
4216
|
/**
|
|
4184
4217
|
*
|
|
4185
4218
|
* @type {string}
|
|
@@ -4215,6 +4248,18 @@ export interface EstimateEventPrice200Response {
|
|
|
4215
4248
|
* @interface EstimateEventPriceRequest
|
|
4216
4249
|
*/
|
|
4217
4250
|
export interface EstimateEventPriceRequest {
|
|
4251
|
+
/**
|
|
4252
|
+
*
|
|
4253
|
+
* @type {number}
|
|
4254
|
+
* @memberof EstimateEventPriceRequest
|
|
4255
|
+
*/
|
|
4256
|
+
'creditToUseInCents'?: number;
|
|
4257
|
+
/**
|
|
4258
|
+
*
|
|
4259
|
+
* @type {string}
|
|
4260
|
+
* @memberof EstimateEventPriceRequest
|
|
4261
|
+
*/
|
|
4262
|
+
'creatorId'?: string;
|
|
4218
4263
|
/**
|
|
4219
4264
|
*
|
|
4220
4265
|
* @type {Array<EstimateEventPriceRequestSharesInner>}
|
|
@@ -5398,6 +5443,12 @@ export interface JoinEventRequest {
|
|
|
5398
5443
|
* @memberof JoinEventRequest
|
|
5399
5444
|
*/
|
|
5400
5445
|
'useDefaultPaymentMethod'?: boolean;
|
|
5446
|
+
/**
|
|
5447
|
+
*
|
|
5448
|
+
* @type {number}
|
|
5449
|
+
* @memberof JoinEventRequest
|
|
5450
|
+
*/
|
|
5451
|
+
'creditToUseInCents'?: number;
|
|
5401
5452
|
}
|
|
5402
5453
|
/**
|
|
5403
5454
|
*
|
|
@@ -5442,6 +5493,77 @@ export interface JoinEventResponse {
|
|
|
5442
5493
|
* @memberof JoinEventResponse
|
|
5443
5494
|
*/
|
|
5444
5495
|
'event': EventResponse;
|
|
5496
|
+
/**
|
|
5497
|
+
* Construct a type with a set of properties K of type T
|
|
5498
|
+
* @type {{ [key: string]: string; }}
|
|
5499
|
+
* @memberof JoinEventResponse
|
|
5500
|
+
*/
|
|
5501
|
+
'paymentLinks'?: {
|
|
5502
|
+
[key: string]: string;
|
|
5503
|
+
};
|
|
5504
|
+
/**
|
|
5505
|
+
*
|
|
5506
|
+
* @type {Array<JoinEventResponseOnsitePaymentsInner>}
|
|
5507
|
+
* @memberof JoinEventResponse
|
|
5508
|
+
*/
|
|
5509
|
+
'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
|
|
5510
|
+
/**
|
|
5511
|
+
*
|
|
5512
|
+
* @type {string}
|
|
5513
|
+
* @memberof JoinEventResponse
|
|
5514
|
+
*/
|
|
5515
|
+
'setupNoShowPaymentUrl'?: string;
|
|
5516
|
+
/**
|
|
5517
|
+
*
|
|
5518
|
+
* @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
|
|
5519
|
+
* @memberof JoinEventResponse
|
|
5520
|
+
*/
|
|
5521
|
+
'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
|
|
5522
|
+
/**
|
|
5523
|
+
*
|
|
5524
|
+
* @type {number}
|
|
5525
|
+
* @memberof JoinEventResponse
|
|
5526
|
+
*/
|
|
5527
|
+
'creditsAppliedInCents'?: number;
|
|
5528
|
+
/**
|
|
5529
|
+
*
|
|
5530
|
+
* @type {number}
|
|
5531
|
+
* @memberof JoinEventResponse
|
|
5532
|
+
*/
|
|
5533
|
+
'totalAfterCredits'?: number;
|
|
5534
|
+
/**
|
|
5535
|
+
* Construct a type with a set of properties K of type T
|
|
5536
|
+
* @type {{ [key: string]: number; }}
|
|
5537
|
+
* @memberof JoinEventResponse
|
|
5538
|
+
*/
|
|
5539
|
+
'perPayerAfterCredits'?: {
|
|
5540
|
+
[key: string]: number;
|
|
5541
|
+
};
|
|
5542
|
+
}
|
|
5543
|
+
/**
|
|
5544
|
+
*
|
|
5545
|
+
* @export
|
|
5546
|
+
* @interface JoinEventResponseOnsitePaymentsInner
|
|
5547
|
+
*/
|
|
5548
|
+
export interface JoinEventResponseOnsitePaymentsInner {
|
|
5549
|
+
/**
|
|
5550
|
+
*
|
|
5551
|
+
* @type {PaymentMethod}
|
|
5552
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5553
|
+
*/
|
|
5554
|
+
'paymentMethod': PaymentMethod;
|
|
5555
|
+
/**
|
|
5556
|
+
*
|
|
5557
|
+
* @type {number}
|
|
5558
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5559
|
+
*/
|
|
5560
|
+
'amount': number;
|
|
5561
|
+
/**
|
|
5562
|
+
*
|
|
5563
|
+
* @type {string}
|
|
5564
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5565
|
+
*/
|
|
5566
|
+
'playerId': string;
|
|
5445
5567
|
}
|
|
5446
5568
|
/**
|
|
5447
5569
|
*
|
|
@@ -14253,6 +14375,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
14253
14375
|
* @export
|
|
14254
14376
|
*/
|
|
14255
14377
|
export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
14378
|
+
/**
|
|
14379
|
+
* Check team name availability for TEAM participation events
|
|
14380
|
+
* @param {string} eventId
|
|
14381
|
+
* @param {string} [teamName]
|
|
14382
|
+
* @param {*} [options] Override http request option.
|
|
14383
|
+
* @throws {RequiredError}
|
|
14384
|
+
*/
|
|
14385
|
+
checkTeamNameAvailability: (eventId: string, teamName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14256
14386
|
/**
|
|
14257
14387
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
14258
14388
|
* @param {string} eventId
|
|
@@ -14299,6 +14429,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
14299
14429
|
* @export
|
|
14300
14430
|
*/
|
|
14301
14431
|
export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
14432
|
+
/**
|
|
14433
|
+
* Check team name availability for TEAM participation events
|
|
14434
|
+
* @param {string} eventId
|
|
14435
|
+
* @param {string} [teamName]
|
|
14436
|
+
* @param {*} [options] Override http request option.
|
|
14437
|
+
* @throws {RequiredError}
|
|
14438
|
+
*/
|
|
14439
|
+
checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>>;
|
|
14302
14440
|
/**
|
|
14303
14441
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
14304
14442
|
* @param {string} eventId
|
|
@@ -14345,6 +14483,13 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
14345
14483
|
* @export
|
|
14346
14484
|
*/
|
|
14347
14485
|
export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
14486
|
+
/**
|
|
14487
|
+
* Check team name availability for TEAM participation events
|
|
14488
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
14489
|
+
* @param {*} [options] Override http request option.
|
|
14490
|
+
* @throws {RequiredError}
|
|
14491
|
+
*/
|
|
14492
|
+
checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response>;
|
|
14348
14493
|
/**
|
|
14349
14494
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
14350
14495
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
@@ -14381,6 +14526,25 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
14381
14526
|
*/
|
|
14382
14527
|
leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse>;
|
|
14383
14528
|
};
|
|
14529
|
+
/**
|
|
14530
|
+
* Request parameters for checkTeamNameAvailability operation in EventsApi.
|
|
14531
|
+
* @export
|
|
14532
|
+
* @interface EventsApiCheckTeamNameAvailabilityRequest
|
|
14533
|
+
*/
|
|
14534
|
+
export interface EventsApiCheckTeamNameAvailabilityRequest {
|
|
14535
|
+
/**
|
|
14536
|
+
*
|
|
14537
|
+
* @type {string}
|
|
14538
|
+
* @memberof EventsApiCheckTeamNameAvailability
|
|
14539
|
+
*/
|
|
14540
|
+
readonly eventId: string;
|
|
14541
|
+
/**
|
|
14542
|
+
*
|
|
14543
|
+
* @type {string}
|
|
14544
|
+
* @memberof EventsApiCheckTeamNameAvailability
|
|
14545
|
+
*/
|
|
14546
|
+
readonly teamName?: string;
|
|
14547
|
+
}
|
|
14384
14548
|
/**
|
|
14385
14549
|
* Request parameters for estimateEventPrice operation in EventsApi.
|
|
14386
14550
|
* @export
|
|
@@ -14483,6 +14647,14 @@ export interface EventsApiLeaveEventRequest {
|
|
|
14483
14647
|
* @extends {BaseAPI}
|
|
14484
14648
|
*/
|
|
14485
14649
|
export declare class EventsApi extends BaseAPI {
|
|
14650
|
+
/**
|
|
14651
|
+
* Check team name availability for TEAM participation events
|
|
14652
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
14653
|
+
* @param {*} [options] Override http request option.
|
|
14654
|
+
* @throws {RequiredError}
|
|
14655
|
+
* @memberof EventsApi
|
|
14656
|
+
*/
|
|
14657
|
+
checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckTeamNameAvailability200Response, any, {}>>;
|
|
14486
14658
|
/**
|
|
14487
14659
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
14488
14660
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.117
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6971,6 +6971,38 @@ export class DefaultApi extends BaseAPI {
|
|
|
6971
6971
|
*/
|
|
6972
6972
|
export const EventsApiAxiosParamCreator = function (configuration) {
|
|
6973
6973
|
return {
|
|
6974
|
+
/**
|
|
6975
|
+
* Check team name availability for TEAM participation events
|
|
6976
|
+
* @param {string} eventId
|
|
6977
|
+
* @param {string} [teamName]
|
|
6978
|
+
* @param {*} [options] Override http request option.
|
|
6979
|
+
* @throws {RequiredError}
|
|
6980
|
+
*/
|
|
6981
|
+
checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
|
|
6982
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
6983
|
+
assertParamExists('checkTeamNameAvailability', 'eventId', eventId);
|
|
6984
|
+
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
6985
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
6986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6988
|
+
let baseOptions;
|
|
6989
|
+
if (configuration) {
|
|
6990
|
+
baseOptions = configuration.baseOptions;
|
|
6991
|
+
}
|
|
6992
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6993
|
+
const localVarHeaderParameter = {};
|
|
6994
|
+
const localVarQueryParameter = {};
|
|
6995
|
+
if (teamName !== undefined) {
|
|
6996
|
+
localVarQueryParameter['teamName'] = teamName;
|
|
6997
|
+
}
|
|
6998
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6999
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7000
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7001
|
+
return {
|
|
7002
|
+
url: toPathString(localVarUrlObj),
|
|
7003
|
+
options: localVarRequestOptions,
|
|
7004
|
+
};
|
|
7005
|
+
}),
|
|
6974
7006
|
/**
|
|
6975
7007
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
6976
7008
|
* @param {string} eventId
|
|
@@ -7148,6 +7180,22 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7148
7180
|
export const EventsApiFp = function (configuration) {
|
|
7149
7181
|
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
|
|
7150
7182
|
return {
|
|
7183
|
+
/**
|
|
7184
|
+
* Check team name availability for TEAM participation events
|
|
7185
|
+
* @param {string} eventId
|
|
7186
|
+
* @param {string} [teamName]
|
|
7187
|
+
* @param {*} [options] Override http request option.
|
|
7188
|
+
* @throws {RequiredError}
|
|
7189
|
+
*/
|
|
7190
|
+
checkTeamNameAvailability(eventId, teamName, options) {
|
|
7191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7192
|
+
var _a, _b, _c;
|
|
7193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
7194
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7195
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7196
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7197
|
+
});
|
|
7198
|
+
},
|
|
7151
7199
|
/**
|
|
7152
7200
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7153
7201
|
* @param {string} eventId
|
|
@@ -7237,6 +7285,15 @@ export const EventsApiFp = function (configuration) {
|
|
|
7237
7285
|
export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7238
7286
|
const localVarFp = EventsApiFp(configuration);
|
|
7239
7287
|
return {
|
|
7288
|
+
/**
|
|
7289
|
+
* Check team name availability for TEAM participation events
|
|
7290
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7291
|
+
* @param {*} [options] Override http request option.
|
|
7292
|
+
* @throws {RequiredError}
|
|
7293
|
+
*/
|
|
7294
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7295
|
+
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
7296
|
+
},
|
|
7240
7297
|
/**
|
|
7241
7298
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7242
7299
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
@@ -7291,6 +7348,16 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7291
7348
|
* @extends {BaseAPI}
|
|
7292
7349
|
*/
|
|
7293
7350
|
export class EventsApi extends BaseAPI {
|
|
7351
|
+
/**
|
|
7352
|
+
* Check team name availability for TEAM participation events
|
|
7353
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7354
|
+
* @param {*} [options] Override http request option.
|
|
7355
|
+
* @throws {RequiredError}
|
|
7356
|
+
* @memberof EventsApi
|
|
7357
|
+
*/
|
|
7358
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7359
|
+
return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
7360
|
+
}
|
|
7294
7361
|
/**
|
|
7295
7362
|
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7296
7363
|
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckTeamNameAvailability200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**available** | **boolean** | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { CheckTeamNameAvailability200Response } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: CheckTeamNameAvailability200Response = {
|
|
16
|
+
available,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
9
|
+
**totalAfterCredits** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**creditsAppliedInCents** | **number** | | [optional] [default to undefined]
|
|
8
11
|
**currency** | **string** | | [default to undefined]
|
|
9
12
|
**total** | **number** | | [default to undefined]
|
|
10
13
|
**perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
@@ -16,6 +19,9 @@ Name | Type | Description | Notes
|
|
|
16
19
|
import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
|
|
17
20
|
|
|
18
21
|
const instance: EstimateEventPrice200Response = {
|
|
22
|
+
perPayerAfterCredits,
|
|
23
|
+
totalAfterCredits,
|
|
24
|
+
creditsAppliedInCents,
|
|
19
25
|
currency,
|
|
20
26
|
total,
|
|
21
27
|
perPayer,
|