@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/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.171
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.
package/dist/base.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.171
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).
package/dist/base.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.171
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).
package/dist/common.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.171
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).
package/dist/common.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.171
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.171
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).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.171
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).
package/dist/esm/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.171
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 {string}
3640
+ * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
3641
3641
  * @memberof CompleteRegisterRequestBody
3642
3642
  */
3643
- 'username': string;
3643
+ 'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
3644
3644
  /**
3645
3645
  *
3646
- * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
3646
+ * @type {Gender}
3647
3647
  * @memberof CompleteRegisterRequestBody
3648
3648
  */
3649
- 'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
3649
+ 'gender'?: Gender;
3650
3650
  /**
3651
3651
  *
3652
- * @type {string}
3652
+ * @type {RegisterRequestBodyLocation}
3653
3653
  * @memberof CompleteRegisterRequestBody
3654
3654
  */
3655
- 'city': string;
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.
package/dist/esm/api.js 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.171
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).
@@ -10581,6 +10581,37 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10581
10581
  options: localVarRequestOptions,
10582
10582
  };
10583
10583
  }),
10584
+ /**
10585
+ * Get a specific event by ID (staff)
10586
+ * @param {string} eventId
10587
+ * @param {*} [options] Override http request option.
10588
+ * @throws {RequiredError}
10589
+ */
10590
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10591
+ // verify required parameter 'eventId' is not null or undefined
10592
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10593
+ const localVarPath = `/api/events/staff/{eventId}`
10594
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10596
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10597
+ let baseOptions;
10598
+ if (configuration) {
10599
+ baseOptions = configuration.baseOptions;
10600
+ }
10601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10602
+ const localVarHeaderParameter = {};
10603
+ const localVarQueryParameter = {};
10604
+ // authentication bearerAuth required
10605
+ // http bearer authentication required
10606
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10609
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10610
+ return {
10611
+ url: toPathString(localVarUrlObj),
10612
+ options: localVarRequestOptions,
10613
+ };
10614
+ }),
10584
10615
  /**
10585
10616
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10586
10617
  * @param {*} [options] Override http request option.
@@ -10746,6 +10777,21 @@ export const EventsStaffApiFp = function (configuration) {
10746
10777
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10747
10778
  });
10748
10779
  },
10780
+ /**
10781
+ * Get a specific event by ID (staff)
10782
+ * @param {string} eventId
10783
+ * @param {*} [options] Override http request option.
10784
+ * @throws {RequiredError}
10785
+ */
10786
+ getEventByIdForStaff(eventId, options) {
10787
+ return __awaiter(this, void 0, void 0, function* () {
10788
+ var _a, _b, _c;
10789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
10790
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10791
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10793
+ });
10794
+ },
10749
10795
  /**
10750
10796
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10751
10797
  * @param {*} [options] Override http request option.
@@ -10825,6 +10871,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
10825
10871
  getDailyEvents(requestParameters = {}, options) {
10826
10872
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
10827
10873
  },
10874
+ /**
10875
+ * Get a specific event by ID (staff)
10876
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
10877
+ * @param {*} [options] Override http request option.
10878
+ * @throws {RequiredError}
10879
+ */
10880
+ getEventByIdForStaff(requestParameters, options) {
10881
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
10882
+ },
10828
10883
  /**
10829
10884
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10830
10885
  * @param {*} [options] Override http request option.
@@ -10880,6 +10935,16 @@ export class EventsStaffApi extends BaseAPI {
10880
10935
  getDailyEvents(requestParameters = {}, options) {
10881
10936
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10882
10937
  }
10938
+ /**
10939
+ * Get a specific event by ID (staff)
10940
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
10941
+ * @param {*} [options] Override http request option.
10942
+ * @throws {RequiredError}
10943
+ * @memberof EventsStaffApi
10944
+ */
10945
+ getEventByIdForStaff(requestParameters, options) {
10946
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10947
+ }
10883
10948
  /**
10884
10949
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10885
10950
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.171
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).
package/dist/esm/base.js 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.171
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.171
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.171
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.171
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.171
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.171
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).
package/dist/esm/index.js 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.171
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).
package/dist/index.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.171
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).
package/dist/index.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.171
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).
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **firstName** | **string** | | [default to undefined]
9
9
  **lastName** | **string** | | [default to undefined]
10
- **username** | **string** | | [default to undefined]
11
10
  **levelBySports** | [**Array&lt;CompleteRegisterRequestBodyLevelBySportsInner&gt;**](CompleteRegisterRequestBodyLevelBySportsInner.md) | | [default to undefined]
12
- **city** | **string** | | [default to undefined]
11
+ **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
12
+ **location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
13
13
  **organizationId** | **string** | | [optional] [default to undefined]
14
14
  **organizationEmail** | **string** | | [optional] [default to undefined]
15
15
 
@@ -21,9 +21,9 @@ import { CompleteRegisterRequestBody } from '@tennac-booking/sdk';
21
21
  const instance: CompleteRegisterRequestBody = {
22
22
  firstName,
23
23
  lastName,
24
- username,
25
24
  levelBySports,
26
- city,
25
+ gender,
26
+ location,
27
27
  organizationId,
28
28
  organizationEmail,
29
29
  };