@tennac-booking/sdk 1.0.103 → 1.0.105
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 +6 -2
- package/api.ts +204 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +156 -7
- package/dist/api.js +81 -5
- 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 +156 -7
- package/dist/esm/api.js +77 -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/BookingsStaffApi.md +4 -4
- package/docs/BookingsWithTimeBoundsResponse.md +22 -0
- package/docs/ClubResponse.md +6 -0
- package/docs/ClubsManagerApi.md +60 -0
- package/docs/PartialClubResponse.md +6 -0
- package/docs/TimeBounds.md +22 -0
- package/docs/UpdateClubMemberRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.104
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ 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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
25
|
+
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = 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.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
+
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.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.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -329,6 +329,11 @@ exports.SurfaceType = {
|
|
|
329
329
|
Grass: 'grass',
|
|
330
330
|
Hard: 'hard'
|
|
331
331
|
};
|
|
332
|
+
exports.UpdateClubMemberRequestRoleEnum = {
|
|
333
|
+
Admin: 'admin',
|
|
334
|
+
Manager: 'manager',
|
|
335
|
+
Staff: 'staff'
|
|
336
|
+
};
|
|
332
337
|
exports.UpdateClubRoleRequestRoleEnum = {
|
|
333
338
|
Admin: 'admin',
|
|
334
339
|
Manager: 'manager',
|
|
@@ -5621,6 +5626,42 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5621
5626
|
options: localVarRequestOptions,
|
|
5622
5627
|
};
|
|
5623
5628
|
}),
|
|
5629
|
+
/**
|
|
5630
|
+
* Met à jour un membre d\'un club
|
|
5631
|
+
* @param {string} userId
|
|
5632
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5633
|
+
* @param {*} [options] Override http request option.
|
|
5634
|
+
* @throws {RequiredError}
|
|
5635
|
+
*/
|
|
5636
|
+
updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
|
|
5637
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5638
|
+
(0, common_1.assertParamExists)('updateClubMember', 'userId', userId);
|
|
5639
|
+
// verify required parameter 'updateClubMemberRequest' is not null or undefined
|
|
5640
|
+
(0, common_1.assertParamExists)('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
|
|
5641
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
5642
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5644
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5645
|
+
let baseOptions;
|
|
5646
|
+
if (configuration) {
|
|
5647
|
+
baseOptions = configuration.baseOptions;
|
|
5648
|
+
}
|
|
5649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5650
|
+
const localVarHeaderParameter = {};
|
|
5651
|
+
const localVarQueryParameter = {};
|
|
5652
|
+
// authentication bearerAuth required
|
|
5653
|
+
// http bearer authentication required
|
|
5654
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5655
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5659
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubMemberRequest, localVarRequestOptions, configuration);
|
|
5660
|
+
return {
|
|
5661
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5662
|
+
options: localVarRequestOptions,
|
|
5663
|
+
};
|
|
5664
|
+
}),
|
|
5624
5665
|
/**
|
|
5625
5666
|
*
|
|
5626
5667
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -5976,6 +6017,22 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5976
6017
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5977
6018
|
});
|
|
5978
6019
|
},
|
|
6020
|
+
/**
|
|
6021
|
+
* Met à jour un membre d\'un club
|
|
6022
|
+
* @param {string} userId
|
|
6023
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
6024
|
+
* @param {*} [options] Override http request option.
|
|
6025
|
+
* @throws {RequiredError}
|
|
6026
|
+
*/
|
|
6027
|
+
updateClubMember(userId, updateClubMemberRequest, options) {
|
|
6028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6029
|
+
var _a, _b, _c;
|
|
6030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
|
|
6031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6032
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6033
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6034
|
+
});
|
|
6035
|
+
},
|
|
5979
6036
|
/**
|
|
5980
6037
|
*
|
|
5981
6038
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -6176,6 +6233,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6176
6233
|
updateClubInfos(requestParameters, options) {
|
|
6177
6234
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
6178
6235
|
},
|
|
6236
|
+
/**
|
|
6237
|
+
* Met à jour un membre d\'un club
|
|
6238
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6239
|
+
* @param {*} [options] Override http request option.
|
|
6240
|
+
* @throws {RequiredError}
|
|
6241
|
+
*/
|
|
6242
|
+
updateClubMember(requestParameters, options) {
|
|
6243
|
+
return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
6244
|
+
},
|
|
6179
6245
|
/**
|
|
6180
6246
|
*
|
|
6181
6247
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
@@ -6372,6 +6438,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
6372
6438
|
updateClubInfos(requestParameters, options) {
|
|
6373
6439
|
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6374
6440
|
}
|
|
6441
|
+
/**
|
|
6442
|
+
* Met à jour un membre d\'un club
|
|
6443
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6444
|
+
* @param {*} [options] Override http request option.
|
|
6445
|
+
* @throws {RequiredError}
|
|
6446
|
+
* @memberof ClubsManagerApi
|
|
6447
|
+
*/
|
|
6448
|
+
updateClubMember(requestParameters, options) {
|
|
6449
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6450
|
+
}
|
|
6375
6451
|
/**
|
|
6376
6452
|
*
|
|
6377
6453
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} 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.104
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1117,6 +1117,25 @@ export interface BookingSummary {
|
|
|
1117
1117
|
*/
|
|
1118
1118
|
export interface BookingSummaryClubAddress {
|
|
1119
1119
|
}
|
|
1120
|
+
/**
|
|
1121
|
+
*
|
|
1122
|
+
* @export
|
|
1123
|
+
* @interface BookingsWithTimeBoundsResponse
|
|
1124
|
+
*/
|
|
1125
|
+
export interface BookingsWithTimeBoundsResponse {
|
|
1126
|
+
/**
|
|
1127
|
+
*
|
|
1128
|
+
* @type {Array<BookingPopulated>}
|
|
1129
|
+
* @memberof BookingsWithTimeBoundsResponse
|
|
1130
|
+
*/
|
|
1131
|
+
'bookings': Array<BookingPopulated>;
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @type {TimeBounds}
|
|
1135
|
+
* @memberof BookingsWithTimeBoundsResponse
|
|
1136
|
+
*/
|
|
1137
|
+
'timeBounds': TimeBounds;
|
|
1138
|
+
}
|
|
1120
1139
|
/**
|
|
1121
1140
|
*
|
|
1122
1141
|
* @export
|
|
@@ -2548,6 +2567,24 @@ export interface ClubResponse {
|
|
|
2548
2567
|
* @memberof ClubResponse
|
|
2549
2568
|
*/
|
|
2550
2569
|
'picture'?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
*
|
|
2572
|
+
* @type {Array<string>}
|
|
2573
|
+
* @memberof ClubResponse
|
|
2574
|
+
*/
|
|
2575
|
+
'bannerPictures'?: Array<string>;
|
|
2576
|
+
/**
|
|
2577
|
+
*
|
|
2578
|
+
* @type {Array<string>}
|
|
2579
|
+
* @memberof ClubResponse
|
|
2580
|
+
*/
|
|
2581
|
+
'galleryPictures'?: Array<string>;
|
|
2582
|
+
/**
|
|
2583
|
+
*
|
|
2584
|
+
* @type {Array<string>}
|
|
2585
|
+
* @memberof ClubResponse
|
|
2586
|
+
*/
|
|
2587
|
+
'tags'?: Array<string>;
|
|
2551
2588
|
/**
|
|
2552
2589
|
*
|
|
2553
2590
|
* @type {ClubResponseLocation}
|
|
@@ -5151,6 +5188,24 @@ export interface PartialClubResponse {
|
|
|
5151
5188
|
* @memberof PartialClubResponse
|
|
5152
5189
|
*/
|
|
5153
5190
|
'picture'?: string;
|
|
5191
|
+
/**
|
|
5192
|
+
*
|
|
5193
|
+
* @type {Array<string>}
|
|
5194
|
+
* @memberof PartialClubResponse
|
|
5195
|
+
*/
|
|
5196
|
+
'bannerPictures'?: Array<string>;
|
|
5197
|
+
/**
|
|
5198
|
+
*
|
|
5199
|
+
* @type {Array<string>}
|
|
5200
|
+
* @memberof PartialClubResponse
|
|
5201
|
+
*/
|
|
5202
|
+
'galleryPictures'?: Array<string>;
|
|
5203
|
+
/**
|
|
5204
|
+
*
|
|
5205
|
+
* @type {Array<string>}
|
|
5206
|
+
* @memberof PartialClubResponse
|
|
5207
|
+
*/
|
|
5208
|
+
'tags'?: Array<string>;
|
|
5154
5209
|
/**
|
|
5155
5210
|
*
|
|
5156
5211
|
* @type {ClubResponseLocation}
|
|
@@ -8204,6 +8259,25 @@ export interface Team {
|
|
|
8204
8259
|
*/
|
|
8205
8260
|
'players': Array<string>;
|
|
8206
8261
|
}
|
|
8262
|
+
/**
|
|
8263
|
+
*
|
|
8264
|
+
* @export
|
|
8265
|
+
* @interface TimeBounds
|
|
8266
|
+
*/
|
|
8267
|
+
export interface TimeBounds {
|
|
8268
|
+
/**
|
|
8269
|
+
* Heure de début au format HH:mm
|
|
8270
|
+
* @type {string}
|
|
8271
|
+
* @memberof TimeBounds
|
|
8272
|
+
*/
|
|
8273
|
+
'start': string;
|
|
8274
|
+
/**
|
|
8275
|
+
* Heure de fin au format HH:mm
|
|
8276
|
+
* @type {string}
|
|
8277
|
+
* @memberof TimeBounds
|
|
8278
|
+
*/
|
|
8279
|
+
'end': string;
|
|
8280
|
+
}
|
|
8207
8281
|
/**
|
|
8208
8282
|
*
|
|
8209
8283
|
* @export
|
|
@@ -8291,6 +8365,31 @@ export interface UpdateClubHoursSettingsRequest {
|
|
|
8291
8365
|
*/
|
|
8292
8366
|
'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
|
|
8293
8367
|
}
|
|
8368
|
+
/**
|
|
8369
|
+
*
|
|
8370
|
+
* @export
|
|
8371
|
+
* @interface UpdateClubMemberRequest
|
|
8372
|
+
*/
|
|
8373
|
+
export interface UpdateClubMemberRequest {
|
|
8374
|
+
/**
|
|
8375
|
+
* Rôle du membre dans le club
|
|
8376
|
+
* @type {string}
|
|
8377
|
+
* @memberof UpdateClubMemberRequest
|
|
8378
|
+
*/
|
|
8379
|
+
'role'?: UpdateClubMemberRequestRoleEnum;
|
|
8380
|
+
/**
|
|
8381
|
+
* Droits du membre dans le club
|
|
8382
|
+
* @type {Array<string>}
|
|
8383
|
+
* @memberof UpdateClubMemberRequest
|
|
8384
|
+
*/
|
|
8385
|
+
'rights'?: Array<string>;
|
|
8386
|
+
}
|
|
8387
|
+
export declare const UpdateClubMemberRequestRoleEnum: {
|
|
8388
|
+
readonly Admin: "admin";
|
|
8389
|
+
readonly Manager: "manager";
|
|
8390
|
+
readonly Staff: "staff";
|
|
8391
|
+
};
|
|
8392
|
+
export type UpdateClubMemberRequestRoleEnum = typeof UpdateClubMemberRequestRoleEnum[keyof typeof UpdateClubMemberRequestRoleEnum];
|
|
8294
8393
|
/**
|
|
8295
8394
|
*
|
|
8296
8395
|
* @export
|
|
@@ -9905,14 +10004,14 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
|
|
|
9905
10004
|
* @param {*} [options] Override http request option.
|
|
9906
10005
|
* @throws {RequiredError}
|
|
9907
10006
|
*/
|
|
9908
|
-
getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
10007
|
+
getDailyBookings(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
|
|
9909
10008
|
/**
|
|
9910
10009
|
* Obtenir les réservations hebdomadaires
|
|
9911
10010
|
* @param {string} weekId
|
|
9912
10011
|
* @param {*} [options] Override http request option.
|
|
9913
10012
|
* @throws {RequiredError}
|
|
9914
10013
|
*/
|
|
9915
|
-
getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
10014
|
+
getWeeklyBookings(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsWithTimeBoundsResponse>>;
|
|
9916
10015
|
};
|
|
9917
10016
|
/**
|
|
9918
10017
|
* BookingsStaffApi - factory interface
|
|
@@ -9953,14 +10052,14 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
|
|
|
9953
10052
|
* @param {*} [options] Override http request option.
|
|
9954
10053
|
* @throws {RequiredError}
|
|
9955
10054
|
*/
|
|
9956
|
-
getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
10055
|
+
getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
|
|
9957
10056
|
/**
|
|
9958
10057
|
* Obtenir les réservations hebdomadaires
|
|
9959
10058
|
* @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
|
|
9960
10059
|
* @param {*} [options] Override http request option.
|
|
9961
10060
|
* @throws {RequiredError}
|
|
9962
10061
|
*/
|
|
9963
|
-
getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
10062
|
+
getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse>;
|
|
9964
10063
|
};
|
|
9965
10064
|
/**
|
|
9966
10065
|
* Request parameters for checkInPlayers operation in BookingsStaffApi.
|
|
@@ -10092,7 +10191,7 @@ export declare class BookingsStaffApi extends BaseAPI {
|
|
|
10092
10191
|
* @throws {RequiredError}
|
|
10093
10192
|
* @memberof BookingsStaffApi
|
|
10094
10193
|
*/
|
|
10095
|
-
getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
10194
|
+
getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
|
|
10096
10195
|
/**
|
|
10097
10196
|
* Obtenir les réservations hebdomadaires
|
|
10098
10197
|
* @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
|
|
@@ -10100,7 +10199,7 @@ export declare class BookingsStaffApi extends BaseAPI {
|
|
|
10100
10199
|
* @throws {RequiredError}
|
|
10101
10200
|
* @memberof BookingsStaffApi
|
|
10102
10201
|
*/
|
|
10103
|
-
getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
10202
|
+
getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsWithTimeBoundsResponse, any, {}>>;
|
|
10104
10203
|
}
|
|
10105
10204
|
/**
|
|
10106
10205
|
* BookingsUserApi - axios parameter creator
|
|
@@ -12462,6 +12561,14 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
|
|
|
12462
12561
|
* @throws {RequiredError}
|
|
12463
12562
|
*/
|
|
12464
12563
|
updateClubInfos: (body: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12564
|
+
/**
|
|
12565
|
+
* Met à jour un membre d\'un club
|
|
12566
|
+
* @param {string} userId
|
|
12567
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
12568
|
+
* @param {*} [options] Override http request option.
|
|
12569
|
+
* @throws {RequiredError}
|
|
12570
|
+
*/
|
|
12571
|
+
updateClubMember: (userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12465
12572
|
/**
|
|
12466
12573
|
*
|
|
12467
12574
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -12604,6 +12711,14 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
|
|
|
12604
12711
|
* @throws {RequiredError}
|
|
12605
12712
|
*/
|
|
12606
12713
|
updateClubInfos(body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
12714
|
+
/**
|
|
12715
|
+
* Met à jour un membre d\'un club
|
|
12716
|
+
* @param {string} userId
|
|
12717
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
12718
|
+
* @param {*} [options] Override http request option.
|
|
12719
|
+
* @throws {RequiredError}
|
|
12720
|
+
*/
|
|
12721
|
+
updateClubMember(userId: string, updateClubMemberRequest: UpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>>;
|
|
12607
12722
|
/**
|
|
12608
12723
|
*
|
|
12609
12724
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -12744,6 +12859,13 @@ export declare const ClubsManagerApiFactory: (configuration?: Configuration, bas
|
|
|
12744
12859
|
* @throws {RequiredError}
|
|
12745
12860
|
*/
|
|
12746
12861
|
updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
12862
|
+
/**
|
|
12863
|
+
* Met à jour un membre d\'un club
|
|
12864
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
12865
|
+
* @param {*} [options] Override http request option.
|
|
12866
|
+
* @throws {RequiredError}
|
|
12867
|
+
*/
|
|
12868
|
+
updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response>;
|
|
12747
12869
|
/**
|
|
12748
12870
|
*
|
|
12749
12871
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
@@ -12973,6 +13095,25 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
|
|
|
12973
13095
|
*/
|
|
12974
13096
|
readonly body: any;
|
|
12975
13097
|
}
|
|
13098
|
+
/**
|
|
13099
|
+
* Request parameters for updateClubMember operation in ClubsManagerApi.
|
|
13100
|
+
* @export
|
|
13101
|
+
* @interface ClubsManagerApiUpdateClubMemberRequest
|
|
13102
|
+
*/
|
|
13103
|
+
export interface ClubsManagerApiUpdateClubMemberRequest {
|
|
13104
|
+
/**
|
|
13105
|
+
*
|
|
13106
|
+
* @type {string}
|
|
13107
|
+
* @memberof ClubsManagerApiUpdateClubMember
|
|
13108
|
+
*/
|
|
13109
|
+
readonly userId: string;
|
|
13110
|
+
/**
|
|
13111
|
+
*
|
|
13112
|
+
* @type {UpdateClubMemberRequest}
|
|
13113
|
+
* @memberof ClubsManagerApiUpdateClubMember
|
|
13114
|
+
*/
|
|
13115
|
+
readonly updateClubMemberRequest: UpdateClubMemberRequest;
|
|
13116
|
+
}
|
|
12976
13117
|
/**
|
|
12977
13118
|
* Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
|
|
12978
13119
|
* @export
|
|
@@ -13158,6 +13299,14 @@ export declare class ClubsManagerApi extends BaseAPI {
|
|
|
13158
13299
|
* @memberof ClubsManagerApi
|
|
13159
13300
|
*/
|
|
13160
13301
|
updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
13302
|
+
/**
|
|
13303
|
+
* Met à jour un membre d\'un club
|
|
13304
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
13305
|
+
* @param {*} [options] Override http request option.
|
|
13306
|
+
* @throws {RequiredError}
|
|
13307
|
+
* @memberof ClubsManagerApi
|
|
13308
|
+
*/
|
|
13309
|
+
updateClubMember(requestParameters: ClubsManagerApiUpdateClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AddClubMember201Response, any, {}>>;
|
|
13161
13310
|
/**
|
|
13162
13311
|
*
|
|
13163
13312
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} 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.104
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -323,6 +323,11 @@ export const SurfaceType = {
|
|
|
323
323
|
Grass: 'grass',
|
|
324
324
|
Hard: 'hard'
|
|
325
325
|
};
|
|
326
|
+
export const UpdateClubMemberRequestRoleEnum = {
|
|
327
|
+
Admin: 'admin',
|
|
328
|
+
Manager: 'manager',
|
|
329
|
+
Staff: 'staff'
|
|
330
|
+
};
|
|
326
331
|
export const UpdateClubRoleRequestRoleEnum = {
|
|
327
332
|
Admin: 'admin',
|
|
328
333
|
Manager: 'manager',
|
|
@@ -5563,6 +5568,42 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5563
5568
|
options: localVarRequestOptions,
|
|
5564
5569
|
};
|
|
5565
5570
|
}),
|
|
5571
|
+
/**
|
|
5572
|
+
* Met à jour un membre d\'un club
|
|
5573
|
+
* @param {string} userId
|
|
5574
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5575
|
+
* @param {*} [options] Override http request option.
|
|
5576
|
+
* @throws {RequiredError}
|
|
5577
|
+
*/
|
|
5578
|
+
updateClubMember: (userId_1, updateClubMemberRequest_1, ...args_1) => __awaiter(this, [userId_1, updateClubMemberRequest_1, ...args_1], void 0, function* (userId, updateClubMemberRequest, options = {}) {
|
|
5579
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5580
|
+
assertParamExists('updateClubMember', 'userId', userId);
|
|
5581
|
+
// verify required parameter 'updateClubMemberRequest' is not null or undefined
|
|
5582
|
+
assertParamExists('updateClubMember', 'updateClubMemberRequest', updateClubMemberRequest);
|
|
5583
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
5584
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5585
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5587
|
+
let baseOptions;
|
|
5588
|
+
if (configuration) {
|
|
5589
|
+
baseOptions = configuration.baseOptions;
|
|
5590
|
+
}
|
|
5591
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5592
|
+
const localVarHeaderParameter = {};
|
|
5593
|
+
const localVarQueryParameter = {};
|
|
5594
|
+
// authentication bearerAuth required
|
|
5595
|
+
// http bearer authentication required
|
|
5596
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5597
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5600
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5601
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubMemberRequest, localVarRequestOptions, configuration);
|
|
5602
|
+
return {
|
|
5603
|
+
url: toPathString(localVarUrlObj),
|
|
5604
|
+
options: localVarRequestOptions,
|
|
5605
|
+
};
|
|
5606
|
+
}),
|
|
5566
5607
|
/**
|
|
5567
5608
|
*
|
|
5568
5609
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -5917,6 +5958,22 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5917
5958
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5918
5959
|
});
|
|
5919
5960
|
},
|
|
5961
|
+
/**
|
|
5962
|
+
* Met à jour un membre d\'un club
|
|
5963
|
+
* @param {string} userId
|
|
5964
|
+
* @param {UpdateClubMemberRequest} updateClubMemberRequest
|
|
5965
|
+
* @param {*} [options] Override http request option.
|
|
5966
|
+
* @throws {RequiredError}
|
|
5967
|
+
*/
|
|
5968
|
+
updateClubMember(userId, updateClubMemberRequest, options) {
|
|
5969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5970
|
+
var _a, _b, _c;
|
|
5971
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubMember(userId, updateClubMemberRequest, options);
|
|
5972
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5973
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5974
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5975
|
+
});
|
|
5976
|
+
},
|
|
5920
5977
|
/**
|
|
5921
5978
|
*
|
|
5922
5979
|
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
@@ -6116,6 +6173,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
6116
6173
|
updateClubInfos(requestParameters, options) {
|
|
6117
6174
|
return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
6118
6175
|
},
|
|
6176
|
+
/**
|
|
6177
|
+
* Met à jour un membre d\'un club
|
|
6178
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6179
|
+
* @param {*} [options] Override http request option.
|
|
6180
|
+
* @throws {RequiredError}
|
|
6181
|
+
*/
|
|
6182
|
+
updateClubMember(requestParameters, options) {
|
|
6183
|
+
return localVarFp.updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
6184
|
+
},
|
|
6119
6185
|
/**
|
|
6120
6186
|
*
|
|
6121
6187
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
|
|
@@ -6311,6 +6377,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6311
6377
|
updateClubInfos(requestParameters, options) {
|
|
6312
6378
|
return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6313
6379
|
}
|
|
6380
|
+
/**
|
|
6381
|
+
* Met à jour un membre d\'un club
|
|
6382
|
+
* @param {ClubsManagerApiUpdateClubMemberRequest} requestParameters Request parameters.
|
|
6383
|
+
* @param {*} [options] Override http request option.
|
|
6384
|
+
* @throws {RequiredError}
|
|
6385
|
+
* @memberof ClubsManagerApi
|
|
6386
|
+
*/
|
|
6387
|
+
updateClubMember(requestParameters, options) {
|
|
6388
|
+
return ClubsManagerApiFp(this.configuration).updateClubMember(requestParameters.userId, requestParameters.updateClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6389
|
+
}
|
|
6314
6390
|
/**
|
|
6315
6391
|
*
|
|
6316
6392
|
* @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} 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