@tennac-booking/sdk 1.0.6 → 1.0.8
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 +1 -1
- package/README.md +1 -2
- package/api.ts +8 -273
- package/dist/api.d.ts +4 -156
- package/dist/api.js +9 -174
- package/dist/esm/api.d.ts +4 -156
- package/dist/esm/api.js +9 -170
- package/docs/UsersApi.md +4 -4
- package/package.json +4 -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
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { User } from '../models/index';
|
|
14
|
-
export interface ApiAuthRegisterPostRequest {
|
|
15
|
-
firstName: string;
|
|
16
|
-
lastName: string;
|
|
17
|
-
email: string;
|
|
18
|
-
password: string;
|
|
19
|
-
username?: string;
|
|
20
|
-
isAccountVerified?: boolean;
|
|
21
|
-
level?: string;
|
|
22
|
-
stripeCustomerId?: string;
|
|
23
|
-
phone?: string;
|
|
24
|
-
profilePicture?: string;
|
|
25
|
-
isAdmin?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export declare class AuthApi extends runtime.BaseAPI {
|
|
31
|
-
/**
|
|
32
|
-
* Register a new user
|
|
33
|
-
*/
|
|
34
|
-
apiAuthRegisterPostRaw(requestParameters: ApiAuthRegisterPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
|
|
35
|
-
/**
|
|
36
|
-
* Register a new user
|
|
37
|
-
*/
|
|
38
|
-
apiAuthRegisterPost(requestParameters: ApiAuthRegisterPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
|
|
39
|
-
}
|
|
@@ -1,113 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import * as runtime from '../runtime';
|
|
24
|
-
import { UserFromJSON, } from '../models/index';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class AuthApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Register a new user
|
|
31
|
-
*/
|
|
32
|
-
apiAuthRegisterPostRaw(requestParameters, initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['firstName'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('firstName', 'Required parameter "firstName" was null or undefined when calling apiAuthRegisterPost().');
|
|
36
|
-
}
|
|
37
|
-
if (requestParameters['lastName'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('lastName', 'Required parameter "lastName" was null or undefined when calling apiAuthRegisterPost().');
|
|
39
|
-
}
|
|
40
|
-
if (requestParameters['email'] == null) {
|
|
41
|
-
throw new runtime.RequiredError('email', 'Required parameter "email" was null or undefined when calling apiAuthRegisterPost().');
|
|
42
|
-
}
|
|
43
|
-
if (requestParameters['password'] == null) {
|
|
44
|
-
throw new runtime.RequiredError('password', 'Required parameter "password" was null or undefined when calling apiAuthRegisterPost().');
|
|
45
|
-
}
|
|
46
|
-
const queryParameters = {};
|
|
47
|
-
const headerParameters = {};
|
|
48
|
-
const consumes = [
|
|
49
|
-
{ contentType: 'multipart/form-data' },
|
|
50
|
-
];
|
|
51
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
52
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
53
|
-
let formParams;
|
|
54
|
-
let useForm = false;
|
|
55
|
-
if (useForm) {
|
|
56
|
-
formParams = new FormData();
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
formParams = new URLSearchParams();
|
|
60
|
-
}
|
|
61
|
-
if (requestParameters['username'] != null) {
|
|
62
|
-
formParams.append('username', requestParameters['username']);
|
|
63
|
-
}
|
|
64
|
-
if (requestParameters['firstName'] != null) {
|
|
65
|
-
formParams.append('firstName', requestParameters['firstName']);
|
|
66
|
-
}
|
|
67
|
-
if (requestParameters['lastName'] != null) {
|
|
68
|
-
formParams.append('lastName', requestParameters['lastName']);
|
|
69
|
-
}
|
|
70
|
-
if (requestParameters['email'] != null) {
|
|
71
|
-
formParams.append('email', requestParameters['email']);
|
|
72
|
-
}
|
|
73
|
-
if (requestParameters['isAccountVerified'] != null) {
|
|
74
|
-
formParams.append('isAccountVerified', requestParameters['isAccountVerified']);
|
|
75
|
-
}
|
|
76
|
-
if (requestParameters['level'] != null) {
|
|
77
|
-
formParams.append('level', requestParameters['level']);
|
|
78
|
-
}
|
|
79
|
-
if (requestParameters['stripeCustomerId'] != null) {
|
|
80
|
-
formParams.append('stripeCustomerId', requestParameters['stripeCustomerId']);
|
|
81
|
-
}
|
|
82
|
-
if (requestParameters['phone'] != null) {
|
|
83
|
-
formParams.append('phone', requestParameters['phone']);
|
|
84
|
-
}
|
|
85
|
-
if (requestParameters['password'] != null) {
|
|
86
|
-
formParams.append('password', requestParameters['password']);
|
|
87
|
-
}
|
|
88
|
-
if (requestParameters['profilePicture'] != null) {
|
|
89
|
-
formParams.append('profilePicture', requestParameters['profilePicture']);
|
|
90
|
-
}
|
|
91
|
-
if (requestParameters['isAdmin'] != null) {
|
|
92
|
-
formParams.append('isAdmin', requestParameters['isAdmin']);
|
|
93
|
-
}
|
|
94
|
-
const response = yield this.request({
|
|
95
|
-
path: `/api/auth/register`,
|
|
96
|
-
method: 'POST',
|
|
97
|
-
headers: headerParameters,
|
|
98
|
-
query: queryParameters,
|
|
99
|
-
body: formParams,
|
|
100
|
-
}, initOverrides);
|
|
101
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Register a new user
|
|
106
|
-
*/
|
|
107
|
-
apiAuthRegisterPost(requestParameters, initOverrides) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
const response = yield this.apiAuthRegisterPostRaw(requestParameters, initOverrides);
|
|
110
|
-
return yield response.value();
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { User } from '../models/index';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export declare class UsersApi extends runtime.BaseAPI {
|
|
18
|
-
/**
|
|
19
|
-
* Retrieve all users
|
|
20
|
-
*/
|
|
21
|
-
apiUsersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<User>>>;
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve all users
|
|
24
|
-
*/
|
|
25
|
-
apiUsersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<User>>;
|
|
26
|
-
}
|
|
@@ -1,54 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import * as runtime from '../runtime';
|
|
24
|
-
import { UserFromJSON, } from '../models/index';
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export class UsersApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve all users
|
|
31
|
-
*/
|
|
32
|
-
apiUsersGetRaw(initOverrides) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const queryParameters = {};
|
|
35
|
-
const headerParameters = {};
|
|
36
|
-
const response = yield this.request({
|
|
37
|
-
path: `/api/users`,
|
|
38
|
-
method: 'GET',
|
|
39
|
-
headers: headerParameters,
|
|
40
|
-
query: queryParameters,
|
|
41
|
-
}, initOverrides);
|
|
42
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserFromJSON));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Retrieve all users
|
|
47
|
-
*/
|
|
48
|
-
apiUsersGet(initOverrides) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const response = yield this.apiUsersGetRaw(initOverrides);
|
|
51
|
-
return yield response.value();
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
package/dist/esm/src/index.d.ts
DELETED
package/dist/esm/src/index.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Booking
|
|
16
|
-
*/
|
|
17
|
-
export interface Booking {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Booking
|
|
22
|
-
*/
|
|
23
|
-
userId: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof Booking
|
|
28
|
-
*/
|
|
29
|
-
playersIds?: Array<string>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Booking
|
|
34
|
-
*/
|
|
35
|
-
status: BookingStatusEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Booking
|
|
40
|
-
*/
|
|
41
|
-
stripeStatus: BookingStripeStatusEnum;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Booking
|
|
46
|
-
*/
|
|
47
|
-
stripePaymentIntentId: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof Booking
|
|
52
|
-
*/
|
|
53
|
-
totalPrice: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Booking
|
|
58
|
-
*/
|
|
59
|
-
slotId: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export declare const BookingStatusEnum: {
|
|
65
|
-
readonly Active: "active";
|
|
66
|
-
readonly Inactive: "inactive";
|
|
67
|
-
};
|
|
68
|
-
export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
|
|
69
|
-
/**
|
|
70
|
-
* @export
|
|
71
|
-
*/
|
|
72
|
-
export declare const BookingStripeStatusEnum: {
|
|
73
|
-
readonly Pending: "pending";
|
|
74
|
-
readonly Paid: "paid";
|
|
75
|
-
readonly Failed: "failed";
|
|
76
|
-
readonly Refunded: "refunded";
|
|
77
|
-
readonly Canceled: "canceled";
|
|
78
|
-
};
|
|
79
|
-
export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
|
|
80
|
-
/**
|
|
81
|
-
* Check if a given object implements the Booking interface.
|
|
82
|
-
*/
|
|
83
|
-
export declare function instanceOfBooking(value: object): value is Booking;
|
|
84
|
-
export declare function BookingFromJSON(json: any): Booking;
|
|
85
|
-
export declare function BookingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Booking;
|
|
86
|
-
export declare function BookingToJSON(json: any): Booking;
|
|
87
|
-
export declare function BookingToJSONTyped(value?: Booking | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,82 +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
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const BookingStatusEnum = {
|
|
18
|
-
Active: 'active',
|
|
19
|
-
Inactive: 'inactive'
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @export
|
|
23
|
-
*/
|
|
24
|
-
export const BookingStripeStatusEnum = {
|
|
25
|
-
Pending: 'pending',
|
|
26
|
-
Paid: 'paid',
|
|
27
|
-
Failed: 'failed',
|
|
28
|
-
Refunded: 'refunded',
|
|
29
|
-
Canceled: 'canceled'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Booking interface.
|
|
33
|
-
*/
|
|
34
|
-
export function instanceOfBooking(value) {
|
|
35
|
-
if (!('userId' in value) || value['userId'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('stripeStatus' in value) || value['stripeStatus'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('stripePaymentIntentId' in value) || value['stripePaymentIntentId'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('totalPrice' in value) || value['totalPrice'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('slotId' in value) || value['slotId'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
export function BookingFromJSON(json) {
|
|
50
|
-
return BookingFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
export function BookingFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'userId': json['userId'],
|
|
58
|
-
'playersIds': json['playersIds'] == null ? undefined : json['playersIds'],
|
|
59
|
-
'status': json['status'],
|
|
60
|
-
'stripeStatus': json['stripeStatus'],
|
|
61
|
-
'stripePaymentIntentId': json['stripePaymentIntentId'],
|
|
62
|
-
'totalPrice': json['totalPrice'],
|
|
63
|
-
'slotId': json['slotId'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export function BookingToJSON(json) {
|
|
67
|
-
return BookingToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
export function BookingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
-
if (value == null) {
|
|
71
|
-
return value;
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
'userId': value['userId'],
|
|
75
|
-
'playersIds': value['playersIds'],
|
|
76
|
-
'status': value['status'],
|
|
77
|
-
'stripeStatus': value['stripeStatus'],
|
|
78
|
-
'stripePaymentIntentId': value['stripePaymentIntentId'],
|
|
79
|
-
'totalPrice': value['totalPrice'],
|
|
80
|
-
'slotId': value['slotId'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const BookingStatus: {
|
|
17
|
-
readonly Active: "active";
|
|
18
|
-
readonly Inactive: "inactive";
|
|
19
|
-
};
|
|
20
|
-
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
21
|
-
export declare function instanceOfBookingStatus(value: any): boolean;
|
|
22
|
-
export declare function BookingStatusFromJSON(json: any): BookingStatus;
|
|
23
|
-
export declare function BookingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingStatus;
|
|
24
|
-
export declare function BookingStatusToJSON(value?: BookingStatus | null): any;
|
|
25
|
-
export declare function BookingStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): BookingStatus;
|
|
@@ -1,43 +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
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const BookingStatus = {
|
|
19
|
-
Active: 'active',
|
|
20
|
-
Inactive: 'inactive'
|
|
21
|
-
};
|
|
22
|
-
export function instanceOfBookingStatus(value) {
|
|
23
|
-
for (const key in BookingStatus) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(BookingStatus, key)) {
|
|
25
|
-
if (BookingStatus[key] === value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
export function BookingStatusFromJSON(json) {
|
|
33
|
-
return BookingStatusFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function BookingStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
export function BookingStatusToJSON(value) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
export function BookingStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Court
|
|
16
|
-
*/
|
|
17
|
-
export interface Court {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Court
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Court
|
|
28
|
-
*/
|
|
29
|
-
status: CourtStatusEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Court
|
|
34
|
-
*/
|
|
35
|
-
comments?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof Court
|
|
40
|
-
*/
|
|
41
|
-
pricePerSlot: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof Court
|
|
46
|
-
*/
|
|
47
|
-
slotDefaultDuration: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof Court
|
|
52
|
-
*/
|
|
53
|
-
startTimeInTheDayInMinutes: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof Court
|
|
58
|
-
*/
|
|
59
|
-
endTimeInTheDayInMinutes: number;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export declare const CourtStatusEnum: {
|
|
65
|
-
readonly Available: "available";
|
|
66
|
-
readonly Unavailable: "unavailable";
|
|
67
|
-
};
|
|
68
|
-
export type CourtStatusEnum = typeof CourtStatusEnum[keyof typeof CourtStatusEnum];
|
|
69
|
-
/**
|
|
70
|
-
* Check if a given object implements the Court interface.
|
|
71
|
-
*/
|
|
72
|
-
export declare function instanceOfCourt(value: object): value is Court;
|
|
73
|
-
export declare function CourtFromJSON(json: any): Court;
|
|
74
|
-
export declare function CourtFromJSONTyped(json: any, ignoreDiscriminator: boolean): Court;
|
|
75
|
-
export declare function CourtToJSON(json: any): Court;
|
|
76
|
-
export declare function CourtToJSONTyped(value?: Court | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,72 +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
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const CourtStatusEnum = {
|
|
18
|
-
Available: 'available',
|
|
19
|
-
Unavailable: 'unavailable'
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the Court interface.
|
|
23
|
-
*/
|
|
24
|
-
export function instanceOfCourt(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('pricePerSlot' in value) || value['pricePerSlot'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('slotDefaultDuration' in value) || value['slotDefaultDuration'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('startTimeInTheDayInMinutes' in value) || value['startTimeInTheDayInMinutes'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('endTimeInTheDayInMinutes' in value) || value['endTimeInTheDayInMinutes'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
export function CourtFromJSON(json) {
|
|
40
|
-
return CourtFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
export function CourtFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'name': json['name'],
|
|
48
|
-
'status': json['status'],
|
|
49
|
-
'comments': json['comments'] == null ? undefined : json['comments'],
|
|
50
|
-
'pricePerSlot': json['pricePerSlot'],
|
|
51
|
-
'slotDefaultDuration': json['slotDefaultDuration'],
|
|
52
|
-
'startTimeInTheDayInMinutes': json['startTimeInTheDayInMinutes'],
|
|
53
|
-
'endTimeInTheDayInMinutes': json['endTimeInTheDayInMinutes'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export function CourtToJSON(json) {
|
|
57
|
-
return CourtToJSONTyped(json, false);
|
|
58
|
-
}
|
|
59
|
-
export function CourtToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
'name': value['name'],
|
|
65
|
-
'status': value['status'],
|
|
66
|
-
'comments': value['comments'],
|
|
67
|
-
'pricePerSlot': value['pricePerSlot'],
|
|
68
|
-
'slotDefaultDuration': value['slotDefaultDuration'],
|
|
69
|
-
'startTimeInTheDayInMinutes': value['startTimeInTheDayInMinutes'],
|
|
70
|
-
'endTimeInTheDayInMinutes': value['endTimeInTheDayInMinutes'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pickle Ball API
|
|
3
|
-
* API for managing pickle ball games and players
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const CourtStatus: {
|
|
17
|
-
readonly Available: "available";
|
|
18
|
-
readonly Unavailable: "unavailable";
|
|
19
|
-
};
|
|
20
|
-
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
21
|
-
export declare function instanceOfCourtStatus(value: any): boolean;
|
|
22
|
-
export declare function CourtStatusFromJSON(json: any): CourtStatus;
|
|
23
|
-
export declare function CourtStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourtStatus;
|
|
24
|
-
export declare function CourtStatusToJSON(value?: CourtStatus | null): any;
|
|
25
|
-
export declare function CourtStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CourtStatus;
|