@tennac-booking/sdk 1.0.221 → 1.0.223

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 (131) hide show
  1. package/.openapi-generator/FILES +452 -429
  2. package/README.md +72 -38
  3. package/api.ts +3468 -1857
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2910 -1594
  8. package/dist/api.js +15682 -9514
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +32 -11
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +133 -41
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +21 -8
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +1 -1
  17. package/docs/AgendaBooking.md +2 -0
  18. package/docs/AuthApi.md +113 -0
  19. package/docs/BookingPopulated.md +9 -1
  20. package/docs/BookingSummary.md +4 -4
  21. package/docs/BookingsApi.md +25 -79
  22. package/docs/BookingsStaffApi.md +1 -57
  23. package/docs/BookingsUserApi.md +58 -6
  24. package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
  25. package/docs/ClubPageResponse.md +14 -0
  26. package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
  27. package/docs/ClubPricingPeriodPayload.md +32 -0
  28. package/docs/ClubPricingPeriodResponse.md +6 -6
  29. package/docs/ClubReservationSettingsResponse.md +2 -2
  30. package/docs/ClubResponse.md +12 -2
  31. package/docs/ClubSummary.md +6 -0
  32. package/docs/ComingEventsPageResponse.md +22 -0
  33. package/docs/CourtEnvironment.md +10 -0
  34. package/docs/CreateBookingRequest.md +0 -2
  35. package/docs/CreateOpenBookingRequest.md +6 -4
  36. package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
  37. package/docs/EstimateOpenBookingJoinRequest.md +24 -0
  38. package/docs/EventBookingDetailSummary.md +2 -0
  39. package/docs/EventBookingResponse.md +2 -0
  40. package/docs/EventResponse.md +2 -0
  41. package/docs/EventsApi.md +58 -0
  42. package/docs/EventsStaffApi.md +119 -25
  43. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
  44. package/docs/{SumupReadersResponse.md → Health200Response.md} +7 -5
  45. package/docs/IUserAttributes.md +4 -0
  46. package/docs/JobResult.md +24 -0
  47. package/docs/JobsApi.md +367 -0
  48. package/docs/JoinOpenBookingRequest.md +28 -0
  49. package/docs/MarkNotificationsReadRequest.md +22 -0
  50. package/docs/{SumupPairReaderResponse.md → MarkNotificationsReadResponse.md} +5 -5
  51. package/docs/MyClubInfosResponse.md +0 -2
  52. package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
  53. package/docs/NotificationData.md +22 -0
  54. package/docs/NotificationInitiator.md +28 -0
  55. package/docs/NotificationParticipantPreview.md +24 -0
  56. package/docs/NotificationPreview.md +78 -0
  57. package/docs/NotificationResponse.md +46 -0
  58. package/docs/NotificationResponseClub.md +24 -0
  59. package/docs/NotificationSlotPreview.md +24 -0
  60. package/docs/NotificationSportPreview.md +24 -0
  61. package/docs/{SumupPairReaderRequest.md → NotificationTargetPreview.md} +7 -7
  62. package/docs/NotificationType.md +26 -0
  63. package/docs/OpenBookingBasePriceResponse.md +24 -0
  64. package/docs/OpenBookingInfo.md +7 -5
  65. package/docs/OpenBookingJoinEstimateResponse.md +26 -0
  66. package/docs/OpenBookingPriceBody.md +26 -0
  67. package/docs/PartnerSearchItem.md +28 -0
  68. package/docs/PartnerSearchResponse.md +22 -0
  69. package/docs/PartnerSearchResponseMeta.md +26 -0
  70. package/docs/PlayerPrice.md +3 -1
  71. package/docs/PricingPeriodDiscount.md +24 -0
  72. package/docs/PublicEmailApi.md +4 -4
  73. package/docs/QuickReservationClubSummary.md +12 -0
  74. package/docs/QuickReservationCourtType.md +10 -0
  75. package/docs/RequestOrganizationEmailCodeBody.md +22 -0
  76. package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
  77. package/docs/RequestVerificationCodeBody.md +26 -0
  78. package/docs/{SumupConnectUrlResponse.md → RequestVerificationCodeResponse.md} +5 -5
  79. package/docs/SportResponse.md +2 -0
  80. package/docs/StaffEventBookingResponse.md +2 -0
  81. package/docs/StaffEventsPageResponse.md +22 -0
  82. package/docs/StaffUserProfileResponse.md +4 -0
  83. package/docs/SubscriptionPlanDiscountResponse.md +2 -0
  84. package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
  85. package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
  86. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  87. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  88. package/docs/UserClubMembership.md +2 -0
  89. package/docs/UserNextBookingSummary.md +26 -0
  90. package/docs/UserNotificationsResponse.md +22 -0
  91. package/docs/UserNotificationsResponseMeta.md +28 -0
  92. package/docs/UserProfileResponse.md +12 -0
  93. package/docs/UsersApi.md +273 -0
  94. package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
  95. package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
  96. package/docs/VerifyVerificationCodeBody.md +24 -0
  97. package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
  98. package/docs/WaitListEntryWithPlayer.md +44 -0
  99. package/docs/WaitListPlayer.md +28 -0
  100. package/docs/WaitListPlayersListResponse.md +22 -0
  101. package/docs/WaitListStaffApi.md +55 -0
  102. package/index.ts +1 -1
  103. package/package.json +2 -4
  104. package/tsconfig.json +5 -2
  105. package/dist/esm/api.d.ts +0 -25210
  106. package/dist/esm/api.js +0 -17399
  107. package/dist/esm/base.d.ts +0 -66
  108. package/dist/esm/base.js +0 -60
  109. package/dist/esm/common.d.ts +0 -65
  110. package/dist/esm/common.js +0 -149
  111. package/dist/esm/configuration.d.ts +0 -91
  112. package/dist/esm/configuration.js +0 -40
  113. package/dist/esm/index.d.ts +0 -13
  114. package/dist/esm/index.js +0 -15
  115. package/docs/CheckInPlayerSumupRequest.md +0 -22
  116. package/docs/CheckInSumupPaymentInfo.md +0 -26
  117. package/docs/GetOpenBookingPrice200Response.md +0 -24
  118. package/docs/GetOpenBookingPriceRequest.md +0 -26
  119. package/docs/JoinPriceEstimateResponse.md +0 -38
  120. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
  121. package/docs/OpenBookingSlotInfo.md +0 -24
  122. package/docs/PaymentIntentResult.md +0 -28
  123. package/docs/PaymentsStaffApi.md +0 -124
  124. package/docs/StaffEventsPaginatedResponse.md +0 -26
  125. package/docs/SumUpApi.md +0 -63
  126. package/docs/SumUpManagerApi.md +0 -332
  127. package/docs/SumupAccountStatusResponse.md +0 -32
  128. package/docs/SumupCreatePaymentRequest.md +0 -32
  129. package/docs/SumupOAuthCallbackResponse.md +0 -24
  130. package/docs/SumupReaderInfo.md +0 -34
  131. package/tsconfig.esm.json +0 -7
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.177
5
+ * The version of the OpenAPI document: 1.0.223
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,16 +5,31 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.177
8
+ * The version of the OpenAPI document: 1.0.223
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
15
30
  Object.defineProperty(exports, "__esModule", { value: true });
16
31
  exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
- const axios_1 = require("axios");
32
+ var axios_1 = require("axios");
18
33
  exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
19
34
  /**
20
35
  *
@@ -31,8 +46,10 @@ exports.COLLECTION_FORMATS = {
31
46
  * @export
32
47
  * @class BaseAPI
33
48
  */
34
- class BaseAPI {
35
- constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
49
+ var BaseAPI = /** @class */ (function () {
50
+ function BaseAPI(configuration, basePath, axios) {
51
+ if (basePath === void 0) { basePath = exports.BASE_PATH; }
52
+ if (axios === void 0) { axios = axios_1.default; }
36
53
  var _a;
37
54
  this.basePath = basePath;
38
55
  this.axios = axios;
@@ -41,7 +58,8 @@ class BaseAPI {
41
58
  this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
42
59
  }
43
60
  }
44
- }
61
+ return BaseAPI;
62
+ }());
45
63
  exports.BaseAPI = BaseAPI;
46
64
  ;
47
65
  /**
@@ -50,13 +68,16 @@ exports.BaseAPI = BaseAPI;
50
68
  * @class RequiredError
51
69
  * @extends {Error}
52
70
  */
53
- class RequiredError extends Error {
54
- constructor(field, msg) {
55
- super(msg);
56
- this.field = field;
57
- this.name = "RequiredError";
71
+ var RequiredError = /** @class */ (function (_super) {
72
+ __extends(RequiredError, _super);
73
+ function RequiredError(field, msg) {
74
+ var _this = _super.call(this, msg) || this;
75
+ _this.field = field;
76
+ _this.name = "RequiredError";
77
+ return _this;
58
78
  }
59
- }
79
+ return RequiredError;
80
+ }(Error));
60
81
  exports.RequiredError = RequiredError;
61
82
  /**
62
83
  *
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.177
5
+ * The version of the OpenAPI document: 1.0.223
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,13 +5,24 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.177
8
+ * The version of the OpenAPI document: 1.0.223
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
27
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
28
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -21,9 +32,36 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
32
  step((generator = generator.apply(thisArg, _arguments || [])).next());
22
33
  });
23
34
  };
35
+ var __generator = (this && this.__generator) || function (thisArg, body) {
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
+ function verb(n) { return function (v) { return step([n, v]); }; }
39
+ function step(op) {
40
+ if (f) throw new TypeError("Generator is already executing.");
41
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
42
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43
+ if (y = 0, t) op = [op[0] & 2, t.value];
44
+ switch (op[0]) {
45
+ case 0: case 1: t = op; break;
46
+ case 4: _.label++; return { value: op[1], done: false };
47
+ case 5: _.label++; y = op[1]; op = [0]; continue;
48
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
+ default:
50
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
+ if (t[2]) _.ops.pop();
55
+ _.trys.pop(); continue;
56
+ }
57
+ op = body.call(thisArg, _);
58
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
+ }
61
+ };
24
62
  Object.defineProperty(exports, "__esModule", { value: true });
25
63
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
- const base_1 = require("./base");
64
+ var base_1 = require("./base");
27
65
  /**
28
66
  *
29
67
  * @export
@@ -34,9 +72,9 @@ exports.DUMMY_BASE_URL = 'https://example.com';
34
72
  * @throws {RequiredError}
35
73
  * @export
36
74
  */
37
- const assertParamExists = function (functionName, paramName, paramValue) {
75
+ var assertParamExists = function (functionName, paramName, paramValue) {
38
76
  if (paramValue === null || paramValue === undefined) {
39
- throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
77
+ throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
40
78
  }
41
79
  };
42
80
  exports.assertParamExists = assertParamExists;
@@ -44,14 +82,29 @@ exports.assertParamExists = assertParamExists;
44
82
  *
45
83
  * @export
46
84
  */
47
- const setApiKeyToObject = function (object, keyParamName, configuration) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- if (configuration && configuration.apiKey) {
50
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
- ? yield configuration.apiKey(keyParamName)
52
- : yield configuration.apiKey;
53
- object[keyParamName] = localVarApiKeyValue;
54
- }
85
+ var setApiKeyToObject = function (object, keyParamName, configuration) {
86
+ return __awaiter(this, void 0, void 0, function () {
87
+ var localVarApiKeyValue, _a;
88
+ return __generator(this, function (_b) {
89
+ switch (_b.label) {
90
+ case 0:
91
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
92
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
93
+ return [4 /*yield*/, configuration.apiKey(keyParamName)];
94
+ case 1:
95
+ _a = _b.sent();
96
+ return [3 /*break*/, 4];
97
+ case 2: return [4 /*yield*/, configuration.apiKey];
98
+ case 3:
99
+ _a = _b.sent();
100
+ _b.label = 4;
101
+ case 4:
102
+ localVarApiKeyValue = _a;
103
+ object[keyParamName] = localVarApiKeyValue;
104
+ _b.label = 5;
105
+ case 5: return [2 /*return*/];
106
+ }
107
+ });
55
108
  });
56
109
  };
57
110
  exports.setApiKeyToObject = setApiKeyToObject;
@@ -59,7 +112,7 @@ exports.setApiKeyToObject = setApiKeyToObject;
59
112
  *
60
113
  * @export
61
114
  */
62
- const setBasicAuthToObject = function (object, configuration) {
115
+ var setBasicAuthToObject = function (object, configuration) {
63
116
  if (configuration && (configuration.username || configuration.password)) {
64
117
  object["auth"] = { username: configuration.username, password: configuration.password };
65
118
  }
@@ -69,14 +122,29 @@ exports.setBasicAuthToObject = setBasicAuthToObject;
69
122
  *
70
123
  * @export
71
124
  */
72
- const setBearerAuthToObject = function (object, configuration) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- if (configuration && configuration.accessToken) {
75
- const accessToken = typeof configuration.accessToken === 'function'
76
- ? yield configuration.accessToken()
77
- : yield configuration.accessToken;
78
- object["Authorization"] = "Bearer " + accessToken;
79
- }
125
+ var setBearerAuthToObject = function (object, configuration) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var accessToken, _a;
128
+ return __generator(this, function (_b) {
129
+ switch (_b.label) {
130
+ case 0:
131
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
132
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
133
+ return [4 /*yield*/, configuration.accessToken()];
134
+ case 1:
135
+ _a = _b.sent();
136
+ return [3 /*break*/, 4];
137
+ case 2: return [4 /*yield*/, configuration.accessToken];
138
+ case 3:
139
+ _a = _b.sent();
140
+ _b.label = 4;
141
+ case 4:
142
+ accessToken = _a;
143
+ object["Authorization"] = "Bearer " + accessToken;
144
+ _b.label = 5;
145
+ case 5: return [2 /*return*/];
146
+ }
147
+ });
80
148
  });
81
149
  };
82
150
  exports.setBearerAuthToObject = setBearerAuthToObject;
@@ -84,26 +152,44 @@ exports.setBearerAuthToObject = setBearerAuthToObject;
84
152
  *
85
153
  * @export
86
154
  */
87
- const setOAuthToObject = function (object, name, scopes, configuration) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- if (configuration && configuration.accessToken) {
90
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
91
- ? yield configuration.accessToken(name, scopes)
92
- : yield configuration.accessToken;
93
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
94
- }
155
+ var setOAuthToObject = function (object, name, scopes, configuration) {
156
+ return __awaiter(this, void 0, void 0, function () {
157
+ var localVarAccessTokenValue, _a;
158
+ return __generator(this, function (_b) {
159
+ switch (_b.label) {
160
+ case 0:
161
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
162
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
163
+ return [4 /*yield*/, configuration.accessToken(name, scopes)];
164
+ case 1:
165
+ _a = _b.sent();
166
+ return [3 /*break*/, 4];
167
+ case 2: return [4 /*yield*/, configuration.accessToken];
168
+ case 3:
169
+ _a = _b.sent();
170
+ _b.label = 4;
171
+ case 4:
172
+ localVarAccessTokenValue = _a;
173
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
174
+ _b.label = 5;
175
+ case 5: return [2 /*return*/];
176
+ }
177
+ });
95
178
  });
96
179
  };
97
180
  exports.setOAuthToObject = setOAuthToObject;
98
- function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
181
+ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
182
+ if (key === void 0) { key = ""; }
99
183
  if (parameter == null)
100
184
  return;
101
185
  if (typeof parameter === "object") {
102
186
  if (Array.isArray(parameter)) {
103
- parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
187
+ parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
104
188
  }
105
189
  else {
106
- Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
190
+ Object.keys(parameter).forEach(function (currentKey) {
191
+ return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
192
+ });
107
193
  }
108
194
  }
109
195
  else {
@@ -119,8 +205,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
119
205
  *
120
206
  * @export
121
207
  */
122
- const setSearchParams = function (url, ...objects) {
123
- const searchParams = new URLSearchParams(url.search);
208
+ var setSearchParams = function (url) {
209
+ var objects = [];
210
+ for (var _i = 1; _i < arguments.length; _i++) {
211
+ objects[_i - 1] = arguments[_i];
212
+ }
213
+ var searchParams = new URLSearchParams(url.search);
124
214
  setFlattenedQueryParams(searchParams, objects);
125
215
  url.search = searchParams.toString();
126
216
  };
@@ -129,9 +219,9 @@ exports.setSearchParams = setSearchParams;
129
219
  *
130
220
  * @export
131
221
  */
132
- const serializeDataIfNeeded = function (value, requestOptions, configuration) {
133
- const nonString = typeof value !== 'string';
134
- const needsSerialization = nonString && configuration && configuration.isJsonMime
222
+ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
223
+ var nonString = typeof value !== 'string';
224
+ var needsSerialization = nonString && configuration && configuration.isJsonMime
135
225
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
136
226
  : nonString;
137
227
  return needsSerialization
@@ -143,7 +233,7 @@ exports.serializeDataIfNeeded = serializeDataIfNeeded;
143
233
  *
144
234
  * @export
145
235
  */
146
- const toPathString = function (url) {
236
+ var toPathString = function (url) {
147
237
  return url.pathname + url.search + url.hash;
148
238
  };
149
239
  exports.toPathString = toPathString;
@@ -151,10 +241,12 @@ exports.toPathString = toPathString;
151
241
  *
152
242
  * @export
153
243
  */
154
- const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
155
- return (axios = globalAxios, basePath = BASE_PATH) => {
244
+ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
245
+ return function (axios, basePath) {
156
246
  var _a;
157
- const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
247
+ if (axios === void 0) { axios = globalAxios; }
248
+ if (basePath === void 0) { basePath = BASE_PATH; }
249
+ var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
158
250
  return axios.request(axiosRequestArgs);
159
251
  };
160
252
  };
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.177
5
+ * The version of the OpenAPI document: 1.0.223
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,17 +5,29 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.177
8
+ * The version of the OpenAPI document: 1.0.223
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.Configuration = void 0;
17
- class Configuration {
18
- constructor(param = {}) {
28
+ var Configuration = /** @class */ (function () {
29
+ function Configuration(param) {
30
+ if (param === void 0) { param = {}; }
19
31
  var _a;
20
32
  this.apiKey = param.apiKey;
21
33
  this.username = param.username;
@@ -23,7 +35,7 @@ class Configuration {
23
35
  this.accessToken = param.accessToken;
24
36
  this.basePath = param.basePath;
25
37
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
38
+ this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
39
  this.formDataCtor = param.formDataCtor;
28
40
  }
29
41
  /**
@@ -36,9 +48,10 @@ class Configuration {
36
48
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
37
49
  * @return True if the given MIME is JSON, false otherwise.
38
50
  */
39
- isJsonMime(mime) {
40
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
51
+ Configuration.prototype.isJsonMime = function (mime) {
52
+ var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
53
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
42
- }
43
- }
54
+ };
55
+ return Configuration;
56
+ }());
44
57
  exports.Configuration = Configuration;
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.177
5
+ * The version of the OpenAPI document: 1.0.223
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.177
8
+ * The version of the OpenAPI document: 1.0.223
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
9
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
10
+ **isOpen** | **boolean** | | [default to undefined]
10
11
  **creatorName** | **string** | | [default to undefined]
11
12
  **players** | [**Array&lt;AgendaBookingPlayer&gt;**](AgendaBookingPlayer.md) | | [default to undefined]
12
13
  **paymentStatus** | [**BookingInvoicePaymentStatus**](BookingInvoicePaymentStatus.md) | | [default to undefined]
@@ -20,6 +21,7 @@ import { AgendaBooking } from '@tennac-booking/sdk';
20
21
  const instance: AgendaBooking = {
21
22
  id,
22
23
  status,
24
+ isOpen,
23
25
  creatorName,
24
26
  players,
25
27
  paymentStatus,
@@ -0,0 +1,113 @@
1
+ # AuthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**requestVerificationCode**](#requestverificationcode) | **POST** /api/auth/verification-code | |
8
+ |[**verifyVerificationCode**](#verifyverificationcode) | **POST** /api/auth/verification-code/verify | |
9
+
10
+ # **requestVerificationCode**
11
+ > RequestVerificationCodeResponse requestVerificationCode(requestVerificationCodeBody)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ AuthApi,
19
+ Configuration,
20
+ RequestVerificationCodeBody
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new AuthApi(configuration);
25
+
26
+ let requestVerificationCodeBody: RequestVerificationCodeBody; //
27
+
28
+ const { status, data } = await apiInstance.requestVerificationCode(
29
+ requestVerificationCodeBody
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **requestVerificationCodeBody** | **RequestVerificationCodeBody**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ **RequestVerificationCodeResponse**
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | OK | - |
58
+ |**400** | Payload invalide | - |
59
+
60
+ [[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)
61
+
62
+ # **verifyVerificationCode**
63
+ > VerifyVerificationCodeResponse verifyVerificationCode(verifyVerificationCodeBody)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ AuthApi,
71
+ Configuration,
72
+ VerifyVerificationCodeBody
73
+ } from '@tennac-booking/sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new AuthApi(configuration);
77
+
78
+ let verifyVerificationCodeBody: VerifyVerificationCodeBody; //
79
+
80
+ const { status, data } = await apiInstance.verifyVerificationCode(
81
+ verifyVerificationCodeBody
82
+ );
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ |Name | Type | Description | Notes|
88
+ |------------- | ------------- | ------------- | -------------|
89
+ | **verifyVerificationCodeBody** | **VerifyVerificationCodeBody**| | |
90
+
91
+
92
+ ### Return type
93
+
94
+ **VerifyVerificationCodeResponse**
95
+
96
+ ### Authorization
97
+
98
+ No authorization required
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+ ### HTTP response details
107
+ | Status code | Description | Response headers |
108
+ |-------------|-------------|------------------|
109
+ |**200** | OK | - |
110
+ |**400** | Code invalide | - |
111
+
112
+ [[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)
113
+
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID de la réservation | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
10
  **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
11
+ **slotInfos** | [**Array&lt;SlotInfo&gt;**](SlotInfo.md) | Informations des slots | [default to undefined]
12
12
  **players** | [**Array&lt;UserInfo&gt;**](UserInfo.md) | | [default to undefined]
13
13
  **initialPlayers** | [**Array&lt;UserInfo&gt;**](UserInfo.md) | Joueurs inclus à la création de la réservation (pour les créneaux ouverts) | [optional] [default to undefined]
14
14
  **paymentByPlayers** | [**Array&lt;PaymentByPlayerInfo&gt;**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
@@ -21,6 +21,10 @@ Name | Type | Description | Notes
21
21
  **cancelledByManager** | **boolean** | | [optional] [default to undefined]
22
22
  **cancelledBy** | **string** | | [optional] [default to undefined]
23
23
  **cancellationReason** | **string** | | [optional] [default to undefined]
24
+ **isOpen** | **boolean** | | [default to undefined]
25
+ **description** | **string** | | [optional] [default to undefined]
26
+ **minLevel** | **string** | | [optional] [default to undefined]
27
+ **maxPlayersDesired** | **number** | | [optional] [default to undefined]
24
28
 
25
29
  ## Example
26
30
 
@@ -44,6 +48,10 @@ const instance: BookingPopulated = {
44
48
  cancelledByManager,
45
49
  cancelledBy,
46
50
  cancellationReason,
51
+ isOpen,
52
+ description,
53
+ minLevel,
54
+ maxPlayersDesired,
47
55
  };
48
56
  ```
49
57
 
@@ -16,8 +16,6 @@ Name | Type | Description | Notes
16
16
  **slotIds** | **Array&lt;string&gt;** | | [default to undefined]
17
17
  **isPublic** | **boolean** | | [default to undefined]
18
18
  **isOpen** | **boolean** | | [default to undefined]
19
- **maxPlayers** | **number** | | [optional] [default to undefined]
20
- **maxPlayersDesired** | **number** | | [optional] [default to undefined]
21
19
  **description** | **string** | | [optional] [default to undefined]
22
20
  **minLevel** | **string** | | [optional] [default to undefined]
23
21
  **initialPlayers** | [**Array&lt;BookingPlayerInfo&gt;**](BookingPlayerInfo.md) | | [optional] [default to undefined]
@@ -52,6 +50,8 @@ Name | Type | Description | Notes
52
50
  **court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
53
51
  **sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
54
52
  **players** | [**Array&lt;BookingPlayerPaymentSummary&gt;**](BookingPlayerPaymentSummary.md) | | [default to undefined]
53
+ **userParticipationStatus** | **string** | | [optional] [default to undefined]
54
+ **waitListPosition** | **number** | | [optional] [default to undefined]
55
55
 
56
56
  ## Example
57
57
 
@@ -70,8 +70,6 @@ const instance: BookingSummary = {
70
70
  slotIds,
71
71
  isPublic,
72
72
  isOpen,
73
- maxPlayers,
74
- maxPlayersDesired,
75
73
  description,
76
74
  minLevel,
77
75
  initialPlayers,
@@ -106,6 +104,8 @@ const instance: BookingSummary = {
106
104
  court,
107
105
  sport,
108
106
  players,
107
+ userParticipationStatus,
108
+ waitListPosition,
109
109
  };
110
110
  ```
111
111