@tennac-booking/sdk 1.0.115 → 1.0.117
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 +308 -300
- package/README.md +13 -2
- package/api.ts +562 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +445 -21
- package/dist/api.js +222 -25
- 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 +445 -21
- package/dist/esm/api.js +218 -21
- 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/BookingsUserApi.md +1 -1
- package/docs/CheckTeamNameAvailability200Response.md +20 -0
- package/docs/ClientApi.md +49 -2
- package/docs/ClientFullOnboardingResponseClub.md +2 -0
- package/docs/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClientSubscription.md +31 -0
- package/docs/ClientSubscriptionItem.md +25 -0
- package/docs/ClientSubscriptionsResponse.md +21 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/EstimateEventPrice200Response.md +32 -0
- package/docs/EstimateEventPriceRequest.md +26 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/EventsApi.md +115 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
- package/docs/JoinEventResponse.md +14 -0
- package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.117
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1487,6 +1487,19 @@ export interface CheckInPlayersResponse {
|
|
|
1487
1487
|
*/
|
|
1488
1488
|
'invoices': Array<CheckedInPlayer>;
|
|
1489
1489
|
}
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* @export
|
|
1493
|
+
* @interface CheckTeamNameAvailability200Response
|
|
1494
|
+
*/
|
|
1495
|
+
export interface CheckTeamNameAvailability200Response {
|
|
1496
|
+
/**
|
|
1497
|
+
*
|
|
1498
|
+
* @type {boolean}
|
|
1499
|
+
* @memberof CheckTeamNameAvailability200Response
|
|
1500
|
+
*/
|
|
1501
|
+
'available': boolean;
|
|
1502
|
+
}
|
|
1490
1503
|
/**
|
|
1491
1504
|
*
|
|
1492
1505
|
* @export
|
|
@@ -1593,6 +1606,12 @@ export interface ClientFullOnboardingResponse {
|
|
|
1593
1606
|
* @interface ClientFullOnboardingResponseClub
|
|
1594
1607
|
*/
|
|
1595
1608
|
export interface ClientFullOnboardingResponseClub {
|
|
1609
|
+
/**
|
|
1610
|
+
*
|
|
1611
|
+
* @type {string}
|
|
1612
|
+
* @memberof ClientFullOnboardingResponseClub
|
|
1613
|
+
*/
|
|
1614
|
+
'clubType'?: string;
|
|
1596
1615
|
/**
|
|
1597
1616
|
*
|
|
1598
1617
|
* @type {string}
|
|
@@ -1660,7 +1679,21 @@ export interface ClientOnboardingRequestBody {
|
|
|
1660
1679
|
* @memberof ClientOnboardingRequestBody
|
|
1661
1680
|
*/
|
|
1662
1681
|
'country'?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* Type de club souhaité (public | school)
|
|
1684
|
+
* @type {string}
|
|
1685
|
+
* @memberof ClientOnboardingRequestBody
|
|
1686
|
+
*/
|
|
1687
|
+
'clubType'?: ClientOnboardingRequestBodyClubTypeEnum;
|
|
1663
1688
|
}
|
|
1689
|
+
|
|
1690
|
+
export const ClientOnboardingRequestBodyClubTypeEnum = {
|
|
1691
|
+
Public: 'public',
|
|
1692
|
+
School: 'school'
|
|
1693
|
+
} as const;
|
|
1694
|
+
|
|
1695
|
+
export type ClientOnboardingRequestBodyClubTypeEnum = typeof ClientOnboardingRequestBodyClubTypeEnum[keyof typeof ClientOnboardingRequestBodyClubTypeEnum];
|
|
1696
|
+
|
|
1664
1697
|
/**
|
|
1665
1698
|
*
|
|
1666
1699
|
* @export
|
|
@@ -1723,6 +1756,87 @@ export interface ClientRegisterRequest {
|
|
|
1723
1756
|
*/
|
|
1724
1757
|
'firstName': string;
|
|
1725
1758
|
}
|
|
1759
|
+
/**
|
|
1760
|
+
* Abonnement Stripe simplifié
|
|
1761
|
+
* @export
|
|
1762
|
+
* @interface ClientSubscription
|
|
1763
|
+
*/
|
|
1764
|
+
export interface ClientSubscription {
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @type {string}
|
|
1768
|
+
* @memberof ClientSubscription
|
|
1769
|
+
*/
|
|
1770
|
+
'id': string;
|
|
1771
|
+
/**
|
|
1772
|
+
*
|
|
1773
|
+
* @type {string}
|
|
1774
|
+
* @memberof ClientSubscription
|
|
1775
|
+
*/
|
|
1776
|
+
'status': string;
|
|
1777
|
+
/**
|
|
1778
|
+
*
|
|
1779
|
+
* @type {number}
|
|
1780
|
+
* @memberof ClientSubscription
|
|
1781
|
+
*/
|
|
1782
|
+
'currentPeriodStart': number;
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* @type {number}
|
|
1786
|
+
* @memberof ClientSubscription
|
|
1787
|
+
*/
|
|
1788
|
+
'currentPeriodEnd': number;
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @type {boolean}
|
|
1792
|
+
* @memberof ClientSubscription
|
|
1793
|
+
*/
|
|
1794
|
+
'cancelAtPeriodEnd': boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @type {Array<ClientSubscriptionItem>}
|
|
1798
|
+
* @memberof ClientSubscription
|
|
1799
|
+
*/
|
|
1800
|
+
'items': Array<ClientSubscriptionItem>;
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* Item d\'abonnement Stripe simplifié
|
|
1804
|
+
* @export
|
|
1805
|
+
* @interface ClientSubscriptionItem
|
|
1806
|
+
*/
|
|
1807
|
+
export interface ClientSubscriptionItem {
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {string}
|
|
1811
|
+
* @memberof ClientSubscriptionItem
|
|
1812
|
+
*/
|
|
1813
|
+
'priceId': string;
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof ClientSubscriptionItem
|
|
1818
|
+
*/
|
|
1819
|
+
'productId'?: string;
|
|
1820
|
+
/**
|
|
1821
|
+
*
|
|
1822
|
+
* @type {number}
|
|
1823
|
+
* @memberof ClientSubscriptionItem
|
|
1824
|
+
*/
|
|
1825
|
+
'quantity'?: number;
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Réponse liste des abonnements Stripe du client
|
|
1829
|
+
* @export
|
|
1830
|
+
* @interface ClientSubscriptionsResponse
|
|
1831
|
+
*/
|
|
1832
|
+
export interface ClientSubscriptionsResponse {
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @type {Array<ClientSubscription>}
|
|
1836
|
+
* @memberof ClientSubscriptionsResponse
|
|
1837
|
+
*/
|
|
1838
|
+
'subscriptions': Array<ClientSubscription>;
|
|
1839
|
+
}
|
|
1726
1840
|
/**
|
|
1727
1841
|
*
|
|
1728
1842
|
* @export
|
|
@@ -4149,6 +4263,105 @@ export const DiscountType = {
|
|
|
4149
4263
|
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
4150
4264
|
|
|
4151
4265
|
|
|
4266
|
+
/**
|
|
4267
|
+
*
|
|
4268
|
+
* @export
|
|
4269
|
+
* @interface EstimateEventPrice200Response
|
|
4270
|
+
*/
|
|
4271
|
+
export interface EstimateEventPrice200Response {
|
|
4272
|
+
/**
|
|
4273
|
+
* Construct a type with a set of properties K of type T
|
|
4274
|
+
* @type {{ [key: string]: number; }}
|
|
4275
|
+
* @memberof EstimateEventPrice200Response
|
|
4276
|
+
*/
|
|
4277
|
+
'perPayerAfterCredits'?: { [key: string]: number; };
|
|
4278
|
+
/**
|
|
4279
|
+
*
|
|
4280
|
+
* @type {number}
|
|
4281
|
+
* @memberof EstimateEventPrice200Response
|
|
4282
|
+
*/
|
|
4283
|
+
'totalAfterCredits'?: number;
|
|
4284
|
+
/**
|
|
4285
|
+
*
|
|
4286
|
+
* @type {number}
|
|
4287
|
+
* @memberof EstimateEventPrice200Response
|
|
4288
|
+
*/
|
|
4289
|
+
'creditsAppliedInCents'?: number;
|
|
4290
|
+
/**
|
|
4291
|
+
*
|
|
4292
|
+
* @type {string}
|
|
4293
|
+
* @memberof EstimateEventPrice200Response
|
|
4294
|
+
*/
|
|
4295
|
+
'currency': string;
|
|
4296
|
+
/**
|
|
4297
|
+
*
|
|
4298
|
+
* @type {number}
|
|
4299
|
+
* @memberof EstimateEventPrice200Response
|
|
4300
|
+
*/
|
|
4301
|
+
'total': number;
|
|
4302
|
+
/**
|
|
4303
|
+
* Construct a type with a set of properties K of type T
|
|
4304
|
+
* @type {{ [key: string]: number; }}
|
|
4305
|
+
* @memberof EstimateEventPrice200Response
|
|
4306
|
+
*/
|
|
4307
|
+
'perPayer': { [key: string]: number; };
|
|
4308
|
+
/**
|
|
4309
|
+
* Construct a type with a set of properties K of type T
|
|
4310
|
+
* @type {{ [key: string]: number; }}
|
|
4311
|
+
* @memberof EstimateEventPrice200Response
|
|
4312
|
+
*/
|
|
4313
|
+
'perPlayer': { [key: string]: number; };
|
|
4314
|
+
}
|
|
4315
|
+
/**
|
|
4316
|
+
*
|
|
4317
|
+
* @export
|
|
4318
|
+
* @interface EstimateEventPriceRequest
|
|
4319
|
+
*/
|
|
4320
|
+
export interface EstimateEventPriceRequest {
|
|
4321
|
+
/**
|
|
4322
|
+
*
|
|
4323
|
+
* @type {number}
|
|
4324
|
+
* @memberof EstimateEventPriceRequest
|
|
4325
|
+
*/
|
|
4326
|
+
'creditToUseInCents'?: number;
|
|
4327
|
+
/**
|
|
4328
|
+
*
|
|
4329
|
+
* @type {string}
|
|
4330
|
+
* @memberof EstimateEventPriceRequest
|
|
4331
|
+
*/
|
|
4332
|
+
'creatorId'?: string;
|
|
4333
|
+
/**
|
|
4334
|
+
*
|
|
4335
|
+
* @type {Array<EstimateEventPriceRequestSharesInner>}
|
|
4336
|
+
* @memberof EstimateEventPriceRequest
|
|
4337
|
+
*/
|
|
4338
|
+
'shares'?: Array<EstimateEventPriceRequestSharesInner>;
|
|
4339
|
+
/**
|
|
4340
|
+
*
|
|
4341
|
+
* @type {Array<string>}
|
|
4342
|
+
* @memberof EstimateEventPriceRequest
|
|
4343
|
+
*/
|
|
4344
|
+
'playerIds': Array<string>;
|
|
4345
|
+
}
|
|
4346
|
+
/**
|
|
4347
|
+
*
|
|
4348
|
+
* @export
|
|
4349
|
+
* @interface EstimateEventPriceRequestSharesInner
|
|
4350
|
+
*/
|
|
4351
|
+
export interface EstimateEventPriceRequestSharesInner {
|
|
4352
|
+
/**
|
|
4353
|
+
*
|
|
4354
|
+
* @type {Array<string>}
|
|
4355
|
+
* @memberof EstimateEventPriceRequestSharesInner
|
|
4356
|
+
*/
|
|
4357
|
+
'paysAlsoFor'?: Array<string>;
|
|
4358
|
+
/**
|
|
4359
|
+
*
|
|
4360
|
+
* @type {string}
|
|
4361
|
+
* @memberof EstimateEventPriceRequestSharesInner
|
|
4362
|
+
*/
|
|
4363
|
+
'playerId': string;
|
|
4364
|
+
}
|
|
4152
4365
|
/**
|
|
4153
4366
|
*
|
|
4154
4367
|
* @export
|
|
@@ -5315,6 +5528,12 @@ export interface JoinEventRequest {
|
|
|
5315
5528
|
* @memberof JoinEventRequest
|
|
5316
5529
|
*/
|
|
5317
5530
|
'useDefaultPaymentMethod'?: boolean;
|
|
5531
|
+
/**
|
|
5532
|
+
*
|
|
5533
|
+
* @type {number}
|
|
5534
|
+
* @memberof JoinEventRequest
|
|
5535
|
+
*/
|
|
5536
|
+
'creditToUseInCents'?: number;
|
|
5318
5537
|
}
|
|
5319
5538
|
|
|
5320
5539
|
|
|
@@ -5324,6 +5543,12 @@ export interface JoinEventRequest {
|
|
|
5324
5543
|
* @interface JoinEventRequestPlayersPaymentMethodsInner
|
|
5325
5544
|
*/
|
|
5326
5545
|
export interface JoinEventRequestPlayersPaymentMethodsInner {
|
|
5546
|
+
/**
|
|
5547
|
+
*
|
|
5548
|
+
* @type {Array<string>}
|
|
5549
|
+
* @memberof JoinEventRequestPlayersPaymentMethodsInner
|
|
5550
|
+
*/
|
|
5551
|
+
'paysAlsoFor'?: Array<string>;
|
|
5327
5552
|
/**
|
|
5328
5553
|
*
|
|
5329
5554
|
* @type {PaymentMethod}
|
|
@@ -5357,7 +5582,76 @@ export interface JoinEventResponse {
|
|
|
5357
5582
|
* @memberof JoinEventResponse
|
|
5358
5583
|
*/
|
|
5359
5584
|
'event': EventResponse;
|
|
5585
|
+
/**
|
|
5586
|
+
* Construct a type with a set of properties K of type T
|
|
5587
|
+
* @type {{ [key: string]: string; }}
|
|
5588
|
+
* @memberof JoinEventResponse
|
|
5589
|
+
*/
|
|
5590
|
+
'paymentLinks'?: { [key: string]: string; };
|
|
5591
|
+
/**
|
|
5592
|
+
*
|
|
5593
|
+
* @type {Array<JoinEventResponseOnsitePaymentsInner>}
|
|
5594
|
+
* @memberof JoinEventResponse
|
|
5595
|
+
*/
|
|
5596
|
+
'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
|
|
5597
|
+
/**
|
|
5598
|
+
*
|
|
5599
|
+
* @type {string}
|
|
5600
|
+
* @memberof JoinEventResponse
|
|
5601
|
+
*/
|
|
5602
|
+
'setupNoShowPaymentUrl'?: string;
|
|
5603
|
+
/**
|
|
5604
|
+
*
|
|
5605
|
+
* @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
|
|
5606
|
+
* @memberof JoinEventResponse
|
|
5607
|
+
*/
|
|
5608
|
+
'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
|
|
5609
|
+
/**
|
|
5610
|
+
*
|
|
5611
|
+
* @type {number}
|
|
5612
|
+
* @memberof JoinEventResponse
|
|
5613
|
+
*/
|
|
5614
|
+
'creditsAppliedInCents'?: number;
|
|
5615
|
+
/**
|
|
5616
|
+
*
|
|
5617
|
+
* @type {number}
|
|
5618
|
+
* @memberof JoinEventResponse
|
|
5619
|
+
*/
|
|
5620
|
+
'totalAfterCredits'?: number;
|
|
5621
|
+
/**
|
|
5622
|
+
* Construct a type with a set of properties K of type T
|
|
5623
|
+
* @type {{ [key: string]: number; }}
|
|
5624
|
+
* @memberof JoinEventResponse
|
|
5625
|
+
*/
|
|
5626
|
+
'perPayerAfterCredits'?: { [key: string]: number; };
|
|
5627
|
+
}
|
|
5628
|
+
/**
|
|
5629
|
+
*
|
|
5630
|
+
* @export
|
|
5631
|
+
* @interface JoinEventResponseOnsitePaymentsInner
|
|
5632
|
+
*/
|
|
5633
|
+
export interface JoinEventResponseOnsitePaymentsInner {
|
|
5634
|
+
/**
|
|
5635
|
+
*
|
|
5636
|
+
* @type {PaymentMethod}
|
|
5637
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5638
|
+
*/
|
|
5639
|
+
'paymentMethod': PaymentMethod;
|
|
5640
|
+
/**
|
|
5641
|
+
*
|
|
5642
|
+
* @type {number}
|
|
5643
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5644
|
+
*/
|
|
5645
|
+
'amount': number;
|
|
5646
|
+
/**
|
|
5647
|
+
*
|
|
5648
|
+
* @type {string}
|
|
5649
|
+
* @memberof JoinEventResponseOnsitePaymentsInner
|
|
5650
|
+
*/
|
|
5651
|
+
'playerId': string;
|
|
5360
5652
|
}
|
|
5653
|
+
|
|
5654
|
+
|
|
5361
5655
|
/**
|
|
5362
5656
|
*
|
|
5363
5657
|
* @export
|
|
@@ -11385,7 +11679,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
11385
11679
|
};
|
|
11386
11680
|
},
|
|
11387
11681
|
/**
|
|
11388
|
-
* Créer une réservation
|
|
11682
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
11389
11683
|
* @param {CreateBookingRequest} createBookingRequest
|
|
11390
11684
|
* @param {*} [options] Override http request option.
|
|
11391
11685
|
* @throws {RequiredError}
|
|
@@ -11446,7 +11740,7 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
|
|
|
11446
11740
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11447
11741
|
},
|
|
11448
11742
|
/**
|
|
11449
|
-
* Créer une réservation
|
|
11743
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
11450
11744
|
* @param {CreateBookingRequest} createBookingRequest
|
|
11451
11745
|
* @param {*} [options] Override http request option.
|
|
11452
11746
|
* @throws {RequiredError}
|
|
@@ -11477,7 +11771,7 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
|
|
|
11477
11771
|
return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
11478
11772
|
},
|
|
11479
11773
|
/**
|
|
11480
|
-
* Créer une réservation
|
|
11774
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
11481
11775
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
11482
11776
|
* @param {*} [options] Override http request option.
|
|
11483
11777
|
* @throws {RequiredError}
|
|
@@ -11535,7 +11829,7 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
11535
11829
|
}
|
|
11536
11830
|
|
|
11537
11831
|
/**
|
|
11538
|
-
* Créer une réservation
|
|
11832
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
11539
11833
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
11540
11834
|
* @param {*} [options] Override http request option.
|
|
11541
11835
|
* @throws {RequiredError}
|
|
@@ -11555,7 +11849,7 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
11555
11849
|
export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11556
11850
|
return {
|
|
11557
11851
|
/**
|
|
11558
|
-
* Enregistre un nouvel utilisateur client
|
|
11852
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11559
11853
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
11560
11854
|
* @param {*} [options] Override http request option.
|
|
11561
11855
|
* @throws {RequiredError}
|
|
@@ -11589,6 +11883,39 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11589
11883
|
options: localVarRequestOptions,
|
|
11590
11884
|
};
|
|
11591
11885
|
},
|
|
11886
|
+
/**
|
|
11887
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
11888
|
+
* @param {*} [options] Override http request option.
|
|
11889
|
+
* @throws {RequiredError}
|
|
11890
|
+
*/
|
|
11891
|
+
getClientSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11892
|
+
const localVarPath = `/clients/subscriptions`;
|
|
11893
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11894
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11895
|
+
let baseOptions;
|
|
11896
|
+
if (configuration) {
|
|
11897
|
+
baseOptions = configuration.baseOptions;
|
|
11898
|
+
}
|
|
11899
|
+
|
|
11900
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11901
|
+
const localVarHeaderParameter = {} as any;
|
|
11902
|
+
const localVarQueryParameter = {} as any;
|
|
11903
|
+
|
|
11904
|
+
// authentication clientAuth required
|
|
11905
|
+
// http bearer authentication required
|
|
11906
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11907
|
+
|
|
11908
|
+
|
|
11909
|
+
|
|
11910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11912
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11913
|
+
|
|
11914
|
+
return {
|
|
11915
|
+
url: toPathString(localVarUrlObj),
|
|
11916
|
+
options: localVarRequestOptions,
|
|
11917
|
+
};
|
|
11918
|
+
},
|
|
11592
11919
|
/**
|
|
11593
11920
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11594
11921
|
* @param {*} [options] Override http request option.
|
|
@@ -11623,7 +11950,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11623
11950
|
};
|
|
11624
11951
|
},
|
|
11625
11952
|
/**
|
|
11626
|
-
* Enregistre un nouveau club pour la plateforme
|
|
11953
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
11627
11954
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
11628
11955
|
* @param {*} [options] Override http request option.
|
|
11629
11956
|
* @throws {RequiredError}
|
|
@@ -11672,7 +11999,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
11672
11999
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
|
|
11673
12000
|
return {
|
|
11674
12001
|
/**
|
|
11675
|
-
* Enregistre un nouvel utilisateur client
|
|
12002
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11676
12003
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
11677
12004
|
* @param {*} [options] Override http request option.
|
|
11678
12005
|
* @throws {RequiredError}
|
|
@@ -11683,6 +12010,17 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
11683
12010
|
const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
|
|
11684
12011
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11685
12012
|
},
|
|
12013
|
+
/**
|
|
12014
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
12015
|
+
* @param {*} [options] Override http request option.
|
|
12016
|
+
* @throws {RequiredError}
|
|
12017
|
+
*/
|
|
12018
|
+
async getClientSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientSubscriptionsResponse>> {
|
|
12019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClientSubscriptions(options);
|
|
12020
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12021
|
+
const localVarOperationServerBasePath = operationServerMap['ClientApi.getClientSubscriptions']?.[localVarOperationServerIndex]?.url;
|
|
12022
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12023
|
+
},
|
|
11686
12024
|
/**
|
|
11687
12025
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11688
12026
|
* @param {*} [options] Override http request option.
|
|
@@ -11695,7 +12033,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
11695
12033
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11696
12034
|
},
|
|
11697
12035
|
/**
|
|
11698
|
-
* Enregistre un nouveau club pour la plateforme
|
|
12036
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
11699
12037
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
11700
12038
|
* @param {*} [options] Override http request option.
|
|
11701
12039
|
* @throws {RequiredError}
|
|
@@ -11717,7 +12055,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
11717
12055
|
const localVarFp = ClientApiFp(configuration)
|
|
11718
12056
|
return {
|
|
11719
12057
|
/**
|
|
11720
|
-
* Enregistre un nouvel utilisateur client
|
|
12058
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11721
12059
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
11722
12060
|
* @param {*} [options] Override http request option.
|
|
11723
12061
|
* @throws {RequiredError}
|
|
@@ -11725,6 +12063,14 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
11725
12063
|
clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
|
|
11726
12064
|
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
11727
12065
|
},
|
|
12066
|
+
/**
|
|
12067
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
12068
|
+
* @param {*} [options] Override http request option.
|
|
12069
|
+
* @throws {RequiredError}
|
|
12070
|
+
*/
|
|
12071
|
+
getClientSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<ClientSubscriptionsResponse> {
|
|
12072
|
+
return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
|
|
12073
|
+
},
|
|
11728
12074
|
/**
|
|
11729
12075
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11730
12076
|
* @param {*} [options] Override http request option.
|
|
@@ -11734,7 +12080,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
11734
12080
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
11735
12081
|
},
|
|
11736
12082
|
/**
|
|
11737
|
-
* Enregistre un nouveau club pour la plateforme
|
|
12083
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
11738
12084
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
11739
12085
|
* @param {*} [options] Override http request option.
|
|
11740
12086
|
* @throws {RequiredError}
|
|
@@ -11781,7 +12127,7 @@ export interface ClientApiOnboardClubRequest {
|
|
|
11781
12127
|
*/
|
|
11782
12128
|
export class ClientApi extends BaseAPI {
|
|
11783
12129
|
/**
|
|
11784
|
-
* Enregistre un nouvel utilisateur client
|
|
12130
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11785
12131
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
11786
12132
|
* @param {*} [options] Override http request option.
|
|
11787
12133
|
* @throws {RequiredError}
|
|
@@ -11791,6 +12137,16 @@ export class ClientApi extends BaseAPI {
|
|
|
11791
12137
|
return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11792
12138
|
}
|
|
11793
12139
|
|
|
12140
|
+
/**
|
|
12141
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
12142
|
+
* @param {*} [options] Override http request option.
|
|
12143
|
+
* @throws {RequiredError}
|
|
12144
|
+
* @memberof ClientApi
|
|
12145
|
+
*/
|
|
12146
|
+
public getClientSubscriptions(options?: RawAxiosRequestConfig) {
|
|
12147
|
+
return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
12148
|
+
}
|
|
12149
|
+
|
|
11794
12150
|
/**
|
|
11795
12151
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11796
12152
|
* @param {*} [options] Override http request option.
|
|
@@ -11802,7 +12158,7 @@ export class ClientApi extends BaseAPI {
|
|
|
11802
12158
|
}
|
|
11803
12159
|
|
|
11804
12160
|
/**
|
|
11805
|
-
* Enregistre un nouveau club pour la plateforme
|
|
12161
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
11806
12162
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
11807
12163
|
* @param {*} [options] Override http request option.
|
|
11808
12164
|
* @throws {RequiredError}
|
|
@@ -14464,7 +14820,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
|
|
|
14464
14820
|
export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14465
14821
|
return {
|
|
14466
14822
|
/**
|
|
14467
|
-
* Récupère la liste des clubs actifs publics
|
|
14823
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
14468
14824
|
* @param {*} [options] Override http request option.
|
|
14469
14825
|
* @throws {RequiredError}
|
|
14470
14826
|
*/
|
|
@@ -14765,7 +15121,7 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14765
15121
|
};
|
|
14766
15122
|
},
|
|
14767
15123
|
/**
|
|
14768
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
15124
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
14769
15125
|
* @param {*} [options] Override http request option.
|
|
14770
15126
|
* @throws {RequiredError}
|
|
14771
15127
|
*/
|
|
@@ -14940,7 +15296,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
14940
15296
|
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
|
|
14941
15297
|
return {
|
|
14942
15298
|
/**
|
|
14943
|
-
* Récupère la liste des clubs actifs publics
|
|
15299
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
14944
15300
|
* @param {*} [options] Override http request option.
|
|
14945
15301
|
* @throws {RequiredError}
|
|
14946
15302
|
*/
|
|
@@ -15048,7 +15404,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
15048
15404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15049
15405
|
},
|
|
15050
15406
|
/**
|
|
15051
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
15407
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
15052
15408
|
* @param {*} [options] Override http request option.
|
|
15053
15409
|
* @throws {RequiredError}
|
|
15054
15410
|
*/
|
|
@@ -15118,7 +15474,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15118
15474
|
const localVarFp = ClubsApiFp(configuration)
|
|
15119
15475
|
return {
|
|
15120
15476
|
/**
|
|
15121
|
-
* Récupère la liste des clubs actifs publics
|
|
15477
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
15122
15478
|
* @param {*} [options] Override http request option.
|
|
15123
15479
|
* @throws {RequiredError}
|
|
15124
15480
|
*/
|
|
@@ -15196,7 +15552,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15196
15552
|
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
15197
15553
|
},
|
|
15198
15554
|
/**
|
|
15199
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
15555
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
15200
15556
|
* @param {*} [options] Override http request option.
|
|
15201
15557
|
* @throws {RequiredError}
|
|
15202
15558
|
*/
|
|
@@ -15418,7 +15774,7 @@ export interface ClubsApiGetSportsByClubByIdRequest {
|
|
|
15418
15774
|
*/
|
|
15419
15775
|
export class ClubsApi extends BaseAPI {
|
|
15420
15776
|
/**
|
|
15421
|
-
* Récupère la liste des clubs actifs publics
|
|
15777
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
15422
15778
|
* @param {*} [options] Override http request option.
|
|
15423
15779
|
* @throws {RequiredError}
|
|
15424
15780
|
* @memberof ClubsApi
|
|
@@ -15514,7 +15870,7 @@ export class ClubsApi extends BaseAPI {
|
|
|
15514
15870
|
}
|
|
15515
15871
|
|
|
15516
15872
|
/**
|
|
15517
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
15873
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
15518
15874
|
* @param {*} [options] Override http request option.
|
|
15519
15875
|
* @throws {RequiredError}
|
|
15520
15876
|
* @memberof ClubsApi
|
|
@@ -18291,6 +18647,83 @@ export class DefaultApi extends BaseAPI {
|
|
|
18291
18647
|
*/
|
|
18292
18648
|
export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
18293
18649
|
return {
|
|
18650
|
+
/**
|
|
18651
|
+
* Check team name availability for TEAM participation events
|
|
18652
|
+
* @param {string} eventId
|
|
18653
|
+
* @param {string} [teamName]
|
|
18654
|
+
* @param {*} [options] Override http request option.
|
|
18655
|
+
* @throws {RequiredError}
|
|
18656
|
+
*/
|
|
18657
|
+
checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18658
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
18659
|
+
assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
|
|
18660
|
+
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
18661
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
18662
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18663
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18664
|
+
let baseOptions;
|
|
18665
|
+
if (configuration) {
|
|
18666
|
+
baseOptions = configuration.baseOptions;
|
|
18667
|
+
}
|
|
18668
|
+
|
|
18669
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
18670
|
+
const localVarHeaderParameter = {} as any;
|
|
18671
|
+
const localVarQueryParameter = {} as any;
|
|
18672
|
+
|
|
18673
|
+
if (teamName !== undefined) {
|
|
18674
|
+
localVarQueryParameter['teamName'] = teamName;
|
|
18675
|
+
}
|
|
18676
|
+
|
|
18677
|
+
|
|
18678
|
+
|
|
18679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18682
|
+
|
|
18683
|
+
return {
|
|
18684
|
+
url: toPathString(localVarUrlObj),
|
|
18685
|
+
options: localVarRequestOptions,
|
|
18686
|
+
};
|
|
18687
|
+
},
|
|
18688
|
+
/**
|
|
18689
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
18690
|
+
* @param {string} eventId
|
|
18691
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
18692
|
+
* @param {*} [options] Override http request option.
|
|
18693
|
+
* @throws {RequiredError}
|
|
18694
|
+
*/
|
|
18695
|
+
estimateEventPrice: async (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18696
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
18697
|
+
assertParamExists('estimateEventPrice', 'eventId', eventId)
|
|
18698
|
+
// verify required parameter 'estimateEventPriceRequest' is not null or undefined
|
|
18699
|
+
assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest)
|
|
18700
|
+
const localVarPath = `/api/events/{eventId}/estimate-price`
|
|
18701
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
18702
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18704
|
+
let baseOptions;
|
|
18705
|
+
if (configuration) {
|
|
18706
|
+
baseOptions = configuration.baseOptions;
|
|
18707
|
+
}
|
|
18708
|
+
|
|
18709
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18710
|
+
const localVarHeaderParameter = {} as any;
|
|
18711
|
+
const localVarQueryParameter = {} as any;
|
|
18712
|
+
|
|
18713
|
+
|
|
18714
|
+
|
|
18715
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18716
|
+
|
|
18717
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18718
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18719
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18720
|
+
localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration)
|
|
18721
|
+
|
|
18722
|
+
return {
|
|
18723
|
+
url: toPathString(localVarUrlObj),
|
|
18724
|
+
options: localVarRequestOptions,
|
|
18725
|
+
};
|
|
18726
|
+
},
|
|
18294
18727
|
/**
|
|
18295
18728
|
* Get a specific event by ID
|
|
18296
18729
|
* @param {string} eventId
|
|
@@ -18463,6 +18896,32 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
18463
18896
|
export const EventsApiFp = function(configuration?: Configuration) {
|
|
18464
18897
|
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
|
|
18465
18898
|
return {
|
|
18899
|
+
/**
|
|
18900
|
+
* Check team name availability for TEAM participation events
|
|
18901
|
+
* @param {string} eventId
|
|
18902
|
+
* @param {string} [teamName]
|
|
18903
|
+
* @param {*} [options] Override http request option.
|
|
18904
|
+
* @throws {RequiredError}
|
|
18905
|
+
*/
|
|
18906
|
+
async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
|
|
18907
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
18908
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18909
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
|
|
18910
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18911
|
+
},
|
|
18912
|
+
/**
|
|
18913
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
18914
|
+
* @param {string} eventId
|
|
18915
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
18916
|
+
* @param {*} [options] Override http request option.
|
|
18917
|
+
* @throws {RequiredError}
|
|
18918
|
+
*/
|
|
18919
|
+
async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
|
|
18920
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
|
|
18921
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18922
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
|
|
18923
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18924
|
+
},
|
|
18466
18925
|
/**
|
|
18467
18926
|
* Get a specific event by ID
|
|
18468
18927
|
* @param {string} eventId
|
|
@@ -18525,6 +18984,24 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
18525
18984
|
export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
18526
18985
|
const localVarFp = EventsApiFp(configuration)
|
|
18527
18986
|
return {
|
|
18987
|
+
/**
|
|
18988
|
+
* Check team name availability for TEAM participation events
|
|
18989
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
18990
|
+
* @param {*} [options] Override http request option.
|
|
18991
|
+
* @throws {RequiredError}
|
|
18992
|
+
*/
|
|
18993
|
+
checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
|
|
18994
|
+
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
18995
|
+
},
|
|
18996
|
+
/**
|
|
18997
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
18998
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
18999
|
+
* @param {*} [options] Override http request option.
|
|
19000
|
+
* @throws {RequiredError}
|
|
19001
|
+
*/
|
|
19002
|
+
estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
|
|
19003
|
+
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
19004
|
+
},
|
|
18528
19005
|
/**
|
|
18529
19006
|
* Get a specific event by ID
|
|
18530
19007
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -18564,6 +19041,48 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
18564
19041
|
};
|
|
18565
19042
|
};
|
|
18566
19043
|
|
|
19044
|
+
/**
|
|
19045
|
+
* Request parameters for checkTeamNameAvailability operation in EventsApi.
|
|
19046
|
+
* @export
|
|
19047
|
+
* @interface EventsApiCheckTeamNameAvailabilityRequest
|
|
19048
|
+
*/
|
|
19049
|
+
export interface EventsApiCheckTeamNameAvailabilityRequest {
|
|
19050
|
+
/**
|
|
19051
|
+
*
|
|
19052
|
+
* @type {string}
|
|
19053
|
+
* @memberof EventsApiCheckTeamNameAvailability
|
|
19054
|
+
*/
|
|
19055
|
+
readonly eventId: string
|
|
19056
|
+
|
|
19057
|
+
/**
|
|
19058
|
+
*
|
|
19059
|
+
* @type {string}
|
|
19060
|
+
* @memberof EventsApiCheckTeamNameAvailability
|
|
19061
|
+
*/
|
|
19062
|
+
readonly teamName?: string
|
|
19063
|
+
}
|
|
19064
|
+
|
|
19065
|
+
/**
|
|
19066
|
+
* Request parameters for estimateEventPrice operation in EventsApi.
|
|
19067
|
+
* @export
|
|
19068
|
+
* @interface EventsApiEstimateEventPriceRequest
|
|
19069
|
+
*/
|
|
19070
|
+
export interface EventsApiEstimateEventPriceRequest {
|
|
19071
|
+
/**
|
|
19072
|
+
*
|
|
19073
|
+
* @type {string}
|
|
19074
|
+
* @memberof EventsApiEstimateEventPrice
|
|
19075
|
+
*/
|
|
19076
|
+
readonly eventId: string
|
|
19077
|
+
|
|
19078
|
+
/**
|
|
19079
|
+
*
|
|
19080
|
+
* @type {EstimateEventPriceRequest}
|
|
19081
|
+
* @memberof EventsApiEstimateEventPrice
|
|
19082
|
+
*/
|
|
19083
|
+
readonly estimateEventPriceRequest: EstimateEventPriceRequest
|
|
19084
|
+
}
|
|
19085
|
+
|
|
18567
19086
|
/**
|
|
18568
19087
|
* Request parameters for getEventById operation in EventsApi.
|
|
18569
19088
|
* @export
|
|
@@ -18655,6 +19174,28 @@ export interface EventsApiLeaveEventRequest {
|
|
|
18655
19174
|
* @extends {BaseAPI}
|
|
18656
19175
|
*/
|
|
18657
19176
|
export class EventsApi extends BaseAPI {
|
|
19177
|
+
/**
|
|
19178
|
+
* Check team name availability for TEAM participation events
|
|
19179
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
19180
|
+
* @param {*} [options] Override http request option.
|
|
19181
|
+
* @throws {RequiredError}
|
|
19182
|
+
* @memberof EventsApi
|
|
19183
|
+
*/
|
|
19184
|
+
public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
19185
|
+
return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
19186
|
+
}
|
|
19187
|
+
|
|
19188
|
+
/**
|
|
19189
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
19190
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
19191
|
+
* @param {*} [options] Override http request option.
|
|
19192
|
+
* @throws {RequiredError}
|
|
19193
|
+
* @memberof EventsApi
|
|
19194
|
+
*/
|
|
19195
|
+
public estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig) {
|
|
19196
|
+
return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19197
|
+
}
|
|
19198
|
+
|
|
18658
19199
|
/**
|
|
18659
19200
|
* Get a specific event by ID
|
|
18660
19201
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|