@tennac-booking/sdk 1.0.125 → 1.0.126

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 (60) hide show
  1. package/.openapi-generator/FILES +333 -343
  2. package/README.md +9 -19
  3. package/api.ts +354 -619
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +256 -490
  8. package/dist/api.js +99 -156
  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 +256 -490
  16. package/dist/esm/api.js +95 -152
  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/BookingsStaffApi.md +10 -10
  28. package/docs/{EventBookingResponseSetupStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/CreatePlan201Response.md +2 -0
  32. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  33. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  34. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  35. package/docs/EventsApi.md +1 -4
  36. package/docs/MonthlyTurnoverResponse.md +0 -1
  37. package/docs/OffPeakRule.md +2 -0
  38. package/docs/PlanPrice.md +26 -0
  39. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  40. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  41. package/docs/PublishEventResponse.md +0 -2
  42. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  43. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  44. package/docs/SubscriptionPlanResponse.md +7 -1
  45. package/docs/SubscriptionsManagerApi.md +55 -1
  46. package/docs/UsersApi.md +0 -54
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
  49. package/docs/EventBookingDetailSummary.md +0 -40
  50. package/docs/EventBookingResponse.md +0 -36
  51. package/docs/EventBookingResponsePlayersInner.md +0 -28
  52. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +0 -18
  53. package/docs/EventBookingStatus.md +0 -16
  54. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  55. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  56. package/docs/ParticipationType.md +0 -10
  57. package/docs/UserEventParticipation.md +0 -22
  58. package/docs/UserEventSummary.md +0 -44
  59. package/docs/UserEventsResponse.md +0 -28
  60. package/docs/VisibilityType.md +0 -12
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.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -116,18 +116,6 @@ export const DiscountType = {
116
116
  Percentage: 'percentage',
117
117
  OffPeak: 'off_peak'
118
118
  };
119
- /**
120
- *
121
- * @export
122
- * @enum {string}
123
- */
124
- export const EventBookingStatus = {
125
- Pending: 'pending',
126
- Paid: 'paid',
127
- Cancelled: 'cancelled',
128
- Expired: 'expired',
129
- Archived: 'archived'
130
- };
131
119
  export const EventResponseTypeEnum = {
132
120
  Event: 'event',
133
121
  Closure: 'closure'
@@ -189,31 +177,6 @@ export const InvoiceStatus = {
189
177
  Canceled: 'canceled',
190
178
  Expired: 'expired'
191
179
  };
192
- /**
193
- *
194
- * @export
195
- * @enum {string}
196
- */
197
- export const InvoiceStatusSETUPPENDING = {
198
- SetupPending: 'setup_pending'
199
- };
200
- /**
201
- *
202
- * @export
203
- * @enum {string}
204
- */
205
- export const InvoiceStatusSETUPSUCCESS = {
206
- SetupSuccess: 'setup_success'
207
- };
208
- /**
209
- *
210
- * @export
211
- * @enum {string}
212
- */
213
- export const ParticipationType = {
214
- Solo: 'solo',
215
- Team: 'team'
216
- };
217
180
  /**
218
181
  *
219
182
  * @export
@@ -427,16 +390,6 @@ export const UpdateEventRequestVisibilityTypeEnum = {
427
390
  export const UserLocationSummaryTypeEnum = {
428
391
  Point: 'Point'
429
392
  };
430
- /**
431
- *
432
- * @export
433
- * @enum {string}
434
- */
435
- export const VisibilityType = {
436
- Public: 'public',
437
- Private: 'private',
438
- Invitation: 'invitation'
439
- };
440
393
  /**
441
394
  * BookingsApi - axios parameter creator
442
395
  * @export
@@ -891,17 +844,17 @@ export class BookingsManagerApi extends BaseAPI {
891
844
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
892
845
  return {
893
846
  /**
894
- * Check-in des joueurs only for club with payment features
847
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
895
848
  * @param {string} bookingId
896
- * @param {CheckInPlayersRequest} checkInPlayersRequest
849
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
897
850
  * @param {*} [options] Override http request option.
898
851
  * @throws {RequiredError}
899
852
  */
900
- checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
853
+ checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
901
854
  // verify required parameter 'bookingId' is not null or undefined
902
- assertParamExists('checkInPlayers', 'bookingId', bookingId);
903
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
904
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
855
+ assertParamExists('checkInPlayer', 'bookingId', bookingId);
856
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
857
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
905
858
  const localVarPath = `/api/bookings/{bookingId}/check-in`
906
859
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
907
860
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -920,7 +873,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
920
873
  setSearchParams(localVarUrlObj, localVarQueryParameter);
921
874
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
922
875
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
923
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
876
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration);
924
877
  return {
925
878
  url: toPathString(localVarUrlObj),
926
879
  options: localVarRequestOptions,
@@ -1170,18 +1123,18 @@ export const BookingsStaffApiFp = function (configuration) {
1170
1123
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1171
1124
  return {
1172
1125
  /**
1173
- * Check-in des joueurs only for club with payment features
1126
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1174
1127
  * @param {string} bookingId
1175
- * @param {CheckInPlayersRequest} checkInPlayersRequest
1128
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
1176
1129
  * @param {*} [options] Override http request option.
1177
1130
  * @throws {RequiredError}
1178
1131
  */
1179
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1132
+ checkInPlayer(bookingId, checkInPlayerRequest, options) {
1180
1133
  return __awaiter(this, void 0, void 0, function* () {
1181
1134
  var _a, _b, _c;
1182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
1183
1136
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1184
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1137
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1185
1138
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1186
1139
  });
1187
1140
  },
@@ -1304,13 +1257,13 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1304
1257
  const localVarFp = BookingsStaffApiFp(configuration);
1305
1258
  return {
1306
1259
  /**
1307
- * Check-in des joueurs only for club with payment features
1308
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1260
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1261
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1309
1262
  * @param {*} [options] Override http request option.
1310
1263
  * @throws {RequiredError}
1311
1264
  */
1312
- checkInPlayers(requestParameters, options) {
1313
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1265
+ checkInPlayer(requestParameters, options) {
1266
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1314
1267
  },
1315
1268
  /**
1316
1269
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -1385,14 +1338,14 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1385
1338
  */
1386
1339
  export class BookingsStaffApi extends BaseAPI {
1387
1340
  /**
1388
- * Check-in des joueurs only for club with payment features
1389
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
1341
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1342
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1390
1343
  * @param {*} [options] Override http request option.
1391
1344
  * @throws {RequiredError}
1392
1345
  * @memberof BookingsStaffApi
1393
1346
  */
1394
- checkInPlayers(requestParameters, options) {
1395
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1347
+ checkInPlayer(requestParameters, options) {
1348
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1396
1349
  }
1397
1350
  /**
1398
1351
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -7323,11 +7276,10 @@ export const EventsApiAxiosParamCreator = function (configuration) {
7323
7276
  /**
7324
7277
  * Get a specific event by ID
7325
7278
  * @param {string} eventId
7326
- * @param {string} [userId]
7327
7279
  * @param {*} [options] Override http request option.
7328
7280
  * @throws {RequiredError}
7329
7281
  */
7330
- getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
7282
+ getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7331
7283
  // verify required parameter 'eventId' is not null or undefined
7332
7284
  assertParamExists('getEventById', 'eventId', eventId);
7333
7285
  const localVarPath = `/api/events/{eventId}`
@@ -7341,9 +7293,6 @@ export const EventsApiAxiosParamCreator = function (configuration) {
7341
7293
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7342
7294
  const localVarHeaderParameter = {};
7343
7295
  const localVarQueryParameter = {};
7344
- if (userId !== undefined) {
7345
- localVarQueryParameter['userId'] = userId;
7346
- }
7347
7296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7348
7297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7349
7298
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7503,14 +7452,13 @@ export const EventsApiFp = function (configuration) {
7503
7452
  /**
7504
7453
  * Get a specific event by ID
7505
7454
  * @param {string} eventId
7506
- * @param {string} [userId]
7507
7455
  * @param {*} [options] Override http request option.
7508
7456
  * @throws {RequiredError}
7509
7457
  */
7510
- getEventById(eventId, userId, options) {
7458
+ getEventById(eventId, options) {
7511
7459
  return __awaiter(this, void 0, void 0, function* () {
7512
7460
  var _a, _b, _c;
7513
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
7461
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
7514
7462
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7515
7463
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7516
7464
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7599,7 +7547,7 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
7599
7547
  * @throws {RequiredError}
7600
7548
  */
7601
7549
  getEventById(requestParameters, options) {
7602
- return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
7550
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
7603
7551
  },
7604
7552
  /**
7605
7553
  * Get all published events for a club
@@ -7665,7 +7613,7 @@ export class EventsApi extends BaseAPI {
7665
7613
  * @memberof EventsApi
7666
7614
  */
7667
7615
  getEventById(requestParameters, options) {
7668
- return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
7616
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
7669
7617
  }
7670
7618
  /**
7671
7619
  * Get all published events for a club
@@ -9110,6 +9058,37 @@ export class SportsPublicApi extends BaseAPI {
9110
9058
  */
9111
9059
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
9112
9060
  return {
9061
+ /**
9062
+ * Supprime (archive) un plan par productId (manager)
9063
+ * @param {string} productId
9064
+ * @param {*} [options] Override http request option.
9065
+ * @throws {RequiredError}
9066
+ */
9067
+ archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
9068
+ // verify required parameter 'productId' is not null or undefined
9069
+ assertParamExists('archivePlan', 'productId', productId);
9070
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
9071
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
9072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9074
+ let baseOptions;
9075
+ if (configuration) {
9076
+ baseOptions = configuration.baseOptions;
9077
+ }
9078
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9079
+ const localVarHeaderParameter = {};
9080
+ const localVarQueryParameter = {};
9081
+ // authentication bearerAuth required
9082
+ // http bearer authentication required
9083
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9084
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9086
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9087
+ return {
9088
+ url: toPathString(localVarUrlObj),
9089
+ options: localVarRequestOptions,
9090
+ };
9091
+ }),
9113
9092
  /**
9114
9093
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9115
9094
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9143,7 +9122,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9143
9122
  };
9144
9123
  }),
9145
9124
  /**
9146
- * Supprime (archive) un plan par productId (manager)
9125
+ * Supprime un plan par productId (manager)
9147
9126
  * @param {string} productId
9148
9127
  * @param {*} [options] Override http request option.
9149
9128
  * @throws {RequiredError}
@@ -9214,6 +9193,21 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
9214
9193
  export const SubscriptionsManagerApiFp = function (configuration) {
9215
9194
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
9216
9195
  return {
9196
+ /**
9197
+ * Supprime (archive) un plan par productId (manager)
9198
+ * @param {string} productId
9199
+ * @param {*} [options] Override http request option.
9200
+ * @throws {RequiredError}
9201
+ */
9202
+ archivePlan(productId, options) {
9203
+ return __awaiter(this, void 0, void 0, function* () {
9204
+ var _a, _b, _c;
9205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
9206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9207
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9209
+ });
9210
+ },
9217
9211
  /**
9218
9212
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9219
9213
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -9230,7 +9224,7 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9230
9224
  });
9231
9225
  },
9232
9226
  /**
9233
- * Supprime (archive) un plan par productId (manager)
9227
+ * Supprime un plan par productId (manager)
9234
9228
  * @param {string} productId
9235
9229
  * @param {*} [options] Override http request option.
9236
9230
  * @throws {RequiredError}
@@ -9268,6 +9262,15 @@ export const SubscriptionsManagerApiFp = function (configuration) {
9268
9262
  export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
9269
9263
  const localVarFp = SubscriptionsManagerApiFp(configuration);
9270
9264
  return {
9265
+ /**
9266
+ * Supprime (archive) un plan par productId (manager)
9267
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9268
+ * @param {*} [options] Override http request option.
9269
+ * @throws {RequiredError}
9270
+ */
9271
+ archivePlan(requestParameters, options) {
9272
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
9273
+ },
9271
9274
  /**
9272
9275
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9273
9276
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9278,7 +9281,7 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9278
9281
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
9279
9282
  },
9280
9283
  /**
9281
- * Supprime (archive) un plan par productId (manager)
9284
+ * Supprime un plan par productId (manager)
9282
9285
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9283
9286
  * @param {*} [options] Override http request option.
9284
9287
  * @throws {RequiredError}
@@ -9304,6 +9307,16 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
9304
9307
  * @extends {BaseAPI}
9305
9308
  */
9306
9309
  export class SubscriptionsManagerApi extends BaseAPI {
9310
+ /**
9311
+ * Supprime (archive) un plan par productId (manager)
9312
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
9313
+ * @param {*} [options] Override http request option.
9314
+ * @throws {RequiredError}
9315
+ * @memberof SubscriptionsManagerApi
9316
+ */
9317
+ archivePlan(requestParameters, options) {
9318
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
9319
+ }
9307
9320
  /**
9308
9321
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
9309
9322
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -9315,7 +9328,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
9315
9328
  return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
9316
9329
  }
9317
9330
  /**
9318
- * Supprime (archive) un plan par productId (manager)
9331
+ * Supprime un plan par productId (manager)
9319
9332
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
9320
9333
  * @param {*} [options] Override http request option.
9321
9334
  * @throws {RequiredError}
@@ -10554,41 +10567,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
10554
10567
  options: localVarRequestOptions,
10555
10568
  };
10556
10569
  }),
10557
- /**
10558
- *
10559
- * @param {number} [limit]
10560
- * @param {number} [skip]
10561
- * @param {*} [options] Override http request option.
10562
- * @throws {RequiredError}
10563
- */
10564
- getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
10565
- const localVarPath = `/api/users/me/events`;
10566
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10567
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10568
- let baseOptions;
10569
- if (configuration) {
10570
- baseOptions = configuration.baseOptions;
10571
- }
10572
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10573
- const localVarHeaderParameter = {};
10574
- const localVarQueryParameter = {};
10575
- // authentication bearerAuth required
10576
- // http bearer authentication required
10577
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10578
- if (limit !== undefined) {
10579
- localVarQueryParameter['limit'] = limit;
10580
- }
10581
- if (skip !== undefined) {
10582
- localVarQueryParameter['skip'] = skip;
10583
- }
10584
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10585
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10586
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10587
- return {
10588
- url: toPathString(localVarUrlObj),
10589
- options: localVarRequestOptions,
10590
- };
10591
- }),
10592
10570
  /**
10593
10571
  *
10594
10572
  * @param {string} id
@@ -11448,22 +11426,6 @@ export const UsersApiFp = function (configuration) {
11448
11426
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11449
11427
  });
11450
11428
  },
11451
- /**
11452
- *
11453
- * @param {number} [limit]
11454
- * @param {number} [skip]
11455
- * @param {*} [options] Override http request option.
11456
- * @throws {RequiredError}
11457
- */
11458
- getUserEvents(limit, skip, options) {
11459
- return __awaiter(this, void 0, void 0, function* () {
11460
- var _a, _b, _c;
11461
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
11462
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11463
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11464
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11465
- });
11466
- },
11467
11429
  /**
11468
11430
  *
11469
11431
  * @param {string} id
@@ -11905,15 +11867,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
11905
11867
  getUserBookings(requestParameters = {}, options) {
11906
11868
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
11907
11869
  },
11908
- /**
11909
- *
11910
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
11911
- * @param {*} [options] Override http request option.
11912
- * @throws {RequiredError}
11913
- */
11914
- getUserEvents(requestParameters = {}, options) {
11915
- return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
11916
- },
11917
11870
  /**
11918
11871
  *
11919
11872
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -12256,16 +12209,6 @@ export class UsersApi extends BaseAPI {
12256
12209
  getUserBookings(requestParameters = {}, options) {
12257
12210
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12258
12211
  }
12259
- /**
12260
- *
12261
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
12262
- * @param {*} [options] Override http request option.
12263
- * @throws {RequiredError}
12264
- * @memberof UsersApi
12265
- */
12266
- getUserEvents(requestParameters = {}, options) {
12267
- return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
12268
- }
12269
12212
  /**
12270
12213
  *
12271
12214
  * @param {UsersApiGetUserProfileByIdRequest} 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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
7
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
7
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
7
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
7
+ * The version of the OpenAPI document: 1.0.121
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.125
5
+ * The version of the OpenAPI document: 1.0.121
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.125
8
+ * The version of the OpenAPI document: 1.0.121
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in | |
7
+ |[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
8
8
  |[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
9
9
  |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
10
10
  |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
@@ -13,10 +13,10 @@ All URIs are relative to *http://localhost*
13
13
  |[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
14
14
  |[**listClubBookings**](#listclubbookings) | **GET** /api/bookings/staff | |
15
15
 
16
- # **checkInPlayers**
17
- > CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
16
+ # **checkInPlayer**
17
+ > CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
18
18
 
19
- Check-in des joueurs only for club with payment features
19
+ Check-in d\'un joueur (paiement en ligne ou sur place)
20
20
 
21
21
  ### Example
22
22
 
@@ -24,18 +24,18 @@ Check-in des joueurs only for club with payment features
24
24
  import {
25
25
  BookingsStaffApi,
26
26
  Configuration,
27
- CheckInPlayersRequest
27
+ CheckInPlayerRequest
28
28
  } from '@tennac-booking/sdk';
29
29
 
30
30
  const configuration = new Configuration();
31
31
  const apiInstance = new BookingsStaffApi(configuration);
32
32
 
33
33
  let bookingId: string; // (default to undefined)
34
- let checkInPlayersRequest: CheckInPlayersRequest; //
34
+ let checkInPlayerRequest: CheckInPlayerRequest; //
35
35
 
36
- const { status, data } = await apiInstance.checkInPlayers(
36
+ const { status, data } = await apiInstance.checkInPlayer(
37
37
  bookingId,
38
- checkInPlayersRequest
38
+ checkInPlayerRequest
39
39
  );
40
40
  ```
41
41
 
@@ -43,13 +43,13 @@ const { status, data } = await apiInstance.checkInPlayers(
43
43
 
44
44
  |Name | Type | Description | Notes|
45
45
  |------------- | ------------- | ------------- | -------------|
46
- | **checkInPlayersRequest** | **CheckInPlayersRequest**| | |
46
+ | **checkInPlayerRequest** | **CheckInPlayerRequest**| | |
47
47
  | **bookingId** | [**string**] | | defaults to undefined|
48
48
 
49
49
 
50
50
  ### Return type
51
51
 
52
- **CheckInPlayersResponse**
52
+ **CheckInPlayerResponse**
53
53
 
54
54
  ### Authorization
55
55
 
@@ -1,17 +1,19 @@
1
- # EventBookingResponseSetupStatus
1
+ # CheckInPlayerRequest
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
8
9
 
9
10
  ## Example
10
11
 
11
12
  ```typescript
12
- import { EventBookingResponseSetupStatus } from '@tennac-booking/sdk';
13
+ import { CheckInPlayerRequest } from '@tennac-booking/sdk';
13
14
 
14
- const instance: EventBookingResponseSetupStatus = {
15
+ const instance: CheckInPlayerRequest = {
16
+ playerId,
15
17
  };
16
18
  ```
17
19
 
@@ -1,4 +1,4 @@
1
- # CheckInPlayersResponse
1
+ # CheckInPlayerResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,16 +6,16 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | Message de confirmation | [default to undefined]
9
- **invoices** | [**Array<CheckedInPlayer>**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
9
+ **invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { CheckInPlayersResponse } from '@tennac-booking/sdk';
14
+ import { CheckInPlayerResponse } from '@tennac-booking/sdk';
15
15
 
16
- const instance: CheckInPlayersResponse = {
16
+ const instance: CheckInPlayerResponse = {
17
17
  message,
18
- invoices,
18
+ invoice,
19
19
  };
20
20
  ```
21
21