@tennac-booking/sdk 1.0.142 → 1.0.144

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/dist/esm/api.d.ts CHANGED
@@ -1232,6 +1232,30 @@ export interface BookingSummaryClubAddress {
1232
1232
  * @interface BookingsPerDayItem
1233
1233
  */
1234
1234
  export interface BookingsPerDayItem {
1235
+ /**
1236
+ * Valeur mesurée sur la période actuelle
1237
+ * @type {number}
1238
+ * @memberof BookingsPerDayItem
1239
+ */
1240
+ 'value': number;
1241
+ /**
1242
+ * Valeur de référence calculée avec la comparaison Same Weekday
1243
+ * @type {number}
1244
+ * @memberof BookingsPerDayItem
1245
+ */
1246
+ 'reference': number;
1247
+ /**
1248
+ * Différence entre la valeur actuelle et la référence
1249
+ * @type {number}
1250
+ * @memberof BookingsPerDayItem
1251
+ */
1252
+ 'delta': number;
1253
+ /**
1254
+ *
1255
+ * @type {TrendDirection}
1256
+ * @memberof BookingsPerDayItem
1257
+ */
1258
+ 'trend': TrendDirection;
1235
1259
  /**
1236
1260
  * Jour au format YYYY-MM-DD
1237
1261
  * @type {string}
@@ -1889,6 +1913,73 @@ export interface ClubAccessSettingsResponse {
1889
1913
  */
1890
1914
  'paymentRequirements': PaymentRequirementsSettings | null;
1891
1915
  }
1916
+ /**
1917
+ *
1918
+ * @export
1919
+ * @interface ClubCustomerSettingsResponse
1920
+ */
1921
+ export interface ClubCustomerSettingsResponse {
1922
+ /**
1923
+ *
1924
+ * @type {string}
1925
+ * @memberof ClubCustomerSettingsResponse
1926
+ */
1927
+ 'userId': string;
1928
+ /**
1929
+ *
1930
+ * @type {string}
1931
+ * @memberof ClubCustomerSettingsResponse
1932
+ */
1933
+ 'clubId': string;
1934
+ /**
1935
+ *
1936
+ * @type {number}
1937
+ * @memberof ClubCustomerSettingsResponse
1938
+ */
1939
+ 'credits': number;
1940
+ /**
1941
+ *
1942
+ * @type {boolean}
1943
+ * @memberof ClubCustomerSettingsResponse
1944
+ */
1945
+ 'isBanned': boolean;
1946
+ /**
1947
+ *
1948
+ * @type {boolean}
1949
+ * @memberof ClubCustomerSettingsResponse
1950
+ */
1951
+ 'isIllimited': boolean;
1952
+ /**
1953
+ *
1954
+ * @type {boolean}
1955
+ * @memberof ClubCustomerSettingsResponse
1956
+ */
1957
+ 'isFree': boolean;
1958
+ /**
1959
+ *
1960
+ * @type {boolean}
1961
+ * @memberof ClubCustomerSettingsResponse
1962
+ */
1963
+ 'isNoShowForced': boolean;
1964
+ /**
1965
+ *
1966
+ * @type {boolean}
1967
+ * @memberof ClubCustomerSettingsResponse
1968
+ */
1969
+ 'paymentMethodSetupCompleted': boolean;
1970
+ /**
1971
+ *
1972
+ * @type {string}
1973
+ * @memberof ClubCustomerSettingsResponse
1974
+ */
1975
+ 'defaultPaymentMethodId': string | null;
1976
+ /**
1977
+ *
1978
+ * @type {Array<string>}
1979
+ * @memberof ClubCustomerSettingsResponse
1980
+ */
1981
+ 'subscriptions': Array<string>;
1982
+ }
1892
1983
  /**
1893
1984
  *
1894
1985
  * @export
@@ -2192,6 +2283,30 @@ export interface ClubMetadataResponseLocation {
2192
2283
  * @interface ClubNewBookingsResponse
2193
2284
  */
2194
2285
  export interface ClubNewBookingsResponse {
2286
+ /**
2287
+ * Valeur mesurée sur la période actuelle
2288
+ * @type {number}
2289
+ * @memberof ClubNewBookingsResponse
2290
+ */
2291
+ 'value': number;
2292
+ /**
2293
+ * Valeur de référence calculée avec la comparaison Same Weekday
2294
+ * @type {number}
2295
+ * @memberof ClubNewBookingsResponse
2296
+ */
2297
+ 'reference': number;
2298
+ /**
2299
+ * Différence entre la valeur actuelle et la référence
2300
+ * @type {number}
2301
+ * @memberof ClubNewBookingsResponse
2302
+ */
2303
+ 'delta': number;
2304
+ /**
2305
+ *
2306
+ * @type {TrendDirection}
2307
+ * @memberof ClubNewBookingsResponse
2308
+ */
2309
+ 'trend': TrendDirection;
2195
2310
  /**
2196
2311
  * Date de début incluse (format ISO)
2197
2312
  * @type {string}
@@ -2217,6 +2332,30 @@ export interface ClubNewBookingsResponse {
2217
2332
  * @interface ClubNewSubscribersResponse
2218
2333
  */
2219
2334
  export interface ClubNewSubscribersResponse {
2335
+ /**
2336
+ * Valeur mesurée sur la période actuelle
2337
+ * @type {number}
2338
+ * @memberof ClubNewSubscribersResponse
2339
+ */
2340
+ 'value': number;
2341
+ /**
2342
+ * Valeur de référence calculée avec la comparaison Same Weekday
2343
+ * @type {number}
2344
+ * @memberof ClubNewSubscribersResponse
2345
+ */
2346
+ 'reference': number;
2347
+ /**
2348
+ * Différence entre la valeur actuelle et la référence
2349
+ * @type {number}
2350
+ * @memberof ClubNewSubscribersResponse
2351
+ */
2352
+ 'delta': number;
2353
+ /**
2354
+ *
2355
+ * @type {TrendDirection}
2356
+ * @memberof ClubNewSubscribersResponse
2357
+ */
2358
+ 'trend': TrendDirection;
2220
2359
  /**
2221
2360
  * Date de début incluse (format ISO)
2222
2361
  * @type {string}
@@ -3915,6 +4054,12 @@ export interface CreateEventRequest {
3915
4054
  * @memberof CreateEventRequest
3916
4055
  */
3917
4056
  'sponsors'?: Array<EventSponsor>;
4057
+ /**
4058
+ *
4059
+ * @type {string}
4060
+ * @memberof CreateEventRequest
4061
+ */
4062
+ 'registrationOpeningDate': string;
3918
4063
  /**
3919
4064
  *
3920
4065
  * @type {string}
@@ -5006,6 +5151,12 @@ export interface EventResponse {
5006
5151
  * @memberof EventResponse
5007
5152
  */
5008
5153
  'sponsors'?: Array<EventSponsor>;
5154
+ /**
5155
+ *
5156
+ * @type {string}
5157
+ * @memberof EventResponse
5158
+ */
5159
+ 'registrationOpeningDate': string;
5009
5160
  /**
5010
5161
  *
5011
5162
  * @type {string}
@@ -6627,6 +6778,30 @@ export interface MonthlyBreakdown {
6627
6778
  * @interface MonthlyTurnoverResponse
6628
6779
  */
6629
6780
  export interface MonthlyTurnoverResponse {
6781
+ /**
6782
+ * Valeur mesurée sur la période actuelle
6783
+ * @type {number}
6784
+ * @memberof MonthlyTurnoverResponse
6785
+ */
6786
+ 'value': number;
6787
+ /**
6788
+ * Valeur de référence calculée avec la comparaison Same Weekday
6789
+ * @type {number}
6790
+ * @memberof MonthlyTurnoverResponse
6791
+ */
6792
+ 'reference': number;
6793
+ /**
6794
+ * Différence entre la valeur actuelle et la référence
6795
+ * @type {number}
6796
+ * @memberof MonthlyTurnoverResponse
6797
+ */
6798
+ 'delta': number;
6799
+ /**
6800
+ *
6801
+ * @type {TrendDirection}
6802
+ * @memberof MonthlyTurnoverResponse
6803
+ */
6804
+ 'trend': TrendDirection;
6630
6805
  /**
6631
6806
  * Année
6632
6807
  * @type {number}
@@ -8419,6 +8594,30 @@ export interface ResetPasswordRequest {
8419
8594
  * @interface RetentionRateResponse
8420
8595
  */
8421
8596
  export interface RetentionRateResponse {
8597
+ /**
8598
+ * Valeur mesurée sur la période actuelle
8599
+ * @type {number}
8600
+ * @memberof RetentionRateResponse
8601
+ */
8602
+ 'value': number;
8603
+ /**
8604
+ * Valeur de référence calculée avec la comparaison Same Weekday
8605
+ * @type {number}
8606
+ * @memberof RetentionRateResponse
8607
+ */
8608
+ 'reference': number;
8609
+ /**
8610
+ * Différence entre la valeur actuelle et la référence
8611
+ * @type {number}
8612
+ * @memberof RetentionRateResponse
8613
+ */
8614
+ 'delta': number;
8615
+ /**
8616
+ *
8617
+ * @type {TrendDirection}
8618
+ * @memberof RetentionRateResponse
8619
+ */
8620
+ 'trend': TrendDirection;
8422
8621
  /**
8423
8622
  * Pourcentage de joueurs fidèles (>= 2 réservations)
8424
8623
  * @type {number}
@@ -9675,6 +9874,17 @@ export interface TimeBounds {
9675
9874
  */
9676
9875
  'end': string;
9677
9876
  }
9877
+ /**
9878
+ *
9879
+ * @export
9880
+ * @enum {string}
9881
+ */
9882
+ export declare const TrendDirection: {
9883
+ readonly Up: "up";
9884
+ readonly Down: "down";
9885
+ readonly Steady: "steady";
9886
+ };
9887
+ export type TrendDirection = typeof TrendDirection[keyof typeof TrendDirection];
9678
9888
  /**
9679
9889
  *
9680
9890
  * @export
@@ -10222,6 +10432,12 @@ export interface UpdateEventRequest {
10222
10432
  * @memberof UpdateEventRequest
10223
10433
  */
10224
10434
  'levels'?: Array<string | null>;
10435
+ /**
10436
+ *
10437
+ * @type {string}
10438
+ * @memberof UpdateEventRequest
10439
+ */
10440
+ 'registrationOpeningDate'?: string;
10225
10441
  /**
10226
10442
  *
10227
10443
  * @type {Array<EventSponsor>}
@@ -12741,10 +12957,12 @@ export declare const ClubAnalyticsStaffApiAxiosParamCreator: (configuration?: Co
12741
12957
  getNumberOfClubUsers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12742
12958
  /**
12743
12959
  * Calcule le taux de fidélisation des joueurs
12960
+ * @param {string} [startDate]
12961
+ * @param {string} [endDate]
12744
12962
  * @param {*} [options] Override http request option.
12745
12963
  * @throws {RequiredError}
12746
12964
  */
12747
- getRetentionRate: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12965
+ getRetentionRate: (startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12748
12966
  /**
12749
12967
  * Récupère le chiffre d\'affaires par sport
12750
12968
  * @param {*} [options] Override http request option.
@@ -12910,10 +13128,12 @@ export declare const ClubAnalyticsStaffApiFp: (configuration?: Configuration) =>
12910
13128
  getNumberOfClubUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubUserCountResponse>>;
12911
13129
  /**
12912
13130
  * Calcule le taux de fidélisation des joueurs
13131
+ * @param {string} [startDate]
13132
+ * @param {string} [endDate]
12913
13133
  * @param {*} [options] Override http request option.
12914
13134
  * @throws {RequiredError}
12915
13135
  */
12916
- getRetentionRate(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetentionRateResponse>>;
13136
+ getRetentionRate(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetentionRateResponse>>;
12917
13137
  /**
12918
13138
  * Récupère le chiffre d\'affaires par sport
12919
13139
  * @param {*} [options] Override http request option.
@@ -13068,10 +13288,11 @@ export declare const ClubAnalyticsStaffApiFactory: (configuration?: Configuratio
13068
13288
  getNumberOfClubUsers(options?: RawAxiosRequestConfig): AxiosPromise<ClubUserCountResponse>;
13069
13289
  /**
13070
13290
  * Calcule le taux de fidélisation des joueurs
13291
+ * @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
13071
13292
  * @param {*} [options] Override http request option.
13072
13293
  * @throws {RequiredError}
13073
13294
  */
13074
- getRetentionRate(options?: RawAxiosRequestConfig): AxiosPromise<RetentionRateResponse>;
13295
+ getRetentionRate(requestParameters?: ClubAnalyticsStaffApiGetRetentionRateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RetentionRateResponse>;
13075
13296
  /**
13076
13297
  * Récupère le chiffre d\'affaires par sport
13077
13298
  * @param {*} [options] Override http request option.
@@ -13333,6 +13554,25 @@ export interface ClubAnalyticsStaffApiGetNoShowRateRequest {
13333
13554
  */
13334
13555
  readonly endDate?: string;
13335
13556
  }
13557
+ /**
13558
+ * Request parameters for getRetentionRate operation in ClubAnalyticsStaffApi.
13559
+ * @export
13560
+ * @interface ClubAnalyticsStaffApiGetRetentionRateRequest
13561
+ */
13562
+ export interface ClubAnalyticsStaffApiGetRetentionRateRequest {
13563
+ /**
13564
+ *
13565
+ * @type {string}
13566
+ * @memberof ClubAnalyticsStaffApiGetRetentionRate
13567
+ */
13568
+ readonly startDate?: string;
13569
+ /**
13570
+ *
13571
+ * @type {string}
13572
+ * @memberof ClubAnalyticsStaffApiGetRetentionRate
13573
+ */
13574
+ readonly endDate?: string;
13575
+ }
13336
13576
  /**
13337
13577
  * Request parameters for getYearlyTurnOver operation in ClubAnalyticsStaffApi.
13338
13578
  * @export
@@ -13494,11 +13734,12 @@ export declare class ClubAnalyticsStaffApi extends BaseAPI {
13494
13734
  getNumberOfClubUsers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubUserCountResponse, any, {}>>;
13495
13735
  /**
13496
13736
  * Calcule le taux de fidélisation des joueurs
13737
+ * @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
13497
13738
  * @param {*} [options] Override http request option.
13498
13739
  * @throws {RequiredError}
13499
13740
  * @memberof ClubAnalyticsStaffApi
13500
13741
  */
13501
- getRetentionRate(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetentionRateResponse, any, {}>>;
13742
+ getRetentionRate(requestParameters?: ClubAnalyticsStaffApiGetRetentionRateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetentionRateResponse, any, {}>>;
13502
13743
  /**
13503
13744
  * Récupère le chiffre d\'affaires par sport
13504
13745
  * @param {*} [options] Override http request option.
@@ -13529,6 +13770,124 @@ export declare class ClubAnalyticsStaffApi extends BaseAPI {
13529
13770
  */
13530
13771
  getYearlyTurnOver(requestParameters: ClubAnalyticsStaffApiGetYearlyTurnOverRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<YearlyTurnoverResponse, any, {}>>;
13531
13772
  }
13773
+ /**
13774
+ * ClubCustomerStaffApi - axios parameter creator
13775
+ * @export
13776
+ */
13777
+ export declare const ClubCustomerStaffApiAxiosParamCreator: (configuration?: Configuration) => {
13778
+ /**
13779
+ *
13780
+ * @param {string} userId
13781
+ * @param {*} [options] Override http request option.
13782
+ * @throws {RequiredError}
13783
+ */
13784
+ getClubCustomerSettings: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13785
+ /**
13786
+ *
13787
+ * @param {string} userId
13788
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
13789
+ * @param {*} [options] Override http request option.
13790
+ * @throws {RequiredError}
13791
+ */
13792
+ updateClubCustomerSettings: (userId: string, clubCustomerSettingsResponse: ClubCustomerSettingsResponse, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13793
+ };
13794
+ /**
13795
+ * ClubCustomerStaffApi - functional programming interface
13796
+ * @export
13797
+ */
13798
+ export declare const ClubCustomerStaffApiFp: (configuration?: Configuration) => {
13799
+ /**
13800
+ *
13801
+ * @param {string} userId
13802
+ * @param {*} [options] Override http request option.
13803
+ * @throws {RequiredError}
13804
+ */
13805
+ getClubCustomerSettings(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubCustomerSettingsResponse>>;
13806
+ /**
13807
+ *
13808
+ * @param {string} userId
13809
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
13810
+ * @param {*} [options] Override http request option.
13811
+ * @throws {RequiredError}
13812
+ */
13813
+ updateClubCustomerSettings(userId: string, clubCustomerSettingsResponse: ClubCustomerSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubCustomerSettingsResponse>>;
13814
+ };
13815
+ /**
13816
+ * ClubCustomerStaffApi - factory interface
13817
+ * @export
13818
+ */
13819
+ export declare const ClubCustomerStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13820
+ /**
13821
+ *
13822
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
13823
+ * @param {*} [options] Override http request option.
13824
+ * @throws {RequiredError}
13825
+ */
13826
+ getClubCustomerSettings(requestParameters: ClubCustomerStaffApiGetClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubCustomerSettingsResponse>;
13827
+ /**
13828
+ *
13829
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
13830
+ * @param {*} [options] Override http request option.
13831
+ * @throws {RequiredError}
13832
+ */
13833
+ updateClubCustomerSettings(requestParameters: ClubCustomerStaffApiUpdateClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubCustomerSettingsResponse>;
13834
+ };
13835
+ /**
13836
+ * Request parameters for getClubCustomerSettings operation in ClubCustomerStaffApi.
13837
+ * @export
13838
+ * @interface ClubCustomerStaffApiGetClubCustomerSettingsRequest
13839
+ */
13840
+ export interface ClubCustomerStaffApiGetClubCustomerSettingsRequest {
13841
+ /**
13842
+ *
13843
+ * @type {string}
13844
+ * @memberof ClubCustomerStaffApiGetClubCustomerSettings
13845
+ */
13846
+ readonly userId: string;
13847
+ }
13848
+ /**
13849
+ * Request parameters for updateClubCustomerSettings operation in ClubCustomerStaffApi.
13850
+ * @export
13851
+ * @interface ClubCustomerStaffApiUpdateClubCustomerSettingsRequest
13852
+ */
13853
+ export interface ClubCustomerStaffApiUpdateClubCustomerSettingsRequest {
13854
+ /**
13855
+ *
13856
+ * @type {string}
13857
+ * @memberof ClubCustomerStaffApiUpdateClubCustomerSettings
13858
+ */
13859
+ readonly userId: string;
13860
+ /**
13861
+ *
13862
+ * @type {ClubCustomerSettingsResponse}
13863
+ * @memberof ClubCustomerStaffApiUpdateClubCustomerSettings
13864
+ */
13865
+ readonly clubCustomerSettingsResponse: ClubCustomerSettingsResponse;
13866
+ }
13867
+ /**
13868
+ * ClubCustomerStaffApi - object-oriented interface
13869
+ * @export
13870
+ * @class ClubCustomerStaffApi
13871
+ * @extends {BaseAPI}
13872
+ */
13873
+ export declare class ClubCustomerStaffApi extends BaseAPI {
13874
+ /**
13875
+ *
13876
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
13877
+ * @param {*} [options] Override http request option.
13878
+ * @throws {RequiredError}
13879
+ * @memberof ClubCustomerStaffApi
13880
+ */
13881
+ getClubCustomerSettings(requestParameters: ClubCustomerStaffApiGetClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubCustomerSettingsResponse, any, {}>>;
13882
+ /**
13883
+ *
13884
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
13885
+ * @param {*} [options] Override http request option.
13886
+ * @throws {RequiredError}
13887
+ * @memberof ClubCustomerStaffApi
13888
+ */
13889
+ updateClubCustomerSettings(requestParameters: ClubCustomerStaffApiUpdateClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubCustomerSettingsResponse, any, {}>>;
13890
+ }
13532
13891
  /**
13533
13892
  * ClubRolesManagerApi - axios parameter creator
13534
13893
  * @export