@tennac-booking/sdk 1.0.38 → 1.0.41

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 (84) hide show
  1. package/.openapi-generator/FILES +65 -206
  2. package/README.md +74 -258
  3. package/api.ts +2400 -13132
  4. package/base.ts +3 -3
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +1546 -8835
  8. package/dist/api.js +1017 -7045
  9. package/dist/base.d.ts +2 -2
  10. package/dist/base.js +3 -3
  11. package/dist/common.d.ts +2 -2
  12. package/dist/common.js +2 -2
  13. package/dist/configuration.d.ts +2 -2
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +1546 -8835
  16. package/dist/esm/api.js +1012 -6930
  17. package/dist/esm/base.d.ts +2 -2
  18. package/dist/esm/base.js +3 -3
  19. package/dist/esm/common.d.ts +2 -2
  20. package/dist/esm/common.js +2 -2
  21. package/dist/esm/configuration.d.ts +2 -2
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +2 -2
  24. package/dist/esm/index.js +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  27. package/docs/AddPaymentMethodRequestBody.md +20 -0
  28. package/docs/BaseUser.md +76 -0
  29. package/docs/BookingDetailResponse.md +46 -0
  30. package/docs/BookingSummary.md +44 -0
  31. package/docs/BookingSummaryBookingHistory.md +18 -0
  32. package/docs/BookingSummaryClubAddress.md +18 -0
  33. package/docs/ChangePasswordResponse.md +1 -1
  34. package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
  35. package/docs/ConfirmPaymentMethodResponse.md +22 -0
  36. package/docs/DiagnosticsApi.md +52 -0
  37. package/docs/DiagnosticsResponse.md +24 -0
  38. package/docs/FavoriteClubMutationResponse.md +22 -0
  39. package/docs/FavoriteClubRequestBody.md +20 -0
  40. package/docs/FavoriteClubsResponse.md +20 -0
  41. package/docs/FavoritePlayerMutationResponse.md +22 -0
  42. package/docs/FavoritePlayerRequestBody.md +20 -0
  43. package/docs/FavoritePlayersResponse.md +1 -1
  44. package/docs/FrequentClub.md +24 -0
  45. package/docs/FrequentPlayer.md +28 -0
  46. package/docs/Gender.md +12 -0
  47. package/docs/GoogleAuthRequestBody.md +20 -0
  48. package/docs/GoogleAuthResponse.md +30 -0
  49. package/docs/GoogleAuthResponseUser.md +26 -0
  50. package/docs/ILevelBySports.md +22 -0
  51. package/docs/IUserAttributes.md +74 -0
  52. package/docs/IUserAttributesFavoritePlayersInner.md +18 -0
  53. package/docs/IUserLocation.md +44 -0
  54. package/docs/LevelBySportEntry.md +22 -0
  55. package/docs/LoginResponse.md +2 -2
  56. package/docs/NotImplementedResponse.md +20 -0
  57. package/docs/PasswordResetRequestBody.md +20 -0
  58. package/docs/PaymentMethodSetupResponse.md +24 -0
  59. package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +75 -0
  60. package/docs/PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md +22 -0
  61. package/docs/ProfilePictureResponse.md +1 -1
  62. package/docs/ProfilePictureUpdateRequestBody.md +20 -0
  63. package/docs/RefreshTokenResponse.md +6 -2
  64. package/docs/SdkDiagnosticsResponse.md +28 -0
  65. package/docs/SdkDiagnosticsResponseOpenapi.md +24 -0
  66. package/docs/SdkDiagnosticsResponseSdk.md +24 -0
  67. package/docs/SetupPaymentMethodRequestBody.md +1 -1
  68. package/docs/SetupPaymentMethodResponse.md +3 -3
  69. package/docs/StaffUserProfileResponse.md +78 -0
  70. package/docs/SubscribeToClubRequestBody.md +3 -3
  71. package/docs/SubscriptionMutationResponse.md +20 -0
  72. package/docs/SubscriptionSessionRequestBody.md +22 -0
  73. package/docs/SubscriptionSessionResponse.md +20 -0
  74. package/docs/UpdateCustomerRequestBody.md +3 -7
  75. package/docs/UpdateCustomerResponse.md +1 -3
  76. package/docs/UpdateLevelBySportsRequestBody.md +1 -1
  77. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +2 -2
  78. package/docs/UserLocationSummary.md +44 -0
  79. package/docs/UserProfileResponse.md +84 -0
  80. package/docs/UserRolesResponse.md +20 -0
  81. package/docs/UserSubscriptionsResponse.md +20 -0
  82. package/docs/UsersApi.md +1721 -76
  83. package/index.ts +2 -2
  84. package/package.json +1 -1
@@ -0,0 +1,78 @@
1
+ # StaffUserProfileResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **googleId** | **string** | | [optional] [default to undefined]
10
+ **firstName** | **string** | | [default to undefined]
11
+ **lastName** | **string** | | [default to undefined]
12
+ **email** | **string** | | [default to undefined]
13
+ **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
+ **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
+ **isAccountVerified** | **boolean** | | [default to undefined]
16
+ **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
17
+ **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
19
+ **phone** | **string** | | [optional] [default to undefined]
20
+ **password** | **string** | | [optional] [default to undefined]
21
+ **profilePicture** | **string** | | [optional] [default to undefined]
22
+ **isAdmin** | **boolean** | | [default to undefined]
23
+ **createdAt** | **string** | | [default to undefined]
24
+ **updatedAt** | **string** | | [default to undefined]
25
+ **isLevelCertified** | **boolean** | | [optional] [default to undefined]
26
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
27
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
28
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
29
+ **setupIntentId** | **string** | | [optional] [default to undefined]
30
+ **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
31
+ **description** | **string** | | [optional] [default to undefined]
32
+ **city** | **string** | | [optional] [default to undefined]
33
+ **isProfileVisible** | **boolean** | | [default to undefined]
34
+ **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
35
+ **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
36
+ **isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
37
+ **creditOnMyClub** | **number** | | [optional] [default to undefined]
38
+
39
+ ## Example
40
+
41
+ ```typescript
42
+ import { StaffUserProfileResponse } from '@tennac-booking/sdk';
43
+
44
+ const instance: StaffUserProfileResponse = {
45
+ username,
46
+ googleId,
47
+ firstName,
48
+ lastName,
49
+ email,
50
+ gender,
51
+ location,
52
+ isAccountVerified,
53
+ isCreditCardRegistered,
54
+ levelBySports,
55
+ stripeCustomerId,
56
+ phone,
57
+ password,
58
+ profilePicture,
59
+ isAdmin,
60
+ createdAt,
61
+ updatedAt,
62
+ isLevelCertified,
63
+ paymentMethods,
64
+ defaultPaymentMethodId,
65
+ paymentMethodSetupCompleted,
66
+ setupIntentId,
67
+ favoriteClubs,
68
+ description,
69
+ city,
70
+ isProfileVisible,
71
+ favoritePlayers,
72
+ sports,
73
+ isSubscribedToMyClub,
74
+ creditOnMyClub,
75
+ };
76
+ ```
77
+
78
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | ID du club | [default to undefined]
9
- **roleId** | **string** | ID du rôle dans le club | [default to undefined]
8
+ **clubId** | **string** | | [default to undefined]
9
+ **priceId** | **string** | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -15,7 +15,7 @@ import { SubscribeToClubRequestBody } from '@tennac-booking/sdk';
15
15
 
16
16
  const instance: SubscribeToClubRequestBody = {
17
17
  clubId,
18
- roleId,
18
+ priceId,
19
19
  };
20
20
  ```
21
21
 
@@ -0,0 +1,20 @@
1
+ # SubscriptionMutationResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscription** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SubscriptionMutationResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: SubscriptionMutationResponse = {
16
+ subscription,
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
+ # SubscriptionSessionRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **priceId** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SubscriptionSessionRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: SubscriptionSessionRequestBody = {
17
+ priceId,
18
+ clubId,
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
+ # SubscriptionSessionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sessionUrl** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SubscriptionSessionResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: SubscriptionSessionResponse = {
16
+ sessionUrl,
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)
@@ -5,10 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | Nom du client | [optional] [default to undefined]
9
- **email** | **string** | Email du client | [optional] [default to undefined]
10
- **phone** | **string** | Téléphone du client | [optional] [default to undefined]
11
- **address** | [**UpdateCustomerRequestBodyAddress**](UpdateCustomerRequestBodyAddress.md) | | [optional] [default to undefined]
8
+ **email** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
12
10
 
13
11
  ## Example
14
12
 
@@ -16,10 +14,8 @@ Name | Type | Description | Notes
16
14
  import { UpdateCustomerRequestBody } from '@tennac-booking/sdk';
17
15
 
18
16
  const instance: UpdateCustomerRequestBody = {
19
- name,
20
17
  email,
21
- phone,
22
- address,
18
+ name,
23
19
  };
24
20
  ```
25
21
 
@@ -5,8 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
- **customer** | [**UpdateCustomerResponseCustomer**](UpdateCustomerResponseCustomer.md) | | [optional] [default to undefined]
8
+ **customer** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [default to undefined]
10
9
 
11
10
  ## Example
12
11
 
@@ -14,7 +13,6 @@ Name | Type | Description | Notes
14
13
  import { UpdateCustomerResponse } from '@tennac-booking/sdk';
15
14
 
16
15
  const instance: UpdateCustomerResponse = {
17
- message,
18
16
  customer,
19
17
  };
20
18
  ```
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **levelBySports** | [**Array<LevelBySportsItem>**](LevelBySportsItem.md) | | [default to undefined]
8
+ **levelBySports** | [**Array<LevelBySportEntry>**](LevelBySportEntry.md) | | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **sport** | **string** | | [default to undefined]
9
8
  **level** | **string** | | [default to undefined]
9
+ **sport** | **string** | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
14
14
  import { UpdateUserRequestBodyLevelBySportsInner } from '@tennac-booking/sdk';
15
15
 
16
16
  const instance: UpdateUserRequestBodyLevelBySportsInner = {
17
- sport,
18
17
  level,
18
+ sport,
19
19
  };
20
20
  ```
21
21
 
@@ -0,0 +1,44 @@
1
+ # UserLocationSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | | [optional] [default to undefined]
9
+ **coordinates** | **Array<number>** | | [optional] [default to undefined]
10
+ **mapboxId** | **string** | | [optional] [default to undefined]
11
+ **mapboxPlaceType** | **Array<string>** | | [optional] [default to undefined]
12
+ **mapboxPlaceName** | **string** | | [optional] [default to undefined]
13
+ **mapboxAddress** | **string** | | [optional] [default to undefined]
14
+ **mapboxContext** | **Array<{ [key: string]: any; }>** | | [optional] [default to undefined]
15
+ **mapboxRaw** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
16
+ **city** | **string** | | [optional] [default to undefined]
17
+ **country** | **string** | | [optional] [default to undefined]
18
+ **postalCode** | **string** | | [optional] [default to undefined]
19
+ **state** | **string** | | [optional] [default to undefined]
20
+ **address** | **string** | | [optional] [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { UserLocationSummary } from '@tennac-booking/sdk';
26
+
27
+ const instance: UserLocationSummary = {
28
+ type,
29
+ coordinates,
30
+ mapboxId,
31
+ mapboxPlaceType,
32
+ mapboxPlaceName,
33
+ mapboxAddress,
34
+ mapboxContext,
35
+ mapboxRaw,
36
+ city,
37
+ country,
38
+ postalCode,
39
+ state,
40
+ address,
41
+ };
42
+ ```
43
+
44
+ [[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,84 @@
1
+ # UserProfileResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **googleId** | **string** | | [optional] [default to undefined]
10
+ **firstName** | **string** | | [default to undefined]
11
+ **lastName** | **string** | | [default to undefined]
12
+ **email** | **string** | | [default to undefined]
13
+ **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
+ **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
+ **isAccountVerified** | **boolean** | | [default to undefined]
16
+ **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
17
+ **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
19
+ **phone** | **string** | | [optional] [default to undefined]
20
+ **password** | **string** | | [optional] [default to undefined]
21
+ **profilePicture** | **string** | | [optional] [default to undefined]
22
+ **isAdmin** | **boolean** | | [default to undefined]
23
+ **createdAt** | **string** | | [default to undefined]
24
+ **updatedAt** | **string** | | [default to undefined]
25
+ **isLevelCertified** | **boolean** | | [optional] [default to undefined]
26
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
27
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
28
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
29
+ **setupIntentId** | **string** | | [optional] [default to undefined]
30
+ **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
31
+ **description** | **string** | | [optional] [default to undefined]
32
+ **city** | **string** | | [optional] [default to undefined]
33
+ **isProfileVisible** | **boolean** | | [default to undefined]
34
+ **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
35
+ **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
36
+ **upcomingBookingsCount** | **number** | | [optional] [default to undefined]
37
+ **subscriptionsCount** | **number** | | [optional] [default to undefined]
38
+ **frequentlyVisitedClubs** | [**Array<FrequentClub>**](FrequentClub.md) | | [optional] [default to undefined]
39
+ **frequentlyPlayedWith** | [**Array<FrequentPlayer>**](FrequentPlayer.md) | | [optional] [default to undefined]
40
+ **stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
41
+
42
+ ## Example
43
+
44
+ ```typescript
45
+ import { UserProfileResponse } from '@tennac-booking/sdk';
46
+
47
+ const instance: UserProfileResponse = {
48
+ username,
49
+ googleId,
50
+ firstName,
51
+ lastName,
52
+ email,
53
+ gender,
54
+ location,
55
+ isAccountVerified,
56
+ isCreditCardRegistered,
57
+ levelBySports,
58
+ stripeCustomerId,
59
+ phone,
60
+ password,
61
+ profilePicture,
62
+ isAdmin,
63
+ createdAt,
64
+ updatedAt,
65
+ isLevelCertified,
66
+ paymentMethods,
67
+ defaultPaymentMethodId,
68
+ paymentMethodSetupCompleted,
69
+ setupIntentId,
70
+ favoriteClubs,
71
+ description,
72
+ city,
73
+ isProfileVisible,
74
+ favoritePlayers,
75
+ sports,
76
+ upcomingBookingsCount,
77
+ subscriptionsCount,
78
+ frequentlyVisitedClubs,
79
+ frequentlyPlayedWith,
80
+ stripeLinks,
81
+ };
82
+ ```
83
+
84
+ [[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
+ # UserRolesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **roles** | **Array<{ [key: string]: any; }>** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserRolesResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: UserRolesResponse = {
16
+ roles,
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,20 @@
1
+ # UserSubscriptionsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptions** | **{ [key: string]: { [key: string]: any; }; }** | Construct a type with a set of properties K of type T | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserSubscriptionsResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: UserSubscriptionsResponse = {
16
+ subscriptions,
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)