@tennac-booking/sdk 1.0.40 → 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.
- package/.openapi-generator/FILES +2 -3
- package/README.md +2 -3
- package/api.ts +553 -383
- package/dist/api.d.ts +592 -423
- package/dist/api.js +4 -1
- package/dist/esm/api.d.ts +592 -423
- package/dist/esm/api.js +3 -0
- package/docs/BaseUser.md +13 -13
- package/docs/FavoritePlayersResponse.md +1 -1
- package/docs/IUserAttributes.md +74 -0
- package/docs/IUserAttributesFavoritePlayersInner.md +18 -0
- package/docs/IUserLocation.md +44 -0
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +15 -13
- package/docs/PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md +22 -0
- package/docs/StaffUserProfileResponse.md +56 -0
- package/docs/UserProfileResponse.md +56 -0
- package/docs/UsersApi.md +8 -8
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
package/docs/BaseUser.md
CHANGED
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **
|
|
9
|
-
**_id** | **
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**username** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**googleId** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**firstName** | **string** | | [default to undefined]
|
|
13
|
-
**lastName** | **string** | | [default to undefined]
|
|
14
|
-
**email** | **string** | | [default to undefined]
|
|
12
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**phone** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**description** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**city** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
20
|
-
**gender** |
|
|
21
|
-
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
19
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
20
|
+
**gender** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
22
22
|
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
23
|
-
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
|
+
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
24
24
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
25
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
25
|
+
**paymentMethodSetupCompleted** | **boolean** | | [optional] [default to undefined]
|
|
26
26
|
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
27
27
|
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
28
|
-
**levelBySports** | [**Array<
|
|
28
|
+
**levelBySports** | [**Array<PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner>**](PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
29
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
30
30
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
31
31
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
32
|
-
**createdAt** | **string** | | [default to undefined]
|
|
33
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
32
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
33
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
34
34
|
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
35
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
36
36
|
**location** | [**UserLocationSummary**](UserLocationSummary.md) | | [optional] [default to undefined]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**favoriteUsers** | [**Array<
|
|
8
|
+
**favoriteUsers** | [**Array<IUserAttributes>**](IUserAttributes.md) | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# IUserAttributes
|
|
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
|
+
|
|
37
|
+
## Example
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { IUserAttributes } from '@tennac-booking/sdk';
|
|
41
|
+
|
|
42
|
+
const instance: IUserAttributes = {
|
|
43
|
+
username,
|
|
44
|
+
googleId,
|
|
45
|
+
firstName,
|
|
46
|
+
lastName,
|
|
47
|
+
email,
|
|
48
|
+
gender,
|
|
49
|
+
location,
|
|
50
|
+
isAccountVerified,
|
|
51
|
+
isCreditCardRegistered,
|
|
52
|
+
levelBySports,
|
|
53
|
+
stripeCustomerId,
|
|
54
|
+
phone,
|
|
55
|
+
password,
|
|
56
|
+
profilePicture,
|
|
57
|
+
isAdmin,
|
|
58
|
+
createdAt,
|
|
59
|
+
updatedAt,
|
|
60
|
+
isLevelCertified,
|
|
61
|
+
paymentMethods,
|
|
62
|
+
defaultPaymentMethodId,
|
|
63
|
+
paymentMethodSetupCompleted,
|
|
64
|
+
setupIntentId,
|
|
65
|
+
favoriteClubs,
|
|
66
|
+
description,
|
|
67
|
+
city,
|
|
68
|
+
isProfileVisible,
|
|
69
|
+
favoritePlayers,
|
|
70
|
+
sports,
|
|
71
|
+
};
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
[[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,18 @@
|
|
|
1
|
+
# IUserAttributesFavoritePlayersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { IUserAttributesFavoritePlayersInner } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: IUserAttributesFavoritePlayersInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,44 @@
|
|
|
1
|
+
# IUserLocation
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**coordinates** | **Array<number>** | | [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 { IUserLocation } from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const instance: IUserLocation = {
|
|
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)
|
|
@@ -6,33 +6,34 @@ From T, pick a set of properties whose keys are in the union K
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **
|
|
10
|
-
**_id** | **
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**username** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**googleId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**firstName** | **string** | | [default to undefined]
|
|
14
|
-
**lastName** | **string** | | [default to undefined]
|
|
15
|
-
**email** | **string** | | [default to undefined]
|
|
13
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**phone** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**description** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**city** | **string** | | [optional] [default to undefined]
|
|
20
|
-
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
21
|
-
**gender** |
|
|
22
|
-
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
20
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
21
|
+
**gender** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
23
23
|
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
24
|
-
**isAdmin** | **boolean** | | [default to undefined]
|
|
24
|
+
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
25
25
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
26
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
26
|
+
**paymentMethodSetupCompleted** | **boolean** | | [optional] [default to undefined]
|
|
27
27
|
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
28
28
|
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
29
|
-
**levelBySports** | [**Array<
|
|
29
|
+
**levelBySports** | [**Array<PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner>**](PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
30
30
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
31
31
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
32
32
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**createdAt** | **string** | | [default to undefined]
|
|
34
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
33
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
35
35
|
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
36
|
+
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
36
37
|
|
|
37
38
|
## Example
|
|
38
39
|
|
|
@@ -67,6 +68,7 @@ const instance: PickUserResponseExcludeKeyofUserResponseLocation = {
|
|
|
67
68
|
createdAt,
|
|
68
69
|
updatedAt,
|
|
69
70
|
setupIntentId,
|
|
71
|
+
sports,
|
|
70
72
|
};
|
|
71
73
|
```
|
|
72
74
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**level** | **string** | | [default to undefined]
|
|
9
|
+
**sport** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner = {
|
|
17
|
+
level,
|
|
18
|
+
sport,
|
|
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)
|
|
@@ -5,6 +5,34 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
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]
|
|
8
36
|
**isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
|
|
9
37
|
**creditOnMyClub** | **number** | | [optional] [default to undefined]
|
|
10
38
|
|
|
@@ -14,6 +42,34 @@ Name | Type | Description | Notes
|
|
|
14
42
|
import { StaffUserProfileResponse } from '@tennac-booking/sdk';
|
|
15
43
|
|
|
16
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,
|
|
17
73
|
isSubscribedToMyClub,
|
|
18
74
|
creditOnMyClub,
|
|
19
75
|
};
|
|
@@ -5,6 +5,34 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
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]
|
|
8
36
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
9
37
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
10
38
|
**frequentlyVisitedClubs** | [**Array<FrequentClub>**](FrequentClub.md) | | [optional] [default to undefined]
|
|
@@ -17,6 +45,34 @@ Name | Type | Description | Notes
|
|
|
17
45
|
import { UserProfileResponse } from '@tennac-booking/sdk';
|
|
18
46
|
|
|
19
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,
|
|
20
76
|
upcomingBookingsCount,
|
|
21
77
|
subscriptionsCount,
|
|
22
78
|
frequentlyVisitedClubs,
|
package/docs/UsersApi.md
CHANGED
|
@@ -351,7 +351,7 @@ No authorization required
|
|
|
351
351
|
[[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)
|
|
352
352
|
|
|
353
353
|
# **getAllUsers**
|
|
354
|
-
> Array<
|
|
354
|
+
> Array<IUserAttributes> getAllUsers()
|
|
355
355
|
|
|
356
356
|
|
|
357
357
|
### Example
|
|
@@ -374,7 +374,7 @@ This endpoint does not have any parameters.
|
|
|
374
374
|
|
|
375
375
|
### Return type
|
|
376
376
|
|
|
377
|
-
**Array<
|
|
377
|
+
**Array<IUserAttributes>**
|
|
378
378
|
|
|
379
379
|
### Authorization
|
|
380
380
|
|
|
@@ -936,7 +936,7 @@ No authorization required
|
|
|
936
936
|
[[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)
|
|
937
937
|
|
|
938
938
|
# **getUserProfileById**
|
|
939
|
-
>
|
|
939
|
+
> IUserAttributes getUserProfileById()
|
|
940
940
|
|
|
941
941
|
|
|
942
942
|
### Example
|
|
@@ -966,7 +966,7 @@ const { status, data } = await apiInstance.getUserProfileById(
|
|
|
966
966
|
|
|
967
967
|
### Return type
|
|
968
968
|
|
|
969
|
-
**
|
|
969
|
+
**IUserAttributes**
|
|
970
970
|
|
|
971
971
|
### Authorization
|
|
972
972
|
|
|
@@ -1275,7 +1275,7 @@ No authorization required
|
|
|
1275
1275
|
[[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)
|
|
1276
1276
|
|
|
1277
1277
|
# **register**
|
|
1278
|
-
>
|
|
1278
|
+
> IUserAttributes register(registerRequestBody)
|
|
1279
1279
|
|
|
1280
1280
|
|
|
1281
1281
|
### Example
|
|
@@ -1306,7 +1306,7 @@ const { status, data } = await apiInstance.register(
|
|
|
1306
1306
|
|
|
1307
1307
|
### Return type
|
|
1308
1308
|
|
|
1309
|
-
**
|
|
1309
|
+
**IUserAttributes**
|
|
1310
1310
|
|
|
1311
1311
|
### Authorization
|
|
1312
1312
|
|
|
@@ -1734,7 +1734,7 @@ No authorization required
|
|
|
1734
1734
|
[[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)
|
|
1735
1735
|
|
|
1736
1736
|
# **updateLevelBySports**
|
|
1737
|
-
>
|
|
1737
|
+
> IUserAttributes updateLevelBySports(updateLevelBySportsRequestBody)
|
|
1738
1738
|
|
|
1739
1739
|
|
|
1740
1740
|
### Example
|
|
@@ -1765,7 +1765,7 @@ const { status, data } = await apiInstance.updateLevelBySports(
|
|
|
1765
1765
|
|
|
1766
1766
|
### Return type
|
|
1767
1767
|
|
|
1768
|
-
**
|
|
1768
|
+
**IUserAttributes**
|
|
1769
1769
|
|
|
1770
1770
|
### Authorization
|
|
1771
1771
|
|