@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/README.md
CHANGED
|
@@ -199,9 +199,11 @@ Class | Method | HTTP request | Description
|
|
|
199
199
|
*EventsManagerApi* | [**updateRecurringDefinition**](docs/EventsManagerApi.md#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} |
|
|
200
200
|
*EventsStaffApi* | [**checkInEventParticipants**](docs/EventsStaffApi.md#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in |
|
|
201
201
|
*EventsStaffApi* | [**getDailyEvents**](docs/EventsStaffApi.md#getdailyevents) | **GET** /api/events/calendar/daily |
|
|
202
|
+
*EventsStaffApi* | [**getDraftEventsByClub**](docs/EventsStaffApi.md#getdrafteventsbyclub) | **GET** /api/events/staff/getEvents/drafts |
|
|
202
203
|
*EventsStaffApi* | [**getEventByIdForStaff**](docs/EventsStaffApi.md#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} |
|
|
203
|
-
*EventsStaffApi* | [**getEventsByClub**](docs/EventsStaffApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents |
|
|
204
204
|
*EventsStaffApi* | [**getMonthlyEvents**](docs/EventsStaffApi.md#getmonthlyevents) | **GET** /api/events/calendar/monthly |
|
|
205
|
+
*EventsStaffApi* | [**getPastEventsByClub**](docs/EventsStaffApi.md#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past |
|
|
206
|
+
*EventsStaffApi* | [**getUpcomingEventsByClub**](docs/EventsStaffApi.md#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming |
|
|
205
207
|
*EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
|
|
206
208
|
*ImagesApi* | [**cleanupImages**](docs/ImagesApi.md#cleanupimages) | **POST** /api/images/cleanup |
|
|
207
209
|
*PublicEmailApi* | [**authEmailExists**](docs/PublicEmailApi.md#authemailexists) | **POST** /api/public-email/auth-email-exists |
|
|
@@ -586,7 +588,7 @@ Class | Method | HTTP request | Description
|
|
|
586
588
|
- [StaffEventBookingInvoiceResponse](docs/StaffEventBookingInvoiceResponse.md)
|
|
587
589
|
- [StaffEventBookingResponse](docs/StaffEventBookingResponse.md)
|
|
588
590
|
- [StaffEventDetailResponse](docs/StaffEventDetailResponse.md)
|
|
589
|
-
- [
|
|
591
|
+
- [StaffEventsPageResponse](docs/StaffEventsPageResponse.md)
|
|
590
592
|
- [StaffUserProfileResponse](docs/StaffUserProfileResponse.md)
|
|
591
593
|
- [SubscribeRequestBody](docs/SubscribeRequestBody.md)
|
|
592
594
|
- [SubscriberPrice](docs/SubscriberPrice.md)
|
package/api.ts
CHANGED
|
@@ -11169,33 +11169,21 @@ export interface StaffEventDetailResponse {
|
|
|
11169
11169
|
/**
|
|
11170
11170
|
*
|
|
11171
11171
|
* @export
|
|
11172
|
-
* @interface
|
|
11172
|
+
* @interface StaffEventsPageResponse
|
|
11173
11173
|
*/
|
|
11174
|
-
export interface
|
|
11174
|
+
export interface StaffEventsPageResponse {
|
|
11175
11175
|
/**
|
|
11176
11176
|
*
|
|
11177
11177
|
* @type {Array<EventResponse>}
|
|
11178
|
-
* @memberof
|
|
11178
|
+
* @memberof StaffEventsPageResponse
|
|
11179
11179
|
*/
|
|
11180
|
-
'
|
|
11181
|
-
/**
|
|
11182
|
-
*
|
|
11183
|
-
* @type {Array<EventResponse>}
|
|
11184
|
-
* @memberof StaffEventsPaginatedResponse
|
|
11185
|
-
*/
|
|
11186
|
-
'past': Array<EventResponse>;
|
|
11187
|
-
/**
|
|
11188
|
-
*
|
|
11189
|
-
* @type {PaginationInfo}
|
|
11190
|
-
* @memberof StaffEventsPaginatedResponse
|
|
11191
|
-
*/
|
|
11192
|
-
'upcomingPagination': PaginationInfo;
|
|
11180
|
+
'events': Array<EventResponse>;
|
|
11193
11181
|
/**
|
|
11194
11182
|
*
|
|
11195
11183
|
* @type {PaginationInfo}
|
|
11196
|
-
* @memberof
|
|
11184
|
+
* @memberof StaffEventsPageResponse
|
|
11197
11185
|
*/
|
|
11198
|
-
'
|
|
11186
|
+
'pagination': PaginationInfo;
|
|
11199
11187
|
}
|
|
11200
11188
|
/**
|
|
11201
11189
|
*
|
|
@@ -27192,16 +27180,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
27192
27180
|
};
|
|
27193
27181
|
},
|
|
27194
27182
|
/**
|
|
27195
|
-
*
|
|
27196
|
-
* @param {string} eventId
|
|
27183
|
+
*
|
|
27197
27184
|
* @param {*} [options] Override http request option.
|
|
27198
27185
|
* @throws {RequiredError}
|
|
27199
27186
|
*/
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
assertParamExists('getEventByIdForStaff', 'eventId', eventId)
|
|
27203
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
27204
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
27187
|
+
getDraftEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27188
|
+
const localVarPath = `/api/events/staff/getEvents/drafts`;
|
|
27205
27189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27206
27190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27207
27191
|
let baseOptions;
|
|
@@ -27229,12 +27213,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
27229
27213
|
};
|
|
27230
27214
|
},
|
|
27231
27215
|
/**
|
|
27232
|
-
*
|
|
27216
|
+
* Get a specific event by ID (staff)
|
|
27217
|
+
* @param {string} eventId
|
|
27233
27218
|
* @param {*} [options] Override http request option.
|
|
27234
27219
|
* @throws {RequiredError}
|
|
27235
27220
|
*/
|
|
27236
|
-
|
|
27237
|
-
|
|
27221
|
+
getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27222
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
27223
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId)
|
|
27224
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
27225
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
27238
27226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27239
27227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27240
27228
|
let baseOptions;
|
|
@@ -27310,6 +27298,72 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
27310
27298
|
|
|
27311
27299
|
|
|
27312
27300
|
|
|
27301
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27303
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27304
|
+
|
|
27305
|
+
return {
|
|
27306
|
+
url: toPathString(localVarUrlObj),
|
|
27307
|
+
options: localVarRequestOptions,
|
|
27308
|
+
};
|
|
27309
|
+
},
|
|
27310
|
+
/**
|
|
27311
|
+
*
|
|
27312
|
+
* @param {*} [options] Override http request option.
|
|
27313
|
+
* @throws {RequiredError}
|
|
27314
|
+
*/
|
|
27315
|
+
getPastEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27316
|
+
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
27317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27319
|
+
let baseOptions;
|
|
27320
|
+
if (configuration) {
|
|
27321
|
+
baseOptions = configuration.baseOptions;
|
|
27322
|
+
}
|
|
27323
|
+
|
|
27324
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27325
|
+
const localVarHeaderParameter = {} as any;
|
|
27326
|
+
const localVarQueryParameter = {} as any;
|
|
27327
|
+
|
|
27328
|
+
// authentication bearerAuth required
|
|
27329
|
+
// http bearer authentication required
|
|
27330
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27331
|
+
|
|
27332
|
+
|
|
27333
|
+
|
|
27334
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27335
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27336
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27337
|
+
|
|
27338
|
+
return {
|
|
27339
|
+
url: toPathString(localVarUrlObj),
|
|
27340
|
+
options: localVarRequestOptions,
|
|
27341
|
+
};
|
|
27342
|
+
},
|
|
27343
|
+
/**
|
|
27344
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
27345
|
+
* @param {*} [options] Override http request option.
|
|
27346
|
+
* @throws {RequiredError}
|
|
27347
|
+
*/
|
|
27348
|
+
getUpcomingEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27349
|
+
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
27350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27352
|
+
let baseOptions;
|
|
27353
|
+
if (configuration) {
|
|
27354
|
+
baseOptions = configuration.baseOptions;
|
|
27355
|
+
}
|
|
27356
|
+
|
|
27357
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27358
|
+
const localVarHeaderParameter = {} as any;
|
|
27359
|
+
const localVarQueryParameter = {} as any;
|
|
27360
|
+
|
|
27361
|
+
// authentication bearerAuth required
|
|
27362
|
+
// http bearer authentication required
|
|
27363
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27364
|
+
|
|
27365
|
+
|
|
27366
|
+
|
|
27313
27367
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27314
27368
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27315
27369
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -27417,26 +27471,26 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
27417
27471
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27418
27472
|
},
|
|
27419
27473
|
/**
|
|
27420
|
-
*
|
|
27421
|
-
* @param {string} eventId
|
|
27474
|
+
*
|
|
27422
27475
|
* @param {*} [options] Override http request option.
|
|
27423
27476
|
* @throws {RequiredError}
|
|
27424
27477
|
*/
|
|
27425
|
-
async
|
|
27426
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
27478
|
+
async getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
|
|
27479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDraftEventsByClub(options);
|
|
27427
27480
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27428
|
-
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.
|
|
27481
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDraftEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
27429
27482
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27430
27483
|
},
|
|
27431
27484
|
/**
|
|
27432
|
-
*
|
|
27485
|
+
* Get a specific event by ID (staff)
|
|
27486
|
+
* @param {string} eventId
|
|
27433
27487
|
* @param {*} [options] Override http request option.
|
|
27434
27488
|
* @throws {RequiredError}
|
|
27435
27489
|
*/
|
|
27436
|
-
async
|
|
27437
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
27490
|
+
async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
|
|
27491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
27438
27492
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27439
|
-
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.
|
|
27493
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
|
|
27440
27494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27441
27495
|
},
|
|
27442
27496
|
/**
|
|
@@ -27455,6 +27509,28 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
27455
27509
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
|
|
27456
27510
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27457
27511
|
},
|
|
27512
|
+
/**
|
|
27513
|
+
*
|
|
27514
|
+
* @param {*} [options] Override http request option.
|
|
27515
|
+
* @throws {RequiredError}
|
|
27516
|
+
*/
|
|
27517
|
+
async getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
|
|
27518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
27519
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27520
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getPastEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
27521
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27522
|
+
},
|
|
27523
|
+
/**
|
|
27524
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
27525
|
+
* @param {*} [options] Override http request option.
|
|
27526
|
+
* @throws {RequiredError}
|
|
27527
|
+
*/
|
|
27528
|
+
async getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
|
|
27529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
27530
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27531
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
27532
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27533
|
+
},
|
|
27458
27534
|
/**
|
|
27459
27535
|
* Get events for the week view (30 day sliding window)
|
|
27460
27536
|
* @param {string} [clubId]
|
|
@@ -27500,21 +27576,21 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
27500
27576
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
27501
27577
|
},
|
|
27502
27578
|
/**
|
|
27503
|
-
*
|
|
27504
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
27579
|
+
*
|
|
27505
27580
|
* @param {*} [options] Override http request option.
|
|
27506
27581
|
* @throws {RequiredError}
|
|
27507
27582
|
*/
|
|
27508
|
-
|
|
27509
|
-
return localVarFp.
|
|
27583
|
+
getDraftEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
|
|
27584
|
+
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
27510
27585
|
},
|
|
27511
27586
|
/**
|
|
27512
|
-
*
|
|
27587
|
+
* Get a specific event by ID (staff)
|
|
27588
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
27513
27589
|
* @param {*} [options] Override http request option.
|
|
27514
27590
|
* @throws {RequiredError}
|
|
27515
27591
|
*/
|
|
27516
|
-
|
|
27517
|
-
return localVarFp.
|
|
27592
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
|
|
27593
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
27518
27594
|
},
|
|
27519
27595
|
/**
|
|
27520
27596
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -27525,6 +27601,22 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
27525
27601
|
getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
27526
27602
|
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
27527
27603
|
},
|
|
27604
|
+
/**
|
|
27605
|
+
*
|
|
27606
|
+
* @param {*} [options] Override http request option.
|
|
27607
|
+
* @throws {RequiredError}
|
|
27608
|
+
*/
|
|
27609
|
+
getPastEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
|
|
27610
|
+
return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
|
|
27611
|
+
},
|
|
27612
|
+
/**
|
|
27613
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
27614
|
+
* @param {*} [options] Override http request option.
|
|
27615
|
+
* @throws {RequiredError}
|
|
27616
|
+
*/
|
|
27617
|
+
getUpcomingEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
|
|
27618
|
+
return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
|
|
27619
|
+
},
|
|
27528
27620
|
/**
|
|
27529
27621
|
* Get events for the week view (30 day sliding window)
|
|
27530
27622
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -27728,24 +27820,24 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
27728
27820
|
}
|
|
27729
27821
|
|
|
27730
27822
|
/**
|
|
27731
|
-
*
|
|
27732
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
27823
|
+
*
|
|
27733
27824
|
* @param {*} [options] Override http request option.
|
|
27734
27825
|
* @throws {RequiredError}
|
|
27735
27826
|
* @memberof EventsStaffApi
|
|
27736
27827
|
*/
|
|
27737
|
-
public
|
|
27738
|
-
return EventsStaffApiFp(this.configuration).
|
|
27828
|
+
public getDraftEventsByClub(options?: RawAxiosRequestConfig) {
|
|
27829
|
+
return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
27739
27830
|
}
|
|
27740
27831
|
|
|
27741
27832
|
/**
|
|
27742
|
-
*
|
|
27833
|
+
* Get a specific event by ID (staff)
|
|
27834
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
27743
27835
|
* @param {*} [options] Override http request option.
|
|
27744
27836
|
* @throws {RequiredError}
|
|
27745
27837
|
* @memberof EventsStaffApi
|
|
27746
27838
|
*/
|
|
27747
|
-
public
|
|
27748
|
-
return EventsStaffApiFp(this.configuration).
|
|
27839
|
+
public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
|
|
27840
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
27749
27841
|
}
|
|
27750
27842
|
|
|
27751
27843
|
/**
|
|
@@ -27759,6 +27851,26 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
27759
27851
|
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
27760
27852
|
}
|
|
27761
27853
|
|
|
27854
|
+
/**
|
|
27855
|
+
*
|
|
27856
|
+
* @param {*} [options] Override http request option.
|
|
27857
|
+
* @throws {RequiredError}
|
|
27858
|
+
* @memberof EventsStaffApi
|
|
27859
|
+
*/
|
|
27860
|
+
public getPastEventsByClub(options?: RawAxiosRequestConfig) {
|
|
27861
|
+
return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
27862
|
+
}
|
|
27863
|
+
|
|
27864
|
+
/**
|
|
27865
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
27866
|
+
* @param {*} [options] Override http request option.
|
|
27867
|
+
* @throws {RequiredError}
|
|
27868
|
+
* @memberof EventsStaffApi
|
|
27869
|
+
*/
|
|
27870
|
+
public getUpcomingEventsByClub(options?: RawAxiosRequestConfig) {
|
|
27871
|
+
return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
27872
|
+
}
|
|
27873
|
+
|
|
27762
27874
|
/**
|
|
27763
27875
|
* Get events for the week view (30 day sliding window)
|
|
27764
27876
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
package/dist/api.d.ts
CHANGED
|
@@ -10976,33 +10976,21 @@ export interface StaffEventDetailResponse {
|
|
|
10976
10976
|
/**
|
|
10977
10977
|
*
|
|
10978
10978
|
* @export
|
|
10979
|
-
* @interface
|
|
10979
|
+
* @interface StaffEventsPageResponse
|
|
10980
10980
|
*/
|
|
10981
|
-
export interface
|
|
10981
|
+
export interface StaffEventsPageResponse {
|
|
10982
10982
|
/**
|
|
10983
10983
|
*
|
|
10984
10984
|
* @type {Array<EventResponse>}
|
|
10985
|
-
* @memberof
|
|
10985
|
+
* @memberof StaffEventsPageResponse
|
|
10986
10986
|
*/
|
|
10987
|
-
'
|
|
10988
|
-
/**
|
|
10989
|
-
*
|
|
10990
|
-
* @type {Array<EventResponse>}
|
|
10991
|
-
* @memberof StaffEventsPaginatedResponse
|
|
10992
|
-
*/
|
|
10993
|
-
'past': Array<EventResponse>;
|
|
10994
|
-
/**
|
|
10995
|
-
*
|
|
10996
|
-
* @type {PaginationInfo}
|
|
10997
|
-
* @memberof StaffEventsPaginatedResponse
|
|
10998
|
-
*/
|
|
10999
|
-
'upcomingPagination': PaginationInfo;
|
|
10987
|
+
'events': Array<EventResponse>;
|
|
11000
10988
|
/**
|
|
11001
10989
|
*
|
|
11002
10990
|
* @type {PaginationInfo}
|
|
11003
|
-
* @memberof
|
|
10991
|
+
* @memberof StaffEventsPageResponse
|
|
11004
10992
|
*/
|
|
11005
|
-
'
|
|
10993
|
+
'pagination': PaginationInfo;
|
|
11006
10994
|
}
|
|
11007
10995
|
/**
|
|
11008
10996
|
*
|
|
@@ -20420,18 +20408,18 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
20420
20408
|
*/
|
|
20421
20409
|
getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20422
20410
|
/**
|
|
20423
|
-
*
|
|
20424
|
-
* @param {string} eventId
|
|
20411
|
+
*
|
|
20425
20412
|
* @param {*} [options] Override http request option.
|
|
20426
20413
|
* @throws {RequiredError}
|
|
20427
20414
|
*/
|
|
20428
|
-
|
|
20415
|
+
getDraftEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20429
20416
|
/**
|
|
20430
|
-
*
|
|
20417
|
+
* Get a specific event by ID (staff)
|
|
20418
|
+
* @param {string} eventId
|
|
20431
20419
|
* @param {*} [options] Override http request option.
|
|
20432
20420
|
* @throws {RequiredError}
|
|
20433
20421
|
*/
|
|
20434
|
-
|
|
20422
|
+
getEventByIdForStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20435
20423
|
/**
|
|
20436
20424
|
* Get events for the entire month view (including recurring occurrences)
|
|
20437
20425
|
* @param {string} [clubId]
|
|
@@ -20443,6 +20431,18 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
20443
20431
|
* @throws {RequiredError}
|
|
20444
20432
|
*/
|
|
20445
20433
|
getMonthlyEvents: (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20434
|
+
/**
|
|
20435
|
+
*
|
|
20436
|
+
* @param {*} [options] Override http request option.
|
|
20437
|
+
* @throws {RequiredError}
|
|
20438
|
+
*/
|
|
20439
|
+
getPastEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20440
|
+
/**
|
|
20441
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
20442
|
+
* @param {*} [options] Override http request option.
|
|
20443
|
+
* @throws {RequiredError}
|
|
20444
|
+
*/
|
|
20445
|
+
getUpcomingEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20446
20446
|
/**
|
|
20447
20447
|
* Get events for the week view (30 day sliding window)
|
|
20448
20448
|
* @param {string} [clubId]
|
|
@@ -20480,18 +20480,18 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
20480
20480
|
*/
|
|
20481
20481
|
getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
20482
20482
|
/**
|
|
20483
|
-
*
|
|
20484
|
-
* @param {string} eventId
|
|
20483
|
+
*
|
|
20485
20484
|
* @param {*} [options] Override http request option.
|
|
20486
20485
|
* @throws {RequiredError}
|
|
20487
20486
|
*/
|
|
20488
|
-
|
|
20487
|
+
getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
|
|
20489
20488
|
/**
|
|
20490
|
-
*
|
|
20489
|
+
* Get a specific event by ID (staff)
|
|
20490
|
+
* @param {string} eventId
|
|
20491
20491
|
* @param {*} [options] Override http request option.
|
|
20492
20492
|
* @throws {RequiredError}
|
|
20493
20493
|
*/
|
|
20494
|
-
|
|
20494
|
+
getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>>;
|
|
20495
20495
|
/**
|
|
20496
20496
|
* Get events for the entire month view (including recurring occurrences)
|
|
20497
20497
|
* @param {string} [clubId]
|
|
@@ -20503,6 +20503,18 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
20503
20503
|
* @throws {RequiredError}
|
|
20504
20504
|
*/
|
|
20505
20505
|
getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
20506
|
+
/**
|
|
20507
|
+
*
|
|
20508
|
+
* @param {*} [options] Override http request option.
|
|
20509
|
+
* @throws {RequiredError}
|
|
20510
|
+
*/
|
|
20511
|
+
getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
|
|
20512
|
+
/**
|
|
20513
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
20514
|
+
* @param {*} [options] Override http request option.
|
|
20515
|
+
* @throws {RequiredError}
|
|
20516
|
+
*/
|
|
20517
|
+
getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
|
|
20506
20518
|
/**
|
|
20507
20519
|
* Get events for the week view (30 day sliding window)
|
|
20508
20520
|
* @param {string} [clubId]
|
|
@@ -20535,18 +20547,18 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
20535
20547
|
*/
|
|
20536
20548
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
20537
20549
|
/**
|
|
20538
|
-
*
|
|
20539
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
20550
|
+
*
|
|
20540
20551
|
* @param {*} [options] Override http request option.
|
|
20541
20552
|
* @throws {RequiredError}
|
|
20542
20553
|
*/
|
|
20543
|
-
|
|
20554
|
+
getDraftEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
|
|
20544
20555
|
/**
|
|
20545
|
-
*
|
|
20556
|
+
* Get a specific event by ID (staff)
|
|
20557
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
20546
20558
|
* @param {*} [options] Override http request option.
|
|
20547
20559
|
* @throws {RequiredError}
|
|
20548
20560
|
*/
|
|
20549
|
-
|
|
20561
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse>;
|
|
20550
20562
|
/**
|
|
20551
20563
|
* Get events for the entire month view (including recurring occurrences)
|
|
20552
20564
|
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
@@ -20554,6 +20566,18 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
20554
20566
|
* @throws {RequiredError}
|
|
20555
20567
|
*/
|
|
20556
20568
|
getMonthlyEvents(requestParameters?: EventsStaffApiGetMonthlyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
20569
|
+
/**
|
|
20570
|
+
*
|
|
20571
|
+
* @param {*} [options] Override http request option.
|
|
20572
|
+
* @throws {RequiredError}
|
|
20573
|
+
*/
|
|
20574
|
+
getPastEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
|
|
20575
|
+
/**
|
|
20576
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
20577
|
+
* @param {*} [options] Override http request option.
|
|
20578
|
+
* @throws {RequiredError}
|
|
20579
|
+
*/
|
|
20580
|
+
getUpcomingEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
|
|
20557
20581
|
/**
|
|
20558
20582
|
* Get events for the week view (30 day sliding window)
|
|
20559
20583
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -20729,20 +20753,20 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
20729
20753
|
*/
|
|
20730
20754
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
20731
20755
|
/**
|
|
20732
|
-
*
|
|
20733
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
20756
|
+
*
|
|
20734
20757
|
* @param {*} [options] Override http request option.
|
|
20735
20758
|
* @throws {RequiredError}
|
|
20736
20759
|
* @memberof EventsStaffApi
|
|
20737
20760
|
*/
|
|
20738
|
-
|
|
20761
|
+
getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
|
|
20739
20762
|
/**
|
|
20740
|
-
*
|
|
20763
|
+
* Get a specific event by ID (staff)
|
|
20764
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
20741
20765
|
* @param {*} [options] Override http request option.
|
|
20742
20766
|
* @throws {RequiredError}
|
|
20743
20767
|
* @memberof EventsStaffApi
|
|
20744
20768
|
*/
|
|
20745
|
-
|
|
20769
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventDetailResponse, any, {}>>;
|
|
20746
20770
|
/**
|
|
20747
20771
|
* Get events for the entire month view (including recurring occurrences)
|
|
20748
20772
|
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
@@ -20751,6 +20775,20 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
20751
20775
|
* @memberof EventsStaffApi
|
|
20752
20776
|
*/
|
|
20753
20777
|
getMonthlyEvents(requestParameters?: EventsStaffApiGetMonthlyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
20778
|
+
/**
|
|
20779
|
+
*
|
|
20780
|
+
* @param {*} [options] Override http request option.
|
|
20781
|
+
* @throws {RequiredError}
|
|
20782
|
+
* @memberof EventsStaffApi
|
|
20783
|
+
*/
|
|
20784
|
+
getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
|
|
20785
|
+
/**
|
|
20786
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
20787
|
+
* @param {*} [options] Override http request option.
|
|
20788
|
+
* @throws {RequiredError}
|
|
20789
|
+
* @memberof EventsStaffApi
|
|
20790
|
+
*/
|
|
20791
|
+
getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
|
|
20754
20792
|
/**
|
|
20755
20793
|
* Get events for the week view (30 day sliding window)
|
|
20756
20794
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|