@tennac-booking/sdk 1.0.154 → 1.0.155

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/README.md CHANGED
@@ -194,6 +194,7 @@ Class | Method | HTTP request | Description
194
194
  *EventsManagerApi* | [**updateRecurringDefinition**](docs/EventsManagerApi.md#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} |
195
195
  *EventsStaffApi* | [**checkInEventParticipants**](docs/EventsStaffApi.md#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in |
196
196
  *EventsStaffApi* | [**getDailyEvents**](docs/EventsStaffApi.md#getdailyevents) | **GET** /api/events/calendar/daily |
197
+ *EventsStaffApi* | [**getEventByIdStaff**](docs/EventsStaffApi.md#geteventbyidstaff) | **GET** /api/events/staff/{eventId} |
197
198
  *EventsStaffApi* | [**getEventsByClub**](docs/EventsStaffApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents |
198
199
  *EventsStaffApi* | [**getMonthlyEvents**](docs/EventsStaffApi.md#getmonthlyevents) | **GET** /api/events/calendar/monthly |
199
200
  *EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
package/api.ts CHANGED
@@ -8524,6 +8524,12 @@ export interface PublishEventResponse {
8524
8524
  * @memberof PublishEventResponse
8525
8525
  */
8526
8526
  'needsToSetupPaymentMethod'?: boolean;
8527
+ /**
8528
+ *
8529
+ * @type {Array<EventBookingResponse>}
8530
+ * @memberof PublishEventResponse
8531
+ */
8532
+ 'eventBookings'?: Array<EventBookingResponse>;
8527
8533
  }
8528
8534
  /**
8529
8535
  *
@@ -25059,6 +25065,43 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
25059
25065
 
25060
25066
 
25061
25067
 
25068
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25069
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25070
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25071
+
25072
+ return {
25073
+ url: toPathString(localVarUrlObj),
25074
+ options: localVarRequestOptions,
25075
+ };
25076
+ },
25077
+ /**
25078
+ *
25079
+ * @param {string} eventId
25080
+ * @param {*} [options] Override http request option.
25081
+ * @throws {RequiredError}
25082
+ */
25083
+ getEventByIdStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25084
+ // verify required parameter 'eventId' is not null or undefined
25085
+ assertParamExists('getEventByIdStaff', 'eventId', eventId)
25086
+ const localVarPath = `/api/events/staff/{eventId}`
25087
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
25088
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25089
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25090
+ let baseOptions;
25091
+ if (configuration) {
25092
+ baseOptions = configuration.baseOptions;
25093
+ }
25094
+
25095
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
25096
+ const localVarHeaderParameter = {} as any;
25097
+ const localVarQueryParameter = {} as any;
25098
+
25099
+ // authentication bearerAuth required
25100
+ // http bearer authentication required
25101
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
25102
+
25103
+
25104
+
25062
25105
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25063
25106
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25064
25107
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25256,6 +25299,18 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
25256
25299
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
25257
25300
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25258
25301
  },
25302
+ /**
25303
+ *
25304
+ * @param {string} eventId
25305
+ * @param {*} [options] Override http request option.
25306
+ * @throws {RequiredError}
25307
+ */
25308
+ async getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
25309
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
25310
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25311
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdStaff']?.[localVarOperationServerIndex]?.url;
25312
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25313
+ },
25259
25314
  /**
25260
25315
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25261
25316
  * @param {*} [options] Override http request option.
@@ -25327,6 +25382,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
25327
25382
  getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
25328
25383
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
25329
25384
  },
25385
+ /**
25386
+ *
25387
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
25388
+ * @param {*} [options] Override http request option.
25389
+ * @throws {RequiredError}
25390
+ */
25391
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
25392
+ return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
25393
+ },
25330
25394
  /**
25331
25395
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25332
25396
  * @param {*} [options] Override http request option.
@@ -25419,6 +25483,20 @@ export interface EventsStaffApiGetDailyEventsRequest {
25419
25483
  readonly sportId?: string
25420
25484
  }
25421
25485
 
25486
+ /**
25487
+ * Request parameters for getEventByIdStaff operation in EventsStaffApi.
25488
+ * @export
25489
+ * @interface EventsStaffApiGetEventByIdStaffRequest
25490
+ */
25491
+ export interface EventsStaffApiGetEventByIdStaffRequest {
25492
+ /**
25493
+ *
25494
+ * @type {string}
25495
+ * @memberof EventsStaffApiGetEventByIdStaff
25496
+ */
25497
+ readonly eventId: string
25498
+ }
25499
+
25422
25500
  /**
25423
25501
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
25424
25502
  * @export
@@ -25532,6 +25610,17 @@ export class EventsStaffApi extends BaseAPI {
25532
25610
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
25533
25611
  }
25534
25612
 
25613
+ /**
25614
+ *
25615
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
25616
+ * @param {*} [options] Override http request option.
25617
+ * @throws {RequiredError}
25618
+ * @memberof EventsStaffApi
25619
+ */
25620
+ public getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig) {
25621
+ return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
25622
+ }
25623
+
25535
25624
  /**
25536
25625
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
25537
25626
  * @param {*} [options] Override http request option.
package/dist/api.d.ts CHANGED
@@ -8367,6 +8367,12 @@ export interface PublishEventResponse {
8367
8367
  * @memberof PublishEventResponse
8368
8368
  */
8369
8369
  'needsToSetupPaymentMethod'?: boolean;
8370
+ /**
8371
+ *
8372
+ * @type {Array<EventBookingResponse>}
8373
+ * @memberof PublishEventResponse
8374
+ */
8375
+ 'eventBookings'?: Array<EventBookingResponse>;
8370
8376
  }
8371
8377
  /**
8372
8378
  *
@@ -18550,6 +18556,13 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
18550
18556
  * @throws {RequiredError}
18551
18557
  */
18552
18558
  getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18559
+ /**
18560
+ *
18561
+ * @param {string} eventId
18562
+ * @param {*} [options] Override http request option.
18563
+ * @throws {RequiredError}
18564
+ */
18565
+ getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18553
18566
  /**
18554
18567
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18555
18568
  * @param {*} [options] Override http request option.
@@ -18603,6 +18616,13 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
18603
18616
  * @throws {RequiredError}
18604
18617
  */
18605
18618
  getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
18619
+ /**
18620
+ *
18621
+ * @param {string} eventId
18622
+ * @param {*} [options] Override http request option.
18623
+ * @throws {RequiredError}
18624
+ */
18625
+ getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
18606
18626
  /**
18607
18627
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18608
18628
  * @param {*} [options] Override http request option.
@@ -18651,6 +18671,13 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
18651
18671
  * @throws {RequiredError}
18652
18672
  */
18653
18673
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
18674
+ /**
18675
+ *
18676
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18677
+ * @param {*} [options] Override http request option.
18678
+ * @throws {RequiredError}
18679
+ */
18680
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
18654
18681
  /**
18655
18682
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18656
18683
  * @param {*} [options] Override http request option.
@@ -18728,6 +18755,19 @@ export interface EventsStaffApiGetDailyEventsRequest {
18728
18755
  */
18729
18756
  readonly sportId?: string;
18730
18757
  }
18758
+ /**
18759
+ * Request parameters for getEventByIdStaff operation in EventsStaffApi.
18760
+ * @export
18761
+ * @interface EventsStaffApiGetEventByIdStaffRequest
18762
+ */
18763
+ export interface EventsStaffApiGetEventByIdStaffRequest {
18764
+ /**
18765
+ *
18766
+ * @type {string}
18767
+ * @memberof EventsStaffApiGetEventByIdStaff
18768
+ */
18769
+ readonly eventId: string;
18770
+ }
18731
18771
  /**
18732
18772
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
18733
18773
  * @export
@@ -18825,6 +18865,14 @@ export declare class EventsStaffApi extends BaseAPI {
18825
18865
  * @memberof EventsStaffApi
18826
18866
  */
18827
18867
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
18868
+ /**
18869
+ *
18870
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18871
+ * @param {*} [options] Override http request option.
18872
+ * @throws {RequiredError}
18873
+ * @memberof EventsStaffApi
18874
+ */
18875
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
18828
18876
  /**
18829
18877
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18830
18878
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -10467,6 +10467,37 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
10467
10467
  options: localVarRequestOptions,
10468
10468
  };
10469
10469
  }),
10470
+ /**
10471
+ *
10472
+ * @param {string} eventId
10473
+ * @param {*} [options] Override http request option.
10474
+ * @throws {RequiredError}
10475
+ */
10476
+ getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10477
+ // verify required parameter 'eventId' is not null or undefined
10478
+ (0, common_1.assertParamExists)('getEventByIdStaff', 'eventId', eventId);
10479
+ const localVarPath = `/api/events/staff/{eventId}`
10480
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10482
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10483
+ let baseOptions;
10484
+ if (configuration) {
10485
+ baseOptions = configuration.baseOptions;
10486
+ }
10487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10488
+ const localVarHeaderParameter = {};
10489
+ const localVarQueryParameter = {};
10490
+ // authentication bearerAuth required
10491
+ // http bearer authentication required
10492
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10493
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10496
+ return {
10497
+ url: (0, common_1.toPathString)(localVarUrlObj),
10498
+ options: localVarRequestOptions,
10499
+ };
10500
+ }),
10470
10501
  /**
10471
10502
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10472
10503
  * @param {*} [options] Override http request option.
@@ -10633,6 +10664,21 @@ const EventsStaffApiFp = function (configuration) {
10633
10664
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10634
10665
  });
10635
10666
  },
10667
+ /**
10668
+ *
10669
+ * @param {string} eventId
10670
+ * @param {*} [options] Override http request option.
10671
+ * @throws {RequiredError}
10672
+ */
10673
+ getEventByIdStaff(eventId, options) {
10674
+ return __awaiter(this, void 0, void 0, function* () {
10675
+ var _a, _b, _c;
10676
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
10677
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10678
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10679
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10680
+ });
10681
+ },
10636
10682
  /**
10637
10683
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10638
10684
  * @param {*} [options] Override http request option.
@@ -10713,6 +10759,15 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
10713
10759
  getDailyEvents(requestParameters = {}, options) {
10714
10760
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
10715
10761
  },
10762
+ /**
10763
+ *
10764
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10765
+ * @param {*} [options] Override http request option.
10766
+ * @throws {RequiredError}
10767
+ */
10768
+ getEventByIdStaff(requestParameters, options) {
10769
+ return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
10770
+ },
10716
10771
  /**
10717
10772
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10718
10773
  * @param {*} [options] Override http request option.
@@ -10769,6 +10824,16 @@ class EventsStaffApi extends base_1.BaseAPI {
10769
10824
  getDailyEvents(requestParameters = {}, options) {
10770
10825
  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));
10771
10826
  }
10827
+ /**
10828
+ *
10829
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10830
+ * @param {*} [options] Override http request option.
10831
+ * @throws {RequiredError}
10832
+ * @memberof EventsStaffApi
10833
+ */
10834
+ getEventByIdStaff(requestParameters, options) {
10835
+ return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10836
+ }
10772
10837
  /**
10773
10838
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10774
10839
  * @param {*} [options] Override http request option.
package/dist/esm/api.d.ts CHANGED
@@ -8367,6 +8367,12 @@ export interface PublishEventResponse {
8367
8367
  * @memberof PublishEventResponse
8368
8368
  */
8369
8369
  'needsToSetupPaymentMethod'?: boolean;
8370
+ /**
8371
+ *
8372
+ * @type {Array<EventBookingResponse>}
8373
+ * @memberof PublishEventResponse
8374
+ */
8375
+ 'eventBookings'?: Array<EventBookingResponse>;
8370
8376
  }
8371
8377
  /**
8372
8378
  *
@@ -18550,6 +18556,13 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
18550
18556
  * @throws {RequiredError}
18551
18557
  */
18552
18558
  getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18559
+ /**
18560
+ *
18561
+ * @param {string} eventId
18562
+ * @param {*} [options] Override http request option.
18563
+ * @throws {RequiredError}
18564
+ */
18565
+ getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18553
18566
  /**
18554
18567
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18555
18568
  * @param {*} [options] Override http request option.
@@ -18603,6 +18616,13 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
18603
18616
  * @throws {RequiredError}
18604
18617
  */
18605
18618
  getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
18619
+ /**
18620
+ *
18621
+ * @param {string} eventId
18622
+ * @param {*} [options] Override http request option.
18623
+ * @throws {RequiredError}
18624
+ */
18625
+ getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
18606
18626
  /**
18607
18627
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18608
18628
  * @param {*} [options] Override http request option.
@@ -18651,6 +18671,13 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
18651
18671
  * @throws {RequiredError}
18652
18672
  */
18653
18673
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
18674
+ /**
18675
+ *
18676
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18677
+ * @param {*} [options] Override http request option.
18678
+ * @throws {RequiredError}
18679
+ */
18680
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
18654
18681
  /**
18655
18682
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18656
18683
  * @param {*} [options] Override http request option.
@@ -18728,6 +18755,19 @@ export interface EventsStaffApiGetDailyEventsRequest {
18728
18755
  */
18729
18756
  readonly sportId?: string;
18730
18757
  }
18758
+ /**
18759
+ * Request parameters for getEventByIdStaff operation in EventsStaffApi.
18760
+ * @export
18761
+ * @interface EventsStaffApiGetEventByIdStaffRequest
18762
+ */
18763
+ export interface EventsStaffApiGetEventByIdStaffRequest {
18764
+ /**
18765
+ *
18766
+ * @type {string}
18767
+ * @memberof EventsStaffApiGetEventByIdStaff
18768
+ */
18769
+ readonly eventId: string;
18770
+ }
18731
18771
  /**
18732
18772
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
18733
18773
  * @export
@@ -18825,6 +18865,14 @@ export declare class EventsStaffApi extends BaseAPI {
18825
18865
  * @memberof EventsStaffApi
18826
18866
  */
18827
18867
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
18868
+ /**
18869
+ *
18870
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18871
+ * @param {*} [options] Override http request option.
18872
+ * @throws {RequiredError}
18873
+ * @memberof EventsStaffApi
18874
+ */
18875
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
18828
18876
  /**
18829
18877
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18830
18878
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -10385,6 +10385,37 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10385
10385
  options: localVarRequestOptions,
10386
10386
  };
10387
10387
  }),
10388
+ /**
10389
+ *
10390
+ * @param {string} eventId
10391
+ * @param {*} [options] Override http request option.
10392
+ * @throws {RequiredError}
10393
+ */
10394
+ getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10395
+ // verify required parameter 'eventId' is not null or undefined
10396
+ assertParamExists('getEventByIdStaff', 'eventId', eventId);
10397
+ const localVarPath = `/api/events/staff/{eventId}`
10398
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10401
+ let baseOptions;
10402
+ if (configuration) {
10403
+ baseOptions = configuration.baseOptions;
10404
+ }
10405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10406
+ const localVarHeaderParameter = {};
10407
+ const localVarQueryParameter = {};
10408
+ // authentication bearerAuth required
10409
+ // http bearer authentication required
10410
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10413
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10414
+ return {
10415
+ url: toPathString(localVarUrlObj),
10416
+ options: localVarRequestOptions,
10417
+ };
10418
+ }),
10388
10419
  /**
10389
10420
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10390
10421
  * @param {*} [options] Override http request option.
@@ -10550,6 +10581,21 @@ export const EventsStaffApiFp = function (configuration) {
10550
10581
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10551
10582
  });
10552
10583
  },
10584
+ /**
10585
+ *
10586
+ * @param {string} eventId
10587
+ * @param {*} [options] Override http request option.
10588
+ * @throws {RequiredError}
10589
+ */
10590
+ getEventByIdStaff(eventId, options) {
10591
+ return __awaiter(this, void 0, void 0, function* () {
10592
+ var _a, _b, _c;
10593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
10594
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10595
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10597
+ });
10598
+ },
10553
10599
  /**
10554
10600
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10555
10601
  * @param {*} [options] Override http request option.
@@ -10629,6 +10675,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
10629
10675
  getDailyEvents(requestParameters = {}, options) {
10630
10676
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
10631
10677
  },
10678
+ /**
10679
+ *
10680
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10681
+ * @param {*} [options] Override http request option.
10682
+ * @throws {RequiredError}
10683
+ */
10684
+ getEventByIdStaff(requestParameters, options) {
10685
+ return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
10686
+ },
10632
10687
  /**
10633
10688
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10634
10689
  * @param {*} [options] Override http request option.
@@ -10684,6 +10739,16 @@ export class EventsStaffApi extends BaseAPI {
10684
10739
  getDailyEvents(requestParameters = {}, options) {
10685
10740
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10686
10741
  }
10742
+ /**
10743
+ *
10744
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10745
+ * @param {*} [options] Override http request option.
10746
+ * @throws {RequiredError}
10747
+ * @memberof EventsStaffApi
10748
+ */
10749
+ getEventByIdStaff(requestParameters, options) {
10750
+ return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10751
+ }
10687
10752
  /**
10688
10753
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10689
10754
  * @param {*} [options] Override http request option.
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
8
8
  |[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
9
+ |[**getEventByIdStaff**](#geteventbyidstaff) | **GET** /api/events/staff/{eventId} | |
9
10
  |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
10
11
  |[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
11
12
  |[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
@@ -133,6 +134,56 @@ const { status, data } = await apiInstance.getDailyEvents(
133
134
 
134
135
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
135
136
 
137
+ # **getEventByIdStaff**
138
+ > PublishEventResponse getEventByIdStaff()
139
+
140
+
141
+ ### Example
142
+
143
+ ```typescript
144
+ import {
145
+ EventsStaffApi,
146
+ Configuration
147
+ } from '@tennac-booking/sdk';
148
+
149
+ const configuration = new Configuration();
150
+ const apiInstance = new EventsStaffApi(configuration);
151
+
152
+ let eventId: string; // (default to undefined)
153
+
154
+ const { status, data } = await apiInstance.getEventByIdStaff(
155
+ eventId
156
+ );
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ |Name | Type | Description | Notes|
162
+ |------------- | ------------- | ------------- | -------------|
163
+ | **eventId** | [**string**] | | defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **PublishEventResponse**
169
+
170
+ ### Authorization
171
+
172
+ [bearerAuth](../README.md#bearerAuth)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | Event details (staff) | - |
184
+
185
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
186
+
136
187
  # **getEventsByClub**
137
188
  > EventsListResponse getEventsByClub()
138
189
 
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **refundedBookingIds** | **Array&lt;string&gt;** | | [optional] [default to undefined]
10
10
  **userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
11
11
  **needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
12
+ **eventBookings** | [**Array&lt;EventBookingResponse&gt;**](EventBookingResponse.md) | | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const instance: PublishEventResponse = {
20
21
  refundedBookingIds,
21
22
  userBooking,
22
23
  needsToSetupPaymentMethod,
24
+ eventBookings,
23
25
  };
24
26
  ```
25
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.154",
3
+ "version": "1.0.155",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {