@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/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/api.js
CHANGED
|
@@ -3746,6 +3746,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3746
3746
|
options: localVarRequestOptions,
|
|
3747
3747
|
};
|
|
3748
3748
|
}),
|
|
3749
|
+
/**
|
|
3750
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
*/
|
|
3754
|
+
getNewSubscribersList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3755
|
+
const localVarPath = `/api/club-analytics/subscribers/new/list`;
|
|
3756
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3757
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3758
|
+
let baseOptions;
|
|
3759
|
+
if (configuration) {
|
|
3760
|
+
baseOptions = configuration.baseOptions;
|
|
3761
|
+
}
|
|
3762
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3763
|
+
const localVarHeaderParameter = {};
|
|
3764
|
+
const localVarQueryParameter = {};
|
|
3765
|
+
// authentication bearerAuth required
|
|
3766
|
+
// http bearer authentication required
|
|
3767
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3768
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3770
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3771
|
+
return {
|
|
3772
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3773
|
+
options: localVarRequestOptions,
|
|
3774
|
+
};
|
|
3775
|
+
}),
|
|
3749
3776
|
/**
|
|
3750
3777
|
* Taux de no-show global ou sur une période
|
|
3751
3778
|
* @param {string} [startDate]
|
|
@@ -4213,6 +4240,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
4213
4240
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4214
4241
|
});
|
|
4215
4242
|
},
|
|
4243
|
+
/**
|
|
4244
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4245
|
+
* @param {*} [options] Override http request option.
|
|
4246
|
+
* @throws {RequiredError}
|
|
4247
|
+
*/
|
|
4248
|
+
getNewSubscribersList(options) {
|
|
4249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4250
|
+
var _a, _b, _c;
|
|
4251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewSubscribersList(options);
|
|
4252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4253
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4255
|
+
});
|
|
4256
|
+
},
|
|
4216
4257
|
/**
|
|
4217
4258
|
* Taux de no-show global ou sur une période
|
|
4218
4259
|
* @param {string} [startDate]
|
|
@@ -4466,6 +4507,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
4466
4507
|
getNewSubscribersCount(requestParameters = {}, options) {
|
|
4467
4508
|
return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
4468
4509
|
},
|
|
4510
|
+
/**
|
|
4511
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4512
|
+
* @param {*} [options] Override http request option.
|
|
4513
|
+
* @throws {RequiredError}
|
|
4514
|
+
*/
|
|
4515
|
+
getNewSubscribersList(options) {
|
|
4516
|
+
return localVarFp.getNewSubscribersList(options).then((request) => request(axios, basePath));
|
|
4517
|
+
},
|
|
4469
4518
|
/**
|
|
4470
4519
|
* Taux de no-show global ou sur une période
|
|
4471
4520
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -4691,6 +4740,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
4691
4740
|
getNewSubscribersCount(requestParameters = {}, options) {
|
|
4692
4741
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4693
4742
|
}
|
|
4743
|
+
/**
|
|
4744
|
+
* Liste des nouveaux abonnés (30 derniers jours)
|
|
4745
|
+
* @param {*} [options] Override http request option.
|
|
4746
|
+
* @throws {RequiredError}
|
|
4747
|
+
* @memberof ClubAnalyticsStaffApi
|
|
4748
|
+
*/
|
|
4749
|
+
getNewSubscribersList(options) {
|
|
4750
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewSubscribersList(options).then((request) => request(this.axios, this.basePath));
|
|
4751
|
+
}
|
|
4694
4752
|
/**
|
|
4695
4753
|
* Taux de no-show global ou sur une période
|
|
4696
4754
|
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
@@ -16177,6 +16235,64 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
16177
16235
|
options: localVarRequestOptions,
|
|
16178
16236
|
};
|
|
16179
16237
|
}),
|
|
16238
|
+
/**
|
|
16239
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
16240
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
16241
|
+
* @param {*} [options] Override http request option.
|
|
16242
|
+
* @throws {RequiredError}
|
|
16243
|
+
*/
|
|
16244
|
+
migrateSubscription: (migrateSubscriptionRequest_1, ...args_1) => __awaiter(this, [migrateSubscriptionRequest_1, ...args_1], void 0, function* (migrateSubscriptionRequest, options = {}) {
|
|
16245
|
+
// verify required parameter 'migrateSubscriptionRequest' is not null or undefined
|
|
16246
|
+
(0, common_1.assertParamExists)('migrateSubscription', 'migrateSubscriptionRequest', migrateSubscriptionRequest);
|
|
16247
|
+
const localVarPath = `/api/users/migrate-subscriptions`;
|
|
16248
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16249
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16250
|
+
let baseOptions;
|
|
16251
|
+
if (configuration) {
|
|
16252
|
+
baseOptions = configuration.baseOptions;
|
|
16253
|
+
}
|
|
16254
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16255
|
+
const localVarHeaderParameter = {};
|
|
16256
|
+
const localVarQueryParameter = {};
|
|
16257
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16258
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16260
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16261
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(migrateSubscriptionRequest, localVarRequestOptions, configuration);
|
|
16262
|
+
return {
|
|
16263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16264
|
+
options: localVarRequestOptions,
|
|
16265
|
+
};
|
|
16266
|
+
}),
|
|
16267
|
+
/**
|
|
16268
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
16269
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
16270
|
+
* @param {*} [options] Override http request option.
|
|
16271
|
+
* @throws {RequiredError}
|
|
16272
|
+
*/
|
|
16273
|
+
migrateUser: (migrateUserRequest_1, ...args_1) => __awaiter(this, [migrateUserRequest_1, ...args_1], void 0, function* (migrateUserRequest, options = {}) {
|
|
16274
|
+
// verify required parameter 'migrateUserRequest' is not null or undefined
|
|
16275
|
+
(0, common_1.assertParamExists)('migrateUser', 'migrateUserRequest', migrateUserRequest);
|
|
16276
|
+
const localVarPath = `/api/users/migrate`;
|
|
16277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16278
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16279
|
+
let baseOptions;
|
|
16280
|
+
if (configuration) {
|
|
16281
|
+
baseOptions = configuration.baseOptions;
|
|
16282
|
+
}
|
|
16283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16284
|
+
const localVarHeaderParameter = {};
|
|
16285
|
+
const localVarQueryParameter = {};
|
|
16286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16287
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16289
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16290
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(migrateUserRequest, localVarRequestOptions, configuration);
|
|
16291
|
+
return {
|
|
16292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16293
|
+
options: localVarRequestOptions,
|
|
16294
|
+
};
|
|
16295
|
+
}),
|
|
16180
16296
|
/**
|
|
16181
16297
|
*
|
|
16182
16298
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -17196,6 +17312,36 @@ const UsersApiFp = function (configuration) {
|
|
|
17196
17312
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17197
17313
|
});
|
|
17198
17314
|
},
|
|
17315
|
+
/**
|
|
17316
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
17317
|
+
* @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
|
|
17318
|
+
* @param {*} [options] Override http request option.
|
|
17319
|
+
* @throws {RequiredError}
|
|
17320
|
+
*/
|
|
17321
|
+
migrateSubscription(migrateSubscriptionRequest, options) {
|
|
17322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17323
|
+
var _a, _b, _c;
|
|
17324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.migrateSubscription(migrateSubscriptionRequest, options);
|
|
17325
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17326
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.migrateSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17327
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17328
|
+
});
|
|
17329
|
+
},
|
|
17330
|
+
/**
|
|
17331
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
17332
|
+
* @param {MigrateUserRequest} migrateUserRequest
|
|
17333
|
+
* @param {*} [options] Override http request option.
|
|
17334
|
+
* @throws {RequiredError}
|
|
17335
|
+
*/
|
|
17336
|
+
migrateUser(migrateUserRequest, options) {
|
|
17337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17338
|
+
var _a, _b, _c;
|
|
17339
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.migrateUser(migrateUserRequest, options);
|
|
17340
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17341
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.migrateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17342
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17343
|
+
});
|
|
17344
|
+
},
|
|
17199
17345
|
/**
|
|
17200
17346
|
*
|
|
17201
17347
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -17728,6 +17874,24 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
17728
17874
|
markNotificationsRead(requestParameters, options) {
|
|
17729
17875
|
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
17730
17876
|
},
|
|
17877
|
+
/**
|
|
17878
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
17879
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
17880
|
+
* @param {*} [options] Override http request option.
|
|
17881
|
+
* @throws {RequiredError}
|
|
17882
|
+
*/
|
|
17883
|
+
migrateSubscription(requestParameters, options) {
|
|
17884
|
+
return localVarFp.migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(axios, basePath));
|
|
17885
|
+
},
|
|
17886
|
+
/**
|
|
17887
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
17888
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
17889
|
+
* @param {*} [options] Override http request option.
|
|
17890
|
+
* @throws {RequiredError}
|
|
17891
|
+
*/
|
|
17892
|
+
migrateUser(requestParameters, options) {
|
|
17893
|
+
return localVarFp.migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(axios, basePath));
|
|
17894
|
+
},
|
|
17731
17895
|
/**
|
|
17732
17896
|
*
|
|
17733
17897
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -18170,6 +18334,26 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
18170
18334
|
markNotificationsRead(requestParameters, options) {
|
|
18171
18335
|
return (0, exports.UsersApiFp)(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18172
18336
|
}
|
|
18337
|
+
/**
|
|
18338
|
+
* Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
18339
|
+
* @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
|
|
18340
|
+
* @param {*} [options] Override http request option.
|
|
18341
|
+
* @throws {RequiredError}
|
|
18342
|
+
* @memberof UsersApi
|
|
18343
|
+
*/
|
|
18344
|
+
migrateSubscription(requestParameters, options) {
|
|
18345
|
+
return (0, exports.UsersApiFp)(this.configuration).migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18346
|
+
}
|
|
18347
|
+
/**
|
|
18348
|
+
* Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
18349
|
+
* @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
|
|
18350
|
+
* @param {*} [options] Override http request option.
|
|
18351
|
+
* @throws {RequiredError}
|
|
18352
|
+
* @memberof UsersApi
|
|
18353
|
+
*/
|
|
18354
|
+
migrateUser(requestParameters, options) {
|
|
18355
|
+
return (0, exports.UsersApiFp)(this.configuration).migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18356
|
+
}
|
|
18173
18357
|
/**
|
|
18174
18358
|
*
|
|
18175
18359
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|