@tennac-booking/sdk 1.0.1 → 1.0.3
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 +3 -0
- package/README.md +3 -0
- package/api.ts +42 -18
- package/dist/api.d.ts +33 -18
- package/dist/api.js +22 -7
- package/dist/esm/api.d.ts +33 -18
- package/dist/esm/api.js +21 -6
- package/dist/esm/src/models/BookingStatus.d.ts +25 -0
- package/dist/esm/src/models/BookingStatus.js +43 -0
- package/dist/esm/src/models/CourtStatus.d.ts +25 -0
- package/dist/esm/src/models/CourtStatus.js +43 -0
- package/dist/esm/src/models/StripeStatus.d.ts +28 -0
- package/dist/esm/src/models/StripeStatus.js +46 -0
- package/dist/src/models/BookingStatus.d.ts +25 -0
- package/dist/src/models/BookingStatus.js +51 -0
- package/dist/src/models/CourtStatus.d.ts +25 -0
- package/dist/src/models/CourtStatus.js +51 -0
- package/dist/src/models/StripeStatus.d.ts +28 -0
- package/dist/src/models/StripeStatus.js +54 -0
- package/docs/Booking.md +2 -2
- package/docs/BookingStatus.md +10 -0
- package/docs/Court.md +1 -1
- package/docs/CourtStatus.md +10 -0
- package/docs/StripeStatus.md +16 -0
- package/package.json +4 -5
- package/src/models/BookingStatus.ts +53 -0
- package/src/models/CourtStatus.ts +53 -0
- package/src/models/StripeStatus.ts +56 -0
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -58,9 +58,12 @@ Class | Method | HTTP request | Description
|
|
|
58
58
|
### Documentation For Models
|
|
59
59
|
|
|
60
60
|
- [Booking](docs/Booking.md)
|
|
61
|
+
- [BookingStatus](docs/BookingStatus.md)
|
|
61
62
|
- [Court](docs/Court.md)
|
|
63
|
+
- [CourtStatus](docs/CourtStatus.md)
|
|
62
64
|
- [Slot](docs/Slot.md)
|
|
63
65
|
- [SlotException](docs/SlotException.md)
|
|
66
|
+
- [StripeStatus](docs/StripeStatus.md)
|
|
64
67
|
- [User](docs/User.md)
|
|
65
68
|
|
|
66
69
|
|
package/api.ts
CHANGED
|
@@ -43,16 +43,16 @@ export interface Booking {
|
|
|
43
43
|
'playersIds'?: Array<string>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {BookingStatus}
|
|
47
47
|
* @memberof Booking
|
|
48
48
|
*/
|
|
49
|
-
'status':
|
|
49
|
+
'status': BookingStatus;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {StripeStatus}
|
|
53
53
|
* @memberof Booking
|
|
54
54
|
*/
|
|
55
|
-
'stripeStatus':
|
|
55
|
+
'stripeStatus': StripeStatus;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {string}
|
|
@@ -73,21 +73,20 @@ export interface Booking {
|
|
|
73
73
|
'slotId': string;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @enum {string}
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
export const BookingStatus = {
|
|
77
84
|
Active: 'active',
|
|
78
85
|
Inactive: 'inactive'
|
|
79
86
|
} as const;
|
|
80
87
|
|
|
81
|
-
export type
|
|
82
|
-
export const BookingStripeStatusEnum = {
|
|
83
|
-
Pending: 'pending',
|
|
84
|
-
Paid: 'paid',
|
|
85
|
-
Failed: 'failed',
|
|
86
|
-
Refunded: 'refunded',
|
|
87
|
-
Canceled: 'canceled'
|
|
88
|
-
} as const;
|
|
88
|
+
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
89
89
|
|
|
90
|
-
export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
@@ -103,10 +102,10 @@ export interface Court {
|
|
|
103
102
|
'name': string;
|
|
104
103
|
/**
|
|
105
104
|
*
|
|
106
|
-
* @type {
|
|
105
|
+
* @type {CourtStatus}
|
|
107
106
|
* @memberof Court
|
|
108
107
|
*/
|
|
109
|
-
'status':
|
|
108
|
+
'status': CourtStatus;
|
|
110
109
|
/**
|
|
111
110
|
*
|
|
112
111
|
* @type {string}
|
|
@@ -139,12 +138,20 @@ export interface Court {
|
|
|
139
138
|
'endTimeInTheDayInMinutes': number;
|
|
140
139
|
}
|
|
141
140
|
|
|
142
|
-
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @export
|
|
145
|
+
* @enum {string}
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
export const CourtStatus = {
|
|
143
149
|
Available: 'available',
|
|
144
150
|
Unavailable: 'unavailable'
|
|
145
151
|
} as const;
|
|
146
152
|
|
|
147
|
-
export type
|
|
153
|
+
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
154
|
+
|
|
148
155
|
|
|
149
156
|
/**
|
|
150
157
|
*
|
|
@@ -202,6 +209,23 @@ export interface SlotException {
|
|
|
202
209
|
*/
|
|
203
210
|
'reason': string;
|
|
204
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @export
|
|
215
|
+
* @enum {string}
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
export const StripeStatus = {
|
|
219
|
+
Pending: 'pending',
|
|
220
|
+
Paid: 'paid',
|
|
221
|
+
Failed: 'failed',
|
|
222
|
+
Refunded: 'refunded',
|
|
223
|
+
Canceled: 'canceled'
|
|
224
|
+
} as const;
|
|
225
|
+
|
|
226
|
+
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
227
|
+
|
|
228
|
+
|
|
205
229
|
/**
|
|
206
230
|
*
|
|
207
231
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -33,16 +33,16 @@ export interface Booking {
|
|
|
33
33
|
'playersIds'?: Array<string>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {BookingStatus}
|
|
37
37
|
* @memberof Booking
|
|
38
38
|
*/
|
|
39
|
-
'status':
|
|
39
|
+
'status': BookingStatus;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {StripeStatus}
|
|
43
43
|
* @memberof Booking
|
|
44
44
|
*/
|
|
45
|
-
'stripeStatus':
|
|
45
|
+
'stripeStatus': StripeStatus;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -62,19 +62,16 @@ export interface Booking {
|
|
|
62
62
|
*/
|
|
63
63
|
'slotId': string;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @enum {string}
|
|
69
|
+
*/
|
|
70
|
+
export declare const BookingStatus: {
|
|
66
71
|
readonly Active: "active";
|
|
67
72
|
readonly Inactive: "inactive";
|
|
68
73
|
};
|
|
69
|
-
export type
|
|
70
|
-
export declare const BookingStripeStatusEnum: {
|
|
71
|
-
readonly Pending: "pending";
|
|
72
|
-
readonly Paid: "paid";
|
|
73
|
-
readonly Failed: "failed";
|
|
74
|
-
readonly Refunded: "refunded";
|
|
75
|
-
readonly Canceled: "canceled";
|
|
76
|
-
};
|
|
77
|
-
export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
|
|
74
|
+
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
78
75
|
/**
|
|
79
76
|
*
|
|
80
77
|
* @export
|
|
@@ -89,10 +86,10 @@ export interface Court {
|
|
|
89
86
|
'name': string;
|
|
90
87
|
/**
|
|
91
88
|
*
|
|
92
|
-
* @type {
|
|
89
|
+
* @type {CourtStatus}
|
|
93
90
|
* @memberof Court
|
|
94
91
|
*/
|
|
95
|
-
'status':
|
|
92
|
+
'status': CourtStatus;
|
|
96
93
|
/**
|
|
97
94
|
*
|
|
98
95
|
* @type {string}
|
|
@@ -124,11 +121,16 @@ export interface Court {
|
|
|
124
121
|
*/
|
|
125
122
|
'endTimeInTheDayInMinutes': number;
|
|
126
123
|
}
|
|
127
|
-
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @export
|
|
127
|
+
* @enum {string}
|
|
128
|
+
*/
|
|
129
|
+
export declare const CourtStatus: {
|
|
128
130
|
readonly Available: "available";
|
|
129
131
|
readonly Unavailable: "unavailable";
|
|
130
132
|
};
|
|
131
|
-
export type
|
|
133
|
+
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
132
134
|
/**
|
|
133
135
|
*
|
|
134
136
|
* @export
|
|
@@ -185,6 +187,19 @@ export interface SlotException {
|
|
|
185
187
|
*/
|
|
186
188
|
'reason': string;
|
|
187
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @export
|
|
193
|
+
* @enum {string}
|
|
194
|
+
*/
|
|
195
|
+
export declare const StripeStatus: {
|
|
196
|
+
readonly Pending: "pending";
|
|
197
|
+
readonly Paid: "paid";
|
|
198
|
+
readonly Failed: "failed";
|
|
199
|
+
readonly Refunded: "refunded";
|
|
200
|
+
readonly Canceled: "canceled";
|
|
201
|
+
};
|
|
202
|
+
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
188
203
|
/**
|
|
189
204
|
*
|
|
190
205
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,28 +22,43 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.
|
|
25
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.StripeStatus = exports.CourtStatus = exports.BookingStatus = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @enum {string}
|
|
36
|
+
*/
|
|
37
|
+
exports.BookingStatus = {
|
|
33
38
|
Active: 'active',
|
|
34
39
|
Inactive: 'inactive'
|
|
35
40
|
};
|
|
36
|
-
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
exports.CourtStatus = {
|
|
47
|
+
Available: 'available',
|
|
48
|
+
Unavailable: 'unavailable'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @export
|
|
53
|
+
* @enum {string}
|
|
54
|
+
*/
|
|
55
|
+
exports.StripeStatus = {
|
|
37
56
|
Pending: 'pending',
|
|
38
57
|
Paid: 'paid',
|
|
39
58
|
Failed: 'failed',
|
|
40
59
|
Refunded: 'refunded',
|
|
41
60
|
Canceled: 'canceled'
|
|
42
61
|
};
|
|
43
|
-
exports.CourtStatusEnum = {
|
|
44
|
-
Available: 'available',
|
|
45
|
-
Unavailable: 'unavailable'
|
|
46
|
-
};
|
|
47
62
|
/**
|
|
48
63
|
* AuthApi - axios parameter creator
|
|
49
64
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -33,16 +33,16 @@ export interface Booking {
|
|
|
33
33
|
'playersIds'?: Array<string>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {BookingStatus}
|
|
37
37
|
* @memberof Booking
|
|
38
38
|
*/
|
|
39
|
-
'status':
|
|
39
|
+
'status': BookingStatus;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {StripeStatus}
|
|
43
43
|
* @memberof Booking
|
|
44
44
|
*/
|
|
45
|
-
'stripeStatus':
|
|
45
|
+
'stripeStatus': StripeStatus;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -62,19 +62,16 @@ export interface Booking {
|
|
|
62
62
|
*/
|
|
63
63
|
'slotId': string;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @enum {string}
|
|
69
|
+
*/
|
|
70
|
+
export declare const BookingStatus: {
|
|
66
71
|
readonly Active: "active";
|
|
67
72
|
readonly Inactive: "inactive";
|
|
68
73
|
};
|
|
69
|
-
export type
|
|
70
|
-
export declare const BookingStripeStatusEnum: {
|
|
71
|
-
readonly Pending: "pending";
|
|
72
|
-
readonly Paid: "paid";
|
|
73
|
-
readonly Failed: "failed";
|
|
74
|
-
readonly Refunded: "refunded";
|
|
75
|
-
readonly Canceled: "canceled";
|
|
76
|
-
};
|
|
77
|
-
export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
|
|
74
|
+
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
78
75
|
/**
|
|
79
76
|
*
|
|
80
77
|
* @export
|
|
@@ -89,10 +86,10 @@ export interface Court {
|
|
|
89
86
|
'name': string;
|
|
90
87
|
/**
|
|
91
88
|
*
|
|
92
|
-
* @type {
|
|
89
|
+
* @type {CourtStatus}
|
|
93
90
|
* @memberof Court
|
|
94
91
|
*/
|
|
95
|
-
'status':
|
|
92
|
+
'status': CourtStatus;
|
|
96
93
|
/**
|
|
97
94
|
*
|
|
98
95
|
* @type {string}
|
|
@@ -124,11 +121,16 @@ export interface Court {
|
|
|
124
121
|
*/
|
|
125
122
|
'endTimeInTheDayInMinutes': number;
|
|
126
123
|
}
|
|
127
|
-
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @export
|
|
127
|
+
* @enum {string}
|
|
128
|
+
*/
|
|
129
|
+
export declare const CourtStatus: {
|
|
128
130
|
readonly Available: "available";
|
|
129
131
|
readonly Unavailable: "unavailable";
|
|
130
132
|
};
|
|
131
|
-
export type
|
|
133
|
+
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
132
134
|
/**
|
|
133
135
|
*
|
|
134
136
|
* @export
|
|
@@ -185,6 +187,19 @@ export interface SlotException {
|
|
|
185
187
|
*/
|
|
186
188
|
'reason': string;
|
|
187
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @export
|
|
193
|
+
* @enum {string}
|
|
194
|
+
*/
|
|
195
|
+
export declare const StripeStatus: {
|
|
196
|
+
readonly Pending: "pending";
|
|
197
|
+
readonly Paid: "paid";
|
|
198
|
+
readonly Failed: "failed";
|
|
199
|
+
readonly Refunded: "refunded";
|
|
200
|
+
readonly Canceled: "canceled";
|
|
201
|
+
};
|
|
202
|
+
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
188
203
|
/**
|
|
189
204
|
*
|
|
190
205
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -26,21 +26,36 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const BookingStatus = {
|
|
30
35
|
Active: 'active',
|
|
31
36
|
Inactive: 'inactive'
|
|
32
37
|
};
|
|
33
|
-
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
export const CourtStatus = {
|
|
44
|
+
Available: 'available',
|
|
45
|
+
Unavailable: 'unavailable'
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @enum {string}
|
|
51
|
+
*/
|
|
52
|
+
export const StripeStatus = {
|
|
34
53
|
Pending: 'pending',
|
|
35
54
|
Paid: 'paid',
|
|
36
55
|
Failed: 'failed',
|
|
37
56
|
Refunded: 'refunded',
|
|
38
57
|
Canceled: 'canceled'
|
|
39
58
|
};
|
|
40
|
-
export const CourtStatusEnum = {
|
|
41
|
-
Available: 'available',
|
|
42
|
-
Unavailable: 'unavailable'
|
|
43
|
-
};
|
|
44
59
|
/**
|
|
45
60
|
* AuthApi - axios parameter creator
|
|
46
61
|
* @export
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pickle Ball API
|
|
6
|
+
* API for managing pickle ball games and players
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BookingStatus = void 0;
|
|
17
|
+
exports.instanceOfBookingStatus = instanceOfBookingStatus;
|
|
18
|
+
exports.BookingStatusFromJSON = BookingStatusFromJSON;
|
|
19
|
+
exports.BookingStatusFromJSONTyped = BookingStatusFromJSONTyped;
|
|
20
|
+
exports.BookingStatusToJSON = BookingStatusToJSON;
|
|
21
|
+
exports.BookingStatusToJSONTyped = BookingStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BookingStatus = {
|
|
27
|
+
Active: 'active',
|
|
28
|
+
Inactive: 'inactive'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfBookingStatus(value) {
|
|
31
|
+
for (const key in exports.BookingStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.BookingStatus, key)) {
|
|
33
|
+
if (exports.BookingStatus[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function BookingStatusFromJSON(json) {
|
|
41
|
+
return BookingStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BookingStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function BookingStatusToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function BookingStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pickle Ball API
|
|
6
|
+
* API for managing pickle ball games and players
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CourtStatus = void 0;
|
|
17
|
+
exports.instanceOfCourtStatus = instanceOfCourtStatus;
|
|
18
|
+
exports.CourtStatusFromJSON = CourtStatusFromJSON;
|
|
19
|
+
exports.CourtStatusFromJSONTyped = CourtStatusFromJSONTyped;
|
|
20
|
+
exports.CourtStatusToJSON = CourtStatusToJSON;
|
|
21
|
+
exports.CourtStatusToJSONTyped = CourtStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CourtStatus = {
|
|
27
|
+
Available: 'available',
|
|
28
|
+
Unavailable: 'unavailable'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfCourtStatus(value) {
|
|
31
|
+
for (const key in exports.CourtStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.CourtStatus, key)) {
|
|
33
|
+
if (exports.CourtStatus[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function CourtStatusFromJSON(json) {
|
|
41
|
+
return CourtStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CourtStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function CourtStatusToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function CourtStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pickle Ball API
|
|
6
|
+
* API for managing pickle ball games and players
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StripeStatus = void 0;
|
|
17
|
+
exports.instanceOfStripeStatus = instanceOfStripeStatus;
|
|
18
|
+
exports.StripeStatusFromJSON = StripeStatusFromJSON;
|
|
19
|
+
exports.StripeStatusFromJSONTyped = StripeStatusFromJSONTyped;
|
|
20
|
+
exports.StripeStatusToJSON = StripeStatusToJSON;
|
|
21
|
+
exports.StripeStatusToJSONTyped = StripeStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.StripeStatus = {
|
|
27
|
+
Pending: 'pending',
|
|
28
|
+
Paid: 'paid',
|
|
29
|
+
Failed: 'failed',
|
|
30
|
+
Refunded: 'refunded',
|
|
31
|
+
Canceled: 'canceled'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfStripeStatus(value) {
|
|
34
|
+
for (const key in exports.StripeStatus) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.StripeStatus, key)) {
|
|
36
|
+
if (exports.StripeStatus[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function StripeStatusFromJSON(json) {
|
|
44
|
+
return StripeStatusFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StripeStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function StripeStatusToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function StripeStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
package/docs/Booking.md
CHANGED
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**userId** | **string** | | [default to undefined]
|
|
9
9
|
**playersIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
-
**status** | **
|
|
11
|
-
**stripeStatus** | **
|
|
10
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
11
|
+
**stripeStatus** | [**StripeStatus**](StripeStatus.md) | | [default to undefined]
|
|
12
12
|
**stripePaymentIntentId** | **string** | | [default to undefined]
|
|
13
13
|
**totalPrice** | **number** | | [default to undefined]
|
|
14
14
|
**slotId** | **string** | | [default to undefined]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# BookingStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Active` (value: `'active'`)
|
|
7
|
+
|
|
8
|
+
* `Inactive` (value: `'inactive'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Court.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**name** | **string** | | [default to undefined]
|
|
9
|
-
**status** | **
|
|
9
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [default to undefined]
|
|
10
10
|
**comments** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**pricePerSlot** | **number** | | [default to undefined]
|
|
12
12
|
**slotDefaultDuration** | **number** | | [default to undefined]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CourtStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Available` (value: `'available'`)
|
|
7
|
+
|
|
8
|
+
* `Unavailable` (value: `'unavailable'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# StripeStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `'pending'`)
|
|
7
|
+
|
|
8
|
+
* `Paid` (value: `'paid'`)
|
|
9
|
+
|
|
10
|
+
* `Failed` (value: `'failed'`)
|
|
11
|
+
|
|
12
|
+
* `Refunded` (value: `'refunded'`)
|
|
13
|
+
|
|
14
|
+
* `Canceled` (value: `'canceled'`)
|
|
15
|
+
|
|
16
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tennac-booking/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "OpenAPI client for @tennac-booking/sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
-
},
|
|
10
6
|
"keywords": [
|
|
11
7
|
"axios",
|
|
12
8
|
"typescript",
|
|
@@ -14,6 +10,9 @@
|
|
|
14
10
|
"openapi-generator",
|
|
15
11
|
"@tennac-booking/sdk"
|
|
16
12
|
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
17
16
|
"license": "Unlicense",
|
|
18
17
|
"main": "./dist/index.js",
|
|
19
18
|
"typings": "./dist/index.d.ts",
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const BookingStatus = {
|
|
21
|
+
Active: 'active',
|
|
22
|
+
Inactive: 'inactive'
|
|
23
|
+
} as const;
|
|
24
|
+
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfBookingStatus(value: any): boolean {
|
|
28
|
+
for (const key in BookingStatus) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(BookingStatus, key)) {
|
|
30
|
+
if (BookingStatus[key as keyof typeof BookingStatus] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BookingStatusFromJSON(json: any): BookingStatus {
|
|
39
|
+
return BookingStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BookingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingStatus {
|
|
43
|
+
return json as BookingStatus;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function BookingStatusToJSON(value?: BookingStatus | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function BookingStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): BookingStatus {
|
|
51
|
+
return value as BookingStatus;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CourtStatus = {
|
|
21
|
+
Available: 'available',
|
|
22
|
+
Unavailable: 'unavailable'
|
|
23
|
+
} as const;
|
|
24
|
+
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfCourtStatus(value: any): boolean {
|
|
28
|
+
for (const key in CourtStatus) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(CourtStatus, key)) {
|
|
30
|
+
if (CourtStatus[key as keyof typeof CourtStatus] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CourtStatusFromJSON(json: any): CourtStatus {
|
|
39
|
+
return CourtStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CourtStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourtStatus {
|
|
43
|
+
return json as CourtStatus;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CourtStatusToJSON(value?: CourtStatus | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CourtStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CourtStatus {
|
|
51
|
+
return value as CourtStatus;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const StripeStatus = {
|
|
21
|
+
Pending: 'pending',
|
|
22
|
+
Paid: 'paid',
|
|
23
|
+
Failed: 'failed',
|
|
24
|
+
Refunded: 'refunded',
|
|
25
|
+
Canceled: 'canceled'
|
|
26
|
+
} as const;
|
|
27
|
+
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function instanceOfStripeStatus(value: any): boolean {
|
|
31
|
+
for (const key in StripeStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(StripeStatus, key)) {
|
|
33
|
+
if (StripeStatus[key as keyof typeof StripeStatus] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function StripeStatusFromJSON(json: any): StripeStatus {
|
|
42
|
+
return StripeStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StripeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): StripeStatus {
|
|
46
|
+
return json as StripeStatus;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StripeStatusToJSON(value?: StripeStatus | null): any {
|
|
50
|
+
return value as any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function StripeStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): StripeStatus {
|
|
54
|
+
return value as StripeStatus;
|
|
55
|
+
}
|
|
56
|
+
|