@tennac-booking/sdk 1.0.280 → 1.0.281

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.
@@ -182,6 +182,7 @@ docs/DefaultApi.md
182
182
  docs/DeleteClubRoleResponse.md
183
183
  docs/DeleteCourtResponse.md
184
184
  docs/DeleteEventResponse.md
185
+ docs/DeleteEventSeriesResponse.md
185
186
  docs/DeleteSportResponse.md
186
187
  docs/DeleteSubscriptionPlanResponse.md
187
188
  docs/DiscountType.md
package/README.md CHANGED
@@ -208,6 +208,7 @@ Class | Method | HTTP request | Description
208
208
  *EventsManagerApi* | [**checkEventConflicts**](docs/EventsManagerApi.md#checkeventconflicts) | **POST** /api/events/manager/checkConflicts |
209
209
  *EventsManagerApi* | [**createEvent**](docs/EventsManagerApi.md#createevent) | **POST** /api/events/manager/createEvent |
210
210
  *EventsManagerApi* | [**deleteEvent**](docs/EventsManagerApi.md#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} |
211
+ *EventsManagerApi* | [**deleteEventSeries**](docs/EventsManagerApi.md#deleteeventseries) | **DELETE** /api/events/manager/deleteSeries/{seriesId} |
211
212
  *EventsManagerApi* | [**getExpiringRecurringDefinitions**](docs/EventsManagerApi.md#getexpiringrecurringdefinitions) | **GET** /api/events/manager/recurring/expiring |
212
213
  *EventsManagerApi* | [**publishEvent**](docs/EventsManagerApi.md#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} |
213
214
  *EventsManagerApi* | [**unpublishEvent**](docs/EventsManagerApi.md#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} |
@@ -499,6 +500,7 @@ Class | Method | HTTP request | Description
499
500
  - [DeleteClubRoleResponse](docs/DeleteClubRoleResponse.md)
500
501
  - [DeleteCourtResponse](docs/DeleteCourtResponse.md)
501
502
  - [DeleteEventResponse](docs/DeleteEventResponse.md)
503
+ - [DeleteEventSeriesResponse](docs/DeleteEventSeriesResponse.md)
502
504
  - [DeleteSportResponse](docs/DeleteSportResponse.md)
503
505
  - [DeleteSubscriptionPlanResponse](docs/DeleteSubscriptionPlanResponse.md)
504
506
  - [DiscountType](docs/DiscountType.md)
package/api.ts CHANGED
@@ -6284,6 +6284,31 @@ export interface DeleteEventResponse {
6284
6284
  */
6285
6285
  'message': string;
6286
6286
  }
6287
+ /**
6288
+ *
6289
+ * @export
6290
+ * @interface DeleteEventSeriesResponse
6291
+ */
6292
+ export interface DeleteEventSeriesResponse {
6293
+ /**
6294
+ *
6295
+ * @type {string}
6296
+ * @memberof DeleteEventSeriesResponse
6297
+ */
6298
+ 'message': string;
6299
+ /**
6300
+ *
6301
+ * @type {string}
6302
+ * @memberof DeleteEventSeriesResponse
6303
+ */
6304
+ 'seriesId': string;
6305
+ /**
6306
+ *
6307
+ * @type {number}
6308
+ * @memberof DeleteEventSeriesResponse
6309
+ */
6310
+ 'deletedEvents': number;
6311
+ }
6287
6312
  /**
6288
6313
  *
6289
6314
  * @export
@@ -32469,6 +32494,43 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
32469
32494
 
32470
32495
 
32471
32496
 
32497
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32499
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32500
+
32501
+ return {
32502
+ url: toPathString(localVarUrlObj),
32503
+ options: localVarRequestOptions,
32504
+ };
32505
+ },
32506
+ /**
32507
+ * Delete all events of a series (manager)
32508
+ * @param {string} seriesId
32509
+ * @param {*} [options] Override http request option.
32510
+ * @throws {RequiredError}
32511
+ */
32512
+ deleteEventSeries: async (seriesId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32513
+ // verify required parameter 'seriesId' is not null or undefined
32514
+ assertParamExists('deleteEventSeries', 'seriesId', seriesId)
32515
+ const localVarPath = `/api/events/manager/deleteSeries/{seriesId}`
32516
+ .replace(`{${"seriesId"}}`, encodeURIComponent(String(seriesId)));
32517
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32518
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32519
+ let baseOptions;
32520
+ if (configuration) {
32521
+ baseOptions = configuration.baseOptions;
32522
+ }
32523
+
32524
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32525
+ const localVarHeaderParameter = {} as any;
32526
+ const localVarQueryParameter = {} as any;
32527
+
32528
+ // authentication bearerAuth required
32529
+ // http bearer authentication required
32530
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32531
+
32532
+
32533
+
32472
32534
  setSearchParams(localVarUrlObj, localVarQueryParameter);
32473
32535
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32474
32536
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -32777,6 +32839,18 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
32777
32839
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.deleteEvent']?.[localVarOperationServerIndex]?.url;
32778
32840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32779
32841
  },
32842
+ /**
32843
+ * Delete all events of a series (manager)
32844
+ * @param {string} seriesId
32845
+ * @param {*} [options] Override http request option.
32846
+ * @throws {RequiredError}
32847
+ */
32848
+ async deleteEventSeries(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventSeriesResponse>> {
32849
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEventSeries(seriesId, options);
32850
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32851
+ const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.deleteEventSeries']?.[localVarOperationServerIndex]?.url;
32852
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32853
+ },
32780
32854
  /**
32781
32855
  * List recurring definitions about to expire within `days` (manager)
32782
32856
  * @param {number} [days]
@@ -32898,6 +32972,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
32898
32972
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse> {
32899
32973
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
32900
32974
  },
32975
+ /**
32976
+ * Delete all events of a series (manager)
32977
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
32978
+ * @param {*} [options] Override http request option.
32979
+ * @throws {RequiredError}
32980
+ */
32981
+ deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventSeriesResponse> {
32982
+ return localVarFp.deleteEventSeries(requestParameters.seriesId, options).then((request) => request(axios, basePath));
32983
+ },
32901
32984
  /**
32902
32985
  * List recurring definitions about to expire within `days` (manager)
32903
32986
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -33011,6 +33094,20 @@ export interface EventsManagerApiDeleteEventRequest {
33011
33094
  readonly eventId: string
33012
33095
  }
33013
33096
 
33097
+ /**
33098
+ * Request parameters for deleteEventSeries operation in EventsManagerApi.
33099
+ * @export
33100
+ * @interface EventsManagerApiDeleteEventSeriesRequest
33101
+ */
33102
+ export interface EventsManagerApiDeleteEventSeriesRequest {
33103
+ /**
33104
+ *
33105
+ * @type {string}
33106
+ * @memberof EventsManagerApiDeleteEventSeries
33107
+ */
33108
+ readonly seriesId: string
33109
+ }
33110
+
33014
33111
  /**
33015
33112
  * Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
33016
33113
  * @export
@@ -33167,6 +33264,17 @@ export class EventsManagerApi extends BaseAPI {
33167
33264
  return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
33168
33265
  }
33169
33266
 
33267
+ /**
33268
+ * Delete all events of a series (manager)
33269
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
33270
+ * @param {*} [options] Override http request option.
33271
+ * @throws {RequiredError}
33272
+ * @memberof EventsManagerApi
33273
+ */
33274
+ public deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig) {
33275
+ return EventsManagerApiFp(this.configuration).deleteEventSeries(requestParameters.seriesId, options).then((request) => request(this.axios, this.basePath));
33276
+ }
33277
+
33170
33278
  /**
33171
33279
  * List recurring definitions about to expire within `days` (manager)
33172
33280
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -6189,6 +6189,31 @@ export interface DeleteEventResponse {
6189
6189
  */
6190
6190
  'message': string;
6191
6191
  }
6192
+ /**
6193
+ *
6194
+ * @export
6195
+ * @interface DeleteEventSeriesResponse
6196
+ */
6197
+ export interface DeleteEventSeriesResponse {
6198
+ /**
6199
+ *
6200
+ * @type {string}
6201
+ * @memberof DeleteEventSeriesResponse
6202
+ */
6203
+ 'message': string;
6204
+ /**
6205
+ *
6206
+ * @type {string}
6207
+ * @memberof DeleteEventSeriesResponse
6208
+ */
6209
+ 'seriesId': string;
6210
+ /**
6211
+ *
6212
+ * @type {number}
6213
+ * @memberof DeleteEventSeriesResponse
6214
+ */
6215
+ 'deletedEvents': number;
6216
+ }
6192
6217
  /**
6193
6218
  *
6194
6219
  * @export
@@ -25332,6 +25357,13 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
25332
25357
  * @throws {RequiredError}
25333
25358
  */
25334
25359
  deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25360
+ /**
25361
+ * Delete all events of a series (manager)
25362
+ * @param {string} seriesId
25363
+ * @param {*} [options] Override http request option.
25364
+ * @throws {RequiredError}
25365
+ */
25366
+ deleteEventSeries: (seriesId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25335
25367
  /**
25336
25368
  * List recurring definitions about to expire within `days` (manager)
25337
25369
  * @param {number} [days]
@@ -25411,6 +25443,13 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
25411
25443
  * @throws {RequiredError}
25412
25444
  */
25413
25445
  deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventResponse>>;
25446
+ /**
25447
+ * Delete all events of a series (manager)
25448
+ * @param {string} seriesId
25449
+ * @param {*} [options] Override http request option.
25450
+ * @throws {RequiredError}
25451
+ */
25452
+ deleteEventSeries(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventSeriesResponse>>;
25414
25453
  /**
25415
25454
  * List recurring definitions about to expire within `days` (manager)
25416
25455
  * @param {number} [days]
@@ -25490,6 +25529,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
25490
25529
  * @throws {RequiredError}
25491
25530
  */
25492
25531
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse>;
25532
+ /**
25533
+ * Delete all events of a series (manager)
25534
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
25535
+ * @param {*} [options] Override http request option.
25536
+ * @throws {RequiredError}
25537
+ */
25538
+ deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventSeriesResponse>;
25493
25539
  /**
25494
25540
  * List recurring definitions about to expire within `days` (manager)
25495
25541
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -25585,6 +25631,19 @@ export interface EventsManagerApiDeleteEventRequest {
25585
25631
  */
25586
25632
  readonly eventId: string;
25587
25633
  }
25634
+ /**
25635
+ * Request parameters for deleteEventSeries operation in EventsManagerApi.
25636
+ * @export
25637
+ * @interface EventsManagerApiDeleteEventSeriesRequest
25638
+ */
25639
+ export interface EventsManagerApiDeleteEventSeriesRequest {
25640
+ /**
25641
+ *
25642
+ * @type {string}
25643
+ * @memberof EventsManagerApiDeleteEventSeries
25644
+ */
25645
+ readonly seriesId: string;
25646
+ }
25588
25647
  /**
25589
25648
  * Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
25590
25649
  * @export
@@ -25720,6 +25779,14 @@ export declare class EventsManagerApi extends BaseAPI {
25720
25779
  * @memberof EventsManagerApi
25721
25780
  */
25722
25781
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventResponse, any, {}>>;
25782
+ /**
25783
+ * Delete all events of a series (manager)
25784
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
25785
+ * @param {*} [options] Override http request option.
25786
+ * @throws {RequiredError}
25787
+ * @memberof EventsManagerApi
25788
+ */
25789
+ deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventSeriesResponse, any, {}>>;
25723
25790
  /**
25724
25791
  * List recurring definitions about to expire within `days` (manager)
25725
25792
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -11529,6 +11529,37 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
11529
11529
  options: localVarRequestOptions,
11530
11530
  };
11531
11531
  }),
11532
+ /**
11533
+ * Delete all events of a series (manager)
11534
+ * @param {string} seriesId
11535
+ * @param {*} [options] Override http request option.
11536
+ * @throws {RequiredError}
11537
+ */
11538
+ deleteEventSeries: (seriesId_1, ...args_1) => __awaiter(this, [seriesId_1, ...args_1], void 0, function* (seriesId, options = {}) {
11539
+ // verify required parameter 'seriesId' is not null or undefined
11540
+ (0, common_1.assertParamExists)('deleteEventSeries', 'seriesId', seriesId);
11541
+ const localVarPath = `/api/events/manager/deleteSeries/{seriesId}`
11542
+ .replace(`{${"seriesId"}}`, encodeURIComponent(String(seriesId)));
11543
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11544
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11545
+ let baseOptions;
11546
+ if (configuration) {
11547
+ baseOptions = configuration.baseOptions;
11548
+ }
11549
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
11550
+ const localVarHeaderParameter = {};
11551
+ const localVarQueryParameter = {};
11552
+ // authentication bearerAuth required
11553
+ // http bearer authentication required
11554
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11555
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11557
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11558
+ return {
11559
+ url: (0, common_1.toPathString)(localVarUrlObj),
11560
+ options: localVarRequestOptions,
11561
+ };
11562
+ }),
11532
11563
  /**
11533
11564
  * List recurring definitions about to expire within `days` (manager)
11534
11565
  * @param {number} [days]
@@ -11800,6 +11831,21 @@ const EventsManagerApiFp = function (configuration) {
11800
11831
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11801
11832
  });
11802
11833
  },
11834
+ /**
11835
+ * Delete all events of a series (manager)
11836
+ * @param {string} seriesId
11837
+ * @param {*} [options] Override http request option.
11838
+ * @throws {RequiredError}
11839
+ */
11840
+ deleteEventSeries(seriesId, options) {
11841
+ return __awaiter(this, void 0, void 0, function* () {
11842
+ var _a, _b, _c;
11843
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventSeries(seriesId, options);
11844
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11845
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.deleteEventSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11846
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11847
+ });
11848
+ },
11803
11849
  /**
11804
11850
  * List recurring definitions about to expire within `days` (manager)
11805
11851
  * @param {number} [days]
@@ -11939,6 +11985,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
11939
11985
  deleteEvent(requestParameters, options) {
11940
11986
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
11941
11987
  },
11988
+ /**
11989
+ * Delete all events of a series (manager)
11990
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
11991
+ * @param {*} [options] Override http request option.
11992
+ * @throws {RequiredError}
11993
+ */
11994
+ deleteEventSeries(requestParameters, options) {
11995
+ return localVarFp.deleteEventSeries(requestParameters.seriesId, options).then((request) => request(axios, basePath));
11996
+ },
11942
11997
  /**
11943
11998
  * List recurring definitions about to expire within `days` (manager)
11944
11999
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -12043,6 +12098,16 @@ class EventsManagerApi extends base_1.BaseAPI {
12043
12098
  deleteEvent(requestParameters, options) {
12044
12099
  return (0, exports.EventsManagerApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
12045
12100
  }
12101
+ /**
12102
+ * Delete all events of a series (manager)
12103
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
12104
+ * @param {*} [options] Override http request option.
12105
+ * @throws {RequiredError}
12106
+ * @memberof EventsManagerApi
12107
+ */
12108
+ deleteEventSeries(requestParameters, options) {
12109
+ return (0, exports.EventsManagerApiFp)(this.configuration).deleteEventSeries(requestParameters.seriesId, options).then((request) => request(this.axios, this.basePath));
12110
+ }
12046
12111
  /**
12047
12112
  * List recurring definitions about to expire within `days` (manager)
12048
12113
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -6189,6 +6189,31 @@ export interface DeleteEventResponse {
6189
6189
  */
6190
6190
  'message': string;
6191
6191
  }
6192
+ /**
6193
+ *
6194
+ * @export
6195
+ * @interface DeleteEventSeriesResponse
6196
+ */
6197
+ export interface DeleteEventSeriesResponse {
6198
+ /**
6199
+ *
6200
+ * @type {string}
6201
+ * @memberof DeleteEventSeriesResponse
6202
+ */
6203
+ 'message': string;
6204
+ /**
6205
+ *
6206
+ * @type {string}
6207
+ * @memberof DeleteEventSeriesResponse
6208
+ */
6209
+ 'seriesId': string;
6210
+ /**
6211
+ *
6212
+ * @type {number}
6213
+ * @memberof DeleteEventSeriesResponse
6214
+ */
6215
+ 'deletedEvents': number;
6216
+ }
6192
6217
  /**
6193
6218
  *
6194
6219
  * @export
@@ -25332,6 +25357,13 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
25332
25357
  * @throws {RequiredError}
25333
25358
  */
25334
25359
  deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25360
+ /**
25361
+ * Delete all events of a series (manager)
25362
+ * @param {string} seriesId
25363
+ * @param {*} [options] Override http request option.
25364
+ * @throws {RequiredError}
25365
+ */
25366
+ deleteEventSeries: (seriesId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25335
25367
  /**
25336
25368
  * List recurring definitions about to expire within `days` (manager)
25337
25369
  * @param {number} [days]
@@ -25411,6 +25443,13 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
25411
25443
  * @throws {RequiredError}
25412
25444
  */
25413
25445
  deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventResponse>>;
25446
+ /**
25447
+ * Delete all events of a series (manager)
25448
+ * @param {string} seriesId
25449
+ * @param {*} [options] Override http request option.
25450
+ * @throws {RequiredError}
25451
+ */
25452
+ deleteEventSeries(seriesId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventSeriesResponse>>;
25414
25453
  /**
25415
25454
  * List recurring definitions about to expire within `days` (manager)
25416
25455
  * @param {number} [days]
@@ -25490,6 +25529,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
25490
25529
  * @throws {RequiredError}
25491
25530
  */
25492
25531
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse>;
25532
+ /**
25533
+ * Delete all events of a series (manager)
25534
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
25535
+ * @param {*} [options] Override http request option.
25536
+ * @throws {RequiredError}
25537
+ */
25538
+ deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventSeriesResponse>;
25493
25539
  /**
25494
25540
  * List recurring definitions about to expire within `days` (manager)
25495
25541
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -25585,6 +25631,19 @@ export interface EventsManagerApiDeleteEventRequest {
25585
25631
  */
25586
25632
  readonly eventId: string;
25587
25633
  }
25634
+ /**
25635
+ * Request parameters for deleteEventSeries operation in EventsManagerApi.
25636
+ * @export
25637
+ * @interface EventsManagerApiDeleteEventSeriesRequest
25638
+ */
25639
+ export interface EventsManagerApiDeleteEventSeriesRequest {
25640
+ /**
25641
+ *
25642
+ * @type {string}
25643
+ * @memberof EventsManagerApiDeleteEventSeries
25644
+ */
25645
+ readonly seriesId: string;
25646
+ }
25588
25647
  /**
25589
25648
  * Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
25590
25649
  * @export
@@ -25720,6 +25779,14 @@ export declare class EventsManagerApi extends BaseAPI {
25720
25779
  * @memberof EventsManagerApi
25721
25780
  */
25722
25781
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventResponse, any, {}>>;
25782
+ /**
25783
+ * Delete all events of a series (manager)
25784
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
25785
+ * @param {*} [options] Override http request option.
25786
+ * @throws {RequiredError}
25787
+ * @memberof EventsManagerApi
25788
+ */
25789
+ deleteEventSeries(requestParameters: EventsManagerApiDeleteEventSeriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventSeriesResponse, any, {}>>;
25723
25790
  /**
25724
25791
  * List recurring definitions about to expire within `days` (manager)
25725
25792
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -11442,6 +11442,37 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
11442
11442
  options: localVarRequestOptions,
11443
11443
  };
11444
11444
  }),
11445
+ /**
11446
+ * Delete all events of a series (manager)
11447
+ * @param {string} seriesId
11448
+ * @param {*} [options] Override http request option.
11449
+ * @throws {RequiredError}
11450
+ */
11451
+ deleteEventSeries: (seriesId_1, ...args_1) => __awaiter(this, [seriesId_1, ...args_1], void 0, function* (seriesId, options = {}) {
11452
+ // verify required parameter 'seriesId' is not null or undefined
11453
+ assertParamExists('deleteEventSeries', 'seriesId', seriesId);
11454
+ const localVarPath = `/api/events/manager/deleteSeries/{seriesId}`
11455
+ .replace(`{${"seriesId"}}`, encodeURIComponent(String(seriesId)));
11456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11457
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11458
+ let baseOptions;
11459
+ if (configuration) {
11460
+ baseOptions = configuration.baseOptions;
11461
+ }
11462
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
11463
+ const localVarHeaderParameter = {};
11464
+ const localVarQueryParameter = {};
11465
+ // authentication bearerAuth required
11466
+ // http bearer authentication required
11467
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11468
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11469
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11470
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11471
+ return {
11472
+ url: toPathString(localVarUrlObj),
11473
+ options: localVarRequestOptions,
11474
+ };
11475
+ }),
11445
11476
  /**
11446
11477
  * List recurring definitions about to expire within `days` (manager)
11447
11478
  * @param {number} [days]
@@ -11712,6 +11743,21 @@ export const EventsManagerApiFp = function (configuration) {
11712
11743
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11713
11744
  });
11714
11745
  },
11746
+ /**
11747
+ * Delete all events of a series (manager)
11748
+ * @param {string} seriesId
11749
+ * @param {*} [options] Override http request option.
11750
+ * @throws {RequiredError}
11751
+ */
11752
+ deleteEventSeries(seriesId, options) {
11753
+ return __awaiter(this, void 0, void 0, function* () {
11754
+ var _a, _b, _c;
11755
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEventSeries(seriesId, options);
11756
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11757
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.deleteEventSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11759
+ });
11760
+ },
11715
11761
  /**
11716
11762
  * List recurring definitions about to expire within `days` (manager)
11717
11763
  * @param {number} [days]
@@ -11850,6 +11896,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
11850
11896
  deleteEvent(requestParameters, options) {
11851
11897
  return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
11852
11898
  },
11899
+ /**
11900
+ * Delete all events of a series (manager)
11901
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
11902
+ * @param {*} [options] Override http request option.
11903
+ * @throws {RequiredError}
11904
+ */
11905
+ deleteEventSeries(requestParameters, options) {
11906
+ return localVarFp.deleteEventSeries(requestParameters.seriesId, options).then((request) => request(axios, basePath));
11907
+ },
11853
11908
  /**
11854
11909
  * List recurring definitions about to expire within `days` (manager)
11855
11910
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -11953,6 +12008,16 @@ export class EventsManagerApi extends BaseAPI {
11953
12008
  deleteEvent(requestParameters, options) {
11954
12009
  return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11955
12010
  }
12011
+ /**
12012
+ * Delete all events of a series (manager)
12013
+ * @param {EventsManagerApiDeleteEventSeriesRequest} requestParameters Request parameters.
12014
+ * @param {*} [options] Override http request option.
12015
+ * @throws {RequiredError}
12016
+ * @memberof EventsManagerApi
12017
+ */
12018
+ deleteEventSeries(requestParameters, options) {
12019
+ return EventsManagerApiFp(this.configuration).deleteEventSeries(requestParameters.seriesId, options).then((request) => request(this.axios, this.basePath));
12020
+ }
11956
12021
  /**
11957
12022
  * List recurring definitions about to expire within `days` (manager)
11958
12023
  * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
@@ -0,0 +1,24 @@
1
+ # DeleteEventSeriesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **seriesId** | **string** | | [default to undefined]
10
+ **deletedEvents** | **number** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DeleteEventSeriesResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: DeleteEventSeriesResponse = {
18
+ message,
19
+ seriesId,
20
+ deletedEvents,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**checkEventConflicts**](#checkeventconflicts) | **POST** /api/events/manager/checkConflicts | |
9
9
  |[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
10
10
  |[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
11
+ |[**deleteEventSeries**](#deleteeventseries) | **DELETE** /api/events/manager/deleteSeries/{seriesId} | |
11
12
  |[**getExpiringRecurringDefinitions**](#getexpiringrecurringdefinitions) | **GET** /api/events/manager/recurring/expiring | |
12
13
  |[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
13
14
  |[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
@@ -232,6 +233,60 @@ const { status, data } = await apiInstance.deleteEvent(
232
233
 
233
234
  [[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)
234
235
 
236
+ # **deleteEventSeries**
237
+ > DeleteEventSeriesResponse deleteEventSeries()
238
+
239
+ Delete all events of a series (manager)
240
+
241
+ ### Example
242
+
243
+ ```typescript
244
+ import {
245
+ EventsManagerApi,
246
+ Configuration
247
+ } from '@tennac-booking/sdk';
248
+
249
+ const configuration = new Configuration();
250
+ const apiInstance = new EventsManagerApi(configuration);
251
+
252
+ let seriesId: string; // (default to undefined)
253
+
254
+ const { status, data } = await apiInstance.deleteEventSeries(
255
+ seriesId
256
+ );
257
+ ```
258
+
259
+ ### Parameters
260
+
261
+ |Name | Type | Description | Notes|
262
+ |------------- | ------------- | ------------- | -------------|
263
+ | **seriesId** | [**string**] | | defaults to undefined|
264
+
265
+
266
+ ### Return type
267
+
268
+ **DeleteEventSeriesResponse**
269
+
270
+ ### Authorization
271
+
272
+ [bearerAuth](../README.md#bearerAuth)
273
+
274
+ ### HTTP request headers
275
+
276
+ - **Content-Type**: Not defined
277
+ - **Accept**: application/json
278
+
279
+
280
+ ### HTTP response details
281
+ | Status code | Description | Response headers |
282
+ |-------------|-------------|------------------|
283
+ |**200** | Event series deleted | - |
284
+ |**400** | Bad Request | - |
285
+ |**404** | Not Found | - |
286
+ |**500** | Server Error | - |
287
+
288
+ [[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)
289
+
235
290
  # **getExpiringRecurringDefinitions**
236
291
  > Array<RecurringDefinitionResponse> getExpiringRecurringDefinitions()
237
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.280",
3
+ "version": "1.0.281",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {