@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,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 CourtStatus = {
|
|
19
|
-
Available: 'available',
|
|
20
|
-
Unavailable: 'unavailable'
|
|
21
|
-
};
|
|
22
|
-
export function instanceOfCourtStatus(value) {
|
|
23
|
-
for (const key in CourtStatus) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(CourtStatus, key)) {
|
|
25
|
-
if (CourtStatus[key] === value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
export function CourtStatusFromJSON(json) {
|
|
33
|
-
return CourtStatusFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function CourtStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
export function CourtStatusToJSON(value) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
export function CourtStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
@@ -1,44 +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 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;
|
|
@@ -1,51 +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
|
-
* 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
|
-
}
|
|
@@ -1,50 +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 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;
|
|
@@ -1,55 +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
|
-
* 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
|
-
}
|
|
@@ -1,28 +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 StripeStatus: {
|
|
17
|
-
readonly Pending: "pending";
|
|
18
|
-
readonly Paid: "paid";
|
|
19
|
-
readonly Failed: "failed";
|
|
20
|
-
readonly Refunded: "refunded";
|
|
21
|
-
readonly Canceled: "canceled";
|
|
22
|
-
};
|
|
23
|
-
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
24
|
-
export declare function instanceOfStripeStatus(value: any): boolean;
|
|
25
|
-
export declare function StripeStatusFromJSON(json: any): StripeStatus;
|
|
26
|
-
export declare function StripeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): StripeStatus;
|
|
27
|
-
export declare function StripeStatusToJSON(value?: StripeStatus | null): any;
|
|
28
|
-
export declare function StripeStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): StripeStatus;
|
|
@@ -1,46 +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 StripeStatus = {
|
|
19
|
-
Pending: 'pending',
|
|
20
|
-
Paid: 'paid',
|
|
21
|
-
Failed: 'failed',
|
|
22
|
-
Refunded: 'refunded',
|
|
23
|
-
Canceled: 'canceled'
|
|
24
|
-
};
|
|
25
|
-
export function instanceOfStripeStatus(value) {
|
|
26
|
-
for (const key in StripeStatus) {
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(StripeStatus, key)) {
|
|
28
|
-
if (StripeStatus[key] === value) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
export function StripeStatusFromJSON(json) {
|
|
36
|
-
return StripeStatusFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function StripeStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
export function StripeStatusToJSON(value) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
export function StripeStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
@@ -1,92 +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 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;
|
|
@@ -1,69 +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
|
-
* 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
|
-
}
|
|
@@ -1,184 +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
|
-
export declare const BASE_PATH: string;
|
|
13
|
-
export interface ConfigurationParameters {
|
|
14
|
-
basePath?: string;
|
|
15
|
-
fetchApi?: FetchAPI;
|
|
16
|
-
middleware?: Middleware[];
|
|
17
|
-
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
-
username?: string;
|
|
19
|
-
password?: string;
|
|
20
|
-
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
-
headers?: HTTPHeaders;
|
|
23
|
-
credentials?: RequestCredentials;
|
|
24
|
-
}
|
|
25
|
-
export declare class Configuration {
|
|
26
|
-
private configuration;
|
|
27
|
-
constructor(configuration?: ConfigurationParameters);
|
|
28
|
-
set config(configuration: Configuration);
|
|
29
|
-
get basePath(): string;
|
|
30
|
-
get fetchApi(): FetchAPI | undefined;
|
|
31
|
-
get middleware(): Middleware[];
|
|
32
|
-
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
-
get username(): string | undefined;
|
|
34
|
-
get password(): string | undefined;
|
|
35
|
-
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
-
get headers(): HTTPHeaders | undefined;
|
|
38
|
-
get credentials(): RequestCredentials | undefined;
|
|
39
|
-
}
|
|
40
|
-
export declare const DefaultConfig: Configuration;
|
|
41
|
-
/**
|
|
42
|
-
* This is the base class for all generated API classes.
|
|
43
|
-
*/
|
|
44
|
-
export declare class BaseAPI {
|
|
45
|
-
protected configuration: Configuration;
|
|
46
|
-
private static readonly jsonRegex;
|
|
47
|
-
private middleware;
|
|
48
|
-
constructor(configuration?: Configuration);
|
|
49
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
-
/**
|
|
53
|
-
* Check if the given MIME is a JSON MIME.
|
|
54
|
-
* JSON MIME examples:
|
|
55
|
-
* application/json
|
|
56
|
-
* application/json; charset=UTF8
|
|
57
|
-
* APPLICATION/JSON
|
|
58
|
-
* application/vnd.company+json
|
|
59
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
-
*/
|
|
62
|
-
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
-
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
-
private createFetchParams;
|
|
65
|
-
private fetchApi;
|
|
66
|
-
/**
|
|
67
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
-
* and then shallow cloning data members.
|
|
69
|
-
*/
|
|
70
|
-
private clone;
|
|
71
|
-
}
|
|
72
|
-
export declare class ResponseError extends Error {
|
|
73
|
-
response: Response;
|
|
74
|
-
name: "ResponseError";
|
|
75
|
-
constructor(response: Response, msg?: string);
|
|
76
|
-
}
|
|
77
|
-
export declare class FetchError extends Error {
|
|
78
|
-
cause: Error;
|
|
79
|
-
name: "FetchError";
|
|
80
|
-
constructor(cause: Error, msg?: string);
|
|
81
|
-
}
|
|
82
|
-
export declare class RequiredError extends Error {
|
|
83
|
-
field: string;
|
|
84
|
-
name: "RequiredError";
|
|
85
|
-
constructor(field: string, msg?: string);
|
|
86
|
-
}
|
|
87
|
-
export declare const COLLECTION_FORMATS: {
|
|
88
|
-
csv: string;
|
|
89
|
-
ssv: string;
|
|
90
|
-
tsv: string;
|
|
91
|
-
pipes: string;
|
|
92
|
-
};
|
|
93
|
-
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
-
export type Json = any;
|
|
95
|
-
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
-
export type HTTPHeaders = {
|
|
97
|
-
[key: string]: string;
|
|
98
|
-
};
|
|
99
|
-
export type HTTPQuery = {
|
|
100
|
-
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
-
};
|
|
102
|
-
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
-
export type HTTPRequestInit = {
|
|
104
|
-
headers?: HTTPHeaders;
|
|
105
|
-
method: HTTPMethod;
|
|
106
|
-
credentials?: RequestCredentials;
|
|
107
|
-
body?: HTTPBody;
|
|
108
|
-
};
|
|
109
|
-
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
-
export type InitOverrideFunction = (requestContext: {
|
|
111
|
-
init: HTTPRequestInit;
|
|
112
|
-
context: RequestOpts;
|
|
113
|
-
}) => Promise<RequestInit>;
|
|
114
|
-
export interface FetchParams {
|
|
115
|
-
url: string;
|
|
116
|
-
init: RequestInit;
|
|
117
|
-
}
|
|
118
|
-
export interface RequestOpts {
|
|
119
|
-
path: string;
|
|
120
|
-
method: HTTPMethod;
|
|
121
|
-
headers: HTTPHeaders;
|
|
122
|
-
query?: HTTPQuery;
|
|
123
|
-
body?: HTTPBody;
|
|
124
|
-
}
|
|
125
|
-
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
-
export declare function exists(json: any, key: string): boolean;
|
|
127
|
-
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
-
[key: string]: any;
|
|
129
|
-
};
|
|
130
|
-
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
|
-
export interface Consume {
|
|
132
|
-
contentType: string;
|
|
133
|
-
}
|
|
134
|
-
export interface RequestContext {
|
|
135
|
-
fetch: FetchAPI;
|
|
136
|
-
url: string;
|
|
137
|
-
init: RequestInit;
|
|
138
|
-
}
|
|
139
|
-
export interface ResponseContext {
|
|
140
|
-
fetch: FetchAPI;
|
|
141
|
-
url: string;
|
|
142
|
-
init: RequestInit;
|
|
143
|
-
response: Response;
|
|
144
|
-
}
|
|
145
|
-
export interface ErrorContext {
|
|
146
|
-
fetch: FetchAPI;
|
|
147
|
-
url: string;
|
|
148
|
-
init: RequestInit;
|
|
149
|
-
error: unknown;
|
|
150
|
-
response?: Response;
|
|
151
|
-
}
|
|
152
|
-
export interface Middleware {
|
|
153
|
-
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
-
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
-
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
-
}
|
|
157
|
-
export interface ApiResponse<T> {
|
|
158
|
-
raw: Response;
|
|
159
|
-
value(): Promise<T>;
|
|
160
|
-
}
|
|
161
|
-
export interface ResponseTransformer<T> {
|
|
162
|
-
(json: any): T;
|
|
163
|
-
}
|
|
164
|
-
export declare class JSONApiResponse<T> {
|
|
165
|
-
raw: Response;
|
|
166
|
-
private transformer;
|
|
167
|
-
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
-
value(): Promise<T>;
|
|
169
|
-
}
|
|
170
|
-
export declare class VoidApiResponse {
|
|
171
|
-
raw: Response;
|
|
172
|
-
constructor(raw: Response);
|
|
173
|
-
value(): Promise<void>;
|
|
174
|
-
}
|
|
175
|
-
export declare class BlobApiResponse {
|
|
176
|
-
raw: Response;
|
|
177
|
-
constructor(raw: Response);
|
|
178
|
-
value(): Promise<Blob>;
|
|
179
|
-
}
|
|
180
|
-
export declare class TextApiResponse {
|
|
181
|
-
raw: Response;
|
|
182
|
-
constructor(raw: Response);
|
|
183
|
-
value(): Promise<string>;
|
|
184
|
-
}
|