@tennac-booking/sdk 1.0.113 → 1.0.114
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 +5 -1
- package/README.md +12 -2
- package/api.ts +823 -7
- package/dist/api.d.ts +540 -4
- package/dist/api.js +452 -6
- package/dist/esm/api.d.ts +540 -4
- package/dist/esm/api.js +448 -2
- package/docs/AgendaBooking.md +30 -0
- package/docs/AgendaBookingPlayer.md +26 -0
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +2 -2
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -26,6 +26,16 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const AgendaPaymentStatus = {
|
|
35
|
+
Pay: 'payé',
|
|
36
|
+
NonPay: 'non payé',
|
|
37
|
+
EnAttente: 'en attente'
|
|
38
|
+
};
|
|
29
39
|
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
30
40
|
User: 'user',
|
|
31
41
|
Manager: 'manager',
|
|
@@ -3281,7 +3291,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3281
3291
|
if (configuration) {
|
|
3282
3292
|
baseOptions = configuration.baseOptions;
|
|
3283
3293
|
}
|
|
3284
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3285
3295
|
const localVarHeaderParameter = {};
|
|
3286
3296
|
const localVarQueryParameter = {};
|
|
3287
3297
|
// authentication bearerAuth required
|
|
@@ -3345,7 +3355,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3345
3355
|
if (configuration) {
|
|
3346
3356
|
baseOptions = configuration.baseOptions;
|
|
3347
3357
|
}
|
|
3348
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3358
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3349
3359
|
const localVarHeaderParameter = {};
|
|
3350
3360
|
const localVarQueryParameter = {};
|
|
3351
3361
|
// authentication bearerAuth required
|
|
@@ -4952,6 +4962,37 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4952
4962
|
options: localVarRequestOptions,
|
|
4953
4963
|
};
|
|
4954
4964
|
}),
|
|
4965
|
+
/**
|
|
4966
|
+
* Supprime un membre d\'un club
|
|
4967
|
+
* @param {string} userId
|
|
4968
|
+
* @param {*} [options] Override http request option.
|
|
4969
|
+
* @throws {RequiredError}
|
|
4970
|
+
*/
|
|
4971
|
+
deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
4972
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4973
|
+
assertParamExists('deleteClubMember', 'userId', userId);
|
|
4974
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
4975
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4976
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4977
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4978
|
+
let baseOptions;
|
|
4979
|
+
if (configuration) {
|
|
4980
|
+
baseOptions = configuration.baseOptions;
|
|
4981
|
+
}
|
|
4982
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4983
|
+
const localVarHeaderParameter = {};
|
|
4984
|
+
const localVarQueryParameter = {};
|
|
4985
|
+
// authentication bearerAuth required
|
|
4986
|
+
// http bearer authentication required
|
|
4987
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4988
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4989
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4990
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4991
|
+
return {
|
|
4992
|
+
url: toPathString(localVarUrlObj),
|
|
4993
|
+
options: localVarRequestOptions,
|
|
4994
|
+
};
|
|
4995
|
+
}),
|
|
4955
4996
|
/**
|
|
4956
4997
|
* Supprime un terrain et ses créneaux futurs
|
|
4957
4998
|
* @param {string} courtId
|
|
@@ -5489,6 +5530,21 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5489
5530
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5490
5531
|
});
|
|
5491
5532
|
},
|
|
5533
|
+
/**
|
|
5534
|
+
* Supprime un membre d\'un club
|
|
5535
|
+
* @param {string} userId
|
|
5536
|
+
* @param {*} [options] Override http request option.
|
|
5537
|
+
* @throws {RequiredError}
|
|
5538
|
+
*/
|
|
5539
|
+
deleteClubMember(userId, options) {
|
|
5540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5541
|
+
var _a, _b, _c;
|
|
5542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
5543
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5544
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.deleteClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5546
|
+
});
|
|
5547
|
+
},
|
|
5492
5548
|
/**
|
|
5493
5549
|
* Supprime un terrain et ses créneaux futurs
|
|
5494
5550
|
* @param {string} courtId
|
|
@@ -5759,6 +5815,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5759
5815
|
deleteActuality(requestParameters, options) {
|
|
5760
5816
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
5761
5817
|
},
|
|
5818
|
+
/**
|
|
5819
|
+
* Supprime un membre d\'un club
|
|
5820
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
5821
|
+
* @param {*} [options] Override http request option.
|
|
5822
|
+
* @throws {RequiredError}
|
|
5823
|
+
*/
|
|
5824
|
+
deleteClubMember(requestParameters, options) {
|
|
5825
|
+
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
5826
|
+
},
|
|
5762
5827
|
/**
|
|
5763
5828
|
* Supprime un terrain et ses créneaux futurs
|
|
5764
5829
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -5954,6 +6019,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5954
6019
|
deleteActuality(requestParameters, options) {
|
|
5955
6020
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
5956
6021
|
}
|
|
6022
|
+
/**
|
|
6023
|
+
* Supprime un membre d\'un club
|
|
6024
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6025
|
+
* @param {*} [options] Override http request option.
|
|
6026
|
+
* @throws {RequiredError}
|
|
6027
|
+
* @memberof ClubsManagerApi
|
|
6028
|
+
*/
|
|
6029
|
+
deleteClubMember(requestParameters, options) {
|
|
6030
|
+
return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
6031
|
+
}
|
|
5957
6032
|
/**
|
|
5958
6033
|
* Supprime un terrain et ses créneaux futurs
|
|
5959
6034
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6346,6 +6421,42 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6346
6421
|
options: localVarRequestOptions,
|
|
6347
6422
|
};
|
|
6348
6423
|
}),
|
|
6424
|
+
/**
|
|
6425
|
+
*
|
|
6426
|
+
* @param {string} id
|
|
6427
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6428
|
+
* @param {*} [options] Override http request option.
|
|
6429
|
+
* @throws {RequiredError}
|
|
6430
|
+
*/
|
|
6431
|
+
updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
|
|
6432
|
+
// verify required parameter 'id' is not null or undefined
|
|
6433
|
+
assertParamExists('updateUserCreditsStaff', 'id', id);
|
|
6434
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
6435
|
+
assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6436
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6437
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6440
|
+
let baseOptions;
|
|
6441
|
+
if (configuration) {
|
|
6442
|
+
baseOptions = configuration.baseOptions;
|
|
6443
|
+
}
|
|
6444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6445
|
+
const localVarHeaderParameter = {};
|
|
6446
|
+
const localVarQueryParameter = {};
|
|
6447
|
+
// authentication bearerAuth required
|
|
6448
|
+
// http bearer authentication required
|
|
6449
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6450
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6451
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6454
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6455
|
+
return {
|
|
6456
|
+
url: toPathString(localVarUrlObj),
|
|
6457
|
+
options: localVarRequestOptions,
|
|
6458
|
+
};
|
|
6459
|
+
}),
|
|
6349
6460
|
};
|
|
6350
6461
|
};
|
|
6351
6462
|
/**
|
|
@@ -6484,6 +6595,22 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6484
6595
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6485
6596
|
});
|
|
6486
6597
|
},
|
|
6598
|
+
/**
|
|
6599
|
+
*
|
|
6600
|
+
* @param {string} id
|
|
6601
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6602
|
+
* @param {*} [options] Override http request option.
|
|
6603
|
+
* @throws {RequiredError}
|
|
6604
|
+
*/
|
|
6605
|
+
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
6606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6607
|
+
var _a, _b, _c;
|
|
6608
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
6609
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6610
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6611
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6612
|
+
});
|
|
6613
|
+
},
|
|
6487
6614
|
};
|
|
6488
6615
|
};
|
|
6489
6616
|
/**
|
|
@@ -6567,6 +6694,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6567
6694
|
getUserProfileStaff(requestParameters, options) {
|
|
6568
6695
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6569
6696
|
},
|
|
6697
|
+
/**
|
|
6698
|
+
*
|
|
6699
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
6700
|
+
* @param {*} [options] Override http request option.
|
|
6701
|
+
* @throws {RequiredError}
|
|
6702
|
+
*/
|
|
6703
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
6704
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
6705
|
+
},
|
|
6570
6706
|
};
|
|
6571
6707
|
};
|
|
6572
6708
|
/**
|
|
@@ -6659,6 +6795,16 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
6659
6795
|
getUserProfileStaff(requestParameters, options) {
|
|
6660
6796
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6661
6797
|
}
|
|
6798
|
+
/**
|
|
6799
|
+
*
|
|
6800
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
6801
|
+
* @param {*} [options] Override http request option.
|
|
6802
|
+
* @throws {RequiredError}
|
|
6803
|
+
* @memberof ClubsStaffApi
|
|
6804
|
+
*/
|
|
6805
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
6806
|
+
return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6807
|
+
}
|
|
6662
6808
|
}
|
|
6663
6809
|
/**
|
|
6664
6810
|
* DefaultApi - axios parameter creator
|
|
@@ -7626,6 +7772,53 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7626
7772
|
options: localVarRequestOptions,
|
|
7627
7773
|
};
|
|
7628
7774
|
}),
|
|
7775
|
+
/**
|
|
7776
|
+
* Get events for the day view (entire week)
|
|
7777
|
+
* @param {string} [clubId]
|
|
7778
|
+
* @param {string} [date]
|
|
7779
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7780
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7781
|
+
* @param {string} [sportId]
|
|
7782
|
+
* @param {*} [options] Override http request option.
|
|
7783
|
+
* @throws {RequiredError}
|
|
7784
|
+
*/
|
|
7785
|
+
getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
7786
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
7787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7788
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7789
|
+
let baseOptions;
|
|
7790
|
+
if (configuration) {
|
|
7791
|
+
baseOptions = configuration.baseOptions;
|
|
7792
|
+
}
|
|
7793
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7794
|
+
const localVarHeaderParameter = {};
|
|
7795
|
+
const localVarQueryParameter = {};
|
|
7796
|
+
// authentication bearerAuth required
|
|
7797
|
+
// http bearer authentication required
|
|
7798
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7799
|
+
if (clubId !== undefined) {
|
|
7800
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7801
|
+
}
|
|
7802
|
+
if (date !== undefined) {
|
|
7803
|
+
localVarQueryParameter['date'] = date;
|
|
7804
|
+
}
|
|
7805
|
+
if (visibilityType !== undefined) {
|
|
7806
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7807
|
+
}
|
|
7808
|
+
if (type !== undefined) {
|
|
7809
|
+
localVarQueryParameter['type'] = type;
|
|
7810
|
+
}
|
|
7811
|
+
if (sportId !== undefined) {
|
|
7812
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7813
|
+
}
|
|
7814
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7815
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7816
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7817
|
+
return {
|
|
7818
|
+
url: toPathString(localVarUrlObj),
|
|
7819
|
+
options: localVarRequestOptions,
|
|
7820
|
+
};
|
|
7821
|
+
}),
|
|
7629
7822
|
/**
|
|
7630
7823
|
* Get all events for a club (staff only)
|
|
7631
7824
|
* @param {*} [options] Override http request option.
|
|
@@ -7653,6 +7846,100 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7653
7846
|
options: localVarRequestOptions,
|
|
7654
7847
|
};
|
|
7655
7848
|
}),
|
|
7849
|
+
/**
|
|
7850
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
7851
|
+
* @param {string} [clubId]
|
|
7852
|
+
* @param {string} [date]
|
|
7853
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
7854
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
7855
|
+
* @param {string} [sportId]
|
|
7856
|
+
* @param {*} [options] Override http request option.
|
|
7857
|
+
* @throws {RequiredError}
|
|
7858
|
+
*/
|
|
7859
|
+
getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
7860
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
7861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7862
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7863
|
+
let baseOptions;
|
|
7864
|
+
if (configuration) {
|
|
7865
|
+
baseOptions = configuration.baseOptions;
|
|
7866
|
+
}
|
|
7867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7868
|
+
const localVarHeaderParameter = {};
|
|
7869
|
+
const localVarQueryParameter = {};
|
|
7870
|
+
// authentication bearerAuth required
|
|
7871
|
+
// http bearer authentication required
|
|
7872
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7873
|
+
if (clubId !== undefined) {
|
|
7874
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7875
|
+
}
|
|
7876
|
+
if (date !== undefined) {
|
|
7877
|
+
localVarQueryParameter['date'] = date;
|
|
7878
|
+
}
|
|
7879
|
+
if (visibilityType !== undefined) {
|
|
7880
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7881
|
+
}
|
|
7882
|
+
if (type !== undefined) {
|
|
7883
|
+
localVarQueryParameter['type'] = type;
|
|
7884
|
+
}
|
|
7885
|
+
if (sportId !== undefined) {
|
|
7886
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7887
|
+
}
|
|
7888
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7889
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7890
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7891
|
+
return {
|
|
7892
|
+
url: toPathString(localVarUrlObj),
|
|
7893
|
+
options: localVarRequestOptions,
|
|
7894
|
+
};
|
|
7895
|
+
}),
|
|
7896
|
+
/**
|
|
7897
|
+
* Get events for the week view (30 day sliding window)
|
|
7898
|
+
* @param {string} [clubId]
|
|
7899
|
+
* @param {string} [date]
|
|
7900
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
7901
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
7902
|
+
* @param {string} [sportId]
|
|
7903
|
+
* @param {*} [options] Override http request option.
|
|
7904
|
+
* @throws {RequiredError}
|
|
7905
|
+
*/
|
|
7906
|
+
getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
7907
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
7908
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7909
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7910
|
+
let baseOptions;
|
|
7911
|
+
if (configuration) {
|
|
7912
|
+
baseOptions = configuration.baseOptions;
|
|
7913
|
+
}
|
|
7914
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7915
|
+
const localVarHeaderParameter = {};
|
|
7916
|
+
const localVarQueryParameter = {};
|
|
7917
|
+
// authentication bearerAuth required
|
|
7918
|
+
// http bearer authentication required
|
|
7919
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7920
|
+
if (clubId !== undefined) {
|
|
7921
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7922
|
+
}
|
|
7923
|
+
if (date !== undefined) {
|
|
7924
|
+
localVarQueryParameter['date'] = date;
|
|
7925
|
+
}
|
|
7926
|
+
if (visibilityType !== undefined) {
|
|
7927
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7928
|
+
}
|
|
7929
|
+
if (type !== undefined) {
|
|
7930
|
+
localVarQueryParameter['type'] = type;
|
|
7931
|
+
}
|
|
7932
|
+
if (sportId !== undefined) {
|
|
7933
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7934
|
+
}
|
|
7935
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7937
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7938
|
+
return {
|
|
7939
|
+
url: toPathString(localVarUrlObj),
|
|
7940
|
+
options: localVarRequestOptions,
|
|
7941
|
+
};
|
|
7942
|
+
}),
|
|
7656
7943
|
};
|
|
7657
7944
|
};
|
|
7658
7945
|
/**
|
|
@@ -7678,6 +7965,25 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
7678
7965
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7679
7966
|
});
|
|
7680
7967
|
},
|
|
7968
|
+
/**
|
|
7969
|
+
* Get events for the day view (entire week)
|
|
7970
|
+
* @param {string} [clubId]
|
|
7971
|
+
* @param {string} [date]
|
|
7972
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7973
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7974
|
+
* @param {string} [sportId]
|
|
7975
|
+
* @param {*} [options] Override http request option.
|
|
7976
|
+
* @throws {RequiredError}
|
|
7977
|
+
*/
|
|
7978
|
+
getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
7979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7980
|
+
var _a, _b, _c;
|
|
7981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
7982
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7983
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7984
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7985
|
+
});
|
|
7986
|
+
},
|
|
7681
7987
|
/**
|
|
7682
7988
|
* Get all events for a club (staff only)
|
|
7683
7989
|
* @param {*} [options] Override http request option.
|
|
@@ -7692,6 +7998,44 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
7692
7998
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7693
7999
|
});
|
|
7694
8000
|
},
|
|
8001
|
+
/**
|
|
8002
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8003
|
+
* @param {string} [clubId]
|
|
8004
|
+
* @param {string} [date]
|
|
8005
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8006
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8007
|
+
* @param {string} [sportId]
|
|
8008
|
+
* @param {*} [options] Override http request option.
|
|
8009
|
+
* @throws {RequiredError}
|
|
8010
|
+
*/
|
|
8011
|
+
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8013
|
+
var _a, _b, _c;
|
|
8014
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8015
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8016
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8017
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8018
|
+
});
|
|
8019
|
+
},
|
|
8020
|
+
/**
|
|
8021
|
+
* Get events for the week view (30 day sliding window)
|
|
8022
|
+
* @param {string} [clubId]
|
|
8023
|
+
* @param {string} [date]
|
|
8024
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8025
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8026
|
+
* @param {string} [sportId]
|
|
8027
|
+
* @param {*} [options] Override http request option.
|
|
8028
|
+
* @throws {RequiredError}
|
|
8029
|
+
*/
|
|
8030
|
+
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8032
|
+
var _a, _b, _c;
|
|
8033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8034
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8035
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8036
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8037
|
+
});
|
|
8038
|
+
},
|
|
7695
8039
|
};
|
|
7696
8040
|
};
|
|
7697
8041
|
/**
|
|
@@ -7710,6 +8054,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7710
8054
|
checkInEventParticipants(requestParameters, options) {
|
|
7711
8055
|
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
7712
8056
|
},
|
|
8057
|
+
/**
|
|
8058
|
+
* Get events for the day view (entire week)
|
|
8059
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8060
|
+
* @param {*} [options] Override http request option.
|
|
8061
|
+
* @throws {RequiredError}
|
|
8062
|
+
*/
|
|
8063
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8064
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8065
|
+
},
|
|
7713
8066
|
/**
|
|
7714
8067
|
* Get all events for a club (staff only)
|
|
7715
8068
|
* @param {*} [options] Override http request option.
|
|
@@ -7718,6 +8071,24 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7718
8071
|
getEventsByClub(options) {
|
|
7719
8072
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
7720
8073
|
},
|
|
8074
|
+
/**
|
|
8075
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8076
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8077
|
+
* @param {*} [options] Override http request option.
|
|
8078
|
+
* @throws {RequiredError}
|
|
8079
|
+
*/
|
|
8080
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8081
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8082
|
+
},
|
|
8083
|
+
/**
|
|
8084
|
+
* Get events for the week view (30 day sliding window)
|
|
8085
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8086
|
+
* @param {*} [options] Override http request option.
|
|
8087
|
+
* @throws {RequiredError}
|
|
8088
|
+
*/
|
|
8089
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8090
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8091
|
+
},
|
|
7721
8092
|
};
|
|
7722
8093
|
};
|
|
7723
8094
|
/**
|
|
@@ -7737,6 +8108,16 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
7737
8108
|
checkInEventParticipants(requestParameters, options) {
|
|
7738
8109
|
return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7739
8110
|
}
|
|
8111
|
+
/**
|
|
8112
|
+
* Get events for the day view (entire week)
|
|
8113
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8114
|
+
* @param {*} [options] Override http request option.
|
|
8115
|
+
* @throws {RequiredError}
|
|
8116
|
+
* @memberof EventsStaffApi
|
|
8117
|
+
*/
|
|
8118
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8119
|
+
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8120
|
+
}
|
|
7740
8121
|
/**
|
|
7741
8122
|
* Get all events for a club (staff only)
|
|
7742
8123
|
* @param {*} [options] Override http request option.
|
|
@@ -7746,7 +8127,72 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
7746
8127
|
getEventsByClub(options) {
|
|
7747
8128
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
7748
8129
|
}
|
|
8130
|
+
/**
|
|
8131
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8132
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8133
|
+
* @param {*} [options] Override http request option.
|
|
8134
|
+
* @throws {RequiredError}
|
|
8135
|
+
* @memberof EventsStaffApi
|
|
8136
|
+
*/
|
|
8137
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8138
|
+
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8139
|
+
}
|
|
8140
|
+
/**
|
|
8141
|
+
* Get events for the week view (30 day sliding window)
|
|
8142
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8143
|
+
* @param {*} [options] Override http request option.
|
|
8144
|
+
* @throws {RequiredError}
|
|
8145
|
+
* @memberof EventsStaffApi
|
|
8146
|
+
*/
|
|
8147
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8148
|
+
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8149
|
+
}
|
|
7749
8150
|
}
|
|
8151
|
+
/**
|
|
8152
|
+
* @export
|
|
8153
|
+
*/
|
|
8154
|
+
export const GetDailyEventsVisibilityTypeEnum = {
|
|
8155
|
+
Public: 'public',
|
|
8156
|
+
Private: 'private',
|
|
8157
|
+
Invitation: 'invitation'
|
|
8158
|
+
};
|
|
8159
|
+
/**
|
|
8160
|
+
* @export
|
|
8161
|
+
*/
|
|
8162
|
+
export const GetDailyEventsTypeEnum = {
|
|
8163
|
+
Event: 'event',
|
|
8164
|
+
Closure: 'closure'
|
|
8165
|
+
};
|
|
8166
|
+
/**
|
|
8167
|
+
* @export
|
|
8168
|
+
*/
|
|
8169
|
+
export const GetMonthlyEventsVisibilityTypeEnum = {
|
|
8170
|
+
Public: 'public',
|
|
8171
|
+
Private: 'private',
|
|
8172
|
+
Invitation: 'invitation'
|
|
8173
|
+
};
|
|
8174
|
+
/**
|
|
8175
|
+
* @export
|
|
8176
|
+
*/
|
|
8177
|
+
export const GetMonthlyEventsTypeEnum = {
|
|
8178
|
+
Event: 'event',
|
|
8179
|
+
Closure: 'closure'
|
|
8180
|
+
};
|
|
8181
|
+
/**
|
|
8182
|
+
* @export
|
|
8183
|
+
*/
|
|
8184
|
+
export const GetWeeklyEventsVisibilityTypeEnum = {
|
|
8185
|
+
Public: 'public',
|
|
8186
|
+
Private: 'private',
|
|
8187
|
+
Invitation: 'invitation'
|
|
8188
|
+
};
|
|
8189
|
+
/**
|
|
8190
|
+
* @export
|
|
8191
|
+
*/
|
|
8192
|
+
export const GetWeeklyEventsTypeEnum = {
|
|
8193
|
+
Event: 'event',
|
|
8194
|
+
Closure: 'closure'
|
|
8195
|
+
};
|
|
7750
8196
|
/**
|
|
7751
8197
|
* SportsManagerApi - axios parameter creator
|
|
7752
8198
|
* @export
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AgendaBooking
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
10
|
+
**creatorName** | **string** | | [default to undefined]
|
|
11
|
+
**players** | [**Array<AgendaBookingPlayer>**](AgendaBookingPlayer.md) | | [default to undefined]
|
|
12
|
+
**paymentStatus** | [**AgendaPaymentStatus**](AgendaPaymentStatus.md) | | [default to undefined]
|
|
13
|
+
**slots** | [**Array<AgendaBookingSlot>**](AgendaBookingSlot.md) | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AgendaBooking } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: AgendaBooking = {
|
|
21
|
+
id,
|
|
22
|
+
status,
|
|
23
|
+
creatorName,
|
|
24
|
+
players,
|
|
25
|
+
paymentStatus,
|
|
26
|
+
slots,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgendaBookingPlayer
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [default to undefined]
|
|
11
|
+
**profilePictureUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgendaBookingPlayer } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgendaBookingPlayer = {
|
|
19
|
+
id,
|
|
20
|
+
firstName,
|
|
21
|
+
lastName,
|
|
22
|
+
profilePictureUrl,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AgendaBookingSlot
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**start** | **string** | | [default to undefined]
|
|
9
|
+
**end** | **string** | | [default to undefined]
|
|
10
|
+
**courtName** | **string** | | [default to undefined]
|
|
11
|
+
**sportKey** | **string** | | [default to undefined]
|
|
12
|
+
**surface** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**isIndoor** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AgendaBookingSlot } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: AgendaBookingSlot = {
|
|
21
|
+
start,
|
|
22
|
+
end,
|
|
23
|
+
courtName,
|
|
24
|
+
sportKey,
|
|
25
|
+
surface,
|
|
26
|
+
isIndoor,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|