@tennac-booking/sdk 1.0.130 → 1.0.132
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 +362 -344
- package/README.md +23 -2
- package/api.ts +1064 -35
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +875 -26
- package/dist/api.js +293 -10
- 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 +875 -26
- package/dist/esm/api.js +289 -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/EstimateEventPrice200Response.md +0 -2
- package/docs/EventBookingDetailSummary.md +40 -0
- package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
- package/docs/EventBookingResponse.md +38 -0
- package/docs/EventBookingResponsePaymentPerPlayersInner.md +30 -0
- package/docs/EventBookingResponsePlayersInner.md +28 -0
- package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +18 -0
- package/docs/EventBookingResponseSetupStatus.md +18 -0
- package/docs/EventBookingStatus.md +16 -0
- package/docs/EventsApi.md +4 -1
- package/docs/EventsManagerApi.md +110 -0
- package/docs/InvoiceStatusSETUPPENDING.md +8 -0
- package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
- package/docs/ParticipationType.md +10 -0
- package/docs/PublishEventResponse.md +4 -0
- package/docs/RecurringDefinitionResponse.md +34 -0
- package/docs/UpdateRecurringDefinition200Response.md +20 -0
- package/docs/UpdateRecurringDefinitionRequest.md +56 -0
- package/docs/UserClubSubscription.md +2 -0
- package/docs/UserEventParticipation.md +22 -0
- package/docs/UserEventSummary.md +44 -0
- package/docs/UserEventsResponse.md +28 -0
- package/docs/UsersApi.md +54 -0
- package/docs/VisibilityType.md +12 -0
- 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.132
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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 = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = void 0;
|
|
25
|
+
exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = 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.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = 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.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = void 0;
|
|
27
|
+
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 = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = 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 = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -122,6 +122,18 @@ exports.DiscountType = {
|
|
|
122
122
|
Percentage: 'percentage',
|
|
123
123
|
OffPeak: 'off_peak'
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @enum {string}
|
|
129
|
+
*/
|
|
130
|
+
exports.EventBookingStatus = {
|
|
131
|
+
Pending: 'pending',
|
|
132
|
+
Active: 'active',
|
|
133
|
+
Paid: 'paid',
|
|
134
|
+
Cancelled: 'cancelled',
|
|
135
|
+
Expired: 'expired'
|
|
136
|
+
};
|
|
125
137
|
exports.EventResponseTypeEnum = {
|
|
126
138
|
Event: 'event',
|
|
127
139
|
Closure: 'closure'
|
|
@@ -183,11 +195,36 @@ exports.InvoiceStatus = {
|
|
|
183
195
|
Canceled: 'canceled',
|
|
184
196
|
Expired: 'expired'
|
|
185
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @export
|
|
201
|
+
* @enum {string}
|
|
202
|
+
*/
|
|
203
|
+
exports.InvoiceStatusSETUPPENDING = {
|
|
204
|
+
SetupPending: 'setup_pending'
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @export
|
|
209
|
+
* @enum {string}
|
|
210
|
+
*/
|
|
211
|
+
exports.InvoiceStatusSETUPSUCCESS = {
|
|
212
|
+
SetupSuccess: 'setup_success'
|
|
213
|
+
};
|
|
186
214
|
exports.PartialPublicAccessSettingsPaymentModeEnum = {
|
|
187
215
|
Free: 'free',
|
|
188
216
|
AccessFee: 'access_fee',
|
|
189
217
|
PerCourt: 'per_court'
|
|
190
218
|
};
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @export
|
|
222
|
+
* @enum {string}
|
|
223
|
+
*/
|
|
224
|
+
exports.ParticipationType = {
|
|
225
|
+
Solo: 'solo',
|
|
226
|
+
Team: 'team'
|
|
227
|
+
};
|
|
191
228
|
/**
|
|
192
229
|
*
|
|
193
230
|
* @export
|
|
@@ -228,6 +265,12 @@ exports.PublicAccessSettingsPaymentModeEnum = {
|
|
|
228
265
|
AccessFee: 'access_fee',
|
|
229
266
|
PerCourt: 'per_court'
|
|
230
267
|
};
|
|
268
|
+
exports.RecurringDefinitionResponseRecurringTypeEnum = {
|
|
269
|
+
Daily: 'daily',
|
|
270
|
+
Weekly: 'weekly',
|
|
271
|
+
Monthly: 'monthly',
|
|
272
|
+
Unique: 'unique'
|
|
273
|
+
};
|
|
231
274
|
exports.RegisterRequestBodyLocationTypeEnum = {
|
|
232
275
|
Point: 'Point'
|
|
233
276
|
};
|
|
@@ -403,9 +446,38 @@ exports.UpdateEventRequestVisibilityTypeEnum = {
|
|
|
403
446
|
Private: 'private',
|
|
404
447
|
Invitation: 'invitation'
|
|
405
448
|
};
|
|
449
|
+
exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
|
|
450
|
+
Public: 'public',
|
|
451
|
+
Private: 'private',
|
|
452
|
+
Invitation: 'invitation'
|
|
453
|
+
};
|
|
454
|
+
exports.UpdateRecurringDefinitionRequestTypeEnum = {
|
|
455
|
+
Event: 'event',
|
|
456
|
+
Closure: 'closure'
|
|
457
|
+
};
|
|
458
|
+
exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = {
|
|
459
|
+
Solo: 'solo',
|
|
460
|
+
Team: 'team'
|
|
461
|
+
};
|
|
462
|
+
exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
463
|
+
Daily: 'daily',
|
|
464
|
+
Weekly: 'weekly',
|
|
465
|
+
Monthly: 'monthly',
|
|
466
|
+
Unique: 'unique'
|
|
467
|
+
};
|
|
406
468
|
exports.UserLocationSummaryTypeEnum = {
|
|
407
469
|
Point: 'Point'
|
|
408
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @export
|
|
474
|
+
* @enum {string}
|
|
475
|
+
*/
|
|
476
|
+
exports.VisibilityType = {
|
|
477
|
+
Public: 'public',
|
|
478
|
+
Private: 'private',
|
|
479
|
+
Invitation: 'invitation'
|
|
480
|
+
};
|
|
409
481
|
/**
|
|
410
482
|
* BookingsApi - axios parameter creator
|
|
411
483
|
* @export
|
|
@@ -7534,10 +7606,11 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7534
7606
|
/**
|
|
7535
7607
|
* Get a specific event by ID
|
|
7536
7608
|
* @param {string} eventId
|
|
7609
|
+
* @param {string} [userId]
|
|
7537
7610
|
* @param {*} [options] Override http request option.
|
|
7538
7611
|
* @throws {RequiredError}
|
|
7539
7612
|
*/
|
|
7540
|
-
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7613
|
+
getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
|
|
7541
7614
|
// verify required parameter 'eventId' is not null or undefined
|
|
7542
7615
|
(0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
|
|
7543
7616
|
const localVarPath = `/api/events/{eventId}`
|
|
@@ -7551,6 +7624,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7551
7624
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7552
7625
|
const localVarHeaderParameter = {};
|
|
7553
7626
|
const localVarQueryParameter = {};
|
|
7627
|
+
if (userId !== undefined) {
|
|
7628
|
+
localVarQueryParameter['userId'] = userId;
|
|
7629
|
+
}
|
|
7554
7630
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7555
7631
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7556
7632
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7711,13 +7787,14 @@ const EventsApiFp = function (configuration) {
|
|
|
7711
7787
|
/**
|
|
7712
7788
|
* Get a specific event by ID
|
|
7713
7789
|
* @param {string} eventId
|
|
7790
|
+
* @param {string} [userId]
|
|
7714
7791
|
* @param {*} [options] Override http request option.
|
|
7715
7792
|
* @throws {RequiredError}
|
|
7716
7793
|
*/
|
|
7717
|
-
getEventById(eventId, options) {
|
|
7794
|
+
getEventById(eventId, userId, options) {
|
|
7718
7795
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7719
7796
|
var _a, _b, _c;
|
|
7720
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
7797
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
|
|
7721
7798
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7722
7799
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7723
7800
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7807,7 +7884,7 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7807
7884
|
* @throws {RequiredError}
|
|
7808
7885
|
*/
|
|
7809
7886
|
getEventById(requestParameters, options) {
|
|
7810
|
-
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
7887
|
+
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
7811
7888
|
},
|
|
7812
7889
|
/**
|
|
7813
7890
|
* Get all published events for a club
|
|
@@ -7874,7 +7951,7 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
7874
7951
|
* @memberof EventsApi
|
|
7875
7952
|
*/
|
|
7876
7953
|
getEventById(requestParameters, options) {
|
|
7877
|
-
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
7954
|
+
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
7878
7955
|
}
|
|
7879
7956
|
/**
|
|
7880
7957
|
* Get all published events for a club
|
|
@@ -8024,6 +8101,37 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
8024
8101
|
options: localVarRequestOptions,
|
|
8025
8102
|
};
|
|
8026
8103
|
}),
|
|
8104
|
+
/**
|
|
8105
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8106
|
+
* @param {number} [days]
|
|
8107
|
+
* @param {*} [options] Override http request option.
|
|
8108
|
+
* @throws {RequiredError}
|
|
8109
|
+
*/
|
|
8110
|
+
getExpiringRecurringDefinitions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
8111
|
+
const localVarPath = `/api/events/manager/recurring/expiring`;
|
|
8112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8113
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8114
|
+
let baseOptions;
|
|
8115
|
+
if (configuration) {
|
|
8116
|
+
baseOptions = configuration.baseOptions;
|
|
8117
|
+
}
|
|
8118
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8119
|
+
const localVarHeaderParameter = {};
|
|
8120
|
+
const localVarQueryParameter = {};
|
|
8121
|
+
// authentication bearerAuth required
|
|
8122
|
+
// http bearer authentication required
|
|
8123
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8124
|
+
if (days !== undefined) {
|
|
8125
|
+
localVarQueryParameter['days'] = days;
|
|
8126
|
+
}
|
|
8127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8130
|
+
return {
|
|
8131
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8132
|
+
options: localVarRequestOptions,
|
|
8133
|
+
};
|
|
8134
|
+
}),
|
|
8027
8135
|
/**
|
|
8028
8136
|
* Publish an event (manager)
|
|
8029
8137
|
* @param {string} eventId
|
|
@@ -8158,6 +8266,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
8158
8266
|
options: localVarRequestOptions,
|
|
8159
8267
|
};
|
|
8160
8268
|
}),
|
|
8269
|
+
/**
|
|
8270
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8271
|
+
* @param {string} definitionId
|
|
8272
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8273
|
+
* @param {*} [options] Override http request option.
|
|
8274
|
+
* @throws {RequiredError}
|
|
8275
|
+
*/
|
|
8276
|
+
updateRecurringDefinition: (definitionId_1, updateRecurringDefinitionRequest_1, ...args_1) => __awaiter(this, [definitionId_1, updateRecurringDefinitionRequest_1, ...args_1], void 0, function* (definitionId, updateRecurringDefinitionRequest, options = {}) {
|
|
8277
|
+
// verify required parameter 'definitionId' is not null or undefined
|
|
8278
|
+
(0, common_1.assertParamExists)('updateRecurringDefinition', 'definitionId', definitionId);
|
|
8279
|
+
// verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
|
|
8280
|
+
(0, common_1.assertParamExists)('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest);
|
|
8281
|
+
const localVarPath = `/api/events/manager/recurring/{definitionId}`
|
|
8282
|
+
.replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
|
|
8283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8285
|
+
let baseOptions;
|
|
8286
|
+
if (configuration) {
|
|
8287
|
+
baseOptions = configuration.baseOptions;
|
|
8288
|
+
}
|
|
8289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8290
|
+
const localVarHeaderParameter = {};
|
|
8291
|
+
const localVarQueryParameter = {};
|
|
8292
|
+
// authentication bearerAuth required
|
|
8293
|
+
// http bearer authentication required
|
|
8294
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8295
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8296
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8298
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8299
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRecurringDefinitionRequest, localVarRequestOptions, configuration);
|
|
8300
|
+
return {
|
|
8301
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8302
|
+
options: localVarRequestOptions,
|
|
8303
|
+
};
|
|
8304
|
+
}),
|
|
8161
8305
|
};
|
|
8162
8306
|
};
|
|
8163
8307
|
exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
|
|
@@ -8213,6 +8357,21 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
8213
8357
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8214
8358
|
});
|
|
8215
8359
|
},
|
|
8360
|
+
/**
|
|
8361
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8362
|
+
* @param {number} [days]
|
|
8363
|
+
* @param {*} [options] Override http request option.
|
|
8364
|
+
* @throws {RequiredError}
|
|
8365
|
+
*/
|
|
8366
|
+
getExpiringRecurringDefinitions(days, options) {
|
|
8367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8368
|
+
var _a, _b, _c;
|
|
8369
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
|
|
8370
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8371
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8372
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8373
|
+
});
|
|
8374
|
+
},
|
|
8216
8375
|
/**
|
|
8217
8376
|
* Publish an event (manager)
|
|
8218
8377
|
* @param {string} eventId
|
|
@@ -8275,6 +8434,22 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
8275
8434
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8276
8435
|
});
|
|
8277
8436
|
},
|
|
8437
|
+
/**
|
|
8438
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8439
|
+
* @param {string} definitionId
|
|
8440
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8441
|
+
* @param {*} [options] Override http request option.
|
|
8442
|
+
* @throws {RequiredError}
|
|
8443
|
+
*/
|
|
8444
|
+
updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options) {
|
|
8445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8446
|
+
var _a, _b, _c;
|
|
8447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
|
|
8448
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8449
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updateRecurringDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8450
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8451
|
+
});
|
|
8452
|
+
},
|
|
8278
8453
|
};
|
|
8279
8454
|
};
|
|
8280
8455
|
exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
@@ -8312,6 +8487,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
8312
8487
|
deleteEvent(requestParameters, options) {
|
|
8313
8488
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8314
8489
|
},
|
|
8490
|
+
/**
|
|
8491
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8492
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8493
|
+
* @param {*} [options] Override http request option.
|
|
8494
|
+
* @throws {RequiredError}
|
|
8495
|
+
*/
|
|
8496
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8497
|
+
return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
|
|
8498
|
+
},
|
|
8315
8499
|
/**
|
|
8316
8500
|
* Publish an event (manager)
|
|
8317
8501
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8348,6 +8532,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
8348
8532
|
updatePublishedEvent(requestParameters, options) {
|
|
8349
8533
|
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
8350
8534
|
},
|
|
8535
|
+
/**
|
|
8536
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8537
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8538
|
+
* @param {*} [options] Override http request option.
|
|
8539
|
+
* @throws {RequiredError}
|
|
8540
|
+
*/
|
|
8541
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8542
|
+
return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
8543
|
+
},
|
|
8351
8544
|
};
|
|
8352
8545
|
};
|
|
8353
8546
|
exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
@@ -8388,6 +8581,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
8388
8581
|
deleteEvent(requestParameters, options) {
|
|
8389
8582
|
return (0, exports.EventsManagerApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8390
8583
|
}
|
|
8584
|
+
/**
|
|
8585
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8586
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8587
|
+
* @param {*} [options] Override http request option.
|
|
8588
|
+
* @throws {RequiredError}
|
|
8589
|
+
* @memberof EventsManagerApi
|
|
8590
|
+
*/
|
|
8591
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8592
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
|
|
8593
|
+
}
|
|
8391
8594
|
/**
|
|
8392
8595
|
* Publish an event (manager)
|
|
8393
8596
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8428,6 +8631,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
8428
8631
|
updatePublishedEvent(requestParameters, options) {
|
|
8429
8632
|
return (0, exports.EventsManagerApiFp)(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8430
8633
|
}
|
|
8634
|
+
/**
|
|
8635
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8636
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8637
|
+
* @param {*} [options] Override http request option.
|
|
8638
|
+
* @throws {RequiredError}
|
|
8639
|
+
* @memberof EventsManagerApi
|
|
8640
|
+
*/
|
|
8641
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8642
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8643
|
+
}
|
|
8431
8644
|
}
|
|
8432
8645
|
exports.EventsManagerApi = EventsManagerApi;
|
|
8433
8646
|
/**
|
|
@@ -10869,6 +11082,41 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10869
11082
|
options: localVarRequestOptions,
|
|
10870
11083
|
};
|
|
10871
11084
|
}),
|
|
11085
|
+
/**
|
|
11086
|
+
*
|
|
11087
|
+
* @param {number} [limit]
|
|
11088
|
+
* @param {number} [skip]
|
|
11089
|
+
* @param {*} [options] Override http request option.
|
|
11090
|
+
* @throws {RequiredError}
|
|
11091
|
+
*/
|
|
11092
|
+
getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
11093
|
+
const localVarPath = `/api/users/me/events`;
|
|
11094
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11095
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11096
|
+
let baseOptions;
|
|
11097
|
+
if (configuration) {
|
|
11098
|
+
baseOptions = configuration.baseOptions;
|
|
11099
|
+
}
|
|
11100
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11101
|
+
const localVarHeaderParameter = {};
|
|
11102
|
+
const localVarQueryParameter = {};
|
|
11103
|
+
// authentication bearerAuth required
|
|
11104
|
+
// http bearer authentication required
|
|
11105
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11106
|
+
if (limit !== undefined) {
|
|
11107
|
+
localVarQueryParameter['limit'] = limit;
|
|
11108
|
+
}
|
|
11109
|
+
if (skip !== undefined) {
|
|
11110
|
+
localVarQueryParameter['skip'] = skip;
|
|
11111
|
+
}
|
|
11112
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11114
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11115
|
+
return {
|
|
11116
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11117
|
+
options: localVarRequestOptions,
|
|
11118
|
+
};
|
|
11119
|
+
}),
|
|
10872
11120
|
/**
|
|
10873
11121
|
*
|
|
10874
11122
|
* @param {string} id
|
|
@@ -11729,6 +11977,22 @@ const UsersApiFp = function (configuration) {
|
|
|
11729
11977
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11730
11978
|
});
|
|
11731
11979
|
},
|
|
11980
|
+
/**
|
|
11981
|
+
*
|
|
11982
|
+
* @param {number} [limit]
|
|
11983
|
+
* @param {number} [skip]
|
|
11984
|
+
* @param {*} [options] Override http request option.
|
|
11985
|
+
* @throws {RequiredError}
|
|
11986
|
+
*/
|
|
11987
|
+
getUserEvents(limit, skip, options) {
|
|
11988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11989
|
+
var _a, _b, _c;
|
|
11990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
|
|
11991
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11992
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11993
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11994
|
+
});
|
|
11995
|
+
},
|
|
11732
11996
|
/**
|
|
11733
11997
|
*
|
|
11734
11998
|
* @param {string} id
|
|
@@ -12171,6 +12435,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
12171
12435
|
getUserBookings(requestParameters = {}, options) {
|
|
12172
12436
|
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12173
12437
|
},
|
|
12438
|
+
/**
|
|
12439
|
+
*
|
|
12440
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12441
|
+
* @param {*} [options] Override http request option.
|
|
12442
|
+
* @throws {RequiredError}
|
|
12443
|
+
*/
|
|
12444
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12445
|
+
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12446
|
+
},
|
|
12174
12447
|
/**
|
|
12175
12448
|
*
|
|
12176
12449
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -12514,6 +12787,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
12514
12787
|
getUserBookings(requestParameters = {}, options) {
|
|
12515
12788
|
return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12516
12789
|
}
|
|
12790
|
+
/**
|
|
12791
|
+
*
|
|
12792
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12793
|
+
* @param {*} [options] Override http request option.
|
|
12794
|
+
* @throws {RequiredError}
|
|
12795
|
+
* @memberof UsersApi
|
|
12796
|
+
*/
|
|
12797
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12798
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12799
|
+
}
|
|
12517
12800
|
/**
|
|
12518
12801
|
*
|
|
12519
12802
|
* @param {UsersApiGetUserProfileByIdRequest} 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