@tennac-booking/sdk 1.0.6 → 1.0.10
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 +10 -1
- package/README.md +17 -2
- package/api.ts +831 -224
- package/dist/api.d.ts +589 -109
- package/dist/api.js +394 -148
- package/dist/esm/api.d.ts +589 -109
- package/dist/esm/api.js +394 -144
- package/docs/ApiErrorResponse.md +22 -0
- package/docs/ChangePasswordRequestBody.md +22 -0
- package/docs/ChangePasswordResponse.md +20 -0
- package/docs/LoginRequestBody.md +22 -0
- package/docs/LoginResponse.md +26 -0
- package/docs/RefreshTokenRequestBody.md +20 -0
- package/docs/RefreshTokenResponse.md +26 -0
- package/docs/RegisterRequestBody.md +36 -0
- package/docs/UpdateUserRequestBody.md +32 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +345 -6
- package/package.json +1 -4
- package/apis/AuthApi.ts +0 -157
- package/apis/UsersApi.ts +0 -56
- package/apis/index.ts +0 -4
- package/dist/apis/AuthApi.d.ts +0 -39
- package/dist/apis/AuthApi.js +0 -117
- package/dist/apis/UsersApi.d.ts +0 -26
- package/dist/apis/UsersApi.js +0 -58
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/AuthApi.d.ts +0 -39
- package/dist/esm/apis/AuthApi.js +0 -113
- package/dist/esm/apis/UsersApi.d.ts +0 -26
- package/dist/esm/apis/UsersApi.js +0 -54
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/Booking.d.ts +0 -87
- package/dist/esm/models/Booking.js +0 -82
- package/dist/esm/models/Court.d.ts +0 -76
- package/dist/esm/models/Court.js +0 -72
- package/dist/esm/models/Slot.d.ts +0 -44
- package/dist/esm/models/Slot.js +0 -51
- package/dist/esm/models/SlotException.d.ts +0 -50
- package/dist/esm/models/SlotException.js +0 -55
- package/dist/esm/models/User.d.ts +0 -92
- package/dist/esm/models/User.js +0 -69
- package/dist/esm/models/index.d.ts +0 -5
- package/dist/esm/models/index.js +0 -7
- package/dist/esm/runtime.d.ts +0 -184
- package/dist/esm/runtime.js +0 -334
- package/dist/esm/src/apis/AuthApi.d.ts +0 -39
- package/dist/esm/src/apis/AuthApi.js +0 -113
- package/dist/esm/src/apis/UsersApi.d.ts +0 -26
- package/dist/esm/src/apis/UsersApi.js +0 -54
- package/dist/esm/src/apis/index.d.ts +0 -2
- package/dist/esm/src/apis/index.js +0 -4
- package/dist/esm/src/index.d.ts +0 -3
- package/dist/esm/src/index.js +0 -5
- package/dist/esm/src/models/Booking.d.ts +0 -87
- package/dist/esm/src/models/Booking.js +0 -82
- package/dist/esm/src/models/BookingStatus.d.ts +0 -25
- package/dist/esm/src/models/BookingStatus.js +0 -43
- package/dist/esm/src/models/Court.d.ts +0 -76
- package/dist/esm/src/models/Court.js +0 -72
- package/dist/esm/src/models/CourtStatus.d.ts +0 -25
- package/dist/esm/src/models/CourtStatus.js +0 -43
- package/dist/esm/src/models/Slot.d.ts +0 -44
- package/dist/esm/src/models/Slot.js +0 -51
- package/dist/esm/src/models/SlotException.d.ts +0 -50
- package/dist/esm/src/models/SlotException.js +0 -55
- package/dist/esm/src/models/StripeStatus.d.ts +0 -28
- package/dist/esm/src/models/StripeStatus.js +0 -46
- package/dist/esm/src/models/User.d.ts +0 -92
- package/dist/esm/src/models/User.js +0 -69
- package/dist/esm/src/models/index.d.ts +0 -5
- package/dist/esm/src/models/index.js +0 -7
- package/dist/esm/src/runtime.d.ts +0 -184
- package/dist/esm/src/runtime.js +0 -334
- package/dist/models/Booking.d.ts +0 -87
- package/dist/models/Booking.js +0 -90
- package/dist/models/Court.d.ts +0 -76
- package/dist/models/Court.js +0 -80
- package/dist/models/Slot.d.ts +0 -44
- package/dist/models/Slot.js +0 -58
- package/dist/models/SlotException.d.ts +0 -50
- package/dist/models/SlotException.js +0 -62
- package/dist/models/User.d.ts +0 -92
- package/dist/models/User.js +0 -76
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -23
- package/dist/runtime.d.ts +0 -184
- package/dist/runtime.js +0 -350
- package/dist/src/apis/AuthApi.d.ts +0 -39
- package/dist/src/apis/AuthApi.js +0 -117
- package/dist/src/apis/UsersApi.d.ts +0 -26
- package/dist/src/apis/UsersApi.js +0 -58
- package/dist/src/apis/index.d.ts +0 -2
- package/dist/src/apis/index.js +0 -20
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -21
- package/dist/src/models/Booking.d.ts +0 -87
- package/dist/src/models/Booking.js +0 -90
- package/dist/src/models/BookingStatus.d.ts +0 -25
- package/dist/src/models/BookingStatus.js +0 -51
- package/dist/src/models/Court.d.ts +0 -76
- package/dist/src/models/Court.js +0 -80
- package/dist/src/models/CourtStatus.d.ts +0 -25
- package/dist/src/models/CourtStatus.js +0 -51
- package/dist/src/models/Slot.d.ts +0 -44
- package/dist/src/models/Slot.js +0 -58
- package/dist/src/models/SlotException.d.ts +0 -50
- package/dist/src/models/SlotException.js +0 -62
- package/dist/src/models/StripeStatus.d.ts +0 -28
- package/dist/src/models/StripeStatus.js +0 -54
- package/dist/src/models/User.d.ts +0 -92
- package/dist/src/models/User.js +0 -76
- package/dist/src/models/index.d.ts +0 -5
- package/dist/src/models/index.js +0 -23
- package/dist/src/runtime.d.ts +0 -184
- package/dist/src/runtime.js +0 -350
- package/docs/AuthApi.md +0 -88
- package/models/Booking.ts +0 -142
- package/models/Court.ts +0 -130
- package/models/Slot.ts +0 -84
- package/models/SlotException.ts +0 -93
- package/models/User.ts +0 -149
- package/models/index.ts +0 -7
- package/runtime.ts +0 -432
- package/src/apis/AuthApi.ts +0 -157
- package/src/apis/UsersApi.ts +0 -56
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/Booking.ts +0 -142
- package/src/models/BookingStatus.ts +0 -53
- package/src/models/Court.ts +0 -130
- package/src/models/CourtStatus.ts +0 -53
- package/src/models/Slot.ts +0 -84
- package/src/models/SlotException.ts +0 -93
- package/src/models/StripeStatus.ts +0 -56
- package/src/models/User.ts +0 -149
- package/src/models/index.ts +0 -7
- package/src/runtime.ts +0 -432
package/models/Slot.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Pickle Ball API
|
|
5
|
-
* API for managing pickle ball games and players
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Slot
|
|
20
|
-
*/
|
|
21
|
-
export interface Slot {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Date}
|
|
25
|
-
* @memberof Slot
|
|
26
|
-
*/
|
|
27
|
-
startDate: Date;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Date}
|
|
31
|
-
* @memberof Slot
|
|
32
|
-
*/
|
|
33
|
-
endDate: Date;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Slot
|
|
38
|
-
*/
|
|
39
|
-
courtId: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the Slot interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfSlot(value: object): value is Slot {
|
|
46
|
-
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
47
|
-
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
48
|
-
if (!('courtId' in value) || value['courtId'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function SlotFromJSON(json: any): Slot {
|
|
53
|
-
return SlotFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function SlotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Slot {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'startDate': (new Date(json['startDate'])),
|
|
63
|
-
'endDate': (new Date(json['endDate'])),
|
|
64
|
-
'courtId': json['courtId'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function SlotToJSON(json: any): Slot {
|
|
69
|
-
return SlotToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function SlotToJSONTyped(value?: Slot | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'startDate': ((value['startDate']).toISOString()),
|
|
80
|
-
'endDate': ((value['endDate']).toISOString()),
|
|
81
|
-
'courtId': value['courtId'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
package/models/SlotException.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Pickle Ball API
|
|
5
|
-
* API for managing pickle ball games and players
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SlotException
|
|
20
|
-
*/
|
|
21
|
-
export interface SlotException {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Date}
|
|
25
|
-
* @memberof SlotException
|
|
26
|
-
*/
|
|
27
|
-
startDate: Date;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Date}
|
|
31
|
-
* @memberof SlotException
|
|
32
|
-
*/
|
|
33
|
-
endDate: Date;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof SlotException
|
|
38
|
-
*/
|
|
39
|
-
courtId: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SlotException
|
|
44
|
-
*/
|
|
45
|
-
reason: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the SlotException interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfSlotException(value: object): value is SlotException {
|
|
52
|
-
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
53
|
-
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
54
|
-
if (!('courtId' in value) || value['courtId'] === undefined) return false;
|
|
55
|
-
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function SlotExceptionFromJSON(json: any): SlotException {
|
|
60
|
-
return SlotExceptionFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function SlotExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlotException {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'startDate': (new Date(json['startDate'])),
|
|
70
|
-
'endDate': (new Date(json['endDate'])),
|
|
71
|
-
'courtId': json['courtId'],
|
|
72
|
-
'reason': json['reason'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function SlotExceptionToJSON(json: any): SlotException {
|
|
77
|
-
return SlotExceptionToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function SlotExceptionToJSONTyped(value?: SlotException | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'startDate': ((value['startDate']).toISOString()),
|
|
88
|
-
'endDate': ((value['endDate']).toISOString()),
|
|
89
|
-
'courtId': value['courtId'],
|
|
90
|
-
'reason': value['reason'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
package/models/User.ts
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Pickle Ball API
|
|
5
|
-
* API for managing pickle ball games and players
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface User
|
|
20
|
-
*/
|
|
21
|
-
export interface User {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof User
|
|
26
|
-
*/
|
|
27
|
-
username?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof User
|
|
32
|
-
*/
|
|
33
|
-
firstName: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof User
|
|
38
|
-
*/
|
|
39
|
-
lastName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof User
|
|
44
|
-
*/
|
|
45
|
-
email: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof User
|
|
50
|
-
*/
|
|
51
|
-
isAccountVerified?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof User
|
|
56
|
-
*/
|
|
57
|
-
level?: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof User
|
|
62
|
-
*/
|
|
63
|
-
stripeCustomerId?: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof User
|
|
68
|
-
*/
|
|
69
|
-
phone?: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof User
|
|
74
|
-
*/
|
|
75
|
-
password: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof User
|
|
80
|
-
*/
|
|
81
|
-
profilePicture?: string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
* @memberof User
|
|
86
|
-
*/
|
|
87
|
-
isAdmin?: boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Check if a given object implements the User interface.
|
|
92
|
-
*/
|
|
93
|
-
export function instanceOfUser(value: object): value is User {
|
|
94
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
95
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
96
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
97
|
-
if (!('password' in value) || value['password'] === undefined) return false;
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function UserFromJSON(json: any): User {
|
|
102
|
-
return UserFromJSONTyped(json, false);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User {
|
|
106
|
-
if (json == null) {
|
|
107
|
-
return json;
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
'username': json['username'] == null ? undefined : json['username'],
|
|
112
|
-
'firstName': json['firstName'],
|
|
113
|
-
'lastName': json['lastName'],
|
|
114
|
-
'email': json['email'],
|
|
115
|
-
'isAccountVerified': json['isAccountVerified'] == null ? undefined : json['isAccountVerified'],
|
|
116
|
-
'level': json['level'] == null ? undefined : json['level'],
|
|
117
|
-
'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
|
|
118
|
-
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
119
|
-
'password': json['password'],
|
|
120
|
-
'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
|
|
121
|
-
'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'],
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function UserToJSON(json: any): User {
|
|
126
|
-
return UserToJSONTyped(json, false);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
-
if (value == null) {
|
|
131
|
-
return value;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
|
|
136
|
-
'username': value['username'],
|
|
137
|
-
'firstName': value['firstName'],
|
|
138
|
-
'lastName': value['lastName'],
|
|
139
|
-
'email': value['email'],
|
|
140
|
-
'isAccountVerified': value['isAccountVerified'],
|
|
141
|
-
'level': value['level'],
|
|
142
|
-
'stripeCustomerId': value['stripeCustomerId'],
|
|
143
|
-
'phone': value['phone'],
|
|
144
|
-
'password': value['password'],
|
|
145
|
-
'profilePicture': value['profilePicture'],
|
|
146
|
-
'isAdmin': value['isAdmin'],
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|