@tennac-booking/sdk 1.0.5 → 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.
Files changed (130) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +1 -2
  3. package/api.ts +8 -273
  4. package/dist/api.d.ts +4 -156
  5. package/dist/api.js +9 -174
  6. package/dist/esm/api.d.ts +4 -156
  7. package/dist/esm/api.js +9 -170
  8. package/docs/UsersApi.md +4 -4
  9. package/package.json +4 -4
  10. package/apis/AuthApi.ts +0 -157
  11. package/apis/UsersApi.ts +0 -56
  12. package/apis/index.ts +0 -4
  13. package/dist/apis/AuthApi.d.ts +0 -39
  14. package/dist/apis/AuthApi.js +0 -117
  15. package/dist/apis/UsersApi.d.ts +0 -26
  16. package/dist/apis/UsersApi.js +0 -58
  17. package/dist/apis/index.d.ts +0 -2
  18. package/dist/apis/index.js +0 -20
  19. package/dist/esm/apis/AuthApi.d.ts +0 -39
  20. package/dist/esm/apis/AuthApi.js +0 -113
  21. package/dist/esm/apis/UsersApi.d.ts +0 -26
  22. package/dist/esm/apis/UsersApi.js +0 -54
  23. package/dist/esm/apis/index.d.ts +0 -2
  24. package/dist/esm/apis/index.js +0 -4
  25. package/dist/esm/models/Booking.d.ts +0 -87
  26. package/dist/esm/models/Booking.js +0 -82
  27. package/dist/esm/models/Court.d.ts +0 -76
  28. package/dist/esm/models/Court.js +0 -72
  29. package/dist/esm/models/Slot.d.ts +0 -44
  30. package/dist/esm/models/Slot.js +0 -51
  31. package/dist/esm/models/SlotException.d.ts +0 -50
  32. package/dist/esm/models/SlotException.js +0 -55
  33. package/dist/esm/models/User.d.ts +0 -92
  34. package/dist/esm/models/User.js +0 -69
  35. package/dist/esm/models/index.d.ts +0 -5
  36. package/dist/esm/models/index.js +0 -7
  37. package/dist/esm/runtime.d.ts +0 -184
  38. package/dist/esm/runtime.js +0 -334
  39. package/dist/esm/src/apis/AuthApi.d.ts +0 -39
  40. package/dist/esm/src/apis/AuthApi.js +0 -113
  41. package/dist/esm/src/apis/UsersApi.d.ts +0 -26
  42. package/dist/esm/src/apis/UsersApi.js +0 -54
  43. package/dist/esm/src/apis/index.d.ts +0 -2
  44. package/dist/esm/src/apis/index.js +0 -4
  45. package/dist/esm/src/index.d.ts +0 -3
  46. package/dist/esm/src/index.js +0 -5
  47. package/dist/esm/src/models/Booking.d.ts +0 -87
  48. package/dist/esm/src/models/Booking.js +0 -82
  49. package/dist/esm/src/models/BookingStatus.d.ts +0 -25
  50. package/dist/esm/src/models/BookingStatus.js +0 -43
  51. package/dist/esm/src/models/Court.d.ts +0 -76
  52. package/dist/esm/src/models/Court.js +0 -72
  53. package/dist/esm/src/models/CourtStatus.d.ts +0 -25
  54. package/dist/esm/src/models/CourtStatus.js +0 -43
  55. package/dist/esm/src/models/Slot.d.ts +0 -44
  56. package/dist/esm/src/models/Slot.js +0 -51
  57. package/dist/esm/src/models/SlotException.d.ts +0 -50
  58. package/dist/esm/src/models/SlotException.js +0 -55
  59. package/dist/esm/src/models/StripeStatus.d.ts +0 -28
  60. package/dist/esm/src/models/StripeStatus.js +0 -46
  61. package/dist/esm/src/models/User.d.ts +0 -92
  62. package/dist/esm/src/models/User.js +0 -69
  63. package/dist/esm/src/models/index.d.ts +0 -5
  64. package/dist/esm/src/models/index.js +0 -7
  65. package/dist/esm/src/runtime.d.ts +0 -184
  66. package/dist/esm/src/runtime.js +0 -334
  67. package/dist/models/Booking.d.ts +0 -87
  68. package/dist/models/Booking.js +0 -90
  69. package/dist/models/Court.d.ts +0 -76
  70. package/dist/models/Court.js +0 -80
  71. package/dist/models/Slot.d.ts +0 -44
  72. package/dist/models/Slot.js +0 -58
  73. package/dist/models/SlotException.d.ts +0 -50
  74. package/dist/models/SlotException.js +0 -62
  75. package/dist/models/User.d.ts +0 -92
  76. package/dist/models/User.js +0 -76
  77. package/dist/models/index.d.ts +0 -5
  78. package/dist/models/index.js +0 -23
  79. package/dist/runtime.d.ts +0 -184
  80. package/dist/runtime.js +0 -350
  81. package/dist/src/apis/AuthApi.d.ts +0 -39
  82. package/dist/src/apis/AuthApi.js +0 -117
  83. package/dist/src/apis/UsersApi.d.ts +0 -26
  84. package/dist/src/apis/UsersApi.js +0 -58
  85. package/dist/src/apis/index.d.ts +0 -2
  86. package/dist/src/apis/index.js +0 -20
  87. package/dist/src/index.d.ts +0 -3
  88. package/dist/src/index.js +0 -21
  89. package/dist/src/models/Booking.d.ts +0 -87
  90. package/dist/src/models/Booking.js +0 -90
  91. package/dist/src/models/BookingStatus.d.ts +0 -25
  92. package/dist/src/models/BookingStatus.js +0 -51
  93. package/dist/src/models/Court.d.ts +0 -76
  94. package/dist/src/models/Court.js +0 -80
  95. package/dist/src/models/CourtStatus.d.ts +0 -25
  96. package/dist/src/models/CourtStatus.js +0 -51
  97. package/dist/src/models/Slot.d.ts +0 -44
  98. package/dist/src/models/Slot.js +0 -58
  99. package/dist/src/models/SlotException.d.ts +0 -50
  100. package/dist/src/models/SlotException.js +0 -62
  101. package/dist/src/models/StripeStatus.d.ts +0 -28
  102. package/dist/src/models/StripeStatus.js +0 -54
  103. package/dist/src/models/User.d.ts +0 -92
  104. package/dist/src/models/User.js +0 -76
  105. package/dist/src/models/index.d.ts +0 -5
  106. package/dist/src/models/index.js +0 -23
  107. package/dist/src/runtime.d.ts +0 -184
  108. package/dist/src/runtime.js +0 -350
  109. package/docs/AuthApi.md +0 -88
  110. package/models/Booking.ts +0 -142
  111. package/models/Court.ts +0 -130
  112. package/models/Slot.ts +0 -84
  113. package/models/SlotException.ts +0 -93
  114. package/models/User.ts +0 -149
  115. package/models/index.ts +0 -7
  116. package/runtime.ts +0 -432
  117. package/src/apis/AuthApi.ts +0 -157
  118. package/src/apis/UsersApi.ts +0 -56
  119. package/src/apis/index.ts +0 -4
  120. package/src/index.ts +0 -5
  121. package/src/models/Booking.ts +0 -142
  122. package/src/models/BookingStatus.ts +0 -53
  123. package/src/models/Court.ts +0 -130
  124. package/src/models/CourtStatus.ts +0 -53
  125. package/src/models/Slot.ts +0 -84
  126. package/src/models/SlotException.ts +0 -93
  127. package/src/models/StripeStatus.ts +0 -56
  128. package/src/models/User.ts +0 -149
  129. package/src/models/index.ts +0 -7
  130. package/src/runtime.ts +0 -432
@@ -1,11 +1,11 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  README.md
4
5
  api.ts
5
6
  base.ts
6
7
  common.ts
7
8
  configuration.ts
8
- docs/AuthApi.md
9
9
  docs/Booking.md
10
10
  docs/BookingStatus.md
11
11
  docs/Court.md
package/README.md CHANGED
@@ -51,8 +51,7 @@ All URIs are relative to *https://api.mon-domaine.com*
51
51
 
52
52
  Class | Method | HTTP request | Description
53
53
  ------------ | ------------- | ------------- | -------------
54
- *AuthApi* | [**apiAuthRegisterPost**](docs/AuthApi.md#apiauthregisterpost) | **POST** /api/auth/register | Register a new user
55
- *UsersApi* | [**apiUsersGet**](docs/UsersApi.md#apiusersget) | **GET** /api/users | Retrieve all users
54
+ *UsersApi* | [**getAllUsers**](docs/UsersApi.md#getallusers) | **GET** /api/users | Retrieve all users
56
55
 
57
56
 
58
57
  ### Documentation For Models
package/api.ts CHANGED
@@ -300,271 +300,6 @@ export interface User {
300
300
  'isAdmin'?: boolean;
301
301
  }
302
302
 
303
- /**
304
- * AuthApi - axios parameter creator
305
- * @export
306
- */
307
- export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
308
- return {
309
- /**
310
- *
311
- * @summary Register a new user
312
- * @param {string} firstName
313
- * @param {string} lastName
314
- * @param {string} email
315
- * @param {string} password
316
- * @param {string} [username]
317
- * @param {boolean} [isAccountVerified]
318
- * @param {string} [level]
319
- * @param {string} [stripeCustomerId]
320
- * @param {string} [phone]
321
- * @param {string} [profilePicture]
322
- * @param {boolean} [isAdmin]
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- apiAuthRegisterPost: async (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> => {
327
- // verify required parameter 'firstName' is not null or undefined
328
- assertParamExists('apiAuthRegisterPost', 'firstName', firstName)
329
- // verify required parameter 'lastName' is not null or undefined
330
- assertParamExists('apiAuthRegisterPost', 'lastName', lastName)
331
- // verify required parameter 'email' is not null or undefined
332
- assertParamExists('apiAuthRegisterPost', 'email', email)
333
- // verify required parameter 'password' is not null or undefined
334
- assertParamExists('apiAuthRegisterPost', 'password', password)
335
- const localVarPath = `/api/auth/register`;
336
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
337
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
338
- let baseOptions;
339
- if (configuration) {
340
- baseOptions = configuration.baseOptions;
341
- }
342
-
343
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
344
- const localVarHeaderParameter = {} as any;
345
- const localVarQueryParameter = {} as any;
346
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
347
-
348
-
349
- if (username !== undefined) {
350
- localVarFormParams.append('username', username as any);
351
- }
352
-
353
- if (firstName !== undefined) {
354
- localVarFormParams.append('firstName', firstName as any);
355
- }
356
-
357
- if (lastName !== undefined) {
358
- localVarFormParams.append('lastName', lastName as any);
359
- }
360
-
361
- if (email !== undefined) {
362
- localVarFormParams.append('email', email as any);
363
- }
364
-
365
- if (isAccountVerified !== undefined) {
366
- localVarFormParams.append('isAccountVerified', String(isAccountVerified) as any);
367
- }
368
-
369
- if (level !== undefined) {
370
- localVarFormParams.append('level', level as any);
371
- }
372
-
373
- if (stripeCustomerId !== undefined) {
374
- localVarFormParams.append('stripeCustomerId', stripeCustomerId as any);
375
- }
376
-
377
- if (phone !== undefined) {
378
- localVarFormParams.append('phone', phone as any);
379
- }
380
-
381
- if (password !== undefined) {
382
- localVarFormParams.append('password', password as any);
383
- }
384
-
385
- if (profilePicture !== undefined) {
386
- localVarFormParams.append('profilePicture', profilePicture as any);
387
- }
388
-
389
- if (isAdmin !== undefined) {
390
- localVarFormParams.append('isAdmin', String(isAdmin) as any);
391
- }
392
-
393
-
394
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
395
-
396
- setSearchParams(localVarUrlObj, localVarQueryParameter);
397
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
399
- localVarRequestOptions.data = localVarFormParams;
400
-
401
- return {
402
- url: toPathString(localVarUrlObj),
403
- options: localVarRequestOptions,
404
- };
405
- },
406
- }
407
- };
408
-
409
- /**
410
- * AuthApi - functional programming interface
411
- * @export
412
- */
413
- export const AuthApiFp = function(configuration?: Configuration) {
414
- const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
415
- return {
416
- /**
417
- *
418
- * @summary Register a new user
419
- * @param {string} firstName
420
- * @param {string} lastName
421
- * @param {string} email
422
- * @param {string} password
423
- * @param {string} [username]
424
- * @param {boolean} [isAccountVerified]
425
- * @param {string} [level]
426
- * @param {string} [stripeCustomerId]
427
- * @param {string} [phone]
428
- * @param {string} [profilePicture]
429
- * @param {boolean} [isAdmin]
430
- * @param {*} [options] Override http request option.
431
- * @throws {RequiredError}
432
- */
433
- async 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>> {
434
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiAuthRegisterPost(firstName, lastName, email, password, username, isAccountVerified, level, stripeCustomerId, phone, profilePicture, isAdmin, options);
435
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
436
- const localVarOperationServerBasePath = operationServerMap['AuthApi.apiAuthRegisterPost']?.[localVarOperationServerIndex]?.url;
437
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
438
- },
439
- }
440
- };
441
-
442
- /**
443
- * AuthApi - factory interface
444
- * @export
445
- */
446
- export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
447
- const localVarFp = AuthApiFp(configuration)
448
- return {
449
- /**
450
- *
451
- * @summary Register a new user
452
- * @param {AuthApiApiAuthRegisterPostRequest} requestParameters Request parameters.
453
- * @param {*} [options] Override http request option.
454
- * @throws {RequiredError}
455
- */
456
- apiAuthRegisterPost(requestParameters: AuthApiApiAuthRegisterPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<User> {
457
- return localVarFp.apiAuthRegisterPost(requestParameters.firstName, requestParameters.lastName, requestParameters.email, requestParameters.password, requestParameters.username, requestParameters.isAccountVerified, requestParameters.level, requestParameters.stripeCustomerId, requestParameters.phone, requestParameters.profilePicture, requestParameters.isAdmin, options).then((request) => request(axios, basePath));
458
- },
459
- };
460
- };
461
-
462
- /**
463
- * Request parameters for apiAuthRegisterPost operation in AuthApi.
464
- * @export
465
- * @interface AuthApiApiAuthRegisterPostRequest
466
- */
467
- export interface AuthApiApiAuthRegisterPostRequest {
468
- /**
469
- *
470
- * @type {string}
471
- * @memberof AuthApiApiAuthRegisterPost
472
- */
473
- readonly firstName: string
474
-
475
- /**
476
- *
477
- * @type {string}
478
- * @memberof AuthApiApiAuthRegisterPost
479
- */
480
- readonly lastName: string
481
-
482
- /**
483
- *
484
- * @type {string}
485
- * @memberof AuthApiApiAuthRegisterPost
486
- */
487
- readonly email: string
488
-
489
- /**
490
- *
491
- * @type {string}
492
- * @memberof AuthApiApiAuthRegisterPost
493
- */
494
- readonly password: string
495
-
496
- /**
497
- *
498
- * @type {string}
499
- * @memberof AuthApiApiAuthRegisterPost
500
- */
501
- readonly username?: string
502
-
503
- /**
504
- *
505
- * @type {boolean}
506
- * @memberof AuthApiApiAuthRegisterPost
507
- */
508
- readonly isAccountVerified?: boolean
509
-
510
- /**
511
- *
512
- * @type {string}
513
- * @memberof AuthApiApiAuthRegisterPost
514
- */
515
- readonly level?: string
516
-
517
- /**
518
- *
519
- * @type {string}
520
- * @memberof AuthApiApiAuthRegisterPost
521
- */
522
- readonly stripeCustomerId?: string
523
-
524
- /**
525
- *
526
- * @type {string}
527
- * @memberof AuthApiApiAuthRegisterPost
528
- */
529
- readonly phone?: string
530
-
531
- /**
532
- *
533
- * @type {string}
534
- * @memberof AuthApiApiAuthRegisterPost
535
- */
536
- readonly profilePicture?: string
537
-
538
- /**
539
- *
540
- * @type {boolean}
541
- * @memberof AuthApiApiAuthRegisterPost
542
- */
543
- readonly isAdmin?: boolean
544
- }
545
-
546
- /**
547
- * AuthApi - object-oriented interface
548
- * @export
549
- * @class AuthApi
550
- * @extends {BaseAPI}
551
- */
552
- export class AuthApi extends BaseAPI {
553
- /**
554
- *
555
- * @summary Register a new user
556
- * @param {AuthApiApiAuthRegisterPostRequest} requestParameters Request parameters.
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- * @memberof AuthApi
560
- */
561
- public apiAuthRegisterPost(requestParameters: AuthApiApiAuthRegisterPostRequest, options?: RawAxiosRequestConfig) {
562
- return AuthApiFp(this.configuration).apiAuthRegisterPost(requestParameters.firstName, requestParameters.lastName, requestParameters.email, requestParameters.password, requestParameters.username, requestParameters.isAccountVerified, requestParameters.level, requestParameters.stripeCustomerId, requestParameters.phone, requestParameters.profilePicture, requestParameters.isAdmin, options).then((request) => request(this.axios, this.basePath));
563
- }
564
- }
565
-
566
-
567
-
568
303
  /**
569
304
  * UsersApi - axios parameter creator
570
305
  * @export
@@ -577,7 +312,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
577
312
  * @param {*} [options] Override http request option.
578
313
  * @throws {RequiredError}
579
314
  */
580
- apiUsersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ getAllUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
581
316
  const localVarPath = `/api/users`;
582
317
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
583
318
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -617,10 +352,10 @@ export const UsersApiFp = function(configuration?: Configuration) {
617
352
  * @param {*} [options] Override http request option.
618
353
  * @throws {RequiredError}
619
354
  */
620
- async apiUsersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>> {
621
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersGet(options);
355
+ async getAllUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(options);
622
357
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
623
- const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersGet']?.[localVarOperationServerIndex]?.url;
358
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
624
359
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
625
360
  },
626
361
  }
@@ -639,8 +374,8 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
639
374
  * @param {*} [options] Override http request option.
640
375
  * @throws {RequiredError}
641
376
  */
642
- apiUsersGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<User>> {
643
- return localVarFp.apiUsersGet(options).then((request) => request(axios, basePath));
377
+ getAllUsers(options?: RawAxiosRequestConfig): AxiosPromise<Array<User>> {
378
+ return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
644
379
  },
645
380
  };
646
381
  };
@@ -659,8 +394,8 @@ export class UsersApi extends BaseAPI {
659
394
  * @throws {RequiredError}
660
395
  * @memberof UsersApi
661
396
  */
662
- public apiUsersGet(options?: RawAxiosRequestConfig) {
663
- return UsersApiFp(this.configuration).apiUsersGet(options).then((request) => request(this.axios, this.basePath));
397
+ public getAllUsers(options?: RawAxiosRequestConfig) {
398
+ return UsersApiFp(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
664
399
  }
665
400
  }
666
401
 
package/dist/api.d.ts CHANGED
@@ -273,158 +273,6 @@ export interface User {
273
273
  */
274
274
  'isAdmin'?: boolean;
275
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
276
  /**
429
277
  * UsersApi - axios parameter creator
430
278
  * @export
@@ -436,7 +284,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
436
284
  * @param {*} [options] Override http request option.
437
285
  * @throws {RequiredError}
438
286
  */
439
- apiUsersGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
287
+ getAllUsers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
440
288
  };
441
289
  /**
442
290
  * UsersApi - functional programming interface
@@ -449,7 +297,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
449
297
  * @param {*} [options] Override http request option.
450
298
  * @throws {RequiredError}
451
299
  */
452
- apiUsersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
300
+ getAllUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
453
301
  };
454
302
  /**
455
303
  * UsersApi - factory interface
@@ -462,7 +310,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
462
310
  * @param {*} [options] Override http request option.
463
311
  * @throws {RequiredError}
464
312
  */
465
- apiUsersGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<User>>;
313
+ getAllUsers(options?: RawAxiosRequestConfig): AxiosPromise<Array<User>>;
466
314
  };
467
315
  /**
468
316
  * UsersApi - object-oriented interface
@@ -478,5 +326,5 @@ export declare class UsersApi extends BaseAPI {
478
326
  * @throws {RequiredError}
479
327
  * @memberof UsersApi
480
328
  */
481
- apiUsersGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User[], any>>;
329
+ getAllUsers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<User[], any>>;
482
330
  }