@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/.openapi-generator/FILES +4 -0
- package/README.md +4 -0
- package/api.ts +491 -7
- package/dist/api.d.ts +363 -4
- package/dist/api.js +207 -11
- package/dist/esm/api.d.ts +363 -4
- package/dist/esm/api.js +199 -7
- package/docs/BookingsPerDayItem.md +8 -0
- package/docs/ClubAnalyticsStaffApi.md +12 -2
- package/docs/ClubCustomerSettingsResponse.md +38 -0
- package/docs/ClubCustomerStaffApi.md +113 -0
- package/docs/ClubNewBookingsResponse.md +8 -0
- package/docs/ClubNewSubscribersResponse.md +8 -0
- package/docs/CreateEventRequest.md +2 -0
- package/docs/EventResponse.md +2 -0
- package/docs/MonthlyTurnoverResponse.md +8 -0
- package/docs/RetentionRateResponse.md +8 -0
- package/docs/TrendDirection.md +12 -0
- package/docs/UpdateEventRequest.md +2 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = void 0;
|
|
25
|
+
exports.WeekdayKey = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -311,6 +311,16 @@ exports.SurfaceType = {
|
|
|
311
311
|
Carpet: 'carpet',
|
|
312
312
|
Wooden: 'wooden'
|
|
313
313
|
};
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @export
|
|
317
|
+
* @enum {string}
|
|
318
|
+
*/
|
|
319
|
+
exports.TrendDirection = {
|
|
320
|
+
Up: 'up',
|
|
321
|
+
Down: 'down',
|
|
322
|
+
Steady: 'steady'
|
|
323
|
+
};
|
|
314
324
|
exports.UpdateClubMemberRequestRoleEnum = {
|
|
315
325
|
Admin: 'admin',
|
|
316
326
|
Manager: 'manager',
|
|
@@ -2628,10 +2638,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2628
2638
|
}),
|
|
2629
2639
|
/**
|
|
2630
2640
|
* Calcule le taux de fidélisation des joueurs
|
|
2641
|
+
* @param {string} [startDate]
|
|
2642
|
+
* @param {string} [endDate]
|
|
2631
2643
|
* @param {*} [options] Override http request option.
|
|
2632
2644
|
* @throws {RequiredError}
|
|
2633
2645
|
*/
|
|
2634
|
-
getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2646
|
+
getRetentionRate: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2635
2647
|
const localVarPath = `/api/club-analytics/retention-rate`;
|
|
2636
2648
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2637
2649
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2645,6 +2657,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2645
2657
|
// authentication bearerAuth required
|
|
2646
2658
|
// http bearer authentication required
|
|
2647
2659
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2660
|
+
if (startDate !== undefined) {
|
|
2661
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
2662
|
+
}
|
|
2663
|
+
if (endDate !== undefined) {
|
|
2664
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
2665
|
+
}
|
|
2648
2666
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2649
2667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2650
2668
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3055,13 +3073,15 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
3055
3073
|
},
|
|
3056
3074
|
/**
|
|
3057
3075
|
* Calcule le taux de fidélisation des joueurs
|
|
3076
|
+
* @param {string} [startDate]
|
|
3077
|
+
* @param {string} [endDate]
|
|
3058
3078
|
* @param {*} [options] Override http request option.
|
|
3059
3079
|
* @throws {RequiredError}
|
|
3060
3080
|
*/
|
|
3061
|
-
getRetentionRate(options) {
|
|
3081
|
+
getRetentionRate(startDate, endDate, options) {
|
|
3062
3082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3063
3083
|
var _a, _b, _c;
|
|
3064
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
|
|
3084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(startDate, endDate, options);
|
|
3065
3085
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3066
3086
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3067
3087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3293,11 +3313,12 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
3293
3313
|
},
|
|
3294
3314
|
/**
|
|
3295
3315
|
* Calcule le taux de fidélisation des joueurs
|
|
3316
|
+
* @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
|
|
3296
3317
|
* @param {*} [options] Override http request option.
|
|
3297
3318
|
* @throws {RequiredError}
|
|
3298
3319
|
*/
|
|
3299
|
-
getRetentionRate(options) {
|
|
3300
|
-
return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
|
|
3320
|
+
getRetentionRate(requestParameters = {}, options) {
|
|
3321
|
+
return localVarFp.getRetentionRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
3301
3322
|
},
|
|
3302
3323
|
/**
|
|
3303
3324
|
* Récupère le chiffre d\'affaires par sport
|
|
@@ -3519,12 +3540,13 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3519
3540
|
}
|
|
3520
3541
|
/**
|
|
3521
3542
|
* Calcule le taux de fidélisation des joueurs
|
|
3543
|
+
* @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
|
|
3522
3544
|
* @param {*} [options] Override http request option.
|
|
3523
3545
|
* @throws {RequiredError}
|
|
3524
3546
|
* @memberof ClubAnalyticsStaffApi
|
|
3525
3547
|
*/
|
|
3526
|
-
getRetentionRate(options) {
|
|
3527
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
|
|
3548
|
+
getRetentionRate(requestParameters = {}, options) {
|
|
3549
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3528
3550
|
}
|
|
3529
3551
|
/**
|
|
3530
3552
|
* Récupère le chiffre d\'affaires par sport
|
|
@@ -3565,6 +3587,180 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3565
3587
|
}
|
|
3566
3588
|
}
|
|
3567
3589
|
exports.ClubAnalyticsStaffApi = ClubAnalyticsStaffApi;
|
|
3590
|
+
/**
|
|
3591
|
+
* ClubCustomerStaffApi - axios parameter creator
|
|
3592
|
+
* @export
|
|
3593
|
+
*/
|
|
3594
|
+
const ClubCustomerStaffApiAxiosParamCreator = function (configuration) {
|
|
3595
|
+
return {
|
|
3596
|
+
/**
|
|
3597
|
+
*
|
|
3598
|
+
* @param {string} userId
|
|
3599
|
+
* @param {*} [options] Override http request option.
|
|
3600
|
+
* @throws {RequiredError}
|
|
3601
|
+
*/
|
|
3602
|
+
getClubCustomerSettings: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
3603
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3604
|
+
(0, common_1.assertParamExists)('getClubCustomerSettings', 'userId', userId);
|
|
3605
|
+
const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
|
|
3606
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3607
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3608
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3609
|
+
let baseOptions;
|
|
3610
|
+
if (configuration) {
|
|
3611
|
+
baseOptions = configuration.baseOptions;
|
|
3612
|
+
}
|
|
3613
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3614
|
+
const localVarHeaderParameter = {};
|
|
3615
|
+
const localVarQueryParameter = {};
|
|
3616
|
+
// authentication bearerAuth required
|
|
3617
|
+
// http bearer authentication required
|
|
3618
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3619
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3620
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3621
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3622
|
+
return {
|
|
3623
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3624
|
+
options: localVarRequestOptions,
|
|
3625
|
+
};
|
|
3626
|
+
}),
|
|
3627
|
+
/**
|
|
3628
|
+
*
|
|
3629
|
+
* @param {string} userId
|
|
3630
|
+
* @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
*/
|
|
3634
|
+
updateClubCustomerSettings: (userId_1, clubCustomerSettingsResponse_1, ...args_1) => __awaiter(this, [userId_1, clubCustomerSettingsResponse_1, ...args_1], void 0, function* (userId, clubCustomerSettingsResponse, options = {}) {
|
|
3635
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3636
|
+
(0, common_1.assertParamExists)('updateClubCustomerSettings', 'userId', userId);
|
|
3637
|
+
// verify required parameter 'clubCustomerSettingsResponse' is not null or undefined
|
|
3638
|
+
(0, common_1.assertParamExists)('updateClubCustomerSettings', 'clubCustomerSettingsResponse', clubCustomerSettingsResponse);
|
|
3639
|
+
const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
|
|
3640
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3642
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3643
|
+
let baseOptions;
|
|
3644
|
+
if (configuration) {
|
|
3645
|
+
baseOptions = configuration.baseOptions;
|
|
3646
|
+
}
|
|
3647
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3648
|
+
const localVarHeaderParameter = {};
|
|
3649
|
+
const localVarQueryParameter = {};
|
|
3650
|
+
// authentication bearerAuth required
|
|
3651
|
+
// http bearer authentication required
|
|
3652
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3653
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3654
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3656
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3657
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubCustomerSettingsResponse, localVarRequestOptions, configuration);
|
|
3658
|
+
return {
|
|
3659
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3660
|
+
options: localVarRequestOptions,
|
|
3661
|
+
};
|
|
3662
|
+
}),
|
|
3663
|
+
};
|
|
3664
|
+
};
|
|
3665
|
+
exports.ClubCustomerStaffApiAxiosParamCreator = ClubCustomerStaffApiAxiosParamCreator;
|
|
3666
|
+
/**
|
|
3667
|
+
* ClubCustomerStaffApi - functional programming interface
|
|
3668
|
+
* @export
|
|
3669
|
+
*/
|
|
3670
|
+
const ClubCustomerStaffApiFp = function (configuration) {
|
|
3671
|
+
const localVarAxiosParamCreator = (0, exports.ClubCustomerStaffApiAxiosParamCreator)(configuration);
|
|
3672
|
+
return {
|
|
3673
|
+
/**
|
|
3674
|
+
*
|
|
3675
|
+
* @param {string} userId
|
|
3676
|
+
* @param {*} [options] Override http request option.
|
|
3677
|
+
* @throws {RequiredError}
|
|
3678
|
+
*/
|
|
3679
|
+
getClubCustomerSettings(userId, options) {
|
|
3680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3681
|
+
var _a, _b, _c;
|
|
3682
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubCustomerSettings(userId, options);
|
|
3683
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3684
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCustomerStaffApi.getClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3685
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3686
|
+
});
|
|
3687
|
+
},
|
|
3688
|
+
/**
|
|
3689
|
+
*
|
|
3690
|
+
* @param {string} userId
|
|
3691
|
+
* @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
|
|
3692
|
+
* @param {*} [options] Override http request option.
|
|
3693
|
+
* @throws {RequiredError}
|
|
3694
|
+
*/
|
|
3695
|
+
updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options) {
|
|
3696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3697
|
+
var _a, _b, _c;
|
|
3698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options);
|
|
3699
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3700
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCustomerStaffApi.updateClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3701
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3702
|
+
});
|
|
3703
|
+
},
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
exports.ClubCustomerStaffApiFp = ClubCustomerStaffApiFp;
|
|
3707
|
+
/**
|
|
3708
|
+
* ClubCustomerStaffApi - factory interface
|
|
3709
|
+
* @export
|
|
3710
|
+
*/
|
|
3711
|
+
const ClubCustomerStaffApiFactory = function (configuration, basePath, axios) {
|
|
3712
|
+
const localVarFp = (0, exports.ClubCustomerStaffApiFp)(configuration);
|
|
3713
|
+
return {
|
|
3714
|
+
/**
|
|
3715
|
+
*
|
|
3716
|
+
* @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
*/
|
|
3720
|
+
getClubCustomerSettings(requestParameters, options) {
|
|
3721
|
+
return localVarFp.getClubCustomerSettings(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
3722
|
+
},
|
|
3723
|
+
/**
|
|
3724
|
+
*
|
|
3725
|
+
* @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3726
|
+
* @param {*} [options] Override http request option.
|
|
3727
|
+
* @throws {RequiredError}
|
|
3728
|
+
*/
|
|
3729
|
+
updateClubCustomerSettings(requestParameters, options) {
|
|
3730
|
+
return localVarFp.updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3731
|
+
},
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
exports.ClubCustomerStaffApiFactory = ClubCustomerStaffApiFactory;
|
|
3735
|
+
/**
|
|
3736
|
+
* ClubCustomerStaffApi - object-oriented interface
|
|
3737
|
+
* @export
|
|
3738
|
+
* @class ClubCustomerStaffApi
|
|
3739
|
+
* @extends {BaseAPI}
|
|
3740
|
+
*/
|
|
3741
|
+
class ClubCustomerStaffApi extends base_1.BaseAPI {
|
|
3742
|
+
/**
|
|
3743
|
+
*
|
|
3744
|
+
* @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3745
|
+
* @param {*} [options] Override http request option.
|
|
3746
|
+
* @throws {RequiredError}
|
|
3747
|
+
* @memberof ClubCustomerStaffApi
|
|
3748
|
+
*/
|
|
3749
|
+
getClubCustomerSettings(requestParameters, options) {
|
|
3750
|
+
return (0, exports.ClubCustomerStaffApiFp)(this.configuration).getClubCustomerSettings(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
3751
|
+
}
|
|
3752
|
+
/**
|
|
3753
|
+
*
|
|
3754
|
+
* @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
* @memberof ClubCustomerStaffApi
|
|
3758
|
+
*/
|
|
3759
|
+
updateClubCustomerSettings(requestParameters, options) {
|
|
3760
|
+
return (0, exports.ClubCustomerStaffApiFp)(this.configuration).updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
exports.ClubCustomerStaffApi = ClubCustomerStaffApi;
|
|
3568
3764
|
/**
|
|
3569
3765
|
* ClubRolesManagerApi - axios parameter creator
|
|
3570
3766
|
* @export
|