@tennac-booking/sdk 1.0.234 → 1.0.236
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 +6 -0
- package/README.md +9 -0
- package/api.ts +464 -0
- package/dist/api.d.ts +355 -0
- package/dist/api.js +184 -0
- package/dist/esm/api.d.ts +355 -0
- package/dist/esm/api.js +184 -0
- package/docs/AcceptBookingInvitationResponse.md +2 -0
- package/docs/ClubAnalyticsStaffApi.md +47 -0
- package/docs/ClubNewSubscriberItem.md +34 -0
- package/docs/ClubNewSubscribersListResponse.md +26 -0
- package/docs/MigrateSubscription200Response.md +22 -0
- package/docs/MigrateSubscriptionRequest.md +26 -0
- package/docs/MigrateUser200Response.md +24 -0
- package/docs/MigrateUserRequest.md +40 -0
- package/docs/UsersApi.md +106 -0
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -50,6 +50,12 @@ export interface AcceptBookingInvitationResponse {
|
|
|
50
50
|
* @memberof AcceptBookingInvitationResponse
|
|
51
51
|
*/
|
|
52
52
|
'allPlayersAccepted'?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* URL de paiement (si paiement en ligne requis après acceptation)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AcceptBookingInvitationResponse
|
|
57
|
+
*/
|
|
58
|
+
'paymentUrl'?: string;
|
|
53
59
|
}
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
@@ -2616,6 +2622,92 @@ export interface ClubNewBookingsResponse {
|
|
|
2616
2622
|
*/
|
|
2617
2623
|
'newBookings': number;
|
|
2618
2624
|
}
|
|
2625
|
+
/**
|
|
2626
|
+
*
|
|
2627
|
+
* @export
|
|
2628
|
+
* @interface ClubNewSubscriberItem
|
|
2629
|
+
*/
|
|
2630
|
+
export interface ClubNewSubscriberItem {
|
|
2631
|
+
/**
|
|
2632
|
+
* ID du joueur
|
|
2633
|
+
* @type {string}
|
|
2634
|
+
* @memberof ClubNewSubscriberItem
|
|
2635
|
+
*/
|
|
2636
|
+
'id': string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Prénom
|
|
2639
|
+
* @type {string}
|
|
2640
|
+
* @memberof ClubNewSubscriberItem
|
|
2641
|
+
*/
|
|
2642
|
+
'firstName': string;
|
|
2643
|
+
/**
|
|
2644
|
+
* Nom
|
|
2645
|
+
* @type {string}
|
|
2646
|
+
* @memberof ClubNewSubscriberItem
|
|
2647
|
+
*/
|
|
2648
|
+
'lastName': string;
|
|
2649
|
+
/**
|
|
2650
|
+
* Email
|
|
2651
|
+
* @type {string}
|
|
2652
|
+
* @memberof ClubNewSubscriberItem
|
|
2653
|
+
*/
|
|
2654
|
+
'email': string;
|
|
2655
|
+
/**
|
|
2656
|
+
* URL de la photo de profil
|
|
2657
|
+
* @type {string}
|
|
2658
|
+
* @memberof ClubNewSubscriberItem
|
|
2659
|
+
*/
|
|
2660
|
+
'profilePictureUrl': string | null;
|
|
2661
|
+
/**
|
|
2662
|
+
* Compte vérifié
|
|
2663
|
+
* @type {boolean}
|
|
2664
|
+
* @memberof ClubNewSubscriberItem
|
|
2665
|
+
*/
|
|
2666
|
+
'isAccountVerified': boolean;
|
|
2667
|
+
/**
|
|
2668
|
+
* Date d\'abonnement (format ISO)
|
|
2669
|
+
* @type {string}
|
|
2670
|
+
* @memberof ClubNewSubscriberItem
|
|
2671
|
+
*/
|
|
2672
|
+
'subscribedAt': string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Abonnements au club courant
|
|
2675
|
+
* @type {Array<ClubPlayerSubscriptionSummary>}
|
|
2676
|
+
* @memberof ClubNewSubscriberItem
|
|
2677
|
+
*/
|
|
2678
|
+
'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
|
|
2679
|
+
}
|
|
2680
|
+
/**
|
|
2681
|
+
*
|
|
2682
|
+
* @export
|
|
2683
|
+
* @interface ClubNewSubscribersListResponse
|
|
2684
|
+
*/
|
|
2685
|
+
export interface ClubNewSubscribersListResponse {
|
|
2686
|
+
/**
|
|
2687
|
+
* Date de début incluse (format ISO)
|
|
2688
|
+
* @type {string}
|
|
2689
|
+
* @memberof ClubNewSubscribersListResponse
|
|
2690
|
+
*/
|
|
2691
|
+
'startDate': string;
|
|
2692
|
+
/**
|
|
2693
|
+
* Date de fin incluse (format ISO)
|
|
2694
|
+
* @type {string}
|
|
2695
|
+
* @memberof ClubNewSubscribersListResponse
|
|
2696
|
+
*/
|
|
2697
|
+
'endDate': string;
|
|
2698
|
+
/**
|
|
2699
|
+
* Nombre total de nouveaux abonnés
|
|
2700
|
+
* @type {number}
|
|
2701
|
+
* @memberof ClubNewSubscribersListResponse
|
|
2702
|
+
*/
|
|
2703
|
+
'total': number;
|
|
2704
|
+
/**
|
|
2705
|
+
* Détails des nouveaux abonnés
|
|
2706
|
+
* @type {Array<ClubNewSubscriberItem>}
|
|
2707
|
+
* @memberof ClubNewSubscribersListResponse
|
|
2708
|
+
*/
|
|
2709
|
+
'subscribers': Array<ClubNewSubscriberItem>;
|
|
2710
|
+
}
|
|
2619
2711
|
/**
|
|
2620
2712
|
*
|
|
2621
2713
|
* @export
|
|
@@ -8427,6 +8519,160 @@ export interface MarkNotificationsReadResponse {
|
|
|
8427
8519
|
*/
|
|
8428
8520
|
'updatedCount': number;
|
|
8429
8521
|
}
|
|
8522
|
+
/**
|
|
8523
|
+
*
|
|
8524
|
+
* @export
|
|
8525
|
+
* @interface MigrateSubscription200Response
|
|
8526
|
+
*/
|
|
8527
|
+
export interface MigrateSubscription200Response {
|
|
8528
|
+
/**
|
|
8529
|
+
*
|
|
8530
|
+
* @type {string}
|
|
8531
|
+
* @memberof MigrateSubscription200Response
|
|
8532
|
+
*/
|
|
8533
|
+
'message'?: string;
|
|
8534
|
+
/**
|
|
8535
|
+
*
|
|
8536
|
+
* @type {boolean}
|
|
8537
|
+
* @memberof MigrateSubscription200Response
|
|
8538
|
+
*/
|
|
8539
|
+
'success': boolean;
|
|
8540
|
+
}
|
|
8541
|
+
/**
|
|
8542
|
+
*
|
|
8543
|
+
* @export
|
|
8544
|
+
* @interface MigrateSubscriptionRequest
|
|
8545
|
+
*/
|
|
8546
|
+
export interface MigrateSubscriptionRequest {
|
|
8547
|
+
/**
|
|
8548
|
+
* Construct a type with a set of properties K of type T
|
|
8549
|
+
* @type {{ [key: string]: any; }}
|
|
8550
|
+
* @memberof MigrateSubscriptionRequest
|
|
8551
|
+
*/
|
|
8552
|
+
'subscriptionData': {
|
|
8553
|
+
[key: string]: any;
|
|
8554
|
+
};
|
|
8555
|
+
/**
|
|
8556
|
+
*
|
|
8557
|
+
* @type {string}
|
|
8558
|
+
* @memberof MigrateSubscriptionRequest
|
|
8559
|
+
*/
|
|
8560
|
+
'clubId': string;
|
|
8561
|
+
/**
|
|
8562
|
+
*
|
|
8563
|
+
* @type {string}
|
|
8564
|
+
* @memberof MigrateSubscriptionRequest
|
|
8565
|
+
*/
|
|
8566
|
+
'lastName': string;
|
|
8567
|
+
/**
|
|
8568
|
+
*
|
|
8569
|
+
* @type {string}
|
|
8570
|
+
* @memberof MigrateSubscriptionRequest
|
|
8571
|
+
*/
|
|
8572
|
+
'firstName': string;
|
|
8573
|
+
}
|
|
8574
|
+
/**
|
|
8575
|
+
*
|
|
8576
|
+
* @export
|
|
8577
|
+
* @interface MigrateUser200Response
|
|
8578
|
+
*/
|
|
8579
|
+
export interface MigrateUser200Response {
|
|
8580
|
+
/**
|
|
8581
|
+
*
|
|
8582
|
+
* @type {string}
|
|
8583
|
+
* @memberof MigrateUser200Response
|
|
8584
|
+
*/
|
|
8585
|
+
'message'?: string;
|
|
8586
|
+
/**
|
|
8587
|
+
*
|
|
8588
|
+
* @type {string}
|
|
8589
|
+
* @memberof MigrateUser200Response
|
|
8590
|
+
*/
|
|
8591
|
+
'userId'?: string;
|
|
8592
|
+
/**
|
|
8593
|
+
*
|
|
8594
|
+
* @type {boolean}
|
|
8595
|
+
* @memberof MigrateUser200Response
|
|
8596
|
+
*/
|
|
8597
|
+
'success': boolean;
|
|
8598
|
+
}
|
|
8599
|
+
/**
|
|
8600
|
+
*
|
|
8601
|
+
* @export
|
|
8602
|
+
* @interface MigrateUserRequest
|
|
8603
|
+
*/
|
|
8604
|
+
export interface MigrateUserRequest {
|
|
8605
|
+
/**
|
|
8606
|
+
* Construct a type with a set of properties K of type T
|
|
8607
|
+
* @type {{ [key: string]: any; }}
|
|
8608
|
+
* @memberof MigrateUserRequest
|
|
8609
|
+
*/
|
|
8610
|
+
'subscriptionMetadata'?: {
|
|
8611
|
+
[key: string]: any;
|
|
8612
|
+
};
|
|
8613
|
+
/**
|
|
8614
|
+
* Construct a type with a set of properties K of type T
|
|
8615
|
+
* @type {{ [key: string]: any; }}
|
|
8616
|
+
* @memberof MigrateUserRequest
|
|
8617
|
+
*/
|
|
8618
|
+
'metadata'?: {
|
|
8619
|
+
[key: string]: any;
|
|
8620
|
+
};
|
|
8621
|
+
/**
|
|
8622
|
+
*
|
|
8623
|
+
* @type {string}
|
|
8624
|
+
* @memberof MigrateUserRequest
|
|
8625
|
+
*/
|
|
8626
|
+
'clubId': string;
|
|
8627
|
+
/**
|
|
8628
|
+
*
|
|
8629
|
+
* @type {string}
|
|
8630
|
+
* @memberof MigrateUserRequest
|
|
8631
|
+
*/
|
|
8632
|
+
'city'?: string;
|
|
8633
|
+
/**
|
|
8634
|
+
*
|
|
8635
|
+
* @type {string}
|
|
8636
|
+
* @memberof MigrateUserRequest
|
|
8637
|
+
*/
|
|
8638
|
+
'postalCode'?: string;
|
|
8639
|
+
/**
|
|
8640
|
+
*
|
|
8641
|
+
* @type {string}
|
|
8642
|
+
* @memberof MigrateUserRequest
|
|
8643
|
+
*/
|
|
8644
|
+
'adress'?: string;
|
|
8645
|
+
/**
|
|
8646
|
+
*
|
|
8647
|
+
* @type {string}
|
|
8648
|
+
* @memberof MigrateUserRequest
|
|
8649
|
+
*/
|
|
8650
|
+
'gender'?: string;
|
|
8651
|
+
/**
|
|
8652
|
+
*
|
|
8653
|
+
* @type {string}
|
|
8654
|
+
* @memberof MigrateUserRequest
|
|
8655
|
+
*/
|
|
8656
|
+
'phone'?: string;
|
|
8657
|
+
/**
|
|
8658
|
+
*
|
|
8659
|
+
* @type {string}
|
|
8660
|
+
* @memberof MigrateUserRequest
|
|
8661
|
+
*/
|
|
8662
|
+
'email': string;
|
|
8663
|
+
/**
|
|
8664
|
+
*
|
|
8665
|
+
* @type {string}
|
|
8666
|
+
* @memberof MigrateUserRequest
|
|
8667
|
+
*/
|
|
8668
|
+
'lastName': string;
|
|
8669
|
+
/**
|
|
8670
|
+
*
|
|
8671
|
+
* @type {string}
|
|
8672
|
+
* @memberof MigrateUserRequest
|
|
8673
|
+
*/
|
|
8674
|
+
'firstName': string;
|
|
8675
|
+
}
|
|
8430
8676
|
/**
|
|
8431
8677
|
*
|
|
8432
8678
|
* @export
|
|
@@ -17868,6 +18114,12 @@ export declare const ClubAnalyticsStaffApiAxiosParamCreator: (configuration?: Co
|
|
|
17868
18114
|
* @throws {RequiredError}
|
|
17869
18115
|
*/
|
|
17870
18116
|
getNewSubscribersCount: (startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18117
|
+
/**
|
|
18118
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
18119
|
+
* @param {*} [options] Override http request option.
|
|
18120
|
+
* @throws {RequiredError}
|
|
18121
|
+
*/
|
|
18122
|
+
getNewSubscribersList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17871
18123
|
/**
|
|
17872
18124
|
* Taux de no-show global ou sur une période
|
|
17873
18125
|
* @param {string} [startDate]
|
|
@@ -18039,6 +18291,12 @@ export declare const ClubAnalyticsStaffApiFp: (configuration?: Configuration) =>
|
|
|
18039
18291
|
* @throws {RequiredError}
|
|
18040
18292
|
*/
|
|
18041
18293
|
getNewSubscribersCount(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubNewSubscribersResponse>>;
|
|
18294
|
+
/**
|
|
18295
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
18296
|
+
* @param {*} [options] Override http request option.
|
|
18297
|
+
* @throws {RequiredError}
|
|
18298
|
+
*/
|
|
18299
|
+
getNewSubscribersList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubNewSubscribersListResponse>>;
|
|
18042
18300
|
/**
|
|
18043
18301
|
* Taux de no-show global ou sur une période
|
|
18044
18302
|
* @param {string} [startDate]
|
|
@@ -18200,6 +18458,12 @@ export declare const ClubAnalyticsStaffApiFactory: (configuration?: Configuratio
|
|
|
18200
18458
|
* @throws {RequiredError}
|
|
18201
18459
|
*/
|
|
18202
18460
|
getNewSubscribersCount(requestParameters?: ClubAnalyticsStaffApiGetNewSubscribersCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubNewSubscribersResponse>;
|
|
18461
|
+
/**
|
|
18462
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
18463
|
+
* @param {*} [options] Override http request option.
|
|
18464
|
+
* @throws {RequiredError}
|
|
18465
|
+
*/
|
|
18466
|
+
getNewSubscribersList(options?: RawAxiosRequestConfig): AxiosPromise<ClubNewSubscribersListResponse>;
|
|
18203
18467
|
/**
|
|
18204
18468
|
* Taux de no-show global ou sur une période
|
|
18205
18469
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -18644,6 +18908,13 @@ export declare class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
18644
18908
|
* @memberof ClubAnalyticsStaffApi
|
|
18645
18909
|
*/
|
|
18646
18910
|
getNewSubscribersCount(requestParameters?: ClubAnalyticsStaffApiGetNewSubscribersCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubNewSubscribersResponse, any, {}>>;
|
|
18911
|
+
/**
|
|
18912
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
18913
|
+
* @param {*} [options] Override http request option.
|
|
18914
|
+
* @throws {RequiredError}
|
|
18915
|
+
* @memberof ClubAnalyticsStaffApi
|
|
18916
|
+
*/
|
|
18917
|
+
getNewSubscribersList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubNewSubscribersListResponse, any, {}>>;
|
|
18647
18918
|
/**
|
|
18648
18919
|
* Taux de no-show global ou sur une période
|
|
18649
18920
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -25722,6 +25993,20 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
25722
25993
|
* @throws {RequiredError}
|
|
25723
25994
|
*/
|
|
25724
25995
|
markNotificationsRead: (markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25996
|
+
/**
|
|
25997
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
25998
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
25999
|
+
* @param {*} [options] Override http request option.
|
|
26000
|
+
* @throws {RequiredError}
|
|
26001
|
+
*/
|
|
26002
|
+
migrateSubscription: (migrateSubscriptionRequest: MigrateSubscriptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26003
|
+
/**
|
|
26004
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
26005
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
26006
|
+
* @param {*} [options] Override http request option.
|
|
26007
|
+
* @throws {RequiredError}
|
|
26008
|
+
*/
|
|
26009
|
+
migrateUser: (migrateUserRequest: MigrateUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25725
26010
|
/**
|
|
25726
26011
|
*
|
|
25727
26012
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -26074,6 +26359,20 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
26074
26359
|
* @throws {RequiredError}
|
|
26075
26360
|
*/
|
|
26076
26361
|
markNotificationsRead(markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkNotificationsReadResponse>>;
|
|
26362
|
+
/**
|
|
26363
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
26364
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
26365
|
+
* @param {*} [options] Override http request option.
|
|
26366
|
+
* @throws {RequiredError}
|
|
26367
|
+
*/
|
|
26368
|
+
migrateSubscription(migrateSubscriptionRequest: MigrateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MigrateSubscription200Response>>;
|
|
26369
|
+
/**
|
|
26370
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
26371
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
26372
|
+
* @param {*} [options] Override http request option.
|
|
26373
|
+
* @throws {RequiredError}
|
|
26374
|
+
*/
|
|
26375
|
+
migrateUser(migrateUserRequest: MigrateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MigrateUser200Response>>;
|
|
26077
26376
|
/**
|
|
26078
26377
|
*
|
|
26079
26378
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -26404,6 +26703,20 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
26404
26703
|
* @throws {RequiredError}
|
|
26405
26704
|
*/
|
|
26406
26705
|
markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse>;
|
|
26706
|
+
/**
|
|
26707
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
26708
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
26709
|
+
* @param {*} [options] Override http request option.
|
|
26710
|
+
* @throws {RequiredError}
|
|
26711
|
+
*/
|
|
26712
|
+
migrateSubscription(requestParameters: UsersApiMigrateSubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<MigrateSubscription200Response>;
|
|
26713
|
+
/**
|
|
26714
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
26715
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
26716
|
+
* @param {*} [options] Override http request option.
|
|
26717
|
+
* @throws {RequiredError}
|
|
26718
|
+
*/
|
|
26719
|
+
migrateUser(requestParameters: UsersApiMigrateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MigrateUser200Response>;
|
|
26407
26720
|
/**
|
|
26408
26721
|
*
|
|
26409
26722
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -26916,6 +27229,32 @@ export interface UsersApiMarkNotificationsReadRequest {
|
|
|
26916
27229
|
*/
|
|
26917
27230
|
readonly markNotificationsReadRequest: MarkNotificationsReadRequest;
|
|
26918
27231
|
}
|
|
27232
|
+
/**
|
|
27233
|
+
* Request parameters for migrateSubscription operation in UsersApi.
|
|
27234
|
+
* @export
|
|
27235
|
+
* @interface UsersApiMigrateSubscriptionRequest
|
|
27236
|
+
*/
|
|
27237
|
+
export interface UsersApiMigrateSubscriptionRequest {
|
|
27238
|
+
/**
|
|
27239
|
+
*
|
|
27240
|
+
* @type {MigrateSubscriptionRequest}
|
|
27241
|
+
* @memberof UsersApiMigrateSubscription
|
|
27242
|
+
*/
|
|
27243
|
+
readonly migrateSubscriptionRequest: MigrateSubscriptionRequest;
|
|
27244
|
+
}
|
|
27245
|
+
/**
|
|
27246
|
+
* Request parameters for migrateUser operation in UsersApi.
|
|
27247
|
+
* @export
|
|
27248
|
+
* @interface UsersApiMigrateUserRequest
|
|
27249
|
+
*/
|
|
27250
|
+
export interface UsersApiMigrateUserRequest {
|
|
27251
|
+
/**
|
|
27252
|
+
*
|
|
27253
|
+
* @type {MigrateUserRequest}
|
|
27254
|
+
* @memberof UsersApiMigrateUser
|
|
27255
|
+
*/
|
|
27256
|
+
readonly migrateUserRequest: MigrateUserRequest;
|
|
27257
|
+
}
|
|
26919
27258
|
/**
|
|
26920
27259
|
* Request parameters for refreshToken operation in UsersApi.
|
|
26921
27260
|
* @export
|
|
@@ -27391,6 +27730,22 @@ export declare class UsersApi extends BaseAPI {
|
|
|
27391
27730
|
* @memberof UsersApi
|
|
27392
27731
|
*/
|
|
27393
27732
|
markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MarkNotificationsReadResponse, any, {}>>;
|
|
27733
|
+
/**
|
|
27734
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
27735
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
27736
|
+
* @param {*} [options] Override http request option.
|
|
27737
|
+
* @throws {RequiredError}
|
|
27738
|
+
* @memberof UsersApi
|
|
27739
|
+
*/
|
|
27740
|
+
migrateSubscription(requestParameters: UsersApiMigrateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MigrateSubscription200Response, any, {}>>;
|
|
27741
|
+
/**
|
|
27742
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
27743
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
27744
|
+
* @param {*} [options] Override http request option.
|
|
27745
|
+
* @throws {RequiredError}
|
|
27746
|
+
* @memberof UsersApi
|
|
27747
|
+
*/
|
|
27748
|
+
migrateUser(requestParameters: UsersApiMigrateUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MigrateUser200Response, any, {}>>;
|
|
27394
27749
|
/**
|
|
27395
27750
|
*
|
|
27396
27751
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
|
@@ -3711,6 +3711,33 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3711
3711
|
options: localVarRequestOptions,
|
|
3712
3712
|
};
|
|
3713
3713
|
}),
|
|
3714
|
+
/**
|
|
3715
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
3716
|
+
* @param {*} [options] Override http request option.
|
|
3717
|
+
* @throws {RequiredError}
|
|
3718
|
+
*/
|
|
3719
|
+
getNewSubscribersList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3720
|
+
const localVarPath = `/api/club-analytics/subscribers/new/list`;
|
|
3721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3723
|
+
let baseOptions;
|
|
3724
|
+
if (configuration) {
|
|
3725
|
+
baseOptions = configuration.baseOptions;
|
|
3726
|
+
}
|
|
3727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3728
|
+
const localVarHeaderParameter = {};
|
|
3729
|
+
const localVarQueryParameter = {};
|
|
3730
|
+
// authentication bearerAuth required
|
|
3731
|
+
// http bearer authentication required
|
|
3732
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3733
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3734
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3735
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3736
|
+
return {
|
|
3737
|
+
url: toPathString(localVarUrlObj),
|
|
3738
|
+
options: localVarRequestOptions,
|
|
3739
|
+
};
|
|
3740
|
+
}),
|
|
3714
3741
|
/**
|
|
3715
3742
|
* Taux de no-show global ou sur une période
|
|
3716
3743
|
* @param {string} [startDate]
|
|
@@ -4177,6 +4204,20 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
4177
4204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4178
4205
|
});
|
|
4179
4206
|
},
|
|
4207
|
+
/**
|
|
4208
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4209
|
+
* @param {*} [options] Override http request option.
|
|
4210
|
+
* @throws {RequiredError}
|
|
4211
|
+
*/
|
|
4212
|
+
getNewSubscribersList(options) {
|
|
4213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4214
|
+
var _a, _b, _c;
|
|
4215
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewSubscribersList(options);
|
|
4216
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4217
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4218
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4219
|
+
});
|
|
4220
|
+
},
|
|
4180
4221
|
/**
|
|
4181
4222
|
* Taux de no-show global ou sur une période
|
|
4182
4223
|
* @param {string} [startDate]
|
|
@@ -4429,6 +4470,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
4429
4470
|
getNewSubscribersCount(requestParameters = {}, options) {
|
|
4430
4471
|
return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
4431
4472
|
},
|
|
4473
|
+
/**
|
|
4474
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4475
|
+
* @param {*} [options] Override http request option.
|
|
4476
|
+
* @throws {RequiredError}
|
|
4477
|
+
*/
|
|
4478
|
+
getNewSubscribersList(options) {
|
|
4479
|
+
return localVarFp.getNewSubscribersList(options).then((request) => request(axios, basePath));
|
|
4480
|
+
},
|
|
4432
4481
|
/**
|
|
4433
4482
|
* Taux de no-show global ou sur une période
|
|
4434
4483
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -4653,6 +4702,15 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
4653
4702
|
getNewSubscribersCount(requestParameters = {}, options) {
|
|
4654
4703
|
return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4655
4704
|
}
|
|
4705
|
+
/**
|
|
4706
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4707
|
+
* @param {*} [options] Override http request option.
|
|
4708
|
+
* @throws {RequiredError}
|
|
4709
|
+
* @memberof ClubAnalyticsStaffApi
|
|
4710
|
+
*/
|
|
4711
|
+
getNewSubscribersList(options) {
|
|
4712
|
+
return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersList(options).then((request) => request(this.axios, this.basePath));
|
|
4713
|
+
}
|
|
4656
4714
|
/**
|
|
4657
4715
|
* Taux de no-show global ou sur une période
|
|
4658
4716
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -16030,6 +16088,64 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
16030
16088
|
options: localVarRequestOptions,
|
|
16031
16089
|
};
|
|
16032
16090
|
}),
|
|
16091
|
+
/**
|
|
16092
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
16093
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
16094
|
+
* @param {*} [options] Override http request option.
|
|
16095
|
+
* @throws {RequiredError}
|
|
16096
|
+
*/
|
|
16097
|
+
migrateSubscription: (migrateSubscriptionRequest_1, ...args_1) => __awaiter(this, [migrateSubscriptionRequest_1, ...args_1], void 0, function* (migrateSubscriptionRequest, options = {}) {
|
|
16098
|
+
// verify required parameter 'migrateSubscriptionRequest' is not null or undefined
|
|
16099
|
+
assertParamExists('migrateSubscription', 'migrateSubscriptionRequest', migrateSubscriptionRequest);
|
|
16100
|
+
const localVarPath = `/api/users/migrate-subscriptions`;
|
|
16101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16103
|
+
let baseOptions;
|
|
16104
|
+
if (configuration) {
|
|
16105
|
+
baseOptions = configuration.baseOptions;
|
|
16106
|
+
}
|
|
16107
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16108
|
+
const localVarHeaderParameter = {};
|
|
16109
|
+
const localVarQueryParameter = {};
|
|
16110
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16113
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(migrateSubscriptionRequest, localVarRequestOptions, configuration);
|
|
16115
|
+
return {
|
|
16116
|
+
url: toPathString(localVarUrlObj),
|
|
16117
|
+
options: localVarRequestOptions,
|
|
16118
|
+
};
|
|
16119
|
+
}),
|
|
16120
|
+
/**
|
|
16121
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
16122
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
16123
|
+
* @param {*} [options] Override http request option.
|
|
16124
|
+
* @throws {RequiredError}
|
|
16125
|
+
*/
|
|
16126
|
+
migrateUser: (migrateUserRequest_1, ...args_1) => __awaiter(this, [migrateUserRequest_1, ...args_1], void 0, function* (migrateUserRequest, options = {}) {
|
|
16127
|
+
// verify required parameter 'migrateUserRequest' is not null or undefined
|
|
16128
|
+
assertParamExists('migrateUser', 'migrateUserRequest', migrateUserRequest);
|
|
16129
|
+
const localVarPath = `/api/users/migrate`;
|
|
16130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16132
|
+
let baseOptions;
|
|
16133
|
+
if (configuration) {
|
|
16134
|
+
baseOptions = configuration.baseOptions;
|
|
16135
|
+
}
|
|
16136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16137
|
+
const localVarHeaderParameter = {};
|
|
16138
|
+
const localVarQueryParameter = {};
|
|
16139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16143
|
+
localVarRequestOptions.data = serializeDataIfNeeded(migrateUserRequest, localVarRequestOptions, configuration);
|
|
16144
|
+
return {
|
|
16145
|
+
url: toPathString(localVarUrlObj),
|
|
16146
|
+
options: localVarRequestOptions,
|
|
16147
|
+
};
|
|
16148
|
+
}),
|
|
16033
16149
|
/**
|
|
16034
16150
|
*
|
|
16035
16151
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -17048,6 +17164,36 @@ export const UsersApiFp = function (configuration) {
|
|
|
17048
17164
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17049
17165
|
});
|
|
17050
17166
|
},
|
|
17167
|
+
/**
|
|
17168
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
17169
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
17170
|
+
* @param {*} [options] Override http request option.
|
|
17171
|
+
* @throws {RequiredError}
|
|
17172
|
+
*/
|
|
17173
|
+
migrateSubscription(migrateSubscriptionRequest, options) {
|
|
17174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17175
|
+
var _a, _b, _c;
|
|
17176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.migrateSubscription(migrateSubscriptionRequest, options);
|
|
17177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.migrateSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17180
|
+
});
|
|
17181
|
+
},
|
|
17182
|
+
/**
|
|
17183
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
17184
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
17185
|
+
* @param {*} [options] Override http request option.
|
|
17186
|
+
* @throws {RequiredError}
|
|
17187
|
+
*/
|
|
17188
|
+
migrateUser(migrateUserRequest, options) {
|
|
17189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17190
|
+
var _a, _b, _c;
|
|
17191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.migrateUser(migrateUserRequest, options);
|
|
17192
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17193
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.migrateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17195
|
+
});
|
|
17196
|
+
},
|
|
17051
17197
|
/**
|
|
17052
17198
|
*
|
|
17053
17199
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -17579,6 +17725,24 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
17579
17725
|
markNotificationsRead(requestParameters, options) {
|
|
17580
17726
|
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
17581
17727
|
},
|
|
17728
|
+
/**
|
|
17729
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
17730
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
17731
|
+
* @param {*} [options] Override http request option.
|
|
17732
|
+
* @throws {RequiredError}
|
|
17733
|
+
*/
|
|
17734
|
+
migrateSubscription(requestParameters, options) {
|
|
17735
|
+
return localVarFp.migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(axios, basePath));
|
|
17736
|
+
},
|
|
17737
|
+
/**
|
|
17738
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
17739
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
17740
|
+
* @param {*} [options] Override http request option.
|
|
17741
|
+
* @throws {RequiredError}
|
|
17742
|
+
*/
|
|
17743
|
+
migrateUser(requestParameters, options) {
|
|
17744
|
+
return localVarFp.migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(axios, basePath));
|
|
17745
|
+
},
|
|
17582
17746
|
/**
|
|
17583
17747
|
*
|
|
17584
17748
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -18020,6 +18184,26 @@ export class UsersApi extends BaseAPI {
|
|
|
18020
18184
|
markNotificationsRead(requestParameters, options) {
|
|
18021
18185
|
return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18022
18186
|
}
|
|
18187
|
+
/**
|
|
18188
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
18189
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
18190
|
+
* @param {*} [options] Override http request option.
|
|
18191
|
+
* @throws {RequiredError}
|
|
18192
|
+
* @memberof UsersApi
|
|
18193
|
+
*/
|
|
18194
|
+
migrateSubscription(requestParameters, options) {
|
|
18195
|
+
return UsersApiFp(this.configuration).migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18196
|
+
}
|
|
18197
|
+
/**
|
|
18198
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
18199
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
18200
|
+
* @param {*} [options] Override http request option.
|
|
18201
|
+
* @throws {RequiredError}
|
|
18202
|
+
* @memberof UsersApi
|
|
18203
|
+
*/
|
|
18204
|
+
migrateUser(requestParameters, options) {
|
|
18205
|
+
return UsersApiFp(this.configuration).migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18206
|
+
}
|
|
18023
18207
|
/**
|
|
18024
18208
|
*
|
|
18025
18209
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
9
|
**bookingStatus** | **string** | Statut du booking après acceptation/refus | [default to undefined]
|
|
10
10
|
**allPlayersAccepted** | **boolean** | Si tous les joueurs ont accepté | [optional] [default to undefined]
|
|
11
|
+
**paymentUrl** | **string** | URL de paiement (si paiement en ligne requis après acceptation) | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ const instance: AcceptBookingInvitationResponse = {
|
|
|
18
19
|
message,
|
|
19
20
|
bookingStatus,
|
|
20
21
|
allPlayersAccepted,
|
|
22
|
+
paymentUrl,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
23
25
|
|