@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.
@@ -86,6 +86,8 @@ docs/ClubMemberResponseUser.md
86
86
  docs/ClubMetadataResponse.md
87
87
  docs/ClubMetadataResponseLocation.md
88
88
  docs/ClubNewBookingsResponse.md
89
+ docs/ClubNewSubscriberItem.md
90
+ docs/ClubNewSubscribersListResponse.md
89
91
  docs/ClubNewSubscribersResponse.md
90
92
  docs/ClubPageResponse.md
91
93
  docs/ClubPageResponseClubCustomerStatus.md
@@ -264,6 +266,10 @@ docs/ManagerCancelBookingRequest.md
264
266
  docs/ManagerCancelBookingResponse.md
265
267
  docs/MarkNotificationsReadRequest.md
266
268
  docs/MarkNotificationsReadResponse.md
269
+ docs/MigrateSubscription200Response.md
270
+ docs/MigrateSubscriptionRequest.md
271
+ docs/MigrateUser200Response.md
272
+ docs/MigrateUserRequest.md
267
273
  docs/MonthlyBreakdown.md
268
274
  docs/MonthlyTurnoverResponse.md
269
275
  docs/MyClubInfosResponse.md
package/README.md CHANGED
@@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
103
103
  *ClubAnalyticsStaffApi* | [**getMonthlyTurnOver**](docs/ClubAnalyticsStaffApi.md#getmonthlyturnover) | **GET** /api/club-analytics/monthly-turnover |
104
104
  *ClubAnalyticsStaffApi* | [**getNewBookingsCount**](docs/ClubAnalyticsStaffApi.md#getnewbookingscount) | **GET** /api/club-analytics/bookings/new |
105
105
  *ClubAnalyticsStaffApi* | [**getNewSubscribersCount**](docs/ClubAnalyticsStaffApi.md#getnewsubscriberscount) | **GET** /api/club-analytics/subscribers/new |
106
+ *ClubAnalyticsStaffApi* | [**getNewSubscribersList**](docs/ClubAnalyticsStaffApi.md#getnewsubscriberslist) | **GET** /api/club-analytics/subscribers/new/list |
106
107
  *ClubAnalyticsStaffApi* | [**getNoShowRate**](docs/ClubAnalyticsStaffApi.md#getnoshowrate) | **GET** /api/club-analytics/bookings/no-show-rate |
107
108
  *ClubAnalyticsStaffApi* | [**getNumberOfClubUsers**](docs/ClubAnalyticsStaffApi.md#getnumberofclubusers) | **GET** /api/club-analytics/users-count |
108
109
  *ClubAnalyticsStaffApi* | [**getRetentionRate**](docs/ClubAnalyticsStaffApi.md#getretentionrate) | **GET** /api/club-analytics/retention-rate |
@@ -281,6 +282,8 @@ Class | Method | HTTP request | Description
281
282
  *UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
282
283
  *UsersApi* | [**loginClubMember**](docs/UsersApi.md#loginclubmember) | **POST** /api/users/club-members/login |
283
284
  *UsersApi* | [**markNotificationsRead**](docs/UsersApi.md#marknotificationsread) | **POST** /api/users/me/notifications/read |
285
+ *UsersApi* | [**migrateSubscription**](docs/UsersApi.md#migratesubscription) | **POST** /api/users/migrate-subscriptions |
286
+ *UsersApi* | [**migrateUser**](docs/UsersApi.md#migrateuser) | **POST** /api/users/migrate |
284
287
  *UsersApi* | [**refreshToken**](docs/UsersApi.md#refreshtoken) | **POST** /api/users/refresh-token |
285
288
  *UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
286
289
  *UsersApi* | [**registerFromApp**](docs/UsersApi.md#registerfromapp) | **POST** /api/users/register-app |
@@ -390,6 +393,8 @@ Class | Method | HTTP request | Description
390
393
  - [ClubMetadataResponse](docs/ClubMetadataResponse.md)
391
394
  - [ClubMetadataResponseLocation](docs/ClubMetadataResponseLocation.md)
392
395
  - [ClubNewBookingsResponse](docs/ClubNewBookingsResponse.md)
396
+ - [ClubNewSubscriberItem](docs/ClubNewSubscriberItem.md)
397
+ - [ClubNewSubscribersListResponse](docs/ClubNewSubscribersListResponse.md)
393
398
  - [ClubNewSubscribersResponse](docs/ClubNewSubscribersResponse.md)
394
399
  - [ClubPageResponse](docs/ClubPageResponse.md)
395
400
  - [ClubPageResponseClubCustomerStatus](docs/ClubPageResponseClubCustomerStatus.md)
@@ -554,6 +559,10 @@ Class | Method | HTTP request | Description
554
559
  - [ManagerCancelBookingResponse](docs/ManagerCancelBookingResponse.md)
555
560
  - [MarkNotificationsReadRequest](docs/MarkNotificationsReadRequest.md)
556
561
  - [MarkNotificationsReadResponse](docs/MarkNotificationsReadResponse.md)
562
+ - [MigrateSubscription200Response](docs/MigrateSubscription200Response.md)
563
+ - [MigrateSubscriptionRequest](docs/MigrateSubscriptionRequest.md)
564
+ - [MigrateUser200Response](docs/MigrateUser200Response.md)
565
+ - [MigrateUserRequest](docs/MigrateUserRequest.md)
557
566
  - [MonthlyBreakdown](docs/MonthlyBreakdown.md)
558
567
  - [MonthlyTurnoverResponse](docs/MonthlyTurnoverResponse.md)
559
568
  - [MyClubInfosResponse](docs/MyClubInfosResponse.md)
package/api.ts CHANGED
@@ -60,6 +60,12 @@ export interface AcceptBookingInvitationResponse {
60
60
  * @memberof AcceptBookingInvitationResponse
61
61
  */
62
62
  'allPlayersAccepted'?: boolean;
63
+ /**
64
+ * URL de paiement (si paiement en ligne requis après acceptation)
65
+ * @type {string}
66
+ * @memberof AcceptBookingInvitationResponse
67
+ */
68
+ 'paymentUrl'?: string;
63
69
  }
64
70
  /**
65
71
  *
@@ -2665,6 +2671,92 @@ export interface ClubNewBookingsResponse {
2665
2671
  }
2666
2672
 
2667
2673
 
2674
+ /**
2675
+ *
2676
+ * @export
2677
+ * @interface ClubNewSubscriberItem
2678
+ */
2679
+ export interface ClubNewSubscriberItem {
2680
+ /**
2681
+ * ID du joueur
2682
+ * @type {string}
2683
+ * @memberof ClubNewSubscriberItem
2684
+ */
2685
+ 'id': string;
2686
+ /**
2687
+ * Prénom
2688
+ * @type {string}
2689
+ * @memberof ClubNewSubscriberItem
2690
+ */
2691
+ 'firstName': string;
2692
+ /**
2693
+ * Nom
2694
+ * @type {string}
2695
+ * @memberof ClubNewSubscriberItem
2696
+ */
2697
+ 'lastName': string;
2698
+ /**
2699
+ * Email
2700
+ * @type {string}
2701
+ * @memberof ClubNewSubscriberItem
2702
+ */
2703
+ 'email': string;
2704
+ /**
2705
+ * URL de la photo de profil
2706
+ * @type {string}
2707
+ * @memberof ClubNewSubscriberItem
2708
+ */
2709
+ 'profilePictureUrl': string | null;
2710
+ /**
2711
+ * Compte vérifié
2712
+ * @type {boolean}
2713
+ * @memberof ClubNewSubscriberItem
2714
+ */
2715
+ 'isAccountVerified': boolean;
2716
+ /**
2717
+ * Date d\'abonnement (format ISO)
2718
+ * @type {string}
2719
+ * @memberof ClubNewSubscriberItem
2720
+ */
2721
+ 'subscribedAt': string;
2722
+ /**
2723
+ * Abonnements au club courant
2724
+ * @type {Array<ClubPlayerSubscriptionSummary>}
2725
+ * @memberof ClubNewSubscriberItem
2726
+ */
2727
+ 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
2728
+ }
2729
+ /**
2730
+ *
2731
+ * @export
2732
+ * @interface ClubNewSubscribersListResponse
2733
+ */
2734
+ export interface ClubNewSubscribersListResponse {
2735
+ /**
2736
+ * Date de début incluse (format ISO)
2737
+ * @type {string}
2738
+ * @memberof ClubNewSubscribersListResponse
2739
+ */
2740
+ 'startDate': string;
2741
+ /**
2742
+ * Date de fin incluse (format ISO)
2743
+ * @type {string}
2744
+ * @memberof ClubNewSubscribersListResponse
2745
+ */
2746
+ 'endDate': string;
2747
+ /**
2748
+ * Nombre total de nouveaux abonnés
2749
+ * @type {number}
2750
+ * @memberof ClubNewSubscribersListResponse
2751
+ */
2752
+ 'total': number;
2753
+ /**
2754
+ * Détails des nouveaux abonnés
2755
+ * @type {Array<ClubNewSubscriberItem>}
2756
+ * @memberof ClubNewSubscribersListResponse
2757
+ */
2758
+ 'subscribers': Array<ClubNewSubscriberItem>;
2759
+ }
2668
2760
  /**
2669
2761
  *
2670
2762
  * @export
@@ -8551,6 +8643,154 @@ export interface MarkNotificationsReadResponse {
8551
8643
  */
8552
8644
  'updatedCount': number;
8553
8645
  }
8646
+ /**
8647
+ *
8648
+ * @export
8649
+ * @interface MigrateSubscription200Response
8650
+ */
8651
+ export interface MigrateSubscription200Response {
8652
+ /**
8653
+ *
8654
+ * @type {string}
8655
+ * @memberof MigrateSubscription200Response
8656
+ */
8657
+ 'message'?: string;
8658
+ /**
8659
+ *
8660
+ * @type {boolean}
8661
+ * @memberof MigrateSubscription200Response
8662
+ */
8663
+ 'success': boolean;
8664
+ }
8665
+ /**
8666
+ *
8667
+ * @export
8668
+ * @interface MigrateSubscriptionRequest
8669
+ */
8670
+ export interface MigrateSubscriptionRequest {
8671
+ /**
8672
+ * Construct a type with a set of properties K of type T
8673
+ * @type {{ [key: string]: any; }}
8674
+ * @memberof MigrateSubscriptionRequest
8675
+ */
8676
+ 'subscriptionData': { [key: string]: any; };
8677
+ /**
8678
+ *
8679
+ * @type {string}
8680
+ * @memberof MigrateSubscriptionRequest
8681
+ */
8682
+ 'clubId': string;
8683
+ /**
8684
+ *
8685
+ * @type {string}
8686
+ * @memberof MigrateSubscriptionRequest
8687
+ */
8688
+ 'lastName': string;
8689
+ /**
8690
+ *
8691
+ * @type {string}
8692
+ * @memberof MigrateSubscriptionRequest
8693
+ */
8694
+ 'firstName': string;
8695
+ }
8696
+ /**
8697
+ *
8698
+ * @export
8699
+ * @interface MigrateUser200Response
8700
+ */
8701
+ export interface MigrateUser200Response {
8702
+ /**
8703
+ *
8704
+ * @type {string}
8705
+ * @memberof MigrateUser200Response
8706
+ */
8707
+ 'message'?: string;
8708
+ /**
8709
+ *
8710
+ * @type {string}
8711
+ * @memberof MigrateUser200Response
8712
+ */
8713
+ 'userId'?: string;
8714
+ /**
8715
+ *
8716
+ * @type {boolean}
8717
+ * @memberof MigrateUser200Response
8718
+ */
8719
+ 'success': boolean;
8720
+ }
8721
+ /**
8722
+ *
8723
+ * @export
8724
+ * @interface MigrateUserRequest
8725
+ */
8726
+ export interface MigrateUserRequest {
8727
+ /**
8728
+ * Construct a type with a set of properties K of type T
8729
+ * @type {{ [key: string]: any; }}
8730
+ * @memberof MigrateUserRequest
8731
+ */
8732
+ 'subscriptionMetadata'?: { [key: string]: any; };
8733
+ /**
8734
+ * Construct a type with a set of properties K of type T
8735
+ * @type {{ [key: string]: any; }}
8736
+ * @memberof MigrateUserRequest
8737
+ */
8738
+ 'metadata'?: { [key: string]: any; };
8739
+ /**
8740
+ *
8741
+ * @type {string}
8742
+ * @memberof MigrateUserRequest
8743
+ */
8744
+ 'clubId': string;
8745
+ /**
8746
+ *
8747
+ * @type {string}
8748
+ * @memberof MigrateUserRequest
8749
+ */
8750
+ 'city'?: string;
8751
+ /**
8752
+ *
8753
+ * @type {string}
8754
+ * @memberof MigrateUserRequest
8755
+ */
8756
+ 'postalCode'?: string;
8757
+ /**
8758
+ *
8759
+ * @type {string}
8760
+ * @memberof MigrateUserRequest
8761
+ */
8762
+ 'adress'?: string;
8763
+ /**
8764
+ *
8765
+ * @type {string}
8766
+ * @memberof MigrateUserRequest
8767
+ */
8768
+ 'gender'?: string;
8769
+ /**
8770
+ *
8771
+ * @type {string}
8772
+ * @memberof MigrateUserRequest
8773
+ */
8774
+ 'phone'?: string;
8775
+ /**
8776
+ *
8777
+ * @type {string}
8778
+ * @memberof MigrateUserRequest
8779
+ */
8780
+ 'email': string;
8781
+ /**
8782
+ *
8783
+ * @type {string}
8784
+ * @memberof MigrateUserRequest
8785
+ */
8786
+ 'lastName': string;
8787
+ /**
8788
+ *
8789
+ * @type {string}
8790
+ * @memberof MigrateUserRequest
8791
+ */
8792
+ 'firstName': string;
8793
+ }
8554
8794
  /**
8555
8795
  *
8556
8796
  * @export
@@ -20318,6 +20558,39 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
20318
20558
 
20319
20559
 
20320
20560
 
20561
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20562
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20563
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20564
+
20565
+ return {
20566
+ url: toPathString(localVarUrlObj),
20567
+ options: localVarRequestOptions,
20568
+ };
20569
+ },
20570
+ /**
20571
+ * Liste des nouveaux abonnés (30 derniers jours)
20572
+ * @param {*} [options] Override http request option.
20573
+ * @throws {RequiredError}
20574
+ */
20575
+ getNewSubscribersList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20576
+ const localVarPath = `/api/club-analytics/subscribers/new/list`;
20577
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20578
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20579
+ let baseOptions;
20580
+ if (configuration) {
20581
+ baseOptions = configuration.baseOptions;
20582
+ }
20583
+
20584
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20585
+ const localVarHeaderParameter = {} as any;
20586
+ const localVarQueryParameter = {} as any;
20587
+
20588
+ // authentication bearerAuth required
20589
+ // http bearer authentication required
20590
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20591
+
20592
+
20593
+
20321
20594
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20322
20595
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20323
20596
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20793,6 +21066,17 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
20793
21066
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersCount']?.[localVarOperationServerIndex]?.url;
20794
21067
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20795
21068
  },
21069
+ /**
21070
+ * Liste des nouveaux abonnés (30 derniers jours)
21071
+ * @param {*} [options] Override http request option.
21072
+ * @throws {RequiredError}
21073
+ */
21074
+ async getNewSubscribersList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubNewSubscribersListResponse>> {
21075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNewSubscribersList(options);
21076
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21077
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersList']?.[localVarOperationServerIndex]?.url;
21078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21079
+ },
20796
21080
  /**
20797
21081
  * Taux de no-show global ou sur une période
20798
21082
  * @param {string} [startDate]
@@ -21025,6 +21309,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
21025
21309
  getNewSubscribersCount(requestParameters: ClubAnalyticsStaffApiGetNewSubscribersCountRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubNewSubscribersResponse> {
21026
21310
  return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
21027
21311
  },
21312
+ /**
21313
+ * Liste des nouveaux abonnés (30 derniers jours)
21314
+ * @param {*} [options] Override http request option.
21315
+ * @throws {RequiredError}
21316
+ */
21317
+ getNewSubscribersList(options?: RawAxiosRequestConfig): AxiosPromise<ClubNewSubscribersListResponse> {
21318
+ return localVarFp.getNewSubscribersList(options).then((request) => request(axios, basePath));
21319
+ },
21028
21320
  /**
21029
21321
  * Taux de no-show global ou sur une période
21030
21322
  * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
@@ -21560,6 +21852,16 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
21560
21852
  return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
21561
21853
  }
21562
21854
 
21855
+ /**
21856
+ * Liste des nouveaux abonnés (30 derniers jours)
21857
+ * @param {*} [options] Override http request option.
21858
+ * @throws {RequiredError}
21859
+ * @memberof ClubAnalyticsStaffApi
21860
+ */
21861
+ public getNewSubscribersList(options?: RawAxiosRequestConfig) {
21862
+ return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersList(options).then((request) => request(this.axios, this.basePath));
21863
+ }
21864
+
21563
21865
  /**
21564
21866
  * Taux de no-show global ou sur une période
21565
21867
  * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
@@ -35932,6 +36234,76 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
35932
36234
  options: localVarRequestOptions,
35933
36235
  };
35934
36236
  },
36237
+ /**
36238
+ * Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
36239
+ * @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
36240
+ * @param {*} [options] Override http request option.
36241
+ * @throws {RequiredError}
36242
+ */
36243
+ migrateSubscription: async (migrateSubscriptionRequest: MigrateSubscriptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36244
+ // verify required parameter 'migrateSubscriptionRequest' is not null or undefined
36245
+ assertParamExists('migrateSubscription', 'migrateSubscriptionRequest', migrateSubscriptionRequest)
36246
+ const localVarPath = `/api/users/migrate-subscriptions`;
36247
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36248
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36249
+ let baseOptions;
36250
+ if (configuration) {
36251
+ baseOptions = configuration.baseOptions;
36252
+ }
36253
+
36254
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
36255
+ const localVarHeaderParameter = {} as any;
36256
+ const localVarQueryParameter = {} as any;
36257
+
36258
+
36259
+
36260
+ localVarHeaderParameter['Content-Type'] = 'application/json';
36261
+
36262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36264
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36265
+ localVarRequestOptions.data = serializeDataIfNeeded(migrateSubscriptionRequest, localVarRequestOptions, configuration)
36266
+
36267
+ return {
36268
+ url: toPathString(localVarUrlObj),
36269
+ options: localVarRequestOptions,
36270
+ };
36271
+ },
36272
+ /**
36273
+ * Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
36274
+ * @param {MigrateUserRequest} migrateUserRequest
36275
+ * @param {*} [options] Override http request option.
36276
+ * @throws {RequiredError}
36277
+ */
36278
+ migrateUser: async (migrateUserRequest: MigrateUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36279
+ // verify required parameter 'migrateUserRequest' is not null or undefined
36280
+ assertParamExists('migrateUser', 'migrateUserRequest', migrateUserRequest)
36281
+ const localVarPath = `/api/users/migrate`;
36282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36284
+ let baseOptions;
36285
+ if (configuration) {
36286
+ baseOptions = configuration.baseOptions;
36287
+ }
36288
+
36289
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
36290
+ const localVarHeaderParameter = {} as any;
36291
+ const localVarQueryParameter = {} as any;
36292
+
36293
+
36294
+
36295
+ localVarHeaderParameter['Content-Type'] = 'application/json';
36296
+
36297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36299
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36300
+ localVarRequestOptions.data = serializeDataIfNeeded(migrateUserRequest, localVarRequestOptions, configuration)
36301
+
36302
+ return {
36303
+ url: toPathString(localVarUrlObj),
36304
+ options: localVarRequestOptions,
36305
+ };
36306
+ },
35935
36307
  /**
35936
36308
  *
35937
36309
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -36995,6 +37367,30 @@ export const UsersApiFp = function(configuration?: Configuration) {
36995
37367
  const localVarOperationServerBasePath = operationServerMap['UsersApi.markNotificationsRead']?.[localVarOperationServerIndex]?.url;
36996
37368
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36997
37369
  },
37370
+ /**
37371
+ * Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
37372
+ * @param {MigrateSubscriptionRequest} migrateSubscriptionRequest
37373
+ * @param {*} [options] Override http request option.
37374
+ * @throws {RequiredError}
37375
+ */
37376
+ async migrateSubscription(migrateSubscriptionRequest: MigrateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MigrateSubscription200Response>> {
37377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.migrateSubscription(migrateSubscriptionRequest, options);
37378
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
37379
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.migrateSubscription']?.[localVarOperationServerIndex]?.url;
37380
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37381
+ },
37382
+ /**
37383
+ * Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
37384
+ * @param {MigrateUserRequest} migrateUserRequest
37385
+ * @param {*} [options] Override http request option.
37386
+ * @throws {RequiredError}
37387
+ */
37388
+ async migrateUser(migrateUserRequest: MigrateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MigrateUser200Response>> {
37389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.migrateUser(migrateUserRequest, options);
37390
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
37391
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.migrateUser']?.[localVarOperationServerIndex]?.url;
37392
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37393
+ },
36998
37394
  /**
36999
37395
  *
37000
37396
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -37470,6 +37866,24 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
37470
37866
  markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse> {
37471
37867
  return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
37472
37868
  },
37869
+ /**
37870
+ * Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
37871
+ * @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
37872
+ * @param {*} [options] Override http request option.
37873
+ * @throws {RequiredError}
37874
+ */
37875
+ migrateSubscription(requestParameters: UsersApiMigrateSubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<MigrateSubscription200Response> {
37876
+ return localVarFp.migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(axios, basePath));
37877
+ },
37878
+ /**
37879
+ * Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
37880
+ * @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
37881
+ * @param {*} [options] Override http request option.
37882
+ * @throws {RequiredError}
37883
+ */
37884
+ migrateUser(requestParameters: UsersApiMigrateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MigrateUser200Response> {
37885
+ return localVarFp.migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(axios, basePath));
37886
+ },
37473
37887
  /**
37474
37888
  *
37475
37889
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -38063,6 +38477,34 @@ export interface UsersApiMarkNotificationsReadRequest {
38063
38477
  readonly markNotificationsReadRequest: MarkNotificationsReadRequest
38064
38478
  }
38065
38479
 
38480
+ /**
38481
+ * Request parameters for migrateSubscription operation in UsersApi.
38482
+ * @export
38483
+ * @interface UsersApiMigrateSubscriptionRequest
38484
+ */
38485
+ export interface UsersApiMigrateSubscriptionRequest {
38486
+ /**
38487
+ *
38488
+ * @type {MigrateSubscriptionRequest}
38489
+ * @memberof UsersApiMigrateSubscription
38490
+ */
38491
+ readonly migrateSubscriptionRequest: MigrateSubscriptionRequest
38492
+ }
38493
+
38494
+ /**
38495
+ * Request parameters for migrateUser operation in UsersApi.
38496
+ * @export
38497
+ * @interface UsersApiMigrateUserRequest
38498
+ */
38499
+ export interface UsersApiMigrateUserRequest {
38500
+ /**
38501
+ *
38502
+ * @type {MigrateUserRequest}
38503
+ * @memberof UsersApiMigrateUser
38504
+ */
38505
+ readonly migrateUserRequest: MigrateUserRequest
38506
+ }
38507
+
38066
38508
  /**
38067
38509
  * Request parameters for refreshToken operation in UsersApi.
38068
38510
  * @export
@@ -38632,6 +39074,28 @@ export class UsersApi extends BaseAPI {
38632
39074
  return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
38633
39075
  }
38634
39076
 
39077
+ /**
39078
+ * Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
39079
+ * @param {UsersApiMigrateSubscriptionRequest} requestParameters Request parameters.
39080
+ * @param {*} [options] Override http request option.
39081
+ * @throws {RequiredError}
39082
+ * @memberof UsersApi
39083
+ */
39084
+ public migrateSubscription(requestParameters: UsersApiMigrateSubscriptionRequest, options?: RawAxiosRequestConfig) {
39085
+ return UsersApiFp(this.configuration).migrateSubscription(requestParameters.migrateSubscriptionRequest, options).then((request) => request(this.axios, this.basePath));
39086
+ }
39087
+
39088
+ /**
39089
+ * Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
39090
+ * @param {UsersApiMigrateUserRequest} requestParameters Request parameters.
39091
+ * @param {*} [options] Override http request option.
39092
+ * @throws {RequiredError}
39093
+ * @memberof UsersApi
39094
+ */
39095
+ public migrateUser(requestParameters: UsersApiMigrateUserRequest, options?: RawAxiosRequestConfig) {
39096
+ return UsersApiFp(this.configuration).migrateUser(requestParameters.migrateUserRequest, options).then((request) => request(this.axios, this.basePath));
39097
+ }
39098
+
38635
39099
  /**
38636
39100
  *
38637
39101
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.