@tennac-booking/sdk 1.0.212 → 1.0.214

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +10 -2
  2. package/README.md +15 -5
  3. package/api.ts +581 -71
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +474 -67
  8. package/dist/api.js +177 -17
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +474 -67
  16. package/dist/esm/api.js +172 -12
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsUserApi.md +6 -6
  28. package/docs/MarkNotificationsReadRequest.md +22 -0
  29. package/docs/MarkNotificationsReadResponse.md +20 -0
  30. package/docs/NotificationData.md +22 -0
  31. package/docs/NotificationParticipantPreview.md +22 -0
  32. package/docs/NotificationPreview.md +58 -0
  33. package/docs/NotificationResponse.md +36 -0
  34. package/docs/NotificationType.md +26 -0
  35. package/docs/OpenBookingPriceBody.md +26 -0
  36. package/docs/UserNotificationsResponse.md +22 -0
  37. package/docs/UserNotificationsResponseMeta.md +28 -0
  38. package/docs/UsersApi.md +110 -1
  39. package/index.ts +1 -1
  40. package/package.json +1 -1
  41. package/docs/GetOpenBookingPrice200Response.md +0 -24
  42. package/docs/GetOpenBookingPriceRequest.md +0 -26
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.210
7
+ * The version of the OpenAPI document: 1.0.214
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -245,6 +245,23 @@ export const InvoiceStatusSETUPPENDING = {
245
245
  export const InvoiceStatusSETUPSUCCESS = {
246
246
  SetupSuccess: 'setup_success'
247
247
  };
248
+ /**
249
+ *
250
+ * @export
251
+ * @enum {string}
252
+ */
253
+ export const NotificationType = {
254
+ BookingCreated: 'booking_created',
255
+ BookingSetupRequired: 'booking_setup_required',
256
+ BookingCancelled: 'booking_cancelled',
257
+ BookingReminder: 'booking_reminder',
258
+ EventRegistrationConfirmed: 'event_registration_confirmed',
259
+ EventReminder: 'event_reminder',
260
+ OpenBookingJoined: 'open_booking_joined',
261
+ OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
262
+ WaitlistSpotAvailable: 'waitlist_spot_available',
263
+ WaitlistConfirmed: 'waitlist_confirmed'
264
+ };
248
265
  export const PartialPublicAccessSettingsPaymentModeEnum = {
249
266
  Free: 'free',
250
267
  AccessFee: 'access_fee',
@@ -2220,13 +2237,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2220
2237
  }),
2221
2238
  /**
2222
2239
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2223
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2240
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2224
2241
  * @param {*} [options] Override http request option.
2225
2242
  * @throws {RequiredError}
2226
2243
  */
2227
- getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
2228
- // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
2229
- assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
2244
+ getOpenBookingPrice: (openBookingPriceBody_1, ...args_1) => __awaiter(this, [openBookingPriceBody_1, ...args_1], void 0, function* (openBookingPriceBody, options = {}) {
2245
+ // verify required parameter 'openBookingPriceBody' is not null or undefined
2246
+ assertParamExists('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody);
2230
2247
  const localVarPath = `/api/bookings/open/booking-price`;
2231
2248
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2232
2249
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2244,7 +2261,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2244
2261
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2245
2262
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2246
2263
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2247
- localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
2264
+ localVarRequestOptions.data = serializeDataIfNeeded(openBookingPriceBody, localVarRequestOptions, configuration);
2248
2265
  return {
2249
2266
  url: toPathString(localVarUrlObj),
2250
2267
  options: localVarRequestOptions,
@@ -2342,14 +2359,14 @@ export const BookingsUserApiFp = function (configuration) {
2342
2359
  },
2343
2360
  /**
2344
2361
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2345
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2362
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2346
2363
  * @param {*} [options] Override http request option.
2347
2364
  * @throws {RequiredError}
2348
2365
  */
2349
- getOpenBookingPrice(getOpenBookingPriceRequest, options) {
2366
+ getOpenBookingPrice(openBookingPriceBody, options) {
2350
2367
  return __awaiter(this, void 0, void 0, function* () {
2351
2368
  var _a, _b, _c;
2352
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
2369
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
2353
2370
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2354
2371
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2355
2372
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2414,7 +2431,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2414
2431
  * @throws {RequiredError}
2415
2432
  */
2416
2433
  getOpenBookingPrice(requestParameters, options) {
2417
- return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
2434
+ return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
2418
2435
  },
2419
2436
  /**
2420
2437
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -2472,7 +2489,7 @@ export class BookingsUserApi extends BaseAPI {
2472
2489
  * @memberof BookingsUserApi
2473
2490
  */
2474
2491
  getOpenBookingPrice(requestParameters, options) {
2475
- return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
2492
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
2476
2493
  }
2477
2494
  /**
2478
2495
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -14287,6 +14304,47 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14287
14304
  options: localVarRequestOptions,
14288
14305
  };
14289
14306
  }),
14307
+ /**
14308
+ *
14309
+ * @param {number} [limit]
14310
+ * @param {number} [skip]
14311
+ * @param {any} [includeRead]
14312
+ * @param {*} [options] Override http request option.
14313
+ * @throws {RequiredError}
14314
+ */
14315
+ getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
14316
+ const localVarPath = `/api/users/me/notifications`;
14317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14319
+ let baseOptions;
14320
+ if (configuration) {
14321
+ baseOptions = configuration.baseOptions;
14322
+ }
14323
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14324
+ const localVarHeaderParameter = {};
14325
+ const localVarQueryParameter = {};
14326
+ // authentication bearerAuth required
14327
+ // http bearer authentication required
14328
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14329
+ if (limit !== undefined) {
14330
+ localVarQueryParameter['limit'] = limit;
14331
+ }
14332
+ if (skip !== undefined) {
14333
+ localVarQueryParameter['skip'] = skip;
14334
+ }
14335
+ if (includeRead !== undefined) {
14336
+ for (const [key, value] of Object.entries(includeRead)) {
14337
+ localVarQueryParameter[key] = value;
14338
+ }
14339
+ }
14340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14342
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14343
+ return {
14344
+ url: toPathString(localVarUrlObj),
14345
+ options: localVarRequestOptions,
14346
+ };
14347
+ }),
14290
14348
  /**
14291
14349
  *
14292
14350
  * @param {string} id
@@ -14474,6 +14532,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14474
14532
  options: localVarRequestOptions,
14475
14533
  };
14476
14534
  }),
14535
+ /**
14536
+ *
14537
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
14538
+ * @param {*} [options] Override http request option.
14539
+ * @throws {RequiredError}
14540
+ */
14541
+ markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
14542
+ // verify required parameter 'markNotificationsReadRequest' is not null or undefined
14543
+ assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
14544
+ const localVarPath = `/api/users/me/notifications/read`;
14545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14547
+ let baseOptions;
14548
+ if (configuration) {
14549
+ baseOptions = configuration.baseOptions;
14550
+ }
14551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14552
+ const localVarHeaderParameter = {};
14553
+ const localVarQueryParameter = {};
14554
+ // authentication bearerAuth required
14555
+ // http bearer authentication required
14556
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14560
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14561
+ localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration);
14562
+ return {
14563
+ url: toPathString(localVarUrlObj),
14564
+ options: localVarRequestOptions,
14565
+ };
14566
+ }),
14477
14567
  /**
14478
14568
  *
14479
14569
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -14784,7 +14874,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14784
14874
  searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
14785
14875
  // verify required parameter 'q' is not null or undefined
14786
14876
  assertParamExists('searchPartner', 'q', q);
14787
- const localVarPath = `/api/users/serachPartner`;
14877
+ const localVarPath = `/api/users/searchPartner`;
14788
14878
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14789
14879
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14790
14880
  let baseOptions;
@@ -15375,6 +15465,23 @@ export const UsersApiFp = function (configuration) {
15375
15465
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15376
15466
  });
15377
15467
  },
15468
+ /**
15469
+ *
15470
+ * @param {number} [limit]
15471
+ * @param {number} [skip]
15472
+ * @param {any} [includeRead]
15473
+ * @param {*} [options] Override http request option.
15474
+ * @throws {RequiredError}
15475
+ */
15476
+ getUserNotifications(limit, skip, includeRead, options) {
15477
+ return __awaiter(this, void 0, void 0, function* () {
15478
+ var _a, _b, _c;
15479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
15480
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15481
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15482
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15483
+ });
15484
+ },
15378
15485
  /**
15379
15486
  *
15380
15487
  * @param {string} id
@@ -15459,6 +15566,21 @@ export const UsersApiFp = function (configuration) {
15459
15566
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15460
15567
  });
15461
15568
  },
15569
+ /**
15570
+ *
15571
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
15572
+ * @param {*} [options] Override http request option.
15573
+ * @throws {RequiredError}
15574
+ */
15575
+ markNotificationsRead(markNotificationsReadRequest, options) {
15576
+ return __awaiter(this, void 0, void 0, function* () {
15577
+ var _a, _b, _c;
15578
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
15579
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15580
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15581
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15582
+ });
15583
+ },
15462
15584
  /**
15463
15585
  *
15464
15586
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -15927,6 +16049,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15927
16049
  getUserEvents(requestParameters = {}, options) {
15928
16050
  return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
15929
16051
  },
16052
+ /**
16053
+ *
16054
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16055
+ * @param {*} [options] Override http request option.
16056
+ * @throws {RequiredError}
16057
+ */
16058
+ getUserNotifications(requestParameters = {}, options) {
16059
+ return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
16060
+ },
15930
16061
  /**
15931
16062
  *
15932
16063
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -15972,6 +16103,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15972
16103
  loginClubMember(requestParameters, options) {
15973
16104
  return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
15974
16105
  },
16106
+ /**
16107
+ *
16108
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16109
+ * @param {*} [options] Override http request option.
16110
+ * @throws {RequiredError}
16111
+ */
16112
+ markNotificationsRead(requestParameters, options) {
16113
+ return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
16114
+ },
15975
16115
  /**
15976
16116
  *
15977
16117
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16343,6 +16483,16 @@ export class UsersApi extends BaseAPI {
16343
16483
  getUserEvents(requestParameters = {}, options) {
16344
16484
  return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
16345
16485
  }
16486
+ /**
16487
+ *
16488
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16489
+ * @param {*} [options] Override http request option.
16490
+ * @throws {RequiredError}
16491
+ * @memberof UsersApi
16492
+ */
16493
+ getUserNotifications(requestParameters = {}, options) {
16494
+ return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
16495
+ }
16346
16496
  /**
16347
16497
  *
16348
16498
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16393,6 +16543,16 @@ export class UsersApi extends BaseAPI {
16393
16543
  loginClubMember(requestParameters, options) {
16394
16544
  return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
16395
16545
  }
16546
+ /**
16547
+ *
16548
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16549
+ * @param {*} [options] Override http request option.
16550
+ * @throws {RequiredError}
16551
+ * @memberof UsersApi
16552
+ */
16553
+ markNotificationsRead(requestParameters, options) {
16554
+ return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
16555
+ }
16396
16556
  /**
16397
16557
  *
16398
16558
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.210
5
+ * The version of the OpenAPI document: 1.0.214
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.210
7
+ * The version of the OpenAPI document: 1.0.214
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.210
5
+ * The version of the OpenAPI document: 1.0.214
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.210
7
+ * The version of the OpenAPI document: 1.0.214
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.210
5
+ * The version of the OpenAPI document: 1.0.214
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.210
7
+ * The version of the OpenAPI document: 1.0.214
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.210
5
+ * The version of the OpenAPI document: 1.0.214
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.210
7
+ * The version of the OpenAPI document: 1.0.214
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.210
5
+ * The version of the OpenAPI document: 1.0.214
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.210
8
+ * The version of the OpenAPI document: 1.0.214
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -166,7 +166,7 @@ const { status, data } = await apiInstance.createOpenBooking(
166
166
  [[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)
167
167
 
168
168
  # **getOpenBookingPrice**
169
- > GetOpenBookingPrice200Response getOpenBookingPrice(getOpenBookingPriceRequest)
169
+ > BookingPriceResponse getOpenBookingPrice(openBookingPriceBody)
170
170
 
171
171
  Calculer le prix d\'une réservation ouverte avec joueurs initiaux
172
172
 
@@ -176,16 +176,16 @@ Calculer le prix d\'une réservation ouverte avec joueurs initiaux
176
176
  import {
177
177
  BookingsUserApi,
178
178
  Configuration,
179
- GetOpenBookingPriceRequest
179
+ OpenBookingPriceBody
180
180
  } from '@tennac-booking/sdk';
181
181
 
182
182
  const configuration = new Configuration();
183
183
  const apiInstance = new BookingsUserApi(configuration);
184
184
 
185
- let getOpenBookingPriceRequest: GetOpenBookingPriceRequest; //
185
+ let openBookingPriceBody: OpenBookingPriceBody; //
186
186
 
187
187
  const { status, data } = await apiInstance.getOpenBookingPrice(
188
- getOpenBookingPriceRequest
188
+ openBookingPriceBody
189
189
  );
190
190
  ```
191
191
 
@@ -193,12 +193,12 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
193
193
 
194
194
  |Name | Type | Description | Notes|
195
195
  |------------- | ------------- | ------------- | -------------|
196
- | **getOpenBookingPriceRequest** | **GetOpenBookingPriceRequest**| | |
196
+ | **openBookingPriceBody** | **OpenBookingPriceBody**| | |
197
197
 
198
198
 
199
199
  ### Return type
200
200
 
201
- **GetOpenBookingPrice200Response**
201
+ **BookingPriceResponse**
202
202
 
203
203
  ### Authorization
204
204
 
@@ -0,0 +1,22 @@
1
+ # MarkNotificationsReadRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **notificationIds** | **Array<string>** | | [optional] [default to undefined]
9
+ **readAll** | **boolean** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { MarkNotificationsReadRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: MarkNotificationsReadRequest = {
17
+ notificationIds,
18
+ readAll,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # MarkNotificationsReadResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **updatedCount** | **number** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { MarkNotificationsReadResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: MarkNotificationsReadResponse = {
16
+ updatedCount,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # NotificationData
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **pathname** | **string** | | [default to undefined]
9
+ **params** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { NotificationData } from '@tennac-booking/sdk';
15
+
16
+ const instance: NotificationData = {
17
+ pathname,
18
+ params,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # NotificationParticipantPreview
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { NotificationParticipantPreview } from '@tennac-booking/sdk';
15
+
16
+ const instance: NotificationParticipantPreview = {
17
+ id,
18
+ name,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,58 @@
1
+ # NotificationPreview
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookingId** | **string** | | [optional] [default to undefined]
9
+ **eventId** | **string** | | [optional] [default to undefined]
10
+ **eventBookingId** | **string** | | [optional] [default to undefined]
11
+ **clubId** | **string** | | [optional] [default to undefined]
12
+ **clubName** | **string** | | [optional] [default to undefined]
13
+ **courtName** | **string** | | [optional] [default to undefined]
14
+ **eventName** | **string** | | [optional] [default to undefined]
15
+ **startDate** | **string** | | [optional] [default to undefined]
16
+ **endDate** | **string** | | [optional] [default to undefined]
17
+ **reminderDelayHours** | **number** | | [optional] [default to undefined]
18
+ **reason** | **string** | | [optional] [default to undefined]
19
+ **joinerId** | **string** | | [optional] [default to undefined]
20
+ **joinerName** | **string** | | [optional] [default to undefined]
21
+ **targetLabel** | **string** | | [optional] [default to undefined]
22
+ **targetType** | **string** | | [optional] [default to undefined]
23
+ **targetId** | **string** | | [optional] [default to undefined]
24
+ **priceInCents** | **number** | | [optional] [default to undefined]
25
+ **expiresAt** | **string** | | [optional] [default to undefined]
26
+ **waitingListPaymentHoldDuration** | **number** | | [optional] [default to undefined]
27
+ **participants** | [**Array<NotificationParticipantPreview>**](NotificationParticipantPreview.md) | | [optional] [default to undefined]
28
+
29
+ ## Example
30
+
31
+ ```typescript
32
+ import { NotificationPreview } from '@tennac-booking/sdk';
33
+
34
+ const instance: NotificationPreview = {
35
+ bookingId,
36
+ eventId,
37
+ eventBookingId,
38
+ clubId,
39
+ clubName,
40
+ courtName,
41
+ eventName,
42
+ startDate,
43
+ endDate,
44
+ reminderDelayHours,
45
+ reason,
46
+ joinerId,
47
+ joinerName,
48
+ targetLabel,
49
+ targetType,
50
+ targetId,
51
+ priceInCents,
52
+ expiresAt,
53
+ waitingListPaymentHoldDuration,
54
+ participants,
55
+ };
56
+ ```
57
+
58
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,36 @@
1
+ # NotificationResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | [**NotificationType**](NotificationType.md) | | [default to undefined]
10
+ **title** | **string** | | [default to undefined]
11
+ **message** | **string** | | [default to undefined]
12
+ **data** | [**NotificationData**](NotificationData.md) | | [optional] [default to undefined]
13
+ **preview** | [**NotificationPreview**](NotificationPreview.md) | | [optional] [default to undefined]
14
+ **createdAt** | **string** | | [default to undefined]
15
+ **readAt** | **string** | | [optional] [default to undefined]
16
+ **isRead** | **boolean** | | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { NotificationResponse } from '@tennac-booking/sdk';
22
+
23
+ const instance: NotificationResponse = {
24
+ id,
25
+ type,
26
+ title,
27
+ message,
28
+ data,
29
+ preview,
30
+ createdAt,
31
+ readAt,
32
+ isRead,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # NotificationType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `BookingCreated` (value: `'booking_created'`)
7
+
8
+ * `BookingSetupRequired` (value: `'booking_setup_required'`)
9
+
10
+ * `BookingCancelled` (value: `'booking_cancelled'`)
11
+
12
+ * `BookingReminder` (value: `'booking_reminder'`)
13
+
14
+ * `EventRegistrationConfirmed` (value: `'event_registration_confirmed'`)
15
+
16
+ * `EventReminder` (value: `'event_reminder'`)
17
+
18
+ * `OpenBookingJoined` (value: `'open_booking_joined'`)
19
+
20
+ * `OpenBookingJoinConfirmed` (value: `'open_booking_join_confirmed'`)
21
+
22
+ * `WaitlistSpotAvailable` (value: `'waitlist_spot_available'`)
23
+
24
+ * `WaitlistConfirmed` (value: `'waitlist_confirmed'`)
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)