@tennac-booking/sdk 1.0.0 → 1.0.2

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/dist/api.d.ts ADDED
@@ -0,0 +1,482 @@
1
+ /**
2
+ * Pickle Ball API
3
+ * API for managing pickle ball games and players
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Booking
20
+ */
21
+ export interface Booking {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Booking
26
+ */
27
+ 'userId': string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof Booking
32
+ */
33
+ 'playersIds'?: Array<string>;
34
+ /**
35
+ *
36
+ * @type {BookingStatus}
37
+ * @memberof Booking
38
+ */
39
+ 'status': BookingStatus;
40
+ /**
41
+ *
42
+ * @type {StripeStatus}
43
+ * @memberof Booking
44
+ */
45
+ 'stripeStatus': StripeStatus;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Booking
50
+ */
51
+ 'stripePaymentIntentId': string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof Booking
56
+ */
57
+ 'totalPrice': number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Booking
62
+ */
63
+ 'slotId': string;
64
+ }
65
+ /**
66
+ *
67
+ * @export
68
+ * @enum {string}
69
+ */
70
+ export declare const BookingStatus: {
71
+ readonly Active: "active";
72
+ readonly Inactive: "inactive";
73
+ };
74
+ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
75
+ /**
76
+ *
77
+ * @export
78
+ * @interface Court
79
+ */
80
+ export interface Court {
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof Court
85
+ */
86
+ 'name': string;
87
+ /**
88
+ *
89
+ * @type {CourtStatus}
90
+ * @memberof Court
91
+ */
92
+ 'status': CourtStatus;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof Court
97
+ */
98
+ 'comments'?: string;
99
+ /**
100
+ *
101
+ * @type {number}
102
+ * @memberof Court
103
+ */
104
+ 'pricePerSlot': number;
105
+ /**
106
+ *
107
+ * @type {number}
108
+ * @memberof Court
109
+ */
110
+ 'slotDefaultDuration': number;
111
+ /**
112
+ *
113
+ * @type {number}
114
+ * @memberof Court
115
+ */
116
+ 'startTimeInTheDayInMinutes': number;
117
+ /**
118
+ *
119
+ * @type {number}
120
+ * @memberof Court
121
+ */
122
+ 'endTimeInTheDayInMinutes': number;
123
+ }
124
+ /**
125
+ *
126
+ * @export
127
+ * @enum {string}
128
+ */
129
+ export declare const CourtStatus: {
130
+ readonly Available: "available";
131
+ readonly Unavailable: "unavailable";
132
+ };
133
+ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
134
+ /**
135
+ *
136
+ * @export
137
+ * @interface Slot
138
+ */
139
+ export interface Slot {
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof Slot
144
+ */
145
+ 'startDate': string;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof Slot
150
+ */
151
+ 'endDate': string;
152
+ /**
153
+ *
154
+ * @type {string}
155
+ * @memberof Slot
156
+ */
157
+ 'courtId': string;
158
+ }
159
+ /**
160
+ *
161
+ * @export
162
+ * @interface SlotException
163
+ */
164
+ export interface SlotException {
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof SlotException
169
+ */
170
+ 'startDate': string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof SlotException
175
+ */
176
+ 'endDate': string;
177
+ /**
178
+ *
179
+ * @type {string}
180
+ * @memberof SlotException
181
+ */
182
+ 'courtId': string;
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof SlotException
187
+ */
188
+ 'reason': string;
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];
203
+ /**
204
+ *
205
+ * @export
206
+ * @interface User
207
+ */
208
+ export interface User {
209
+ /**
210
+ *
211
+ * @type {string}
212
+ * @memberof User
213
+ */
214
+ 'username'?: string;
215
+ /**
216
+ *
217
+ * @type {string}
218
+ * @memberof User
219
+ */
220
+ 'firstName': string;
221
+ /**
222
+ *
223
+ * @type {string}
224
+ * @memberof User
225
+ */
226
+ 'lastName': string;
227
+ /**
228
+ *
229
+ * @type {string}
230
+ * @memberof User
231
+ */
232
+ 'email': string;
233
+ /**
234
+ *
235
+ * @type {boolean}
236
+ * @memberof User
237
+ */
238
+ 'isAccountVerified'?: boolean;
239
+ /**
240
+ *
241
+ * @type {string}
242
+ * @memberof User
243
+ */
244
+ 'level'?: string;
245
+ /**
246
+ *
247
+ * @type {string}
248
+ * @memberof User
249
+ */
250
+ 'stripeCustomerId'?: string;
251
+ /**
252
+ *
253
+ * @type {string}
254
+ * @memberof User
255
+ */
256
+ 'phone'?: string;
257
+ /**
258
+ *
259
+ * @type {string}
260
+ * @memberof User
261
+ */
262
+ 'password': string;
263
+ /**
264
+ *
265
+ * @type {string}
266
+ * @memberof User
267
+ */
268
+ 'profilePicture'?: string;
269
+ /**
270
+ *
271
+ * @type {boolean}
272
+ * @memberof User
273
+ */
274
+ 'isAdmin'?: boolean;
275
+ }
276
+ /**
277
+ * AuthApi - axios parameter creator
278
+ * @export
279
+ */
280
+ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => {
281
+ /**
282
+ *
283
+ * @summary Register a new user
284
+ * @param {string} firstName
285
+ * @param {string} lastName
286
+ * @param {string} email
287
+ * @param {string} password
288
+ * @param {string} [username]
289
+ * @param {boolean} [isAccountVerified]
290
+ * @param {string} [level]
291
+ * @param {string} [stripeCustomerId]
292
+ * @param {string} [phone]
293
+ * @param {string} [profilePicture]
294
+ * @param {boolean} [isAdmin]
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ apiAuthRegisterPost: (firstName: string, lastName: string, email: string, password: string, username?: string, isAccountVerified?: boolean, level?: string, stripeCustomerId?: string, phone?: string, profilePicture?: string, isAdmin?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
299
+ };
300
+ /**
301
+ * AuthApi - functional programming interface
302
+ * @export
303
+ */
304
+ export declare const AuthApiFp: (configuration?: Configuration) => {
305
+ /**
306
+ *
307
+ * @summary Register a new user
308
+ * @param {string} firstName
309
+ * @param {string} lastName
310
+ * @param {string} email
311
+ * @param {string} password
312
+ * @param {string} [username]
313
+ * @param {boolean} [isAccountVerified]
314
+ * @param {string} [level]
315
+ * @param {string} [stripeCustomerId]
316
+ * @param {string} [phone]
317
+ * @param {string} [profilePicture]
318
+ * @param {boolean} [isAdmin]
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ apiAuthRegisterPost(firstName: string, lastName: string, email: string, password: string, username?: string, isAccountVerified?: boolean, level?: string, stripeCustomerId?: string, phone?: string, profilePicture?: string, isAdmin?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
323
+ };
324
+ /**
325
+ * AuthApi - factory interface
326
+ * @export
327
+ */
328
+ export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
329
+ /**
330
+ *
331
+ * @summary Register a new user
332
+ * @param {AuthApiApiAuthRegisterPostRequest} requestParameters Request parameters.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ apiAuthRegisterPost(requestParameters: AuthApiApiAuthRegisterPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<User>;
337
+ };
338
+ /**
339
+ * Request parameters for apiAuthRegisterPost operation in AuthApi.
340
+ * @export
341
+ * @interface AuthApiApiAuthRegisterPostRequest
342
+ */
343
+ export interface AuthApiApiAuthRegisterPostRequest {
344
+ /**
345
+ *
346
+ * @type {string}
347
+ * @memberof AuthApiApiAuthRegisterPost
348
+ */
349
+ readonly firstName: string;
350
+ /**
351
+ *
352
+ * @type {string}
353
+ * @memberof AuthApiApiAuthRegisterPost
354
+ */
355
+ readonly lastName: string;
356
+ /**
357
+ *
358
+ * @type {string}
359
+ * @memberof AuthApiApiAuthRegisterPost
360
+ */
361
+ readonly email: string;
362
+ /**
363
+ *
364
+ * @type {string}
365
+ * @memberof AuthApiApiAuthRegisterPost
366
+ */
367
+ readonly password: string;
368
+ /**
369
+ *
370
+ * @type {string}
371
+ * @memberof AuthApiApiAuthRegisterPost
372
+ */
373
+ readonly username?: string;
374
+ /**
375
+ *
376
+ * @type {boolean}
377
+ * @memberof AuthApiApiAuthRegisterPost
378
+ */
379
+ readonly isAccountVerified?: boolean;
380
+ /**
381
+ *
382
+ * @type {string}
383
+ * @memberof AuthApiApiAuthRegisterPost
384
+ */
385
+ readonly level?: string;
386
+ /**
387
+ *
388
+ * @type {string}
389
+ * @memberof AuthApiApiAuthRegisterPost
390
+ */
391
+ readonly stripeCustomerId?: string;
392
+ /**
393
+ *
394
+ * @type {string}
395
+ * @memberof AuthApiApiAuthRegisterPost
396
+ */
397
+ readonly phone?: string;
398
+ /**
399
+ *
400
+ * @type {string}
401
+ * @memberof AuthApiApiAuthRegisterPost
402
+ */
403
+ readonly profilePicture?: string;
404
+ /**
405
+ *
406
+ * @type {boolean}
407
+ * @memberof AuthApiApiAuthRegisterPost
408
+ */
409
+ readonly isAdmin?: boolean;
410
+ }
411
+ /**
412
+ * AuthApi - object-oriented interface
413
+ * @export
414
+ * @class AuthApi
415
+ * @extends {BaseAPI}
416
+ */
417
+ export declare class AuthApi extends BaseAPI {
418
+ /**
419
+ *
420
+ * @summary Register a new user
421
+ * @param {AuthApiApiAuthRegisterPostRequest} requestParameters Request parameters.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ * @memberof AuthApi
425
+ */
426
+ apiAuthRegisterPost(requestParameters: AuthApiApiAuthRegisterPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User, any>>;
427
+ }
428
+ /**
429
+ * UsersApi - axios parameter creator
430
+ * @export
431
+ */
432
+ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
433
+ /**
434
+ *
435
+ * @summary Retrieve all users
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ apiUsersGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
440
+ };
441
+ /**
442
+ * UsersApi - functional programming interface
443
+ * @export
444
+ */
445
+ export declare const UsersApiFp: (configuration?: Configuration) => {
446
+ /**
447
+ *
448
+ * @summary Retrieve all users
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ apiUsersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
453
+ };
454
+ /**
455
+ * UsersApi - factory interface
456
+ * @export
457
+ */
458
+ export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
459
+ /**
460
+ *
461
+ * @summary Retrieve all users
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ apiUsersGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<User>>;
466
+ };
467
+ /**
468
+ * UsersApi - object-oriented interface
469
+ * @export
470
+ * @class UsersApi
471
+ * @extends {BaseAPI}
472
+ */
473
+ export declare class UsersApi extends BaseAPI {
474
+ /**
475
+ *
476
+ * @summary Retrieve all users
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ * @memberof UsersApi
480
+ */
481
+ apiUsersGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User[], any>>;
482
+ }