@tennac-booking/sdk 1.0.213 → 1.0.214
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 +10 -2
- package/README.md +15 -5
- package/api.ts +581 -71
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +474 -67
- package/dist/api.js +177 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +474 -67
- package/dist/esm/api.js +172 -12
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsUserApi.md +6 -6
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/MarkNotificationsReadResponse.md +20 -0
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationParticipantPreview.md +22 -0
- package/docs/NotificationPreview.md +58 -0
- package/docs/NotificationResponse.md +36 -0
- package/docs/NotificationType.md +26 -0
- package/docs/OpenBookingPriceBody.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UsersApi.md +110 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.214
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,11 @@ 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.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = void 0;
|
|
25
|
+
exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.QuickReservationCourtType = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.NotificationType = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.EventBookingDetailSummaryUserParticipationStatusEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.CourtEnvironment = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingSummaryUserParticipationStatusEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = 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 = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.WaitListEntryWithPlayerTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = void 0;
|
|
27
|
+
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.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = 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 = void 0;
|
|
28
|
+
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 = 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.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -252,6 +252,23 @@ exports.InvoiceStatusSETUPPENDING = {
|
|
|
252
252
|
exports.InvoiceStatusSETUPSUCCESS = {
|
|
253
253
|
SetupSuccess: 'setup_success'
|
|
254
254
|
};
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @export
|
|
258
|
+
* @enum {string}
|
|
259
|
+
*/
|
|
260
|
+
exports.NotificationType = {
|
|
261
|
+
BookingCreated: 'booking_created',
|
|
262
|
+
BookingSetupRequired: 'booking_setup_required',
|
|
263
|
+
BookingCancelled: 'booking_cancelled',
|
|
264
|
+
BookingReminder: 'booking_reminder',
|
|
265
|
+
EventRegistrationConfirmed: 'event_registration_confirmed',
|
|
266
|
+
EventReminder: 'event_reminder',
|
|
267
|
+
OpenBookingJoined: 'open_booking_joined',
|
|
268
|
+
OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
|
|
269
|
+
WaitlistSpotAvailable: 'waitlist_spot_available',
|
|
270
|
+
WaitlistConfirmed: 'waitlist_confirmed'
|
|
271
|
+
};
|
|
255
272
|
exports.PartialPublicAccessSettingsPaymentModeEnum = {
|
|
256
273
|
Free: 'free',
|
|
257
274
|
AccessFee: 'access_fee',
|
|
@@ -2243,13 +2260,13 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2243
2260
|
}),
|
|
2244
2261
|
/**
|
|
2245
2262
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2246
|
-
* @param {
|
|
2263
|
+
* @param {OpenBookingPriceBody} openBookingPriceBody
|
|
2247
2264
|
* @param {*} [options] Override http request option.
|
|
2248
2265
|
* @throws {RequiredError}
|
|
2249
2266
|
*/
|
|
2250
|
-
getOpenBookingPrice: (
|
|
2251
|
-
// verify required parameter '
|
|
2252
|
-
(0, common_1.assertParamExists)('getOpenBookingPrice', '
|
|
2267
|
+
getOpenBookingPrice: (openBookingPriceBody_1, ...args_1) => __awaiter(this, [openBookingPriceBody_1, ...args_1], void 0, function* (openBookingPriceBody, options = {}) {
|
|
2268
|
+
// verify required parameter 'openBookingPriceBody' is not null or undefined
|
|
2269
|
+
(0, common_1.assertParamExists)('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody);
|
|
2253
2270
|
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2254
2271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2255
2272
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2267,7 +2284,7 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2267
2284
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2268
2285
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2269
2286
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2270
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2287
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(openBookingPriceBody, localVarRequestOptions, configuration);
|
|
2271
2288
|
return {
|
|
2272
2289
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2273
2290
|
options: localVarRequestOptions,
|
|
@@ -2366,14 +2383,14 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2366
2383
|
},
|
|
2367
2384
|
/**
|
|
2368
2385
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2369
|
-
* @param {
|
|
2386
|
+
* @param {OpenBookingPriceBody} openBookingPriceBody
|
|
2370
2387
|
* @param {*} [options] Override http request option.
|
|
2371
2388
|
* @throws {RequiredError}
|
|
2372
2389
|
*/
|
|
2373
|
-
getOpenBookingPrice(
|
|
2390
|
+
getOpenBookingPrice(openBookingPriceBody, options) {
|
|
2374
2391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2375
2392
|
var _a, _b, _c;
|
|
2376
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(
|
|
2393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
|
|
2377
2394
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2378
2395
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2379
2396
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2439,7 +2456,7 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2439
2456
|
* @throws {RequiredError}
|
|
2440
2457
|
*/
|
|
2441
2458
|
getOpenBookingPrice(requestParameters, options) {
|
|
2442
|
-
return localVarFp.getOpenBookingPrice(requestParameters.
|
|
2459
|
+
return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
|
|
2443
2460
|
},
|
|
2444
2461
|
/**
|
|
2445
2462
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -2498,7 +2515,7 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2498
2515
|
* @memberof BookingsUserApi
|
|
2499
2516
|
*/
|
|
2500
2517
|
getOpenBookingPrice(requestParameters, options) {
|
|
2501
|
-
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.
|
|
2518
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
2502
2519
|
}
|
|
2503
2520
|
/**
|
|
2504
2521
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -14422,6 +14439,47 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14422
14439
|
options: localVarRequestOptions,
|
|
14423
14440
|
};
|
|
14424
14441
|
}),
|
|
14442
|
+
/**
|
|
14443
|
+
*
|
|
14444
|
+
* @param {number} [limit]
|
|
14445
|
+
* @param {number} [skip]
|
|
14446
|
+
* @param {any} [includeRead]
|
|
14447
|
+
* @param {*} [options] Override http request option.
|
|
14448
|
+
* @throws {RequiredError}
|
|
14449
|
+
*/
|
|
14450
|
+
getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
|
|
14451
|
+
const localVarPath = `/api/users/me/notifications`;
|
|
14452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14453
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14454
|
+
let baseOptions;
|
|
14455
|
+
if (configuration) {
|
|
14456
|
+
baseOptions = configuration.baseOptions;
|
|
14457
|
+
}
|
|
14458
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14459
|
+
const localVarHeaderParameter = {};
|
|
14460
|
+
const localVarQueryParameter = {};
|
|
14461
|
+
// authentication bearerAuth required
|
|
14462
|
+
// http bearer authentication required
|
|
14463
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14464
|
+
if (limit !== undefined) {
|
|
14465
|
+
localVarQueryParameter['limit'] = limit;
|
|
14466
|
+
}
|
|
14467
|
+
if (skip !== undefined) {
|
|
14468
|
+
localVarQueryParameter['skip'] = skip;
|
|
14469
|
+
}
|
|
14470
|
+
if (includeRead !== undefined) {
|
|
14471
|
+
for (const [key, value] of Object.entries(includeRead)) {
|
|
14472
|
+
localVarQueryParameter[key] = value;
|
|
14473
|
+
}
|
|
14474
|
+
}
|
|
14475
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14477
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14478
|
+
return {
|
|
14479
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14480
|
+
options: localVarRequestOptions,
|
|
14481
|
+
};
|
|
14482
|
+
}),
|
|
14425
14483
|
/**
|
|
14426
14484
|
*
|
|
14427
14485
|
* @param {string} id
|
|
@@ -14609,6 +14667,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14609
14667
|
options: localVarRequestOptions,
|
|
14610
14668
|
};
|
|
14611
14669
|
}),
|
|
14670
|
+
/**
|
|
14671
|
+
*
|
|
14672
|
+
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
14673
|
+
* @param {*} [options] Override http request option.
|
|
14674
|
+
* @throws {RequiredError}
|
|
14675
|
+
*/
|
|
14676
|
+
markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
|
|
14677
|
+
// verify required parameter 'markNotificationsReadRequest' is not null or undefined
|
|
14678
|
+
(0, common_1.assertParamExists)('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
|
|
14679
|
+
const localVarPath = `/api/users/me/notifications/read`;
|
|
14680
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14681
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14682
|
+
let baseOptions;
|
|
14683
|
+
if (configuration) {
|
|
14684
|
+
baseOptions = configuration.baseOptions;
|
|
14685
|
+
}
|
|
14686
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14687
|
+
const localVarHeaderParameter = {};
|
|
14688
|
+
const localVarQueryParameter = {};
|
|
14689
|
+
// authentication bearerAuth required
|
|
14690
|
+
// http bearer authentication required
|
|
14691
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14692
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14693
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14695
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14696
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markNotificationsReadRequest, localVarRequestOptions, configuration);
|
|
14697
|
+
return {
|
|
14698
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14699
|
+
options: localVarRequestOptions,
|
|
14700
|
+
};
|
|
14701
|
+
}),
|
|
14612
14702
|
/**
|
|
14613
14703
|
*
|
|
14614
14704
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14919,7 +15009,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14919
15009
|
searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
|
|
14920
15010
|
// verify required parameter 'q' is not null or undefined
|
|
14921
15011
|
(0, common_1.assertParamExists)('searchPartner', 'q', q);
|
|
14922
|
-
const localVarPath = `/api/users/
|
|
15012
|
+
const localVarPath = `/api/users/searchPartner`;
|
|
14923
15013
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14924
15014
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14925
15015
|
let baseOptions;
|
|
@@ -15511,6 +15601,23 @@ const UsersApiFp = function (configuration) {
|
|
|
15511
15601
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15512
15602
|
});
|
|
15513
15603
|
},
|
|
15604
|
+
/**
|
|
15605
|
+
*
|
|
15606
|
+
* @param {number} [limit]
|
|
15607
|
+
* @param {number} [skip]
|
|
15608
|
+
* @param {any} [includeRead]
|
|
15609
|
+
* @param {*} [options] Override http request option.
|
|
15610
|
+
* @throws {RequiredError}
|
|
15611
|
+
*/
|
|
15612
|
+
getUserNotifications(limit, skip, includeRead, options) {
|
|
15613
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15614
|
+
var _a, _b, _c;
|
|
15615
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
|
|
15616
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15617
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15618
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15619
|
+
});
|
|
15620
|
+
},
|
|
15514
15621
|
/**
|
|
15515
15622
|
*
|
|
15516
15623
|
* @param {string} id
|
|
@@ -15595,6 +15702,21 @@ const UsersApiFp = function (configuration) {
|
|
|
15595
15702
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15596
15703
|
});
|
|
15597
15704
|
},
|
|
15705
|
+
/**
|
|
15706
|
+
*
|
|
15707
|
+
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
15708
|
+
* @param {*} [options] Override http request option.
|
|
15709
|
+
* @throws {RequiredError}
|
|
15710
|
+
*/
|
|
15711
|
+
markNotificationsRead(markNotificationsReadRequest, options) {
|
|
15712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15713
|
+
var _a, _b, _c;
|
|
15714
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
|
|
15715
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15716
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15717
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15718
|
+
});
|
|
15719
|
+
},
|
|
15598
15720
|
/**
|
|
15599
15721
|
*
|
|
15600
15722
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -16064,6 +16186,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16064
16186
|
getUserEvents(requestParameters = {}, options) {
|
|
16065
16187
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
16066
16188
|
},
|
|
16189
|
+
/**
|
|
16190
|
+
*
|
|
16191
|
+
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16192
|
+
* @param {*} [options] Override http request option.
|
|
16193
|
+
* @throws {RequiredError}
|
|
16194
|
+
*/
|
|
16195
|
+
getUserNotifications(requestParameters = {}, options) {
|
|
16196
|
+
return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
|
|
16197
|
+
},
|
|
16067
16198
|
/**
|
|
16068
16199
|
*
|
|
16069
16200
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16109,6 +16240,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16109
16240
|
loginClubMember(requestParameters, options) {
|
|
16110
16241
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
16111
16242
|
},
|
|
16243
|
+
/**
|
|
16244
|
+
*
|
|
16245
|
+
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16246
|
+
* @param {*} [options] Override http request option.
|
|
16247
|
+
* @throws {RequiredError}
|
|
16248
|
+
*/
|
|
16249
|
+
markNotificationsRead(requestParameters, options) {
|
|
16250
|
+
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
16251
|
+
},
|
|
16112
16252
|
/**
|
|
16113
16253
|
*
|
|
16114
16254
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16481,6 +16621,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16481
16621
|
getUserEvents(requestParameters = {}, options) {
|
|
16482
16622
|
return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
16483
16623
|
}
|
|
16624
|
+
/**
|
|
16625
|
+
*
|
|
16626
|
+
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16627
|
+
* @param {*} [options] Override http request option.
|
|
16628
|
+
* @throws {RequiredError}
|
|
16629
|
+
* @memberof UsersApi
|
|
16630
|
+
*/
|
|
16631
|
+
getUserNotifications(requestParameters = {}, options) {
|
|
16632
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
|
|
16633
|
+
}
|
|
16484
16634
|
/**
|
|
16485
16635
|
*
|
|
16486
16636
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16531,6 +16681,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
16531
16681
|
loginClubMember(requestParameters, options) {
|
|
16532
16682
|
return (0, exports.UsersApiFp)(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
16533
16683
|
}
|
|
16684
|
+
/**
|
|
16685
|
+
*
|
|
16686
|
+
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16687
|
+
* @param {*} [options] Override http request option.
|
|
16688
|
+
* @throws {RequiredError}
|
|
16689
|
+
* @memberof UsersApi
|
|
16690
|
+
*/
|
|
16691
|
+
markNotificationsRead(requestParameters, options) {
|
|
16692
|
+
return (0, exports.UsersApiFp)(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16693
|
+
}
|
|
16534
16694
|
/**
|
|
16535
16695
|
*
|
|
16536
16696
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED