@tennac-booking/sdk 1.0.0
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 +17 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/apis/AuthApi.ts +157 -0
- package/apis/UsersApi.ts +56 -0
- package/apis/index.ts +4 -0
- package/dist/apis/AuthApi.d.ts +39 -0
- package/dist/apis/AuthApi.js +117 -0
- package/dist/apis/UsersApi.d.ts +26 -0
- package/dist/apis/UsersApi.js +58 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/AuthApi.d.ts +39 -0
- package/dist/esm/apis/AuthApi.js +113 -0
- package/dist/esm/apis/UsersApi.d.ts +26 -0
- package/dist/esm/apis/UsersApi.js +54 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Booking.d.ts +87 -0
- package/dist/esm/models/Booking.js +82 -0
- package/dist/esm/models/Court.d.ts +76 -0
- package/dist/esm/models/Court.js +72 -0
- package/dist/esm/models/Slot.d.ts +44 -0
- package/dist/esm/models/Slot.js +51 -0
- package/dist/esm/models/SlotException.d.ts +50 -0
- package/dist/esm/models/SlotException.js +55 -0
- package/dist/esm/models/User.d.ts +92 -0
- package/dist/esm/models/User.js +69 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/esm/src/apis/AuthApi.d.ts +39 -0
- package/dist/esm/src/apis/AuthApi.js +113 -0
- package/dist/esm/src/apis/UsersApi.d.ts +26 -0
- package/dist/esm/src/apis/UsersApi.js +54 -0
- package/dist/esm/src/apis/index.d.ts +2 -0
- package/dist/esm/src/apis/index.js +4 -0
- package/dist/esm/src/index.d.ts +3 -0
- package/dist/esm/src/index.js +5 -0
- package/dist/esm/src/models/Booking.d.ts +87 -0
- package/dist/esm/src/models/Booking.js +82 -0
- package/dist/esm/src/models/Court.d.ts +76 -0
- package/dist/esm/src/models/Court.js +72 -0
- package/dist/esm/src/models/Slot.d.ts +44 -0
- package/dist/esm/src/models/Slot.js +51 -0
- package/dist/esm/src/models/SlotException.d.ts +50 -0
- package/dist/esm/src/models/SlotException.js +55 -0
- package/dist/esm/src/models/User.d.ts +92 -0
- package/dist/esm/src/models/User.js +69 -0
- package/dist/esm/src/models/index.d.ts +5 -0
- package/dist/esm/src/models/index.js +7 -0
- package/dist/esm/src/runtime.d.ts +184 -0
- package/dist/esm/src/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Booking.d.ts +87 -0
- package/dist/models/Booking.js +90 -0
- package/dist/models/Court.d.ts +76 -0
- package/dist/models/Court.js +80 -0
- package/dist/models/Slot.d.ts +44 -0
- package/dist/models/Slot.js +58 -0
- package/dist/models/SlotException.d.ts +50 -0
- package/dist/models/SlotException.js +62 -0
- package/dist/models/User.d.ts +92 -0
- package/dist/models/User.js +76 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +23 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/dist/src/apis/AuthApi.d.ts +39 -0
- package/dist/src/apis/AuthApi.js +117 -0
- package/dist/src/apis/UsersApi.d.ts +26 -0
- package/dist/src/apis/UsersApi.js +58 -0
- package/dist/src/apis/index.d.ts +2 -0
- package/dist/src/apis/index.js +20 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +21 -0
- package/dist/src/models/Booking.d.ts +87 -0
- package/dist/src/models/Booking.js +90 -0
- package/dist/src/models/Court.d.ts +76 -0
- package/dist/src/models/Court.js +80 -0
- package/dist/src/models/Slot.d.ts +44 -0
- package/dist/src/models/Slot.js +58 -0
- package/dist/src/models/SlotException.d.ts +50 -0
- package/dist/src/models/SlotException.js +62 -0
- package/dist/src/models/User.d.ts +92 -0
- package/dist/src/models/User.js +76 -0
- package/dist/src/models/index.d.ts +5 -0
- package/dist/src/models/index.js +23 -0
- package/dist/src/runtime.d.ts +184 -0
- package/dist/src/runtime.js +350 -0
- package/index.ts +5 -0
- package/models/Booking.ts +142 -0
- package/models/Court.ts +130 -0
- package/models/Slot.ts +84 -0
- package/models/SlotException.ts +93 -0
- package/models/User.ts +149 -0
- package/models/index.ts +7 -0
- package/package.json +20 -0
- package/runtime.ts +432 -0
- package/src/apis/AuthApi.ts +157 -0
- package/src/apis/UsersApi.ts +56 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/Booking.ts +142 -0
- package/src/models/Court.ts +130 -0
- package/src/models/Slot.ts +84 -0
- package/src/models/SlotException.ts +93 -0
- package/src/models/User.ts +149 -0
- package/src/models/index.ts +7 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Slot
|
|
16
|
+
*/
|
|
17
|
+
export interface Slot {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof Slot
|
|
22
|
+
*/
|
|
23
|
+
startDate: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof Slot
|
|
28
|
+
*/
|
|
29
|
+
endDate: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Slot
|
|
34
|
+
*/
|
|
35
|
+
courtId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Slot interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSlot(value: object): value is Slot;
|
|
41
|
+
export declare function SlotFromJSON(json: any): Slot;
|
|
42
|
+
export declare function SlotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Slot;
|
|
43
|
+
export declare function SlotToJSON(json: any): Slot;
|
|
44
|
+
export declare function SlotToJSONTyped(value?: Slot | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the Slot interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSlot(value) {
|
|
18
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('courtId' in value) || value['courtId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SlotFromJSON(json) {
|
|
27
|
+
return SlotFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SlotFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'startDate': (new Date(json['startDate'])),
|
|
35
|
+
'endDate': (new Date(json['endDate'])),
|
|
36
|
+
'courtId': json['courtId'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function SlotToJSON(json) {
|
|
40
|
+
return SlotToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SlotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
48
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
49
|
+
'courtId': value['courtId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SlotException
|
|
16
|
+
*/
|
|
17
|
+
export interface SlotException {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof SlotException
|
|
22
|
+
*/
|
|
23
|
+
startDate: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof SlotException
|
|
28
|
+
*/
|
|
29
|
+
endDate: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SlotException
|
|
34
|
+
*/
|
|
35
|
+
courtId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SlotException
|
|
40
|
+
*/
|
|
41
|
+
reason: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SlotException interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSlotException(value: object): value is SlotException;
|
|
47
|
+
export declare function SlotExceptionFromJSON(json: any): SlotException;
|
|
48
|
+
export declare function SlotExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlotException;
|
|
49
|
+
export declare function SlotExceptionToJSON(json: any): SlotException;
|
|
50
|
+
export declare function SlotExceptionToJSONTyped(value?: SlotException | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Check if a given object implements the SlotException interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSlotException(value) {
|
|
18
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('courtId' in value) || value['courtId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function SlotExceptionFromJSON(json) {
|
|
29
|
+
return SlotExceptionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function SlotExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'startDate': (new Date(json['startDate'])),
|
|
37
|
+
'endDate': (new Date(json['endDate'])),
|
|
38
|
+
'courtId': json['courtId'],
|
|
39
|
+
'reason': json['reason'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SlotExceptionToJSON(json) {
|
|
43
|
+
return SlotExceptionToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SlotExceptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
51
|
+
'endDate': ((value['endDate']).toISOString()),
|
|
52
|
+
'courtId': value['courtId'],
|
|
53
|
+
'reason': value['reason'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 User
|
|
16
|
+
*/
|
|
17
|
+
export interface User {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof User
|
|
22
|
+
*/
|
|
23
|
+
username?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof User
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof User
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof User
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof User
|
|
46
|
+
*/
|
|
47
|
+
isAccountVerified?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof User
|
|
52
|
+
*/
|
|
53
|
+
level?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof User
|
|
58
|
+
*/
|
|
59
|
+
stripeCustomerId?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof User
|
|
64
|
+
*/
|
|
65
|
+
phone?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof User
|
|
70
|
+
*/
|
|
71
|
+
password: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof User
|
|
76
|
+
*/
|
|
77
|
+
profilePicture?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof User
|
|
82
|
+
*/
|
|
83
|
+
isAdmin?: boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the User interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfUser(value: object): value is User;
|
|
89
|
+
export declare function UserFromJSON(json: any): User;
|
|
90
|
+
export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
|
|
91
|
+
export declare function UserToJSON(json: any): User;
|
|
92
|
+
export declare function UserToJSONTyped(value?: User | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* Check if a given object implements the User interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUser(value) {
|
|
18
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function UserFromJSON(json) {
|
|
29
|
+
return UserFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
37
|
+
'firstName': json['firstName'],
|
|
38
|
+
'lastName': json['lastName'],
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'isAccountVerified': json['isAccountVerified'] == null ? undefined : json['isAccountVerified'],
|
|
41
|
+
'level': json['level'] == null ? undefined : json['level'],
|
|
42
|
+
'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
|
|
43
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
44
|
+
'password': json['password'],
|
|
45
|
+
'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
|
|
46
|
+
'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function UserToJSON(json) {
|
|
50
|
+
return UserToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function UserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'username': value['username'],
|
|
58
|
+
'firstName': value['firstName'],
|
|
59
|
+
'lastName': value['lastName'],
|
|
60
|
+
'email': value['email'],
|
|
61
|
+
'isAccountVerified': value['isAccountVerified'],
|
|
62
|
+
'level': value['level'],
|
|
63
|
+
'stripeCustomerId': value['stripeCustomerId'],
|
|
64
|
+
'phone': value['phone'],
|
|
65
|
+
'password': value['password'],
|
|
66
|
+
'profilePicture': value['profilePicture'],
|
|
67
|
+
'isAdmin': value['isAdmin'],
|
|
68
|
+
};
|
|
69
|
+
}
|