@tennac-booking/sdk 1.0.172 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +6 -2
- package/api.ts +237 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +190 -7
- package/dist/api.js +66 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +190 -7
- package/dist/esm/api.js +66 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CompleteRegisterRequestBody.md +4 -4
- package/docs/EventsStaffApi.md +54 -0
- package/docs/StaffEventBookingInvoiceResponse.md +32 -0
- package/docs/StaffEventBookingResponse.md +40 -0
- package/docs/StaffEventDetailResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -324,6 +324,9 @@ docs/StaffBookingSportSummary.md
|
|
|
324
324
|
docs/StaffBookingUserSummary.md
|
|
325
325
|
docs/StaffBookingsPaginatedResponse.md
|
|
326
326
|
docs/StaffCreateBookingRequest.md
|
|
327
|
+
docs/StaffEventBookingInvoiceResponse.md
|
|
328
|
+
docs/StaffEventBookingResponse.md
|
|
329
|
+
docs/StaffEventDetailResponse.md
|
|
327
330
|
docs/StaffEventsPaginatedResponse.md
|
|
328
331
|
docs/StaffUserProfileResponse.md
|
|
329
332
|
docs/SubscribeRequestBody.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.172
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.172 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -196,6 +196,7 @@ Class | Method | HTTP request | Description
|
|
|
196
196
|
*EventsManagerApi* | [**updateRecurringDefinition**](docs/EventsManagerApi.md#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} |
|
|
197
197
|
*EventsStaffApi* | [**checkInEventParticipants**](docs/EventsStaffApi.md#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in |
|
|
198
198
|
*EventsStaffApi* | [**getDailyEvents**](docs/EventsStaffApi.md#getdailyevents) | **GET** /api/events/calendar/daily |
|
|
199
|
+
*EventsStaffApi* | [**getEventByIdForStaff**](docs/EventsStaffApi.md#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} |
|
|
199
200
|
*EventsStaffApi* | [**getEventsByClub**](docs/EventsStaffApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents |
|
|
200
201
|
*EventsStaffApi* | [**getMonthlyEvents**](docs/EventsStaffApi.md#getmonthlyevents) | **GET** /api/events/calendar/monthly |
|
|
201
202
|
*EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
|
|
@@ -559,6 +560,9 @@ Class | Method | HTTP request | Description
|
|
|
559
560
|
- [StaffBookingUserSummary](docs/StaffBookingUserSummary.md)
|
|
560
561
|
- [StaffBookingsPaginatedResponse](docs/StaffBookingsPaginatedResponse.md)
|
|
561
562
|
- [StaffCreateBookingRequest](docs/StaffCreateBookingRequest.md)
|
|
563
|
+
- [StaffEventBookingInvoiceResponse](docs/StaffEventBookingInvoiceResponse.md)
|
|
564
|
+
- [StaffEventBookingResponse](docs/StaffEventBookingResponse.md)
|
|
565
|
+
- [StaffEventDetailResponse](docs/StaffEventDetailResponse.md)
|
|
562
566
|
- [StaffEventsPaginatedResponse](docs/StaffEventsPaginatedResponse.md)
|
|
563
567
|
- [StaffUserProfileResponse](docs/StaffUserProfileResponse.md)
|
|
564
568
|
- [SubscribeRequestBody](docs/SubscribeRequestBody.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.172
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3688,22 +3688,22 @@ export interface CompleteRegisterRequestBody {
|
|
|
3688
3688
|
'lastName': string;
|
|
3689
3689
|
/**
|
|
3690
3690
|
*
|
|
3691
|
-
* @type {
|
|
3691
|
+
* @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
|
|
3692
3692
|
* @memberof CompleteRegisterRequestBody
|
|
3693
3693
|
*/
|
|
3694
|
-
'
|
|
3694
|
+
'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
|
|
3695
3695
|
/**
|
|
3696
3696
|
*
|
|
3697
|
-
* @type {
|
|
3697
|
+
* @type {Gender}
|
|
3698
3698
|
* @memberof CompleteRegisterRequestBody
|
|
3699
3699
|
*/
|
|
3700
|
-
'
|
|
3700
|
+
'gender'?: Gender;
|
|
3701
3701
|
/**
|
|
3702
3702
|
*
|
|
3703
|
-
* @type {
|
|
3703
|
+
* @type {RegisterRequestBodyLocation}
|
|
3704
3704
|
* @memberof CompleteRegisterRequestBody
|
|
3705
3705
|
*/
|
|
3706
|
-
'
|
|
3706
|
+
'location'?: RegisterRequestBodyLocation;
|
|
3707
3707
|
/**
|
|
3708
3708
|
*
|
|
3709
3709
|
* @type {string}
|
|
@@ -3717,6 +3717,8 @@ export interface CompleteRegisterRequestBody {
|
|
|
3717
3717
|
*/
|
|
3718
3718
|
'organizationEmail'?: string;
|
|
3719
3719
|
}
|
|
3720
|
+
|
|
3721
|
+
|
|
3720
3722
|
/**
|
|
3721
3723
|
*
|
|
3722
3724
|
* @export
|
|
@@ -10564,6 +10566,151 @@ export interface StaffCreateBookingRequest {
|
|
|
10564
10566
|
}
|
|
10565
10567
|
|
|
10566
10568
|
|
|
10569
|
+
/**
|
|
10570
|
+
*
|
|
10571
|
+
* @export
|
|
10572
|
+
* @interface StaffEventBookingInvoiceResponse
|
|
10573
|
+
*/
|
|
10574
|
+
export interface StaffEventBookingInvoiceResponse {
|
|
10575
|
+
/**
|
|
10576
|
+
*
|
|
10577
|
+
* @type {string}
|
|
10578
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10579
|
+
*/
|
|
10580
|
+
'id': string;
|
|
10581
|
+
/**
|
|
10582
|
+
*
|
|
10583
|
+
* @type {string}
|
|
10584
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10585
|
+
*/
|
|
10586
|
+
'userId': string;
|
|
10587
|
+
/**
|
|
10588
|
+
*
|
|
10589
|
+
* @type {InvoiceStatus}
|
|
10590
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10591
|
+
*/
|
|
10592
|
+
'status': InvoiceStatus;
|
|
10593
|
+
/**
|
|
10594
|
+
*
|
|
10595
|
+
* @type {number}
|
|
10596
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10597
|
+
*/
|
|
10598
|
+
'amount': number;
|
|
10599
|
+
/**
|
|
10600
|
+
*
|
|
10601
|
+
* @type {PaymentMethod}
|
|
10602
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10603
|
+
*/
|
|
10604
|
+
'paymentMethod': PaymentMethod;
|
|
10605
|
+
/**
|
|
10606
|
+
*
|
|
10607
|
+
* @type {string}
|
|
10608
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10609
|
+
*/
|
|
10610
|
+
'createdAt': string;
|
|
10611
|
+
/**
|
|
10612
|
+
*
|
|
10613
|
+
* @type {string}
|
|
10614
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10615
|
+
*/
|
|
10616
|
+
'updatedAt': string;
|
|
10617
|
+
}
|
|
10618
|
+
|
|
10619
|
+
|
|
10620
|
+
/**
|
|
10621
|
+
*
|
|
10622
|
+
* @export
|
|
10623
|
+
* @interface StaffEventBookingResponse
|
|
10624
|
+
*/
|
|
10625
|
+
export interface StaffEventBookingResponse {
|
|
10626
|
+
/**
|
|
10627
|
+
*
|
|
10628
|
+
* @type {string}
|
|
10629
|
+
* @memberof StaffEventBookingResponse
|
|
10630
|
+
*/
|
|
10631
|
+
'id': string;
|
|
10632
|
+
/**
|
|
10633
|
+
*
|
|
10634
|
+
* @type {string}
|
|
10635
|
+
* @memberof StaffEventBookingResponse
|
|
10636
|
+
*/
|
|
10637
|
+
'eventId': string;
|
|
10638
|
+
/**
|
|
10639
|
+
*
|
|
10640
|
+
* @type {EventBookingStatus}
|
|
10641
|
+
* @memberof StaffEventBookingResponse
|
|
10642
|
+
*/
|
|
10643
|
+
'status': EventBookingStatus;
|
|
10644
|
+
/**
|
|
10645
|
+
*
|
|
10646
|
+
* @type {boolean}
|
|
10647
|
+
* @memberof StaffEventBookingResponse
|
|
10648
|
+
*/
|
|
10649
|
+
'isOpen': boolean;
|
|
10650
|
+
/**
|
|
10651
|
+
*
|
|
10652
|
+
* @type {string}
|
|
10653
|
+
* @memberof StaffEventBookingResponse
|
|
10654
|
+
*/
|
|
10655
|
+
'teamName'?: string | null;
|
|
10656
|
+
/**
|
|
10657
|
+
*
|
|
10658
|
+
* @type {Array<EventUser>}
|
|
10659
|
+
* @memberof StaffEventBookingResponse
|
|
10660
|
+
*/
|
|
10661
|
+
'players': Array<EventUser>;
|
|
10662
|
+
/**
|
|
10663
|
+
*
|
|
10664
|
+
* @type {Array<StaffEventBookingInvoiceResponse>}
|
|
10665
|
+
* @memberof StaffEventBookingResponse
|
|
10666
|
+
*/
|
|
10667
|
+
'invoices': Array<StaffEventBookingInvoiceResponse>;
|
|
10668
|
+
/**
|
|
10669
|
+
*
|
|
10670
|
+
* @type {string}
|
|
10671
|
+
* @memberof StaffEventBookingResponse
|
|
10672
|
+
*/
|
|
10673
|
+
'limitSetupDate'?: string | null;
|
|
10674
|
+
/**
|
|
10675
|
+
*
|
|
10676
|
+
* @type {string}
|
|
10677
|
+
* @memberof StaffEventBookingResponse
|
|
10678
|
+
*/
|
|
10679
|
+
'limitCancellationDate'?: string | null;
|
|
10680
|
+
/**
|
|
10681
|
+
*
|
|
10682
|
+
* @type {string}
|
|
10683
|
+
* @memberof StaffEventBookingResponse
|
|
10684
|
+
*/
|
|
10685
|
+
'createdAt': string;
|
|
10686
|
+
/**
|
|
10687
|
+
*
|
|
10688
|
+
* @type {string}
|
|
10689
|
+
* @memberof StaffEventBookingResponse
|
|
10690
|
+
*/
|
|
10691
|
+
'updatedAt': string;
|
|
10692
|
+
}
|
|
10693
|
+
|
|
10694
|
+
|
|
10695
|
+
/**
|
|
10696
|
+
*
|
|
10697
|
+
* @export
|
|
10698
|
+
* @interface StaffEventDetailResponse
|
|
10699
|
+
*/
|
|
10700
|
+
export interface StaffEventDetailResponse {
|
|
10701
|
+
/**
|
|
10702
|
+
*
|
|
10703
|
+
* @type {EventResponse}
|
|
10704
|
+
* @memberof StaffEventDetailResponse
|
|
10705
|
+
*/
|
|
10706
|
+
'event': EventResponse;
|
|
10707
|
+
/**
|
|
10708
|
+
*
|
|
10709
|
+
* @type {Array<StaffEventBookingResponse>}
|
|
10710
|
+
* @memberof StaffEventDetailResponse
|
|
10711
|
+
*/
|
|
10712
|
+
'bookings': Array<StaffEventBookingResponse>;
|
|
10713
|
+
}
|
|
10567
10714
|
/**
|
|
10568
10715
|
*
|
|
10569
10716
|
* @export
|
|
@@ -26157,6 +26304,43 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26157
26304
|
|
|
26158
26305
|
|
|
26159
26306
|
|
|
26307
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26309
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26310
|
+
|
|
26311
|
+
return {
|
|
26312
|
+
url: toPathString(localVarUrlObj),
|
|
26313
|
+
options: localVarRequestOptions,
|
|
26314
|
+
};
|
|
26315
|
+
},
|
|
26316
|
+
/**
|
|
26317
|
+
* Get a specific event by ID (staff)
|
|
26318
|
+
* @param {string} eventId
|
|
26319
|
+
* @param {*} [options] Override http request option.
|
|
26320
|
+
* @throws {RequiredError}
|
|
26321
|
+
*/
|
|
26322
|
+
getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26323
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
26324
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId)
|
|
26325
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
26326
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
26327
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26328
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26329
|
+
let baseOptions;
|
|
26330
|
+
if (configuration) {
|
|
26331
|
+
baseOptions = configuration.baseOptions;
|
|
26332
|
+
}
|
|
26333
|
+
|
|
26334
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26335
|
+
const localVarHeaderParameter = {} as any;
|
|
26336
|
+
const localVarQueryParameter = {} as any;
|
|
26337
|
+
|
|
26338
|
+
// authentication bearerAuth required
|
|
26339
|
+
// http bearer authentication required
|
|
26340
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26341
|
+
|
|
26342
|
+
|
|
26343
|
+
|
|
26160
26344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26161
26345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26162
26346
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26354,6 +26538,18 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
26354
26538
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
|
|
26355
26539
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26356
26540
|
},
|
|
26541
|
+
/**
|
|
26542
|
+
* Get a specific event by ID (staff)
|
|
26543
|
+
* @param {string} eventId
|
|
26544
|
+
* @param {*} [options] Override http request option.
|
|
26545
|
+
* @throws {RequiredError}
|
|
26546
|
+
*/
|
|
26547
|
+
async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
|
|
26548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
26549
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26550
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
|
|
26551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26552
|
+
},
|
|
26357
26553
|
/**
|
|
26358
26554
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26359
26555
|
* @param {*} [options] Override http request option.
|
|
@@ -26425,6 +26621,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
26425
26621
|
getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
26426
26622
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
26427
26623
|
},
|
|
26624
|
+
/**
|
|
26625
|
+
* Get a specific event by ID (staff)
|
|
26626
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
26627
|
+
* @param {*} [options] Override http request option.
|
|
26628
|
+
* @throws {RequiredError}
|
|
26629
|
+
*/
|
|
26630
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
|
|
26631
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
26632
|
+
},
|
|
26428
26633
|
/**
|
|
26429
26634
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26430
26635
|
* @param {*} [options] Override http request option.
|
|
@@ -26517,6 +26722,20 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
26517
26722
|
readonly sportId?: string
|
|
26518
26723
|
}
|
|
26519
26724
|
|
|
26725
|
+
/**
|
|
26726
|
+
* Request parameters for getEventByIdForStaff operation in EventsStaffApi.
|
|
26727
|
+
* @export
|
|
26728
|
+
* @interface EventsStaffApiGetEventByIdForStaffRequest
|
|
26729
|
+
*/
|
|
26730
|
+
export interface EventsStaffApiGetEventByIdForStaffRequest {
|
|
26731
|
+
/**
|
|
26732
|
+
*
|
|
26733
|
+
* @type {string}
|
|
26734
|
+
* @memberof EventsStaffApiGetEventByIdForStaff
|
|
26735
|
+
*/
|
|
26736
|
+
readonly eventId: string
|
|
26737
|
+
}
|
|
26738
|
+
|
|
26520
26739
|
/**
|
|
26521
26740
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
26522
26741
|
* @export
|
|
@@ -26630,6 +26849,17 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
26630
26849
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
26631
26850
|
}
|
|
26632
26851
|
|
|
26852
|
+
/**
|
|
26853
|
+
* Get a specific event by ID (staff)
|
|
26854
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
26855
|
+
* @param {*} [options] Override http request option.
|
|
26856
|
+
* @throws {RequiredError}
|
|
26857
|
+
* @memberof EventsStaffApi
|
|
26858
|
+
*/
|
|
26859
|
+
public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
|
|
26860
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
26861
|
+
}
|
|
26862
|
+
|
|
26633
26863
|
/**
|
|
26634
26864
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26635
26865
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.172
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3637,22 +3637,22 @@ export interface CompleteRegisterRequestBody {
|
|
|
3637
3637
|
'lastName': string;
|
|
3638
3638
|
/**
|
|
3639
3639
|
*
|
|
3640
|
-
* @type {
|
|
3640
|
+
* @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
|
|
3641
3641
|
* @memberof CompleteRegisterRequestBody
|
|
3642
3642
|
*/
|
|
3643
|
-
'
|
|
3643
|
+
'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
|
|
3644
3644
|
/**
|
|
3645
3645
|
*
|
|
3646
|
-
* @type {
|
|
3646
|
+
* @type {Gender}
|
|
3647
3647
|
* @memberof CompleteRegisterRequestBody
|
|
3648
3648
|
*/
|
|
3649
|
-
'
|
|
3649
|
+
'gender'?: Gender;
|
|
3650
3650
|
/**
|
|
3651
3651
|
*
|
|
3652
|
-
* @type {
|
|
3652
|
+
* @type {RegisterRequestBodyLocation}
|
|
3653
3653
|
* @memberof CompleteRegisterRequestBody
|
|
3654
3654
|
*/
|
|
3655
|
-
'
|
|
3655
|
+
'location'?: RegisterRequestBodyLocation;
|
|
3656
3656
|
/**
|
|
3657
3657
|
*
|
|
3658
3658
|
* @type {string}
|
|
@@ -10377,6 +10377,147 @@ export interface StaffCreateBookingRequest {
|
|
|
10377
10377
|
*/
|
|
10378
10378
|
'paymentMethod'?: PaymentMethod;
|
|
10379
10379
|
}
|
|
10380
|
+
/**
|
|
10381
|
+
*
|
|
10382
|
+
* @export
|
|
10383
|
+
* @interface StaffEventBookingInvoiceResponse
|
|
10384
|
+
*/
|
|
10385
|
+
export interface StaffEventBookingInvoiceResponse {
|
|
10386
|
+
/**
|
|
10387
|
+
*
|
|
10388
|
+
* @type {string}
|
|
10389
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10390
|
+
*/
|
|
10391
|
+
'id': string;
|
|
10392
|
+
/**
|
|
10393
|
+
*
|
|
10394
|
+
* @type {string}
|
|
10395
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10396
|
+
*/
|
|
10397
|
+
'userId': string;
|
|
10398
|
+
/**
|
|
10399
|
+
*
|
|
10400
|
+
* @type {InvoiceStatus}
|
|
10401
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10402
|
+
*/
|
|
10403
|
+
'status': InvoiceStatus;
|
|
10404
|
+
/**
|
|
10405
|
+
*
|
|
10406
|
+
* @type {number}
|
|
10407
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10408
|
+
*/
|
|
10409
|
+
'amount': number;
|
|
10410
|
+
/**
|
|
10411
|
+
*
|
|
10412
|
+
* @type {PaymentMethod}
|
|
10413
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10414
|
+
*/
|
|
10415
|
+
'paymentMethod': PaymentMethod;
|
|
10416
|
+
/**
|
|
10417
|
+
*
|
|
10418
|
+
* @type {string}
|
|
10419
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10420
|
+
*/
|
|
10421
|
+
'createdAt': string;
|
|
10422
|
+
/**
|
|
10423
|
+
*
|
|
10424
|
+
* @type {string}
|
|
10425
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10426
|
+
*/
|
|
10427
|
+
'updatedAt': string;
|
|
10428
|
+
}
|
|
10429
|
+
/**
|
|
10430
|
+
*
|
|
10431
|
+
* @export
|
|
10432
|
+
* @interface StaffEventBookingResponse
|
|
10433
|
+
*/
|
|
10434
|
+
export interface StaffEventBookingResponse {
|
|
10435
|
+
/**
|
|
10436
|
+
*
|
|
10437
|
+
* @type {string}
|
|
10438
|
+
* @memberof StaffEventBookingResponse
|
|
10439
|
+
*/
|
|
10440
|
+
'id': string;
|
|
10441
|
+
/**
|
|
10442
|
+
*
|
|
10443
|
+
* @type {string}
|
|
10444
|
+
* @memberof StaffEventBookingResponse
|
|
10445
|
+
*/
|
|
10446
|
+
'eventId': string;
|
|
10447
|
+
/**
|
|
10448
|
+
*
|
|
10449
|
+
* @type {EventBookingStatus}
|
|
10450
|
+
* @memberof StaffEventBookingResponse
|
|
10451
|
+
*/
|
|
10452
|
+
'status': EventBookingStatus;
|
|
10453
|
+
/**
|
|
10454
|
+
*
|
|
10455
|
+
* @type {boolean}
|
|
10456
|
+
* @memberof StaffEventBookingResponse
|
|
10457
|
+
*/
|
|
10458
|
+
'isOpen': boolean;
|
|
10459
|
+
/**
|
|
10460
|
+
*
|
|
10461
|
+
* @type {string}
|
|
10462
|
+
* @memberof StaffEventBookingResponse
|
|
10463
|
+
*/
|
|
10464
|
+
'teamName'?: string | null;
|
|
10465
|
+
/**
|
|
10466
|
+
*
|
|
10467
|
+
* @type {Array<EventUser>}
|
|
10468
|
+
* @memberof StaffEventBookingResponse
|
|
10469
|
+
*/
|
|
10470
|
+
'players': Array<EventUser>;
|
|
10471
|
+
/**
|
|
10472
|
+
*
|
|
10473
|
+
* @type {Array<StaffEventBookingInvoiceResponse>}
|
|
10474
|
+
* @memberof StaffEventBookingResponse
|
|
10475
|
+
*/
|
|
10476
|
+
'invoices': Array<StaffEventBookingInvoiceResponse>;
|
|
10477
|
+
/**
|
|
10478
|
+
*
|
|
10479
|
+
* @type {string}
|
|
10480
|
+
* @memberof StaffEventBookingResponse
|
|
10481
|
+
*/
|
|
10482
|
+
'limitSetupDate'?: string | null;
|
|
10483
|
+
/**
|
|
10484
|
+
*
|
|
10485
|
+
* @type {string}
|
|
10486
|
+
* @memberof StaffEventBookingResponse
|
|
10487
|
+
*/
|
|
10488
|
+
'limitCancellationDate'?: string | null;
|
|
10489
|
+
/**
|
|
10490
|
+
*
|
|
10491
|
+
* @type {string}
|
|
10492
|
+
* @memberof StaffEventBookingResponse
|
|
10493
|
+
*/
|
|
10494
|
+
'createdAt': string;
|
|
10495
|
+
/**
|
|
10496
|
+
*
|
|
10497
|
+
* @type {string}
|
|
10498
|
+
* @memberof StaffEventBookingResponse
|
|
10499
|
+
*/
|
|
10500
|
+
'updatedAt': string;
|
|
10501
|
+
}
|
|
10502
|
+
/**
|
|
10503
|
+
*
|
|
10504
|
+
* @export
|
|
10505
|
+
* @interface StaffEventDetailResponse
|
|
10506
|
+
*/
|
|
10507
|
+
export interface StaffEventDetailResponse {
|
|
10508
|
+
/**
|
|
10509
|
+
*
|
|
10510
|
+
* @type {EventResponse}
|
|
10511
|
+
* @memberof StaffEventDetailResponse
|
|
10512
|
+
*/
|
|
10513
|
+
'event': EventResponse;
|
|
10514
|
+
/**
|
|
10515
|
+
*
|
|
10516
|
+
* @type {Array<StaffEventBookingResponse>}
|
|
10517
|
+
* @memberof StaffEventDetailResponse
|
|
10518
|
+
*/
|
|
10519
|
+
'bookings': Array<StaffEventBookingResponse>;
|
|
10520
|
+
}
|
|
10380
10521
|
/**
|
|
10381
10522
|
*
|
|
10382
10523
|
* @export
|
|
@@ -19539,6 +19680,13 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
19539
19680
|
* @throws {RequiredError}
|
|
19540
19681
|
*/
|
|
19541
19682
|
getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19683
|
+
/**
|
|
19684
|
+
* Get a specific event by ID (staff)
|
|
19685
|
+
* @param {string} eventId
|
|
19686
|
+
* @param {*} [options] Override http request option.
|
|
19687
|
+
* @throws {RequiredError}
|
|
19688
|
+
*/
|
|
19689
|
+
getEventByIdForStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19542
19690
|
/**
|
|
19543
19691
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
19544
19692
|
* @param {*} [options] Override http request option.
|
|
@@ -19592,6 +19740,13 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
19592
19740
|
* @throws {RequiredError}
|
|
19593
19741
|
*/
|
|
19594
19742
|
getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
19743
|
+
/**
|
|
19744
|
+
* Get a specific event by ID (staff)
|
|
19745
|
+
* @param {string} eventId
|
|
19746
|
+
* @param {*} [options] Override http request option.
|
|
19747
|
+
* @throws {RequiredError}
|
|
19748
|
+
*/
|
|
19749
|
+
getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>>;
|
|
19595
19750
|
/**
|
|
19596
19751
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
19597
19752
|
* @param {*} [options] Override http request option.
|
|
@@ -19640,6 +19795,13 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
19640
19795
|
* @throws {RequiredError}
|
|
19641
19796
|
*/
|
|
19642
19797
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
19798
|
+
/**
|
|
19799
|
+
* Get a specific event by ID (staff)
|
|
19800
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
19801
|
+
* @param {*} [options] Override http request option.
|
|
19802
|
+
* @throws {RequiredError}
|
|
19803
|
+
*/
|
|
19804
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse>;
|
|
19643
19805
|
/**
|
|
19644
19806
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
19645
19807
|
* @param {*} [options] Override http request option.
|
|
@@ -19717,6 +19879,19 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
19717
19879
|
*/
|
|
19718
19880
|
readonly sportId?: string;
|
|
19719
19881
|
}
|
|
19882
|
+
/**
|
|
19883
|
+
* Request parameters for getEventByIdForStaff operation in EventsStaffApi.
|
|
19884
|
+
* @export
|
|
19885
|
+
* @interface EventsStaffApiGetEventByIdForStaffRequest
|
|
19886
|
+
*/
|
|
19887
|
+
export interface EventsStaffApiGetEventByIdForStaffRequest {
|
|
19888
|
+
/**
|
|
19889
|
+
*
|
|
19890
|
+
* @type {string}
|
|
19891
|
+
* @memberof EventsStaffApiGetEventByIdForStaff
|
|
19892
|
+
*/
|
|
19893
|
+
readonly eventId: string;
|
|
19894
|
+
}
|
|
19720
19895
|
/**
|
|
19721
19896
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
19722
19897
|
* @export
|
|
@@ -19814,6 +19989,14 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
19814
19989
|
* @memberof EventsStaffApi
|
|
19815
19990
|
*/
|
|
19816
19991
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
19992
|
+
/**
|
|
19993
|
+
* Get a specific event by ID (staff)
|
|
19994
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
19995
|
+
* @param {*} [options] Override http request option.
|
|
19996
|
+
* @throws {RequiredError}
|
|
19997
|
+
* @memberof EventsStaffApi
|
|
19998
|
+
*/
|
|
19999
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventDetailResponse, any, {}>>;
|
|
19817
20000
|
/**
|
|
19818
20001
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
19819
20002
|
* @param {*} [options] Override http request option.
|