@tennac-booking/sdk 1.0.171 → 1.0.173

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 (44) hide show
  1. package/.openapi-generator/FILES +399 -394
  2. package/README.md +11 -3
  3. package/api.ts +562 -28
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +432 -28
  8. package/dist/api.js +215 -9
  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 +432 -28
  16. package/dist/esm/api.js +211 -5
  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/AppRegisterRequestBody.md +22 -0
  28. package/docs/CompleteRegisterRequestBody.md +32 -0
  29. package/docs/{UpdateUserRequestBodyLevelBySportsInner.md → CompleteRegisterRequestBodyLevelBySportsInner.md} +3 -3
  30. package/docs/EmailExistsResponse.md +2 -0
  31. package/docs/EventsStaffApi.md +54 -0
  32. package/docs/EventsWaitListStaffApi.md +1 -1
  33. package/docs/GoogleAuthResponse.md +2 -0
  34. package/docs/IUserAttributes.md +4 -0
  35. package/docs/LoginResponse.md +2 -0
  36. package/docs/StaffEventBookingInvoiceResponse.md +32 -0
  37. package/docs/StaffEventBookingResponse.md +40 -0
  38. package/docs/StaffEventDetailResponse.md +22 -0
  39. package/docs/StaffUserProfileResponse.md +4 -0
  40. package/docs/UpdateUserRequestBody.md +2 -2
  41. package/docs/UserProfileResponse.md +4 -0
  42. package/docs/UsersApi.md +104 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **sessionDuration** | **number** | | [default to undefined]
11
11
  **sessionEnd** | **number** | | [default to undefined]
12
12
  **role** | **string** | | [default to undefined]
13
+ **isOnBoardingInAppCompleted** | **boolean** | | [default to undefined]
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const instance: LoginResponse = {
22
23
  sessionDuration,
23
24
  sessionEnd,
24
25
  role,
26
+ isOnBoardingInAppCompleted,
25
27
  };
26
28
  ```
27
29
 
@@ -0,0 +1,32 @@
1
+ # StaffEventBookingInvoiceResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **userId** | **string** | | [default to undefined]
10
+ **status** | [**InvoiceStatus**](InvoiceStatus.md) | | [default to undefined]
11
+ **amount** | **number** | | [default to undefined]
12
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
13
+ **createdAt** | **string** | | [default to undefined]
14
+ **updatedAt** | **string** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { StaffEventBookingInvoiceResponse } from '@tennac-booking/sdk';
20
+
21
+ const instance: StaffEventBookingInvoiceResponse = {
22
+ id,
23
+ userId,
24
+ status,
25
+ amount,
26
+ paymentMethod,
27
+ createdAt,
28
+ updatedAt,
29
+ };
30
+ ```
31
+
32
+ [[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,40 @@
1
+ # StaffEventBookingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **eventId** | **string** | | [default to undefined]
10
+ **status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
11
+ **isOpen** | **boolean** | | [default to undefined]
12
+ **teamName** | **string** | | [optional] [default to undefined]
13
+ **players** | [**Array<EventUser>**](EventUser.md) | | [default to undefined]
14
+ **invoices** | [**Array<StaffEventBookingInvoiceResponse>**](StaffEventBookingInvoiceResponse.md) | | [default to undefined]
15
+ **limitSetupDate** | **string** | | [optional] [default to undefined]
16
+ **limitCancellationDate** | **string** | | [optional] [default to undefined]
17
+ **createdAt** | **string** | | [default to undefined]
18
+ **updatedAt** | **string** | | [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { StaffEventBookingResponse } from '@tennac-booking/sdk';
24
+
25
+ const instance: StaffEventBookingResponse = {
26
+ id,
27
+ eventId,
28
+ status,
29
+ isOpen,
30
+ teamName,
31
+ players,
32
+ invoices,
33
+ limitSetupDate,
34
+ limitCancellationDate,
35
+ createdAt,
36
+ updatedAt,
37
+ };
38
+ ```
39
+
40
+ [[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
+ # StaffEventDetailResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
9
+ **bookings** | [**Array<StaffEventBookingResponse>**](StaffEventBookingResponse.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { StaffEventDetailResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: StaffEventDetailResponse = {
17
+ event,
18
+ bookings,
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)
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
27
27
  **isGuest** | **boolean** | | [optional] [default to undefined]
28
28
  **isAdmin** | **boolean** | | [optional] [default to undefined]
29
29
  **isClient** | **boolean** | | [optional] [default to undefined]
30
+ **isOnBoardingInAppCompleted** | **boolean** | | [optional] [default to undefined]
31
+ **createdFrom** | **string** | | [optional] [default to undefined]
30
32
  **createdAt** | **string** | | [optional] [default to undefined]
31
33
  **updatedAt** | **string** | | [optional] [default to undefined]
32
34
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
@@ -67,6 +69,8 @@ const instance: StaffUserProfileResponse = {
67
69
  isGuest,
68
70
  isAdmin,
69
71
  isClient,
72
+ isOnBoardingInAppCompleted,
73
+ createdFrom,
70
74
  createdAt,
71
75
  updatedAt,
72
76
  isLevelCertified,
@@ -13,11 +13,11 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **birthDate** | **string** | | [optional] [default to undefined]
15
15
  **profilePicture** | **string** | | [optional] [default to undefined]
16
- **levelBySports** | [**Array<UpdateUserRequestBodyLevelBySportsInner>**](UpdateUserRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
16
+ **levelBySports** | [**Array<CompleteRegisterRequestBodyLevelBySportsInner>**](CompleteRegisterRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
17
17
  **characteristics** | [**Array<UpdateUserRequestBodyCharacteristicsInner>**](UpdateUserRequestBodyCharacteristicsInner.md) | | [optional] [default to undefined]
18
18
  **isProfileVisible** | **boolean** | | [optional] [default to undefined]
19
19
  **description** | **string** | | [optional] [default to undefined]
20
- **location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
20
+ **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
21
21
 
22
22
  ## Example
23
23
 
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
27
27
  **isGuest** | **boolean** | | [optional] [default to undefined]
28
28
  **isAdmin** | **boolean** | | [optional] [default to undefined]
29
29
  **isClient** | **boolean** | | [optional] [default to undefined]
30
+ **isOnBoardingInAppCompleted** | **boolean** | | [optional] [default to undefined]
31
+ **createdFrom** | **string** | | [optional] [default to undefined]
30
32
  **createdAt** | **string** | | [optional] [default to undefined]
31
33
  **updatedAt** | **string** | | [optional] [default to undefined]
32
34
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
@@ -73,6 +75,8 @@ const instance: UserProfileResponse = {
73
75
  isGuest,
74
76
  isAdmin,
75
77
  isClient,
78
+ isOnBoardingInAppCompleted,
79
+ createdFrom,
76
80
  createdAt,
77
81
  updatedAt,
78
82
  isLevelCertified,
package/docs/UsersApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
9
9
  |[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
10
10
  |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
11
+ |[**completeRegister**](#completeregister) | **POST** /api/users/complete-register | |
11
12
  |[**getAllUsers**](#getallusers) | **GET** /api/users | |
12
13
  |[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
13
14
  |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
@@ -29,6 +30,7 @@ All URIs are relative to *http://localhost*
29
30
  |[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
30
31
  |[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
31
32
  |[**register**](#register) | **POST** /api/users | |
33
+ |[**registerFromApp**](#registerfromapp) | **POST** /api/users/register-app | |
32
34
  |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
33
35
  |[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
34
36
  |[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
@@ -240,6 +242,57 @@ const { status, data } = await apiInstance.changePassword(
240
242
  - **Accept**: application/json
241
243
 
242
244
 
245
+ ### HTTP response details
246
+ | Status code | Description | Response headers |
247
+ |-------------|-------------|------------------|
248
+ |**200** | Ok | - |
249
+
250
+ [[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)
251
+
252
+ # **completeRegister**
253
+ > IUserAttributes completeRegister(completeRegisterRequestBody)
254
+
255
+
256
+ ### Example
257
+
258
+ ```typescript
259
+ import {
260
+ UsersApi,
261
+ Configuration,
262
+ CompleteRegisterRequestBody
263
+ } from '@tennac-booking/sdk';
264
+
265
+ const configuration = new Configuration();
266
+ const apiInstance = new UsersApi(configuration);
267
+
268
+ let completeRegisterRequestBody: CompleteRegisterRequestBody; //
269
+
270
+ const { status, data } = await apiInstance.completeRegister(
271
+ completeRegisterRequestBody
272
+ );
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ |Name | Type | Description | Notes|
278
+ |------------- | ------------- | ------------- | -------------|
279
+ | **completeRegisterRequestBody** | **CompleteRegisterRequestBody**| | |
280
+
281
+
282
+ ### Return type
283
+
284
+ **IUserAttributes**
285
+
286
+ ### Authorization
287
+
288
+ [bearerAuth](../README.md#bearerAuth)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json
293
+ - **Accept**: application/json
294
+
295
+
243
296
  ### HTTP response details
244
297
  | Status code | Description | Response headers |
245
298
  |-------------|-------------|------------------|
@@ -1283,6 +1336,57 @@ const { status, data } = await apiInstance.register(
1283
1336
  | **registerRequestBody** | **RegisterRequestBody**| | |
1284
1337
 
1285
1338
 
1339
+ ### Return type
1340
+
1341
+ **IUserAttributes**
1342
+
1343
+ ### Authorization
1344
+
1345
+ No authorization required
1346
+
1347
+ ### HTTP request headers
1348
+
1349
+ - **Content-Type**: application/json
1350
+ - **Accept**: application/json
1351
+
1352
+
1353
+ ### HTTP response details
1354
+ | Status code | Description | Response headers |
1355
+ |-------------|-------------|------------------|
1356
+ |**201** | Created | - |
1357
+
1358
+ [[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)
1359
+
1360
+ # **registerFromApp**
1361
+ > IUserAttributes registerFromApp(appRegisterRequestBody)
1362
+
1363
+
1364
+ ### Example
1365
+
1366
+ ```typescript
1367
+ import {
1368
+ UsersApi,
1369
+ Configuration,
1370
+ AppRegisterRequestBody
1371
+ } from '@tennac-booking/sdk';
1372
+
1373
+ const configuration = new Configuration();
1374
+ const apiInstance = new UsersApi(configuration);
1375
+
1376
+ let appRegisterRequestBody: AppRegisterRequestBody; //
1377
+
1378
+ const { status, data } = await apiInstance.registerFromApp(
1379
+ appRegisterRequestBody
1380
+ );
1381
+ ```
1382
+
1383
+ ### Parameters
1384
+
1385
+ |Name | Type | Description | Notes|
1386
+ |------------- | ------------- | ------------- | -------------|
1387
+ | **appRegisterRequestBody** | **AppRegisterRequestBody**| | |
1388
+
1389
+
1286
1390
  ### Return type
1287
1391
 
1288
1392
  **IUserAttributes**
package/index.ts 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.171
7
+ * The version of the OpenAPI document: 1.0.172
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {