@tennac-booking/sdk 1.0.185 → 1.0.186
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 +412 -412
- package/README.md +4 -2
- package/api.ts +163 -51
- package/dist/api.d.ts +76 -38
- package/dist/api.js +149 -33
- package/dist/esm/api.d.ts +76 -38
- package/dist/esm/api.js +149 -33
- package/docs/EventsStaffApi.md +119 -25
- package/docs/StaffEventsPageResponse.md +22 -0
- package/package.json +1 -1
- package/docs/StaffEventsPaginatedResponse.md +0 -26
package/dist/esm/api.js
CHANGED
|
@@ -10794,16 +10794,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10794
10794
|
};
|
|
10795
10795
|
}),
|
|
10796
10796
|
/**
|
|
10797
|
-
*
|
|
10798
|
-
* @param {string} eventId
|
|
10797
|
+
*
|
|
10799
10798
|
* @param {*} [options] Override http request option.
|
|
10800
10799
|
* @throws {RequiredError}
|
|
10801
10800
|
*/
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
assertParamExists('getEventByIdForStaff', 'eventId', eventId);
|
|
10805
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10806
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10801
|
+
getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10802
|
+
const localVarPath = `/api/events/staff/getEvents/drafts`;
|
|
10807
10803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10808
10804
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10809
10805
|
let baseOptions;
|
|
@@ -10825,12 +10821,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10825
10821
|
};
|
|
10826
10822
|
}),
|
|
10827
10823
|
/**
|
|
10828
|
-
*
|
|
10824
|
+
* Get a specific event by ID (staff)
|
|
10825
|
+
* @param {string} eventId
|
|
10829
10826
|
* @param {*} [options] Override http request option.
|
|
10830
10827
|
* @throws {RequiredError}
|
|
10831
10828
|
*/
|
|
10832
|
-
|
|
10833
|
-
|
|
10829
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10830
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10831
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId);
|
|
10832
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10833
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10834
10834
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10835
10835
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10836
10836
|
let baseOptions;
|
|
@@ -10898,6 +10898,60 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10898
10898
|
options: localVarRequestOptions,
|
|
10899
10899
|
};
|
|
10900
10900
|
}),
|
|
10901
|
+
/**
|
|
10902
|
+
*
|
|
10903
|
+
* @param {*} [options] Override http request option.
|
|
10904
|
+
* @throws {RequiredError}
|
|
10905
|
+
*/
|
|
10906
|
+
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10907
|
+
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
10908
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10909
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10910
|
+
let baseOptions;
|
|
10911
|
+
if (configuration) {
|
|
10912
|
+
baseOptions = configuration.baseOptions;
|
|
10913
|
+
}
|
|
10914
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10915
|
+
const localVarHeaderParameter = {};
|
|
10916
|
+
const localVarQueryParameter = {};
|
|
10917
|
+
// authentication bearerAuth required
|
|
10918
|
+
// http bearer authentication required
|
|
10919
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10922
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10923
|
+
return {
|
|
10924
|
+
url: toPathString(localVarUrlObj),
|
|
10925
|
+
options: localVarRequestOptions,
|
|
10926
|
+
};
|
|
10927
|
+
}),
|
|
10928
|
+
/**
|
|
10929
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10930
|
+
* @param {*} [options] Override http request option.
|
|
10931
|
+
* @throws {RequiredError}
|
|
10932
|
+
*/
|
|
10933
|
+
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10934
|
+
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
10935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10937
|
+
let baseOptions;
|
|
10938
|
+
if (configuration) {
|
|
10939
|
+
baseOptions = configuration.baseOptions;
|
|
10940
|
+
}
|
|
10941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10942
|
+
const localVarHeaderParameter = {};
|
|
10943
|
+
const localVarQueryParameter = {};
|
|
10944
|
+
// authentication bearerAuth required
|
|
10945
|
+
// http bearer authentication required
|
|
10946
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10949
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10950
|
+
return {
|
|
10951
|
+
url: toPathString(localVarUrlObj),
|
|
10952
|
+
options: localVarRequestOptions,
|
|
10953
|
+
};
|
|
10954
|
+
}),
|
|
10901
10955
|
/**
|
|
10902
10956
|
* Get events for the week view (30 day sliding window)
|
|
10903
10957
|
* @param {string} [clubId]
|
|
@@ -10990,31 +11044,31 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
10990
11044
|
});
|
|
10991
11045
|
},
|
|
10992
11046
|
/**
|
|
10993
|
-
*
|
|
10994
|
-
* @param {string} eventId
|
|
11047
|
+
*
|
|
10995
11048
|
* @param {*} [options] Override http request option.
|
|
10996
11049
|
* @throws {RequiredError}
|
|
10997
11050
|
*/
|
|
10998
|
-
|
|
11051
|
+
getDraftEventsByClub(options) {
|
|
10999
11052
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11000
11053
|
var _a, _b, _c;
|
|
11001
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
|
|
11002
11055
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11003
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
11056
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11004
11057
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11005
11058
|
});
|
|
11006
11059
|
},
|
|
11007
11060
|
/**
|
|
11008
|
-
*
|
|
11061
|
+
* Get a specific event by ID (staff)
|
|
11062
|
+
* @param {string} eventId
|
|
11009
11063
|
* @param {*} [options] Override http request option.
|
|
11010
11064
|
* @throws {RequiredError}
|
|
11011
11065
|
*/
|
|
11012
|
-
|
|
11066
|
+
getEventByIdForStaff(eventId, options) {
|
|
11013
11067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11014
11068
|
var _a, _b, _c;
|
|
11015
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11069
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11016
11070
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11017
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
11071
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11018
11072
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11019
11073
|
});
|
|
11020
11074
|
},
|
|
@@ -11037,6 +11091,34 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
11037
11091
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11038
11092
|
});
|
|
11039
11093
|
},
|
|
11094
|
+
/**
|
|
11095
|
+
*
|
|
11096
|
+
* @param {*} [options] Override http request option.
|
|
11097
|
+
* @throws {RequiredError}
|
|
11098
|
+
*/
|
|
11099
|
+
getPastEventsByClub(options) {
|
|
11100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11101
|
+
var _a, _b, _c;
|
|
11102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
11103
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11104
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11106
|
+
});
|
|
11107
|
+
},
|
|
11108
|
+
/**
|
|
11109
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11110
|
+
* @param {*} [options] Override http request option.
|
|
11111
|
+
* @throws {RequiredError}
|
|
11112
|
+
*/
|
|
11113
|
+
getUpcomingEventsByClub(options) {
|
|
11114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11115
|
+
var _a, _b, _c;
|
|
11116
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11117
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11118
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11120
|
+
});
|
|
11121
|
+
},
|
|
11040
11122
|
/**
|
|
11041
11123
|
* Get events for the week view (30 day sliding window)
|
|
11042
11124
|
* @param {string} [clubId]
|
|
@@ -11084,21 +11166,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11084
11166
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11085
11167
|
},
|
|
11086
11168
|
/**
|
|
11087
|
-
*
|
|
11088
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11169
|
+
*
|
|
11089
11170
|
* @param {*} [options] Override http request option.
|
|
11090
11171
|
* @throws {RequiredError}
|
|
11091
11172
|
*/
|
|
11092
|
-
|
|
11093
|
-
return localVarFp.
|
|
11173
|
+
getDraftEventsByClub(options) {
|
|
11174
|
+
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11094
11175
|
},
|
|
11095
11176
|
/**
|
|
11096
|
-
*
|
|
11177
|
+
* Get a specific event by ID (staff)
|
|
11178
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11097
11179
|
* @param {*} [options] Override http request option.
|
|
11098
11180
|
* @throws {RequiredError}
|
|
11099
11181
|
*/
|
|
11100
|
-
|
|
11101
|
-
return localVarFp.
|
|
11182
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11183
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11102
11184
|
},
|
|
11103
11185
|
/**
|
|
11104
11186
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11109,6 +11191,22 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11109
11191
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11110
11192
|
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11111
11193
|
},
|
|
11194
|
+
/**
|
|
11195
|
+
*
|
|
11196
|
+
* @param {*} [options] Override http request option.
|
|
11197
|
+
* @throws {RequiredError}
|
|
11198
|
+
*/
|
|
11199
|
+
getPastEventsByClub(options) {
|
|
11200
|
+
return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
|
|
11201
|
+
},
|
|
11202
|
+
/**
|
|
11203
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11204
|
+
* @param {*} [options] Override http request option.
|
|
11205
|
+
* @throws {RequiredError}
|
|
11206
|
+
*/
|
|
11207
|
+
getUpcomingEventsByClub(options) {
|
|
11208
|
+
return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
|
|
11209
|
+
},
|
|
11112
11210
|
/**
|
|
11113
11211
|
* Get events for the week view (30 day sliding window)
|
|
11114
11212
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -11148,23 +11246,23 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
11148
11246
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11149
11247
|
}
|
|
11150
11248
|
/**
|
|
11151
|
-
*
|
|
11152
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11249
|
+
*
|
|
11153
11250
|
* @param {*} [options] Override http request option.
|
|
11154
11251
|
* @throws {RequiredError}
|
|
11155
11252
|
* @memberof EventsStaffApi
|
|
11156
11253
|
*/
|
|
11157
|
-
|
|
11158
|
-
return EventsStaffApiFp(this.configuration).
|
|
11254
|
+
getDraftEventsByClub(options) {
|
|
11255
|
+
return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11159
11256
|
}
|
|
11160
11257
|
/**
|
|
11161
|
-
*
|
|
11258
|
+
* Get a specific event by ID (staff)
|
|
11259
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11162
11260
|
* @param {*} [options] Override http request option.
|
|
11163
11261
|
* @throws {RequiredError}
|
|
11164
11262
|
* @memberof EventsStaffApi
|
|
11165
11263
|
*/
|
|
11166
|
-
|
|
11167
|
-
return EventsStaffApiFp(this.configuration).
|
|
11264
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11265
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11168
11266
|
}
|
|
11169
11267
|
/**
|
|
11170
11268
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11176,6 +11274,24 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
11176
11274
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11177
11275
|
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11178
11276
|
}
|
|
11277
|
+
/**
|
|
11278
|
+
*
|
|
11279
|
+
* @param {*} [options] Override http request option.
|
|
11280
|
+
* @throws {RequiredError}
|
|
11281
|
+
* @memberof EventsStaffApi
|
|
11282
|
+
*/
|
|
11283
|
+
getPastEventsByClub(options) {
|
|
11284
|
+
return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11285
|
+
}
|
|
11286
|
+
/**
|
|
11287
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11288
|
+
* @param {*} [options] Override http request option.
|
|
11289
|
+
* @throws {RequiredError}
|
|
11290
|
+
* @memberof EventsStaffApi
|
|
11291
|
+
*/
|
|
11292
|
+
getUpcomingEventsByClub(options) {
|
|
11293
|
+
return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11294
|
+
}
|
|
11179
11295
|
/**
|
|
11180
11296
|
* Get events for the week view (30 day sliding window)
|
|
11181
11297
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,9 +6,11 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
+
|[**getDraftEventsByClub**](#getdrafteventsbyclub) | **GET** /api/events/staff/getEvents/drafts | |
|
|
9
10
|
|[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
|
|
10
|
-
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
11
11
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
12
|
+
|[**getPastEventsByClub**](#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past | |
|
|
13
|
+
|[**getUpcomingEventsByClub**](#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming | |
|
|
12
14
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
13
15
|
|
|
14
16
|
# **checkInEventParticipants**
|
|
@@ -134,10 +136,9 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
136
|
|
|
135
137
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
136
138
|
|
|
137
|
-
# **
|
|
138
|
-
>
|
|
139
|
+
# **getDraftEventsByClub**
|
|
140
|
+
> StaffEventsPageResponse getDraftEventsByClub()
|
|
139
141
|
|
|
140
|
-
Get a specific event by ID (staff)
|
|
141
142
|
|
|
142
143
|
### Example
|
|
143
144
|
|
|
@@ -150,23 +151,16 @@ import {
|
|
|
150
151
|
const configuration = new Configuration();
|
|
151
152
|
const apiInstance = new EventsStaffApi(configuration);
|
|
152
153
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
156
|
-
eventId
|
|
157
|
-
);
|
|
154
|
+
const { status, data } = await apiInstance.getDraftEventsByClub();
|
|
158
155
|
```
|
|
159
156
|
|
|
160
157
|
### Parameters
|
|
161
|
-
|
|
162
|
-
|Name | Type | Description | Notes|
|
|
163
|
-
|------------- | ------------- | ------------- | -------------|
|
|
164
|
-
| **eventId** | [**string**] | | defaults to undefined|
|
|
158
|
+
This endpoint does not have any parameters.
|
|
165
159
|
|
|
166
160
|
|
|
167
161
|
### Return type
|
|
168
162
|
|
|
169
|
-
**
|
|
163
|
+
**StaffEventsPageResponse**
|
|
170
164
|
|
|
171
165
|
### Authorization
|
|
172
166
|
|
|
@@ -181,16 +175,17 @@ const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
|
181
175
|
### HTTP response details
|
|
182
176
|
| Status code | Description | Response headers |
|
|
183
177
|
|-------------|-------------|------------------|
|
|
184
|
-
|**200** |
|
|
178
|
+
|**200** | Draft events | - |
|
|
185
179
|
|**400** | Bad Request | - |
|
|
186
|
-
|**
|
|
180
|
+
|**401** | Unauthorized | - |
|
|
181
|
+
|**500** | Server Error | - |
|
|
187
182
|
|
|
188
183
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
189
184
|
|
|
190
|
-
# **
|
|
191
|
-
>
|
|
185
|
+
# **getEventByIdForStaff**
|
|
186
|
+
> StaffEventDetailResponse getEventByIdForStaff()
|
|
192
187
|
|
|
193
|
-
|
|
188
|
+
Get a specific event by ID (staff)
|
|
194
189
|
|
|
195
190
|
### Example
|
|
196
191
|
|
|
@@ -203,16 +198,23 @@ import {
|
|
|
203
198
|
const configuration = new Configuration();
|
|
204
199
|
const apiInstance = new EventsStaffApi(configuration);
|
|
205
200
|
|
|
206
|
-
|
|
201
|
+
let eventId: string; // (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
204
|
+
eventId
|
|
205
|
+
);
|
|
207
206
|
```
|
|
208
207
|
|
|
209
208
|
### Parameters
|
|
210
|
-
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
211
213
|
|
|
212
214
|
|
|
213
215
|
### Return type
|
|
214
216
|
|
|
215
|
-
**
|
|
217
|
+
**StaffEventDetailResponse**
|
|
216
218
|
|
|
217
219
|
### Authorization
|
|
218
220
|
|
|
@@ -227,10 +229,9 @@ This endpoint does not have any parameters.
|
|
|
227
229
|
### HTTP response details
|
|
228
230
|
| Status code | Description | Response headers |
|
|
229
231
|
|-------------|-------------|------------------|
|
|
230
|
-
|**200** |
|
|
232
|
+
|**200** | Event details | - |
|
|
231
233
|
|**400** | Bad Request | - |
|
|
232
|
-
|**
|
|
233
|
-
|**500** | Server Error | - |
|
|
234
|
+
|**404** | Not Found | - |
|
|
234
235
|
|
|
235
236
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
236
237
|
|
|
@@ -299,6 +300,99 @@ const { status, data } = await apiInstance.getMonthlyEvents(
|
|
|
299
300
|
|
|
300
301
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
301
302
|
|
|
303
|
+
# **getPastEventsByClub**
|
|
304
|
+
> StaffEventsPageResponse getPastEventsByClub()
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import {
|
|
311
|
+
EventsStaffApi,
|
|
312
|
+
Configuration
|
|
313
|
+
} from '@tennac-booking/sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
317
|
+
|
|
318
|
+
const { status, data } = await apiInstance.getPastEventsByClub();
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
This endpoint does not have any parameters.
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
**StaffEventsPageResponse**
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: Not defined
|
|
336
|
+
- **Accept**: application/json
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### HTTP response details
|
|
340
|
+
| Status code | Description | Response headers |
|
|
341
|
+
|-------------|-------------|------------------|
|
|
342
|
+
|**200** | Past events | - |
|
|
343
|
+
|**400** | Bad Request | - |
|
|
344
|
+
|**401** | Unauthorized | - |
|
|
345
|
+
|**500** | Server Error | - |
|
|
346
|
+
|
|
347
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
348
|
+
|
|
349
|
+
# **getUpcomingEventsByClub**
|
|
350
|
+
> StaffEventsPageResponse getUpcomingEventsByClub()
|
|
351
|
+
|
|
352
|
+
// Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
353
|
+
|
|
354
|
+
### Example
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
import {
|
|
358
|
+
EventsStaffApi,
|
|
359
|
+
Configuration
|
|
360
|
+
} from '@tennac-booking/sdk';
|
|
361
|
+
|
|
362
|
+
const configuration = new Configuration();
|
|
363
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
364
|
+
|
|
365
|
+
const { status, data } = await apiInstance.getUpcomingEventsByClub();
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
This endpoint does not have any parameters.
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Return type
|
|
373
|
+
|
|
374
|
+
**StaffEventsPageResponse**
|
|
375
|
+
|
|
376
|
+
### Authorization
|
|
377
|
+
|
|
378
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
379
|
+
|
|
380
|
+
### HTTP request headers
|
|
381
|
+
|
|
382
|
+
- **Content-Type**: Not defined
|
|
383
|
+
- **Accept**: application/json
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### HTTP response details
|
|
387
|
+
| Status code | Description | Response headers |
|
|
388
|
+
|-------------|-------------|------------------|
|
|
389
|
+
|**200** | Upcoming events | - |
|
|
390
|
+
|**400** | Bad Request | - |
|
|
391
|
+
|**401** | Unauthorized | - |
|
|
392
|
+
|**500** | Server Error | - |
|
|
393
|
+
|
|
394
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
395
|
+
|
|
302
396
|
# **getWeeklyEvents**
|
|
303
397
|
> EventsListResponse getWeeklyEvents()
|
|
304
398
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# StaffEventsPageResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { StaffEventsPageResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: StaffEventsPageResponse = {
|
|
17
|
+
events,
|
|
18
|
+
pagination,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# StaffEventsPaginatedResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**upcoming** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
-
**past** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
10
|
-
**upcomingPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
11
|
-
**pastPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { StaffEventsPaginatedResponse } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: StaffEventsPaginatedResponse = {
|
|
19
|
-
upcoming,
|
|
20
|
-
past,
|
|
21
|
-
upcomingPagination,
|
|
22
|
-
pastPagination,
|
|
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)
|