@tennac-booking/sdk 1.0.232 → 1.0.234
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 +2 -0
- package/README.md +5 -2
- package/api.ts +168 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +113 -3
- package/dist/api.js +90 -7
- 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 +113 -3
- package/dist/esm/api.js +89 -6
- 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/EventsApi.md +59 -0
- package/docs/PublishEventResponse.md +2 -0
- package/docs/RespondToEventBookingInvitation200Response.md +24 -0
- package/docs/RespondToEventBookingInvitationRequest.md +20 -0
- package/docs/UsersApi.md +4 -1
- package/index.ts +1 -1
- package/package.json +1 -1
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.233
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = expor
|
|
|
26
26
|
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 = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = void 0;
|
|
27
27
|
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 = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = void 0;
|
|
28
28
|
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.PaymentsStaffApi = exports.PaymentsStaffApiFactory = exports.PaymentsStaffApiFp = exports.PaymentsStaffApiAxiosParamCreator = 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 = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = void 0;
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.GetUserBookingsTimeFilterEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -10186,6 +10186,42 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
10186
10186
|
options: localVarRequestOptions,
|
|
10187
10187
|
};
|
|
10188
10188
|
}),
|
|
10189
|
+
/**
|
|
10190
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10191
|
+
* @param {string} eventBookingId
|
|
10192
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
10193
|
+
* @param {*} [options] Override http request option.
|
|
10194
|
+
* @throws {RequiredError}
|
|
10195
|
+
*/
|
|
10196
|
+
respondToEventBookingInvitation: (eventBookingId_1, respondToEventBookingInvitationRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, respondToEventBookingInvitationRequest_1, ...args_1], void 0, function* (eventBookingId, respondToEventBookingInvitationRequest, options = {}) {
|
|
10197
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
10198
|
+
(0, common_1.assertParamExists)('respondToEventBookingInvitation', 'eventBookingId', eventBookingId);
|
|
10199
|
+
// verify required parameter 'respondToEventBookingInvitationRequest' is not null or undefined
|
|
10200
|
+
(0, common_1.assertParamExists)('respondToEventBookingInvitation', 'respondToEventBookingInvitationRequest', respondToEventBookingInvitationRequest);
|
|
10201
|
+
const localVarPath = `/api/events/{eventBookingId}/respond-invitation`
|
|
10202
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
10203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10205
|
+
let baseOptions;
|
|
10206
|
+
if (configuration) {
|
|
10207
|
+
baseOptions = configuration.baseOptions;
|
|
10208
|
+
}
|
|
10209
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10210
|
+
const localVarHeaderParameter = {};
|
|
10211
|
+
const localVarQueryParameter = {};
|
|
10212
|
+
// authentication bearerAuth required
|
|
10213
|
+
// http bearer authentication required
|
|
10214
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10215
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10216
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10217
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10218
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10219
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(respondToEventBookingInvitationRequest, localVarRequestOptions, configuration);
|
|
10220
|
+
return {
|
|
10221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10222
|
+
options: localVarRequestOptions,
|
|
10223
|
+
};
|
|
10224
|
+
}),
|
|
10189
10225
|
};
|
|
10190
10226
|
};
|
|
10191
10227
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
@@ -10403,6 +10439,22 @@ const EventsApiFp = function (configuration) {
|
|
|
10403
10439
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10404
10440
|
});
|
|
10405
10441
|
},
|
|
10442
|
+
/**
|
|
10443
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10444
|
+
* @param {string} eventBookingId
|
|
10445
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
10446
|
+
* @param {*} [options] Override http request option.
|
|
10447
|
+
* @throws {RequiredError}
|
|
10448
|
+
*/
|
|
10449
|
+
respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options) {
|
|
10450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10451
|
+
var _a, _b, _c;
|
|
10452
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options);
|
|
10453
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10454
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.respondToEventBookingInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10455
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10456
|
+
});
|
|
10457
|
+
},
|
|
10406
10458
|
};
|
|
10407
10459
|
};
|
|
10408
10460
|
exports.EventsApiFp = EventsApiFp;
|
|
@@ -10530,6 +10582,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10530
10582
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10531
10583
|
return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
10532
10584
|
},
|
|
10585
|
+
/**
|
|
10586
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10587
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10588
|
+
* @param {*} [options] Override http request option.
|
|
10589
|
+
* @throws {RequiredError}
|
|
10590
|
+
*/
|
|
10591
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10592
|
+
return localVarFp.respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
10593
|
+
},
|
|
10533
10594
|
};
|
|
10534
10595
|
};
|
|
10535
10596
|
exports.EventsApiFactory = EventsApiFactory;
|
|
@@ -10670,6 +10731,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
10670
10731
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10671
10732
|
return (0, exports.EventsApiFp)(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10672
10733
|
}
|
|
10734
|
+
/**
|
|
10735
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10736
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10737
|
+
* @param {*} [options] Override http request option.
|
|
10738
|
+
* @throws {RequiredError}
|
|
10739
|
+
* @memberof EventsApi
|
|
10740
|
+
*/
|
|
10741
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10742
|
+
return (0, exports.EventsApiFp)(this.configuration).respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10743
|
+
}
|
|
10673
10744
|
}
|
|
10674
10745
|
exports.EventsApi = EventsApi;
|
|
10675
10746
|
/**
|
|
@@ -15776,10 +15847,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15776
15847
|
*
|
|
15777
15848
|
* @param {number} [limit]
|
|
15778
15849
|
* @param {number} [skip]
|
|
15850
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
15779
15851
|
* @param {*} [options] Override http request option.
|
|
15780
15852
|
* @throws {RequiredError}
|
|
15781
15853
|
*/
|
|
15782
|
-
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
15854
|
+
getUserBookings: (limit_1, skip_1, timeFilter_1, ...args_1) => __awaiter(this, [limit_1, skip_1, timeFilter_1, ...args_1], void 0, function* (limit, skip, timeFilter, options = {}) {
|
|
15783
15855
|
const localVarPath = `/api/users/me/bookings`;
|
|
15784
15856
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15785
15857
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -15799,6 +15871,9 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15799
15871
|
if (skip !== undefined) {
|
|
15800
15872
|
localVarQueryParameter['skip'] = skip;
|
|
15801
15873
|
}
|
|
15874
|
+
if (timeFilter !== undefined) {
|
|
15875
|
+
localVarQueryParameter['timeFilter'] = timeFilter;
|
|
15876
|
+
}
|
|
15802
15877
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15803
15878
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15804
15879
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -16976,13 +17051,14 @@ const UsersApiFp = function (configuration) {
|
|
|
16976
17051
|
*
|
|
16977
17052
|
* @param {number} [limit]
|
|
16978
17053
|
* @param {number} [skip]
|
|
17054
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
16979
17055
|
* @param {*} [options] Override http request option.
|
|
16980
17056
|
* @throws {RequiredError}
|
|
16981
17057
|
*/
|
|
16982
|
-
getUserBookings(limit, skip, options) {
|
|
17058
|
+
getUserBookings(limit, skip, timeFilter, options) {
|
|
16983
17059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16984
17060
|
var _a, _b, _c;
|
|
16985
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
17061
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, timeFilter, options);
|
|
16986
17062
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16987
17063
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16988
17064
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17578,7 +17654,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
17578
17654
|
* @throws {RequiredError}
|
|
17579
17655
|
*/
|
|
17580
17656
|
getUserBookings(requestParameters = {}, options) {
|
|
17581
|
-
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
17657
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, requestParameters.timeFilter, options).then((request) => request(axios, basePath));
|
|
17582
17658
|
},
|
|
17583
17659
|
/**
|
|
17584
17660
|
*
|
|
@@ -18012,7 +18088,7 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
18012
18088
|
* @memberof UsersApi
|
|
18013
18089
|
*/
|
|
18014
18090
|
getUserBookings(requestParameters = {}, options) {
|
|
18015
|
-
return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
18091
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, requestParameters.timeFilter, options).then((request) => request(this.axios, this.basePath));
|
|
18016
18092
|
}
|
|
18017
18093
|
/**
|
|
18018
18094
|
*
|
|
@@ -18285,6 +18361,13 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
18285
18361
|
}
|
|
18286
18362
|
}
|
|
18287
18363
|
exports.UsersApi = UsersApi;
|
|
18364
|
+
/**
|
|
18365
|
+
* @export
|
|
18366
|
+
*/
|
|
18367
|
+
exports.GetUserBookingsTimeFilterEnum = {
|
|
18368
|
+
Upcoming: 'upcoming',
|
|
18369
|
+
Past: 'past'
|
|
18370
|
+
};
|
|
18288
18371
|
/**
|
|
18289
18372
|
* WaitListApi - axios parameter creator
|
|
18290
18373
|
* @export
|
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
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.233
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10669,6 +10669,12 @@ export interface PublishEventResponse {
|
|
|
10669
10669
|
* @memberof PublishEventResponse
|
|
10670
10670
|
*/
|
|
10671
10671
|
'needsToSetupPaymentMethod'?: boolean;
|
|
10672
|
+
/**
|
|
10673
|
+
*
|
|
10674
|
+
* @type {string}
|
|
10675
|
+
* @memberof PublishEventResponse
|
|
10676
|
+
*/
|
|
10677
|
+
'myPaymentLink'?: string;
|
|
10672
10678
|
}
|
|
10673
10679
|
/**
|
|
10674
10680
|
*
|
|
@@ -11421,6 +11427,44 @@ export interface ResetPasswordRequest {
|
|
|
11421
11427
|
*/
|
|
11422
11428
|
'token'?: string;
|
|
11423
11429
|
}
|
|
11430
|
+
/**
|
|
11431
|
+
*
|
|
11432
|
+
* @export
|
|
11433
|
+
* @interface RespondToEventBookingInvitation200Response
|
|
11434
|
+
*/
|
|
11435
|
+
export interface RespondToEventBookingInvitation200Response {
|
|
11436
|
+
/**
|
|
11437
|
+
*
|
|
11438
|
+
* @type {boolean}
|
|
11439
|
+
* @memberof RespondToEventBookingInvitation200Response
|
|
11440
|
+
*/
|
|
11441
|
+
'allPlayersAccepted': boolean;
|
|
11442
|
+
/**
|
|
11443
|
+
*
|
|
11444
|
+
* @type {string}
|
|
11445
|
+
* @memberof RespondToEventBookingInvitation200Response
|
|
11446
|
+
*/
|
|
11447
|
+
'eventBookingStatus': string;
|
|
11448
|
+
/**
|
|
11449
|
+
*
|
|
11450
|
+
* @type {string}
|
|
11451
|
+
* @memberof RespondToEventBookingInvitation200Response
|
|
11452
|
+
*/
|
|
11453
|
+
'message': string;
|
|
11454
|
+
}
|
|
11455
|
+
/**
|
|
11456
|
+
*
|
|
11457
|
+
* @export
|
|
11458
|
+
* @interface RespondToEventBookingInvitationRequest
|
|
11459
|
+
*/
|
|
11460
|
+
export interface RespondToEventBookingInvitationRequest {
|
|
11461
|
+
/**
|
|
11462
|
+
*
|
|
11463
|
+
* @type {boolean}
|
|
11464
|
+
* @memberof RespondToEventBookingInvitationRequest
|
|
11465
|
+
*/
|
|
11466
|
+
'accept': boolean;
|
|
11467
|
+
}
|
|
11424
11468
|
/**
|
|
11425
11469
|
*
|
|
11426
11470
|
* @export
|
|
@@ -21882,6 +21926,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
21882
21926
|
* @throws {RequiredError}
|
|
21883
21927
|
*/
|
|
21884
21928
|
leaveOpenEventBooking: (eventBookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21929
|
+
/**
|
|
21930
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
21931
|
+
* @param {string} eventBookingId
|
|
21932
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
21933
|
+
* @param {*} [options] Override http request option.
|
|
21934
|
+
* @throws {RequiredError}
|
|
21935
|
+
*/
|
|
21936
|
+
respondToEventBookingInvitation: (eventBookingId: string, respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21885
21937
|
};
|
|
21886
21938
|
/**
|
|
21887
21939
|
* EventsApi - functional programming interface
|
|
@@ -21991,6 +22043,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
21991
22043
|
* @throws {RequiredError}
|
|
21992
22044
|
*/
|
|
21993
22045
|
leaveOpenEventBooking(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>>;
|
|
22046
|
+
/**
|
|
22047
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
22048
|
+
* @param {string} eventBookingId
|
|
22049
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
22050
|
+
* @param {*} [options] Override http request option.
|
|
22051
|
+
* @throws {RequiredError}
|
|
22052
|
+
*/
|
|
22053
|
+
respondToEventBookingInvitation(eventBookingId: string, respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToEventBookingInvitation200Response>>;
|
|
21994
22054
|
};
|
|
21995
22055
|
/**
|
|
21996
22056
|
* EventsApi - factory interface
|
|
@@ -22088,6 +22148,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
22088
22148
|
* @throws {RequiredError}
|
|
22089
22149
|
*/
|
|
22090
22150
|
leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response>;
|
|
22151
|
+
/**
|
|
22152
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
22153
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
22154
|
+
* @param {*} [options] Override http request option.
|
|
22155
|
+
* @throws {RequiredError}
|
|
22156
|
+
*/
|
|
22157
|
+
respondToEventBookingInvitation(requestParameters: EventsApiRespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RespondToEventBookingInvitation200Response>;
|
|
22091
22158
|
};
|
|
22092
22159
|
/**
|
|
22093
22160
|
* Request parameters for checkTeamNameAvailability operation in EventsApi.
|
|
@@ -22330,6 +22397,25 @@ export interface EventsApiLeaveOpenEventBookingRequest {
|
|
|
22330
22397
|
*/
|
|
22331
22398
|
readonly eventBookingId: string;
|
|
22332
22399
|
}
|
|
22400
|
+
/**
|
|
22401
|
+
* Request parameters for respondToEventBookingInvitation operation in EventsApi.
|
|
22402
|
+
* @export
|
|
22403
|
+
* @interface EventsApiRespondToEventBookingInvitationRequest
|
|
22404
|
+
*/
|
|
22405
|
+
export interface EventsApiRespondToEventBookingInvitationRequest {
|
|
22406
|
+
/**
|
|
22407
|
+
*
|
|
22408
|
+
* @type {string}
|
|
22409
|
+
* @memberof EventsApiRespondToEventBookingInvitation
|
|
22410
|
+
*/
|
|
22411
|
+
readonly eventBookingId: string;
|
|
22412
|
+
/**
|
|
22413
|
+
*
|
|
22414
|
+
* @type {RespondToEventBookingInvitationRequest}
|
|
22415
|
+
* @memberof EventsApiRespondToEventBookingInvitation
|
|
22416
|
+
*/
|
|
22417
|
+
readonly respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest;
|
|
22418
|
+
}
|
|
22333
22419
|
/**
|
|
22334
22420
|
* EventsApi - object-oriented interface
|
|
22335
22421
|
* @export
|
|
@@ -22441,6 +22527,14 @@ export declare class EventsApi extends BaseAPI {
|
|
|
22441
22527
|
* @memberof EventsApi
|
|
22442
22528
|
*/
|
|
22443
22529
|
leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaveEventWaitList200Response, any, {}>>;
|
|
22530
|
+
/**
|
|
22531
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
22532
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
22533
|
+
* @param {*} [options] Override http request option.
|
|
22534
|
+
* @throws {RequiredError}
|
|
22535
|
+
* @memberof EventsApi
|
|
22536
|
+
*/
|
|
22537
|
+
respondToEventBookingInvitation(requestParameters: EventsApiRespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToEventBookingInvitation200Response, any, {}>>;
|
|
22444
22538
|
}
|
|
22445
22539
|
/**
|
|
22446
22540
|
* @export
|
|
@@ -25555,10 +25649,11 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
25555
25649
|
*
|
|
25556
25650
|
* @param {number} [limit]
|
|
25557
25651
|
* @param {number} [skip]
|
|
25652
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
25558
25653
|
* @param {*} [options] Override http request option.
|
|
25559
25654
|
* @throws {RequiredError}
|
|
25560
25655
|
*/
|
|
25561
|
-
getUserBookings: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25656
|
+
getUserBookings: (limit?: number, skip?: number, timeFilter?: GetUserBookingsTimeFilterEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25562
25657
|
/**
|
|
25563
25658
|
*
|
|
25564
25659
|
* @param {number} [limit]
|
|
@@ -25906,10 +26001,11 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
25906
26001
|
*
|
|
25907
26002
|
* @param {number} [limit]
|
|
25908
26003
|
* @param {number} [skip]
|
|
26004
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
25909
26005
|
* @param {*} [options] Override http request option.
|
|
25910
26006
|
* @throws {RequiredError}
|
|
25911
26007
|
*/
|
|
25912
|
-
getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>>;
|
|
26008
|
+
getUserBookings(limit?: number, skip?: number, timeFilter?: GetUserBookingsTimeFilterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>>;
|
|
25913
26009
|
/**
|
|
25914
26010
|
*
|
|
25915
26011
|
* @param {number} [limit]
|
|
@@ -26637,6 +26733,12 @@ export interface UsersApiGetUserBookingsRequest {
|
|
|
26637
26733
|
* @memberof UsersApiGetUserBookings
|
|
26638
26734
|
*/
|
|
26639
26735
|
readonly skip?: number;
|
|
26736
|
+
/**
|
|
26737
|
+
*
|
|
26738
|
+
* @type {'upcoming' | 'past'}
|
|
26739
|
+
* @memberof UsersApiGetUserBookings
|
|
26740
|
+
*/
|
|
26741
|
+
readonly timeFilter?: GetUserBookingsTimeFilterEnum;
|
|
26640
26742
|
}
|
|
26641
26743
|
/**
|
|
26642
26744
|
* Request parameters for getUserEvents operation in UsersApi.
|
|
@@ -27441,6 +27543,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
27441
27543
|
*/
|
|
27442
27544
|
verifyOrganizationCode(requestParameters: UsersApiVerifyOrganizationCodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyOrganizationEmailCodeResponse, any, {}>>;
|
|
27443
27545
|
}
|
|
27546
|
+
/**
|
|
27547
|
+
* @export
|
|
27548
|
+
*/
|
|
27549
|
+
export declare const GetUserBookingsTimeFilterEnum: {
|
|
27550
|
+
readonly Upcoming: "upcoming";
|
|
27551
|
+
readonly Past: "past";
|
|
27552
|
+
};
|
|
27553
|
+
export type GetUserBookingsTimeFilterEnum = typeof GetUserBookingsTimeFilterEnum[keyof typeof GetUserBookingsTimeFilterEnum];
|
|
27444
27554
|
/**
|
|
27445
27555
|
* WaitListApi - axios parameter creator
|
|
27446
27556
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.233
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10103,6 +10103,42 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
10103
10103
|
options: localVarRequestOptions,
|
|
10104
10104
|
};
|
|
10105
10105
|
}),
|
|
10106
|
+
/**
|
|
10107
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10108
|
+
* @param {string} eventBookingId
|
|
10109
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
10110
|
+
* @param {*} [options] Override http request option.
|
|
10111
|
+
* @throws {RequiredError}
|
|
10112
|
+
*/
|
|
10113
|
+
respondToEventBookingInvitation: (eventBookingId_1, respondToEventBookingInvitationRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, respondToEventBookingInvitationRequest_1, ...args_1], void 0, function* (eventBookingId, respondToEventBookingInvitationRequest, options = {}) {
|
|
10114
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
10115
|
+
assertParamExists('respondToEventBookingInvitation', 'eventBookingId', eventBookingId);
|
|
10116
|
+
// verify required parameter 'respondToEventBookingInvitationRequest' is not null or undefined
|
|
10117
|
+
assertParamExists('respondToEventBookingInvitation', 'respondToEventBookingInvitationRequest', respondToEventBookingInvitationRequest);
|
|
10118
|
+
const localVarPath = `/api/events/{eventBookingId}/respond-invitation`
|
|
10119
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
10120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10122
|
+
let baseOptions;
|
|
10123
|
+
if (configuration) {
|
|
10124
|
+
baseOptions = configuration.baseOptions;
|
|
10125
|
+
}
|
|
10126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10127
|
+
const localVarHeaderParameter = {};
|
|
10128
|
+
const localVarQueryParameter = {};
|
|
10129
|
+
// authentication bearerAuth required
|
|
10130
|
+
// http bearer authentication required
|
|
10131
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10132
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10135
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(respondToEventBookingInvitationRequest, localVarRequestOptions, configuration);
|
|
10137
|
+
return {
|
|
10138
|
+
url: toPathString(localVarUrlObj),
|
|
10139
|
+
options: localVarRequestOptions,
|
|
10140
|
+
};
|
|
10141
|
+
}),
|
|
10106
10142
|
};
|
|
10107
10143
|
};
|
|
10108
10144
|
/**
|
|
@@ -10319,6 +10355,22 @@ export const EventsApiFp = function (configuration) {
|
|
|
10319
10355
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10320
10356
|
});
|
|
10321
10357
|
},
|
|
10358
|
+
/**
|
|
10359
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10360
|
+
* @param {string} eventBookingId
|
|
10361
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
10362
|
+
* @param {*} [options] Override http request option.
|
|
10363
|
+
* @throws {RequiredError}
|
|
10364
|
+
*/
|
|
10365
|
+
respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options) {
|
|
10366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10367
|
+
var _a, _b, _c;
|
|
10368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options);
|
|
10369
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10370
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.respondToEventBookingInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10371
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10372
|
+
});
|
|
10373
|
+
},
|
|
10322
10374
|
};
|
|
10323
10375
|
};
|
|
10324
10376
|
/**
|
|
@@ -10445,6 +10497,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10445
10497
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10446
10498
|
return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
10447
10499
|
},
|
|
10500
|
+
/**
|
|
10501
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10502
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10503
|
+
* @param {*} [options] Override http request option.
|
|
10504
|
+
* @throws {RequiredError}
|
|
10505
|
+
*/
|
|
10506
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10507
|
+
return localVarFp.respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
10508
|
+
},
|
|
10448
10509
|
};
|
|
10449
10510
|
};
|
|
10450
10511
|
/**
|
|
@@ -10584,6 +10645,16 @@ export class EventsApi extends BaseAPI {
|
|
|
10584
10645
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10585
10646
|
return EventsApiFp(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10586
10647
|
}
|
|
10648
|
+
/**
|
|
10649
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10650
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10651
|
+
* @param {*} [options] Override http request option.
|
|
10652
|
+
* @throws {RequiredError}
|
|
10653
|
+
* @memberof EventsApi
|
|
10654
|
+
*/
|
|
10655
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10656
|
+
return EventsApiFp(this.configuration).respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10657
|
+
}
|
|
10587
10658
|
}
|
|
10588
10659
|
/**
|
|
10589
10660
|
* @export
|
|
@@ -15629,10 +15700,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15629
15700
|
*
|
|
15630
15701
|
* @param {number} [limit]
|
|
15631
15702
|
* @param {number} [skip]
|
|
15703
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
15632
15704
|
* @param {*} [options] Override http request option.
|
|
15633
15705
|
* @throws {RequiredError}
|
|
15634
15706
|
*/
|
|
15635
|
-
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
15707
|
+
getUserBookings: (limit_1, skip_1, timeFilter_1, ...args_1) => __awaiter(this, [limit_1, skip_1, timeFilter_1, ...args_1], void 0, function* (limit, skip, timeFilter, options = {}) {
|
|
15636
15708
|
const localVarPath = `/api/users/me/bookings`;
|
|
15637
15709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15638
15710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15652,6 +15724,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15652
15724
|
if (skip !== undefined) {
|
|
15653
15725
|
localVarQueryParameter['skip'] = skip;
|
|
15654
15726
|
}
|
|
15727
|
+
if (timeFilter !== undefined) {
|
|
15728
|
+
localVarQueryParameter['timeFilter'] = timeFilter;
|
|
15729
|
+
}
|
|
15655
15730
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15656
15731
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15657
15732
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -16828,13 +16903,14 @@ export const UsersApiFp = function (configuration) {
|
|
|
16828
16903
|
*
|
|
16829
16904
|
* @param {number} [limit]
|
|
16830
16905
|
* @param {number} [skip]
|
|
16906
|
+
* @param {GetUserBookingsTimeFilterEnum} [timeFilter]
|
|
16831
16907
|
* @param {*} [options] Override http request option.
|
|
16832
16908
|
* @throws {RequiredError}
|
|
16833
16909
|
*/
|
|
16834
|
-
getUserBookings(limit, skip, options) {
|
|
16910
|
+
getUserBookings(limit, skip, timeFilter, options) {
|
|
16835
16911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16836
16912
|
var _a, _b, _c;
|
|
16837
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
16913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, timeFilter, options);
|
|
16838
16914
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16839
16915
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16840
16916
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17429,7 +17505,7 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
17429
17505
|
* @throws {RequiredError}
|
|
17430
17506
|
*/
|
|
17431
17507
|
getUserBookings(requestParameters = {}, options) {
|
|
17432
|
-
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
17508
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, requestParameters.timeFilter, options).then((request) => request(axios, basePath));
|
|
17433
17509
|
},
|
|
17434
17510
|
/**
|
|
17435
17511
|
*
|
|
@@ -17862,7 +17938,7 @@ export class UsersApi extends BaseAPI {
|
|
|
17862
17938
|
* @memberof UsersApi
|
|
17863
17939
|
*/
|
|
17864
17940
|
getUserBookings(requestParameters = {}, options) {
|
|
17865
|
-
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
17941
|
+
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, requestParameters.timeFilter, options).then((request) => request(this.axios, this.basePath));
|
|
17866
17942
|
}
|
|
17867
17943
|
/**
|
|
17868
17944
|
*
|
|
@@ -18134,6 +18210,13 @@ export class UsersApi extends BaseAPI {
|
|
|
18134
18210
|
return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
18135
18211
|
}
|
|
18136
18212
|
}
|
|
18213
|
+
/**
|
|
18214
|
+
* @export
|
|
18215
|
+
*/
|
|
18216
|
+
export const GetUserBookingsTimeFilterEnum = {
|
|
18217
|
+
Upcoming: 'upcoming',
|
|
18218
|
+
Past: 'past'
|
|
18219
|
+
};
|
|
18137
18220
|
/**
|
|
18138
18221
|
* WaitListApi - axios parameter creator
|
|
18139
18222
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED