@tennac-booking/sdk 1.0.172 → 1.0.173
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 +229 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +184 -1
- 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 +184 -1
- 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/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).
|
|
@@ -10564,6 +10564,151 @@ export interface StaffCreateBookingRequest {
|
|
|
10564
10564
|
}
|
|
10565
10565
|
|
|
10566
10566
|
|
|
10567
|
+
/**
|
|
10568
|
+
*
|
|
10569
|
+
* @export
|
|
10570
|
+
* @interface StaffEventBookingInvoiceResponse
|
|
10571
|
+
*/
|
|
10572
|
+
export interface StaffEventBookingInvoiceResponse {
|
|
10573
|
+
/**
|
|
10574
|
+
*
|
|
10575
|
+
* @type {string}
|
|
10576
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10577
|
+
*/
|
|
10578
|
+
'id': string;
|
|
10579
|
+
/**
|
|
10580
|
+
*
|
|
10581
|
+
* @type {string}
|
|
10582
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10583
|
+
*/
|
|
10584
|
+
'userId': string;
|
|
10585
|
+
/**
|
|
10586
|
+
*
|
|
10587
|
+
* @type {InvoiceStatus}
|
|
10588
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10589
|
+
*/
|
|
10590
|
+
'status': InvoiceStatus;
|
|
10591
|
+
/**
|
|
10592
|
+
*
|
|
10593
|
+
* @type {number}
|
|
10594
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10595
|
+
*/
|
|
10596
|
+
'amount': number;
|
|
10597
|
+
/**
|
|
10598
|
+
*
|
|
10599
|
+
* @type {PaymentMethod}
|
|
10600
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10601
|
+
*/
|
|
10602
|
+
'paymentMethod': PaymentMethod;
|
|
10603
|
+
/**
|
|
10604
|
+
*
|
|
10605
|
+
* @type {string}
|
|
10606
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10607
|
+
*/
|
|
10608
|
+
'createdAt': string;
|
|
10609
|
+
/**
|
|
10610
|
+
*
|
|
10611
|
+
* @type {string}
|
|
10612
|
+
* @memberof StaffEventBookingInvoiceResponse
|
|
10613
|
+
*/
|
|
10614
|
+
'updatedAt': string;
|
|
10615
|
+
}
|
|
10616
|
+
|
|
10617
|
+
|
|
10618
|
+
/**
|
|
10619
|
+
*
|
|
10620
|
+
* @export
|
|
10621
|
+
* @interface StaffEventBookingResponse
|
|
10622
|
+
*/
|
|
10623
|
+
export interface StaffEventBookingResponse {
|
|
10624
|
+
/**
|
|
10625
|
+
*
|
|
10626
|
+
* @type {string}
|
|
10627
|
+
* @memberof StaffEventBookingResponse
|
|
10628
|
+
*/
|
|
10629
|
+
'id': string;
|
|
10630
|
+
/**
|
|
10631
|
+
*
|
|
10632
|
+
* @type {string}
|
|
10633
|
+
* @memberof StaffEventBookingResponse
|
|
10634
|
+
*/
|
|
10635
|
+
'eventId': string;
|
|
10636
|
+
/**
|
|
10637
|
+
*
|
|
10638
|
+
* @type {EventBookingStatus}
|
|
10639
|
+
* @memberof StaffEventBookingResponse
|
|
10640
|
+
*/
|
|
10641
|
+
'status': EventBookingStatus;
|
|
10642
|
+
/**
|
|
10643
|
+
*
|
|
10644
|
+
* @type {boolean}
|
|
10645
|
+
* @memberof StaffEventBookingResponse
|
|
10646
|
+
*/
|
|
10647
|
+
'isOpen': boolean;
|
|
10648
|
+
/**
|
|
10649
|
+
*
|
|
10650
|
+
* @type {string}
|
|
10651
|
+
* @memberof StaffEventBookingResponse
|
|
10652
|
+
*/
|
|
10653
|
+
'teamName'?: string | null;
|
|
10654
|
+
/**
|
|
10655
|
+
*
|
|
10656
|
+
* @type {Array<EventUser>}
|
|
10657
|
+
* @memberof StaffEventBookingResponse
|
|
10658
|
+
*/
|
|
10659
|
+
'players': Array<EventUser>;
|
|
10660
|
+
/**
|
|
10661
|
+
*
|
|
10662
|
+
* @type {Array<StaffEventBookingInvoiceResponse>}
|
|
10663
|
+
* @memberof StaffEventBookingResponse
|
|
10664
|
+
*/
|
|
10665
|
+
'invoices': Array<StaffEventBookingInvoiceResponse>;
|
|
10666
|
+
/**
|
|
10667
|
+
*
|
|
10668
|
+
* @type {string}
|
|
10669
|
+
* @memberof StaffEventBookingResponse
|
|
10670
|
+
*/
|
|
10671
|
+
'limitSetupDate'?: string | null;
|
|
10672
|
+
/**
|
|
10673
|
+
*
|
|
10674
|
+
* @type {string}
|
|
10675
|
+
* @memberof StaffEventBookingResponse
|
|
10676
|
+
*/
|
|
10677
|
+
'limitCancellationDate'?: string | null;
|
|
10678
|
+
/**
|
|
10679
|
+
*
|
|
10680
|
+
* @type {string}
|
|
10681
|
+
* @memberof StaffEventBookingResponse
|
|
10682
|
+
*/
|
|
10683
|
+
'createdAt': string;
|
|
10684
|
+
/**
|
|
10685
|
+
*
|
|
10686
|
+
* @type {string}
|
|
10687
|
+
* @memberof StaffEventBookingResponse
|
|
10688
|
+
*/
|
|
10689
|
+
'updatedAt': string;
|
|
10690
|
+
}
|
|
10691
|
+
|
|
10692
|
+
|
|
10693
|
+
/**
|
|
10694
|
+
*
|
|
10695
|
+
* @export
|
|
10696
|
+
* @interface StaffEventDetailResponse
|
|
10697
|
+
*/
|
|
10698
|
+
export interface StaffEventDetailResponse {
|
|
10699
|
+
/**
|
|
10700
|
+
*
|
|
10701
|
+
* @type {EventResponse}
|
|
10702
|
+
* @memberof StaffEventDetailResponse
|
|
10703
|
+
*/
|
|
10704
|
+
'event': EventResponse;
|
|
10705
|
+
/**
|
|
10706
|
+
*
|
|
10707
|
+
* @type {Array<StaffEventBookingResponse>}
|
|
10708
|
+
* @memberof StaffEventDetailResponse
|
|
10709
|
+
*/
|
|
10710
|
+
'bookings': Array<StaffEventBookingResponse>;
|
|
10711
|
+
}
|
|
10567
10712
|
/**
|
|
10568
10713
|
*
|
|
10569
10714
|
* @export
|
|
@@ -26157,6 +26302,43 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26157
26302
|
|
|
26158
26303
|
|
|
26159
26304
|
|
|
26305
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26307
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26308
|
+
|
|
26309
|
+
return {
|
|
26310
|
+
url: toPathString(localVarUrlObj),
|
|
26311
|
+
options: localVarRequestOptions,
|
|
26312
|
+
};
|
|
26313
|
+
},
|
|
26314
|
+
/**
|
|
26315
|
+
* Get a specific event by ID (staff)
|
|
26316
|
+
* @param {string} eventId
|
|
26317
|
+
* @param {*} [options] Override http request option.
|
|
26318
|
+
* @throws {RequiredError}
|
|
26319
|
+
*/
|
|
26320
|
+
getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26321
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
26322
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId)
|
|
26323
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
26324
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
26325
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26326
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26327
|
+
let baseOptions;
|
|
26328
|
+
if (configuration) {
|
|
26329
|
+
baseOptions = configuration.baseOptions;
|
|
26330
|
+
}
|
|
26331
|
+
|
|
26332
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26333
|
+
const localVarHeaderParameter = {} as any;
|
|
26334
|
+
const localVarQueryParameter = {} as any;
|
|
26335
|
+
|
|
26336
|
+
// authentication bearerAuth required
|
|
26337
|
+
// http bearer authentication required
|
|
26338
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26339
|
+
|
|
26340
|
+
|
|
26341
|
+
|
|
26160
26342
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26161
26343
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26162
26344
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26354,6 +26536,18 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
26354
26536
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
|
|
26355
26537
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26356
26538
|
},
|
|
26539
|
+
/**
|
|
26540
|
+
* Get a specific event by ID (staff)
|
|
26541
|
+
* @param {string} eventId
|
|
26542
|
+
* @param {*} [options] Override http request option.
|
|
26543
|
+
* @throws {RequiredError}
|
|
26544
|
+
*/
|
|
26545
|
+
async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
|
|
26546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
26547
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26548
|
+
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
|
|
26549
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26550
|
+
},
|
|
26357
26551
|
/**
|
|
26358
26552
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26359
26553
|
* @param {*} [options] Override http request option.
|
|
@@ -26425,6 +26619,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
26425
26619
|
getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
26426
26620
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
26427
26621
|
},
|
|
26622
|
+
/**
|
|
26623
|
+
* Get a specific event by ID (staff)
|
|
26624
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
26625
|
+
* @param {*} [options] Override http request option.
|
|
26626
|
+
* @throws {RequiredError}
|
|
26627
|
+
*/
|
|
26628
|
+
getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
|
|
26629
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
26630
|
+
},
|
|
26428
26631
|
/**
|
|
26429
26632
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26430
26633
|
* @param {*} [options] Override http request option.
|
|
@@ -26517,6 +26720,20 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
26517
26720
|
readonly sportId?: string
|
|
26518
26721
|
}
|
|
26519
26722
|
|
|
26723
|
+
/**
|
|
26724
|
+
* Request parameters for getEventByIdForStaff operation in EventsStaffApi.
|
|
26725
|
+
* @export
|
|
26726
|
+
* @interface EventsStaffApiGetEventByIdForStaffRequest
|
|
26727
|
+
*/
|
|
26728
|
+
export interface EventsStaffApiGetEventByIdForStaffRequest {
|
|
26729
|
+
/**
|
|
26730
|
+
*
|
|
26731
|
+
* @type {string}
|
|
26732
|
+
* @memberof EventsStaffApiGetEventByIdForStaff
|
|
26733
|
+
*/
|
|
26734
|
+
readonly eventId: string
|
|
26735
|
+
}
|
|
26736
|
+
|
|
26520
26737
|
/**
|
|
26521
26738
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
26522
26739
|
* @export
|
|
@@ -26630,6 +26847,17 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
26630
26847
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
26631
26848
|
}
|
|
26632
26849
|
|
|
26850
|
+
/**
|
|
26851
|
+
* Get a specific event by ID (staff)
|
|
26852
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
26853
|
+
* @param {*} [options] Override http request option.
|
|
26854
|
+
* @throws {RequiredError}
|
|
26855
|
+
* @memberof EventsStaffApi
|
|
26856
|
+
*/
|
|
26857
|
+
public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
|
|
26858
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
26859
|
+
}
|
|
26860
|
+
|
|
26633
26861
|
/**
|
|
26634
26862
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
26635
26863
|
* @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).
|
|
@@ -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.
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.172
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10667,6 +10667,37 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10667
10667
|
options: localVarRequestOptions,
|
|
10668
10668
|
};
|
|
10669
10669
|
}),
|
|
10670
|
+
/**
|
|
10671
|
+
* Get a specific event by ID (staff)
|
|
10672
|
+
* @param {string} eventId
|
|
10673
|
+
* @param {*} [options] Override http request option.
|
|
10674
|
+
* @throws {RequiredError}
|
|
10675
|
+
*/
|
|
10676
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10677
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10678
|
+
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
10679
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10680
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10682
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10683
|
+
let baseOptions;
|
|
10684
|
+
if (configuration) {
|
|
10685
|
+
baseOptions = configuration.baseOptions;
|
|
10686
|
+
}
|
|
10687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10688
|
+
const localVarHeaderParameter = {};
|
|
10689
|
+
const localVarQueryParameter = {};
|
|
10690
|
+
// authentication bearerAuth required
|
|
10691
|
+
// http bearer authentication required
|
|
10692
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10693
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10695
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10696
|
+
return {
|
|
10697
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10698
|
+
options: localVarRequestOptions,
|
|
10699
|
+
};
|
|
10700
|
+
}),
|
|
10670
10701
|
/**
|
|
10671
10702
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10672
10703
|
* @param {*} [options] Override http request option.
|
|
@@ -10833,6 +10864,21 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
10833
10864
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10834
10865
|
});
|
|
10835
10866
|
},
|
|
10867
|
+
/**
|
|
10868
|
+
* Get a specific event by ID (staff)
|
|
10869
|
+
* @param {string} eventId
|
|
10870
|
+
* @param {*} [options] Override http request option.
|
|
10871
|
+
* @throws {RequiredError}
|
|
10872
|
+
*/
|
|
10873
|
+
getEventByIdForStaff(eventId, options) {
|
|
10874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10875
|
+
var _a, _b, _c;
|
|
10876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
10877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10878
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10879
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10880
|
+
});
|
|
10881
|
+
},
|
|
10836
10882
|
/**
|
|
10837
10883
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10838
10884
|
* @param {*} [options] Override http request option.
|
|
@@ -10913,6 +10959,15 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10913
10959
|
getDailyEvents(requestParameters = {}, options) {
|
|
10914
10960
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10915
10961
|
},
|
|
10962
|
+
/**
|
|
10963
|
+
* Get a specific event by ID (staff)
|
|
10964
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
10965
|
+
* @param {*} [options] Override http request option.
|
|
10966
|
+
* @throws {RequiredError}
|
|
10967
|
+
*/
|
|
10968
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
10969
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10970
|
+
},
|
|
10916
10971
|
/**
|
|
10917
10972
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10918
10973
|
* @param {*} [options] Override http request option.
|
|
@@ -10969,6 +11024,16 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
10969
11024
|
getDailyEvents(requestParameters = {}, options) {
|
|
10970
11025
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10971
11026
|
}
|
|
11027
|
+
/**
|
|
11028
|
+
* Get a specific event by ID (staff)
|
|
11029
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11030
|
+
* @param {*} [options] Override http request option.
|
|
11031
|
+
* @throws {RequiredError}
|
|
11032
|
+
* @memberof EventsStaffApi
|
|
11033
|
+
*/
|
|
11034
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11035
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11036
|
+
}
|
|
10972
11037
|
/**
|
|
10973
11038
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10974
11039
|
* @param {*} [options] Override http request option.
|