@tennac-booking/sdk 1.0.92 → 1.0.94
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 +248 -249
- package/README.md +3 -5
- package/api.ts +34 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +168 -242
- package/dist/api.js +1 -59
- 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 +168 -242
- package/dist/esm/api.js +1 -59
- 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/BookingPlayerPaymentSummary.md +0 -2
- package/docs/BookingPriceBody.md +2 -2
- package/docs/BookingSummary.md +0 -2
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/{UserClubMembershipsResponse.md → PlayerShare.md} +7 -5
- package/docs/PlayerWithPaymentMethod.md +2 -0
- package/docs/UsersApi.md +0 -46
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/UserClubMembership.md +0 -34
package/api.ts
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.94
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -574,12 +574,6 @@ export interface BookingPlayerPaymentSummary {
|
|
|
574
574
|
* @memberof BookingPlayerPaymentSummary
|
|
575
575
|
*/
|
|
576
576
|
'invoiceStatus'?: InvoiceStatus | null;
|
|
577
|
-
/**
|
|
578
|
-
*
|
|
579
|
-
* @type {string}
|
|
580
|
-
* @memberof BookingPlayerPaymentSummary
|
|
581
|
-
*/
|
|
582
|
-
'invoicePaymentUrl'?: string | null;
|
|
583
577
|
/**
|
|
584
578
|
*
|
|
585
579
|
* @type {boolean}
|
|
@@ -702,10 +696,10 @@ export interface BookingPriceBody {
|
|
|
702
696
|
'slotIds': Array<string>;
|
|
703
697
|
/**
|
|
704
698
|
*
|
|
705
|
-
* @type {Array<
|
|
699
|
+
* @type {Array<PlayerShare>}
|
|
706
700
|
* @memberof BookingPriceBody
|
|
707
701
|
*/
|
|
708
|
-
'
|
|
702
|
+
'playerShares'?: Array<PlayerShare>;
|
|
709
703
|
}
|
|
710
704
|
/**
|
|
711
705
|
*
|
|
@@ -1055,12 +1049,6 @@ export interface BookingSummary {
|
|
|
1055
1049
|
* @memberof BookingSummary
|
|
1056
1050
|
*/
|
|
1057
1051
|
'myAmountToPay': number;
|
|
1058
|
-
/**
|
|
1059
|
-
*
|
|
1060
|
-
* @type {string}
|
|
1061
|
-
* @memberof BookingSummary
|
|
1062
|
-
*/
|
|
1063
|
-
'myPaymentLink'?: string | null;
|
|
1064
1052
|
/**
|
|
1065
1053
|
*
|
|
1066
1054
|
* @type {number}
|
|
@@ -2014,6 +2002,12 @@ export interface CreateBookingRequest {
|
|
|
2014
2002
|
* @memberof CreateBookingRequest
|
|
2015
2003
|
*/
|
|
2016
2004
|
'players': Array<PlayerWithPaymentMethod>;
|
|
2005
|
+
/**
|
|
2006
|
+
*
|
|
2007
|
+
* @type {number}
|
|
2008
|
+
* @memberof CreateBookingRequest
|
|
2009
|
+
*/
|
|
2010
|
+
'creatorShare'?: number;
|
|
2017
2011
|
/**
|
|
2018
2012
|
* Indique si le créateur paie pour tous les joueurs
|
|
2019
2013
|
* @type {boolean}
|
|
@@ -4558,6 +4552,25 @@ export interface PlayerPrice {
|
|
|
4558
4552
|
*/
|
|
4559
4553
|
'price': number;
|
|
4560
4554
|
}
|
|
4555
|
+
/**
|
|
4556
|
+
*
|
|
4557
|
+
* @export
|
|
4558
|
+
* @interface PlayerShare
|
|
4559
|
+
*/
|
|
4560
|
+
export interface PlayerShare {
|
|
4561
|
+
/**
|
|
4562
|
+
*
|
|
4563
|
+
* @type {string}
|
|
4564
|
+
* @memberof PlayerShare
|
|
4565
|
+
*/
|
|
4566
|
+
'playerId': string;
|
|
4567
|
+
/**
|
|
4568
|
+
*
|
|
4569
|
+
* @type {number}
|
|
4570
|
+
* @memberof PlayerShare
|
|
4571
|
+
*/
|
|
4572
|
+
'shares': number;
|
|
4573
|
+
}
|
|
4561
4574
|
/**
|
|
4562
4575
|
*
|
|
4563
4576
|
* @export
|
|
@@ -4657,6 +4670,12 @@ export interface PlayerWithPaymentMethod {
|
|
|
4657
4670
|
* @memberof PlayerWithPaymentMethod
|
|
4658
4671
|
*/
|
|
4659
4672
|
'paymentMethod': PaymentMethod;
|
|
4673
|
+
/**
|
|
4674
|
+
* Nombre de parts que le joueur prend (par défaut 1)
|
|
4675
|
+
* @type {number}
|
|
4676
|
+
* @memberof PlayerWithPaymentMethod
|
|
4677
|
+
*/
|
|
4678
|
+
'shares'?: number;
|
|
4660
4679
|
}
|
|
4661
4680
|
|
|
4662
4681
|
|
|
@@ -7707,74 +7726,6 @@ export interface UserBookingsResponse {
|
|
|
7707
7726
|
*/
|
|
7708
7727
|
'bookings': Array<BookingSummary>;
|
|
7709
7728
|
}
|
|
7710
|
-
/**
|
|
7711
|
-
*
|
|
7712
|
-
* @export
|
|
7713
|
-
* @interface UserClubMembership
|
|
7714
|
-
*/
|
|
7715
|
-
export interface UserClubMembership {
|
|
7716
|
-
/**
|
|
7717
|
-
*
|
|
7718
|
-
* @type {string}
|
|
7719
|
-
* @memberof UserClubMembership
|
|
7720
|
-
*/
|
|
7721
|
-
'clubId': string;
|
|
7722
|
-
/**
|
|
7723
|
-
*
|
|
7724
|
-
* @type {string}
|
|
7725
|
-
* @memberof UserClubMembership
|
|
7726
|
-
*/
|
|
7727
|
-
'clubName': string | null;
|
|
7728
|
-
/**
|
|
7729
|
-
*
|
|
7730
|
-
* @type {string}
|
|
7731
|
-
* @memberof UserClubMembership
|
|
7732
|
-
*/
|
|
7733
|
-
'clubPicture': string | null;
|
|
7734
|
-
/**
|
|
7735
|
-
*
|
|
7736
|
-
* @type {number}
|
|
7737
|
-
* @memberof UserClubMembership
|
|
7738
|
-
*/
|
|
7739
|
-
'bookingCount': number;
|
|
7740
|
-
/**
|
|
7741
|
-
*
|
|
7742
|
-
* @type {number}
|
|
7743
|
-
* @memberof UserClubMembership
|
|
7744
|
-
*/
|
|
7745
|
-
'credits': number;
|
|
7746
|
-
/**
|
|
7747
|
-
*
|
|
7748
|
-
* @type {string}
|
|
7749
|
-
* @memberof UserClubMembership
|
|
7750
|
-
*/
|
|
7751
|
-
'billingPortalUrl': string | null;
|
|
7752
|
-
/**
|
|
7753
|
-
*
|
|
7754
|
-
* @type {boolean}
|
|
7755
|
-
* @memberof UserClubMembership
|
|
7756
|
-
*/
|
|
7757
|
-
'hasActiveSubscription': boolean;
|
|
7758
|
-
/**
|
|
7759
|
-
*
|
|
7760
|
-
* @type {Array<UserClubSubscription>}
|
|
7761
|
-
* @memberof UserClubMembership
|
|
7762
|
-
*/
|
|
7763
|
-
'subscriptions': Array<UserClubSubscription>;
|
|
7764
|
-
}
|
|
7765
|
-
/**
|
|
7766
|
-
*
|
|
7767
|
-
* @export
|
|
7768
|
-
* @interface UserClubMembershipsResponse
|
|
7769
|
-
*/
|
|
7770
|
-
export interface UserClubMembershipsResponse {
|
|
7771
|
-
/**
|
|
7772
|
-
*
|
|
7773
|
-
* @type {Array<UserClubMembership>}
|
|
7774
|
-
* @memberof UserClubMembershipsResponse
|
|
7775
|
-
*/
|
|
7776
|
-
'clubs': Array<UserClubMembership>;
|
|
7777
|
-
}
|
|
7778
7729
|
/**
|
|
7779
7730
|
*
|
|
7780
7731
|
* @export
|
|
@@ -17676,39 +17627,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
17676
17627
|
|
|
17677
17628
|
|
|
17678
17629
|
|
|
17679
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17680
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17681
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17682
|
-
|
|
17683
|
-
return {
|
|
17684
|
-
url: toPathString(localVarUrlObj),
|
|
17685
|
-
options: localVarRequestOptions,
|
|
17686
|
-
};
|
|
17687
|
-
},
|
|
17688
|
-
/**
|
|
17689
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
17690
|
-
* @param {*} [options] Override http request option.
|
|
17691
|
-
* @throws {RequiredError}
|
|
17692
|
-
*/
|
|
17693
|
-
getMyClubMemberships: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17694
|
-
const localVarPath = `/api/users/me/club-memberships`;
|
|
17695
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17696
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17697
|
-
let baseOptions;
|
|
17698
|
-
if (configuration) {
|
|
17699
|
-
baseOptions = configuration.baseOptions;
|
|
17700
|
-
}
|
|
17701
|
-
|
|
17702
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17703
|
-
const localVarHeaderParameter = {} as any;
|
|
17704
|
-
const localVarQueryParameter = {} as any;
|
|
17705
|
-
|
|
17706
|
-
// authentication bearerAuth required
|
|
17707
|
-
// http bearer authentication required
|
|
17708
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17709
|
-
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
17630
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17713
17631
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17714
17632
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -18816,17 +18734,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
18816
18734
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getMe']?.[localVarOperationServerIndex]?.url;
|
|
18817
18735
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18818
18736
|
},
|
|
18819
|
-
/**
|
|
18820
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
18821
|
-
* @param {*} [options] Override http request option.
|
|
18822
|
-
* @throws {RequiredError}
|
|
18823
|
-
*/
|
|
18824
|
-
async getMyClubMemberships(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserClubMembershipsResponse>> {
|
|
18825
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubMemberships(options);
|
|
18826
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18827
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.getMyClubMemberships']?.[localVarOperationServerIndex]?.url;
|
|
18828
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18829
|
-
},
|
|
18830
18737
|
/**
|
|
18831
18738
|
*
|
|
18832
18739
|
* @param {number} [radiusInKm]
|
|
@@ -19234,14 +19141,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
19234
19141
|
getMe(options?: RawAxiosRequestConfig): AxiosPromise<UserProfileResponse> {
|
|
19235
19142
|
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
19236
19143
|
},
|
|
19237
|
-
/**
|
|
19238
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
19239
|
-
* @param {*} [options] Override http request option.
|
|
19240
|
-
* @throws {RequiredError}
|
|
19241
|
-
*/
|
|
19242
|
-
getMyClubMemberships(options?: RawAxiosRequestConfig): AxiosPromise<UserClubMembershipsResponse> {
|
|
19243
|
-
return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
|
|
19244
|
-
},
|
|
19245
19144
|
/**
|
|
19246
19145
|
*
|
|
19247
19146
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
@@ -20085,16 +19984,6 @@ export class UsersApi extends BaseAPI {
|
|
|
20085
19984
|
return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
20086
19985
|
}
|
|
20087
19986
|
|
|
20088
|
-
/**
|
|
20089
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
20090
|
-
* @param {*} [options] Override http request option.
|
|
20091
|
-
* @throws {RequiredError}
|
|
20092
|
-
* @memberof UsersApi
|
|
20093
|
-
*/
|
|
20094
|
-
public getMyClubMemberships(options?: RawAxiosRequestConfig) {
|
|
20095
|
-
return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
|
|
20096
|
-
}
|
|
20097
|
-
|
|
20098
19987
|
/**
|
|
20099
19988
|
*
|
|
20100
19989
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED