@tennac-booking/sdk 1.0.71 → 1.0.73
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 +240 -236
- package/README.md +7 -2
- package/api.ts +324 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +368 -134
- package/dist/api.js +161 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +368 -134
- package/dist/esm/api.js +156 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingPriceBody.md +22 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/ClubResponse.md +8 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/SportsPublicApi.md +53 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.72
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -364,6 +364,38 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
364
364
|
options: localVarRequestOptions,
|
|
365
365
|
};
|
|
366
366
|
}),
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
374
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
375
|
+
assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
376
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
379
|
+
let baseOptions;
|
|
380
|
+
if (configuration) {
|
|
381
|
+
baseOptions = configuration.baseOptions;
|
|
382
|
+
}
|
|
383
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
384
|
+
const localVarHeaderParameter = {};
|
|
385
|
+
const localVarQueryParameter = {};
|
|
386
|
+
// authentication bearerAuth required
|
|
387
|
+
// http bearer authentication required
|
|
388
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
389
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
390
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
391
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
392
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
393
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration);
|
|
394
|
+
return {
|
|
395
|
+
url: toPathString(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
};
|
|
398
|
+
}),
|
|
367
399
|
/**
|
|
368
400
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
369
401
|
* @param {number} [latitude]
|
|
@@ -452,6 +484,21 @@ export const BookingsApiFp = function (configuration) {
|
|
|
452
484
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
485
|
});
|
|
454
486
|
},
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
var _a, _b, _c;
|
|
496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
497
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
498
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
499
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
500
|
+
});
|
|
501
|
+
},
|
|
455
502
|
/**
|
|
456
503
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
457
504
|
* @param {number} [latitude]
|
|
@@ -494,6 +541,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
494
541
|
getBookingHistory(requestParameters, options) {
|
|
495
542
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
496
543
|
},
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
getBookingPrice(requestParameters, options) {
|
|
551
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
552
|
+
},
|
|
497
553
|
/**
|
|
498
554
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
499
555
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -522,6 +578,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
522
578
|
getBookingHistory(requestParameters, options) {
|
|
523
579
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
524
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof BookingsApi
|
|
587
|
+
*/
|
|
588
|
+
getBookingPrice(requestParameters, options) {
|
|
589
|
+
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
525
591
|
/**
|
|
526
592
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
527
593
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -6415,6 +6481,95 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
6415
6481
|
return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6416
6482
|
}
|
|
6417
6483
|
}
|
|
6484
|
+
/**
|
|
6485
|
+
* SportsPublicApi - axios parameter creator
|
|
6486
|
+
* @export
|
|
6487
|
+
*/
|
|
6488
|
+
export const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6489
|
+
return {
|
|
6490
|
+
/**
|
|
6491
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6492
|
+
* @param {*} [options] Override http request option.
|
|
6493
|
+
* @throws {RequiredError}
|
|
6494
|
+
*/
|
|
6495
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6496
|
+
const localVarPath = `/api/sports/verified`;
|
|
6497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6499
|
+
let baseOptions;
|
|
6500
|
+
if (configuration) {
|
|
6501
|
+
baseOptions = configuration.baseOptions;
|
|
6502
|
+
}
|
|
6503
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6504
|
+
const localVarHeaderParameter = {};
|
|
6505
|
+
const localVarQueryParameter = {};
|
|
6506
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6508
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6509
|
+
return {
|
|
6510
|
+
url: toPathString(localVarUrlObj),
|
|
6511
|
+
options: localVarRequestOptions,
|
|
6512
|
+
};
|
|
6513
|
+
}),
|
|
6514
|
+
};
|
|
6515
|
+
};
|
|
6516
|
+
/**
|
|
6517
|
+
* SportsPublicApi - functional programming interface
|
|
6518
|
+
* @export
|
|
6519
|
+
*/
|
|
6520
|
+
export const SportsPublicApiFp = function (configuration) {
|
|
6521
|
+
const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
|
|
6522
|
+
return {
|
|
6523
|
+
/**
|
|
6524
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6525
|
+
* @param {*} [options] Override http request option.
|
|
6526
|
+
* @throws {RequiredError}
|
|
6527
|
+
*/
|
|
6528
|
+
getVerifiedSports(options) {
|
|
6529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6530
|
+
var _a, _b, _c;
|
|
6531
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6532
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6533
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6535
|
+
});
|
|
6536
|
+
},
|
|
6537
|
+
};
|
|
6538
|
+
};
|
|
6539
|
+
/**
|
|
6540
|
+
* SportsPublicApi - factory interface
|
|
6541
|
+
* @export
|
|
6542
|
+
*/
|
|
6543
|
+
export const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6544
|
+
const localVarFp = SportsPublicApiFp(configuration);
|
|
6545
|
+
return {
|
|
6546
|
+
/**
|
|
6547
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6548
|
+
* @param {*} [options] Override http request option.
|
|
6549
|
+
* @throws {RequiredError}
|
|
6550
|
+
*/
|
|
6551
|
+
getVerifiedSports(options) {
|
|
6552
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6553
|
+
},
|
|
6554
|
+
};
|
|
6555
|
+
};
|
|
6556
|
+
/**
|
|
6557
|
+
* SportsPublicApi - object-oriented interface
|
|
6558
|
+
* @export
|
|
6559
|
+
* @class SportsPublicApi
|
|
6560
|
+
* @extends {BaseAPI}
|
|
6561
|
+
*/
|
|
6562
|
+
export class SportsPublicApi extends BaseAPI {
|
|
6563
|
+
/**
|
|
6564
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6565
|
+
* @param {*} [options] Override http request option.
|
|
6566
|
+
* @throws {RequiredError}
|
|
6567
|
+
* @memberof SportsPublicApi
|
|
6568
|
+
*/
|
|
6569
|
+
getVerifiedSports(options) {
|
|
6570
|
+
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6418
6573
|
/**
|
|
6419
6574
|
* SportsStaffApi - axios parameter creator
|
|
6420
6575
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPriceBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPriceBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPriceBody = {
|
|
17
|
+
slotIds,
|
|
18
|
+
players,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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/BookingsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
|
+
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
8
9
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
9
10
|
|
|
10
11
|
# **getBookingHistory**
|
|
@@ -58,6 +59,57 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
58
59
|
|
|
59
60
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
60
61
|
|
|
62
|
+
# **getBookingPrice**
|
|
63
|
+
> Array<PlayerPrice> getBookingPrice(bookingPriceBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
BookingsApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
BookingPriceBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let bookingPriceBody: BookingPriceBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.getBookingPrice(
|
|
81
|
+
bookingPriceBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **bookingPriceBody** | **BookingPriceBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**Array<PlayerPrice>**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations journalières récupérées | - |
|
|
110
|
+
|
|
111
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
112
|
+
|
|
61
113
|
# **getQuickReservationSlots**
|
|
62
114
|
> QuickReservationResponse getQuickReservationSlots()
|
|
63
115
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
22
26
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
23
27
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
|
|
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
|
|
|
42
46
|
clubDashBoardUrl,
|
|
43
47
|
isNoShowEnabled,
|
|
44
48
|
sports,
|
|
49
|
+
allowMultipleBookingsAtTheSameTime,
|
|
50
|
+
sameTimeBookingsLimit,
|
|
51
|
+
cancellationLimitHours,
|
|
52
|
+
maxWeeklyBookings,
|
|
45
53
|
createdAt,
|
|
46
54
|
updatedAt,
|
|
47
55
|
};
|
|
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
21
21
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
22
22
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
23
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
24
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
25
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
26
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
23
27
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
25
29
|
|
|
@@ -43,6 +47,10 @@ const instance: PartialClubResponse = {
|
|
|
43
47
|
clubDashBoardUrl,
|
|
44
48
|
isNoShowEnabled,
|
|
45
49
|
sports,
|
|
50
|
+
allowMultipleBookingsAtTheSameTime,
|
|
51
|
+
sameTimeBookingsLimit,
|
|
52
|
+
cancellationLimitHours,
|
|
53
|
+
maxWeeklyBookings,
|
|
46
54
|
createdAt,
|
|
47
55
|
updatedAt,
|
|
48
56
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PlayerPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [default to undefined]
|
|
12
|
+
**creditAvailablesInCents** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**price** | **number** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PlayerPrice } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: PlayerPrice = {
|
|
21
|
+
playerId,
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
subscriptions,
|
|
25
|
+
creditAvailablesInCents,
|
|
26
|
+
price,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,53 @@
|
|
|
1
|
+
# SportsPublicApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getVerifiedSports**](#getverifiedsports) | **GET** /api/sports/verified | |
|
|
8
|
+
|
|
9
|
+
# **getVerifiedSports**
|
|
10
|
+
> Array<SportResponse> getVerifiedSports()
|
|
11
|
+
|
|
12
|
+
Récupère tous les sports vérifiés, accessibles publiquement
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
SportsPublicApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new SportsPublicApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getVerifiedSports();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**Array<SportResponse>**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
No authorization required
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Sports vérifiés | - |
|
|
50
|
+
|**500** | Server Error | - |
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SubscriptionInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionPlanName** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**subscriptionDescription** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reducedAmountInCents** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SubscriptionInfo } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SubscriptionInfo = {
|
|
18
|
+
subscriptionPlanName,
|
|
19
|
+
subscriptionDescription,
|
|
20
|
+
reducedAmountInCents,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -43,6 +43,7 @@ Name | Type | Description | Notes
|
|
|
43
43
|
**frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
44
44
|
**frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
|
|
45
45
|
**stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
46
|
+
**verifiedSports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
|
|
46
47
|
|
|
47
48
|
## Example
|
|
48
49
|
|
|
@@ -88,6 +89,7 @@ const instance: UserProfileResponse = {
|
|
|
88
89
|
frequentlyVisitedClubs,
|
|
89
90
|
frequentlyPlayedWith,
|
|
90
91
|
stripeLinks,
|
|
92
|
+
verifiedSports,
|
|
91
93
|
};
|
|
92
94
|
```
|
|
93
95
|
|
package/index.ts
CHANGED