@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/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.132
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,6 +116,18 @@ export const DiscountType = {
|
|
|
116
116
|
Percentage: 'percentage',
|
|
117
117
|
OffPeak: 'off_peak'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
export const EventBookingStatus = {
|
|
125
|
+
Pending: 'pending',
|
|
126
|
+
Active: 'active',
|
|
127
|
+
Paid: 'paid',
|
|
128
|
+
Cancelled: 'cancelled',
|
|
129
|
+
Expired: 'expired'
|
|
130
|
+
};
|
|
119
131
|
export const EventResponseTypeEnum = {
|
|
120
132
|
Event: 'event',
|
|
121
133
|
Closure: 'closure'
|
|
@@ -177,11 +189,36 @@ export const InvoiceStatus = {
|
|
|
177
189
|
Canceled: 'canceled',
|
|
178
190
|
Expired: 'expired'
|
|
179
191
|
};
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @export
|
|
195
|
+
* @enum {string}
|
|
196
|
+
*/
|
|
197
|
+
export const InvoiceStatusSETUPPENDING = {
|
|
198
|
+
SetupPending: 'setup_pending'
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @enum {string}
|
|
204
|
+
*/
|
|
205
|
+
export const InvoiceStatusSETUPSUCCESS = {
|
|
206
|
+
SetupSuccess: 'setup_success'
|
|
207
|
+
};
|
|
180
208
|
export const PartialPublicAccessSettingsPaymentModeEnum = {
|
|
181
209
|
Free: 'free',
|
|
182
210
|
AccessFee: 'access_fee',
|
|
183
211
|
PerCourt: 'per_court'
|
|
184
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
export const ParticipationType = {
|
|
219
|
+
Solo: 'solo',
|
|
220
|
+
Team: 'team'
|
|
221
|
+
};
|
|
185
222
|
/**
|
|
186
223
|
*
|
|
187
224
|
* @export
|
|
@@ -222,6 +259,12 @@ export const PublicAccessSettingsPaymentModeEnum = {
|
|
|
222
259
|
AccessFee: 'access_fee',
|
|
223
260
|
PerCourt: 'per_court'
|
|
224
261
|
};
|
|
262
|
+
export const RecurringDefinitionResponseRecurringTypeEnum = {
|
|
263
|
+
Daily: 'daily',
|
|
264
|
+
Weekly: 'weekly',
|
|
265
|
+
Monthly: 'monthly',
|
|
266
|
+
Unique: 'unique'
|
|
267
|
+
};
|
|
225
268
|
export const RegisterRequestBodyLocationTypeEnum = {
|
|
226
269
|
Point: 'Point'
|
|
227
270
|
};
|
|
@@ -397,9 +440,38 @@ export const UpdateEventRequestVisibilityTypeEnum = {
|
|
|
397
440
|
Private: 'private',
|
|
398
441
|
Invitation: 'invitation'
|
|
399
442
|
};
|
|
443
|
+
export const UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
|
|
444
|
+
Public: 'public',
|
|
445
|
+
Private: 'private',
|
|
446
|
+
Invitation: 'invitation'
|
|
447
|
+
};
|
|
448
|
+
export const UpdateRecurringDefinitionRequestTypeEnum = {
|
|
449
|
+
Event: 'event',
|
|
450
|
+
Closure: 'closure'
|
|
451
|
+
};
|
|
452
|
+
export const UpdateRecurringDefinitionRequestParticipationTypeEnum = {
|
|
453
|
+
Solo: 'solo',
|
|
454
|
+
Team: 'team'
|
|
455
|
+
};
|
|
456
|
+
export const UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
457
|
+
Daily: 'daily',
|
|
458
|
+
Weekly: 'weekly',
|
|
459
|
+
Monthly: 'monthly',
|
|
460
|
+
Unique: 'unique'
|
|
461
|
+
};
|
|
400
462
|
export const UserLocationSummaryTypeEnum = {
|
|
401
463
|
Point: 'Point'
|
|
402
464
|
};
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @export
|
|
468
|
+
* @enum {string}
|
|
469
|
+
*/
|
|
470
|
+
export const VisibilityType = {
|
|
471
|
+
Public: 'public',
|
|
472
|
+
Private: 'private',
|
|
473
|
+
Invitation: 'invitation'
|
|
474
|
+
};
|
|
403
475
|
/**
|
|
404
476
|
* BookingsApi - axios parameter creator
|
|
405
477
|
* @export
|
|
@@ -7468,10 +7540,11 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7468
7540
|
/**
|
|
7469
7541
|
* Get a specific event by ID
|
|
7470
7542
|
* @param {string} eventId
|
|
7543
|
+
* @param {string} [userId]
|
|
7471
7544
|
* @param {*} [options] Override http request option.
|
|
7472
7545
|
* @throws {RequiredError}
|
|
7473
7546
|
*/
|
|
7474
|
-
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7547
|
+
getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
|
|
7475
7548
|
// verify required parameter 'eventId' is not null or undefined
|
|
7476
7549
|
assertParamExists('getEventById', 'eventId', eventId);
|
|
7477
7550
|
const localVarPath = `/api/events/{eventId}`
|
|
@@ -7485,6 +7558,9 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7485
7558
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7486
7559
|
const localVarHeaderParameter = {};
|
|
7487
7560
|
const localVarQueryParameter = {};
|
|
7561
|
+
if (userId !== undefined) {
|
|
7562
|
+
localVarQueryParameter['userId'] = userId;
|
|
7563
|
+
}
|
|
7488
7564
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7489
7565
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7490
7566
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7644,13 +7720,14 @@ export const EventsApiFp = function (configuration) {
|
|
|
7644
7720
|
/**
|
|
7645
7721
|
* Get a specific event by ID
|
|
7646
7722
|
* @param {string} eventId
|
|
7723
|
+
* @param {string} [userId]
|
|
7647
7724
|
* @param {*} [options] Override http request option.
|
|
7648
7725
|
* @throws {RequiredError}
|
|
7649
7726
|
*/
|
|
7650
|
-
getEventById(eventId, options) {
|
|
7727
|
+
getEventById(eventId, userId, options) {
|
|
7651
7728
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7652
7729
|
var _a, _b, _c;
|
|
7653
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
7730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
|
|
7654
7731
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7655
7732
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7656
7733
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7739,7 +7816,7 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7739
7816
|
* @throws {RequiredError}
|
|
7740
7817
|
*/
|
|
7741
7818
|
getEventById(requestParameters, options) {
|
|
7742
|
-
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
7819
|
+
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
7743
7820
|
},
|
|
7744
7821
|
/**
|
|
7745
7822
|
* Get all published events for a club
|
|
@@ -7805,7 +7882,7 @@ export class EventsApi extends BaseAPI {
|
|
|
7805
7882
|
* @memberof EventsApi
|
|
7806
7883
|
*/
|
|
7807
7884
|
getEventById(requestParameters, options) {
|
|
7808
|
-
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
7885
|
+
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
7809
7886
|
}
|
|
7810
7887
|
/**
|
|
7811
7888
|
* Get all published events for a club
|
|
@@ -7954,6 +8031,37 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7954
8031
|
options: localVarRequestOptions,
|
|
7955
8032
|
};
|
|
7956
8033
|
}),
|
|
8034
|
+
/**
|
|
8035
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8036
|
+
* @param {number} [days]
|
|
8037
|
+
* @param {*} [options] Override http request option.
|
|
8038
|
+
* @throws {RequiredError}
|
|
8039
|
+
*/
|
|
8040
|
+
getExpiringRecurringDefinitions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
8041
|
+
const localVarPath = `/api/events/manager/recurring/expiring`;
|
|
8042
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8043
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8044
|
+
let baseOptions;
|
|
8045
|
+
if (configuration) {
|
|
8046
|
+
baseOptions = configuration.baseOptions;
|
|
8047
|
+
}
|
|
8048
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8049
|
+
const localVarHeaderParameter = {};
|
|
8050
|
+
const localVarQueryParameter = {};
|
|
8051
|
+
// authentication bearerAuth required
|
|
8052
|
+
// http bearer authentication required
|
|
8053
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8054
|
+
if (days !== undefined) {
|
|
8055
|
+
localVarQueryParameter['days'] = days;
|
|
8056
|
+
}
|
|
8057
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8058
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8059
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8060
|
+
return {
|
|
8061
|
+
url: toPathString(localVarUrlObj),
|
|
8062
|
+
options: localVarRequestOptions,
|
|
8063
|
+
};
|
|
8064
|
+
}),
|
|
7957
8065
|
/**
|
|
7958
8066
|
* Publish an event (manager)
|
|
7959
8067
|
* @param {string} eventId
|
|
@@ -8088,6 +8196,42 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
8088
8196
|
options: localVarRequestOptions,
|
|
8089
8197
|
};
|
|
8090
8198
|
}),
|
|
8199
|
+
/**
|
|
8200
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8201
|
+
* @param {string} definitionId
|
|
8202
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8203
|
+
* @param {*} [options] Override http request option.
|
|
8204
|
+
* @throws {RequiredError}
|
|
8205
|
+
*/
|
|
8206
|
+
updateRecurringDefinition: (definitionId_1, updateRecurringDefinitionRequest_1, ...args_1) => __awaiter(this, [definitionId_1, updateRecurringDefinitionRequest_1, ...args_1], void 0, function* (definitionId, updateRecurringDefinitionRequest, options = {}) {
|
|
8207
|
+
// verify required parameter 'definitionId' is not null or undefined
|
|
8208
|
+
assertParamExists('updateRecurringDefinition', 'definitionId', definitionId);
|
|
8209
|
+
// verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
|
|
8210
|
+
assertParamExists('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest);
|
|
8211
|
+
const localVarPath = `/api/events/manager/recurring/{definitionId}`
|
|
8212
|
+
.replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
|
|
8213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8215
|
+
let baseOptions;
|
|
8216
|
+
if (configuration) {
|
|
8217
|
+
baseOptions = configuration.baseOptions;
|
|
8218
|
+
}
|
|
8219
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8220
|
+
const localVarHeaderParameter = {};
|
|
8221
|
+
const localVarQueryParameter = {};
|
|
8222
|
+
// authentication bearerAuth required
|
|
8223
|
+
// http bearer authentication required
|
|
8224
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8226
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8228
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8229
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRecurringDefinitionRequest, localVarRequestOptions, configuration);
|
|
8230
|
+
return {
|
|
8231
|
+
url: toPathString(localVarUrlObj),
|
|
8232
|
+
options: localVarRequestOptions,
|
|
8233
|
+
};
|
|
8234
|
+
}),
|
|
8091
8235
|
};
|
|
8092
8236
|
};
|
|
8093
8237
|
/**
|
|
@@ -8142,6 +8286,21 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
8142
8286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8143
8287
|
});
|
|
8144
8288
|
},
|
|
8289
|
+
/**
|
|
8290
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8291
|
+
* @param {number} [days]
|
|
8292
|
+
* @param {*} [options] Override http request option.
|
|
8293
|
+
* @throws {RequiredError}
|
|
8294
|
+
*/
|
|
8295
|
+
getExpiringRecurringDefinitions(days, options) {
|
|
8296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8297
|
+
var _a, _b, _c;
|
|
8298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
|
|
8299
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8300
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8301
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8302
|
+
});
|
|
8303
|
+
},
|
|
8145
8304
|
/**
|
|
8146
8305
|
* Publish an event (manager)
|
|
8147
8306
|
* @param {string} eventId
|
|
@@ -8204,6 +8363,22 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
8204
8363
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8205
8364
|
});
|
|
8206
8365
|
},
|
|
8366
|
+
/**
|
|
8367
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8368
|
+
* @param {string} definitionId
|
|
8369
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8370
|
+
* @param {*} [options] Override http request option.
|
|
8371
|
+
* @throws {RequiredError}
|
|
8372
|
+
*/
|
|
8373
|
+
updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options) {
|
|
8374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8375
|
+
var _a, _b, _c;
|
|
8376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
|
|
8377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8378
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updateRecurringDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8380
|
+
});
|
|
8381
|
+
},
|
|
8207
8382
|
};
|
|
8208
8383
|
};
|
|
8209
8384
|
/**
|
|
@@ -8240,6 +8415,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
8240
8415
|
deleteEvent(requestParameters, options) {
|
|
8241
8416
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8242
8417
|
},
|
|
8418
|
+
/**
|
|
8419
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8420
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8421
|
+
* @param {*} [options] Override http request option.
|
|
8422
|
+
* @throws {RequiredError}
|
|
8423
|
+
*/
|
|
8424
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8425
|
+
return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
|
|
8426
|
+
},
|
|
8243
8427
|
/**
|
|
8244
8428
|
* Publish an event (manager)
|
|
8245
8429
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8276,6 +8460,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
8276
8460
|
updatePublishedEvent(requestParameters, options) {
|
|
8277
8461
|
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
8278
8462
|
},
|
|
8463
|
+
/**
|
|
8464
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8465
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8466
|
+
* @param {*} [options] Override http request option.
|
|
8467
|
+
* @throws {RequiredError}
|
|
8468
|
+
*/
|
|
8469
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8470
|
+
return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
8471
|
+
},
|
|
8279
8472
|
};
|
|
8280
8473
|
};
|
|
8281
8474
|
/**
|
|
@@ -8315,6 +8508,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
8315
8508
|
deleteEvent(requestParameters, options) {
|
|
8316
8509
|
return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8317
8510
|
}
|
|
8511
|
+
/**
|
|
8512
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8513
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8514
|
+
* @param {*} [options] Override http request option.
|
|
8515
|
+
* @throws {RequiredError}
|
|
8516
|
+
* @memberof EventsManagerApi
|
|
8517
|
+
*/
|
|
8518
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8519
|
+
return EventsManagerApiFp(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
|
|
8520
|
+
}
|
|
8318
8521
|
/**
|
|
8319
8522
|
* Publish an event (manager)
|
|
8320
8523
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8355,6 +8558,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
8355
8558
|
updatePublishedEvent(requestParameters, options) {
|
|
8356
8559
|
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8357
8560
|
}
|
|
8561
|
+
/**
|
|
8562
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8563
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8564
|
+
* @param {*} [options] Override http request option.
|
|
8565
|
+
* @throws {RequiredError}
|
|
8566
|
+
* @memberof EventsManagerApi
|
|
8567
|
+
*/
|
|
8568
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8569
|
+
return EventsManagerApiFp(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8570
|
+
}
|
|
8358
8571
|
}
|
|
8359
8572
|
/**
|
|
8360
8573
|
* EventsStaffApi - axios parameter creator
|
|
@@ -10759,6 +10972,41 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10759
10972
|
options: localVarRequestOptions,
|
|
10760
10973
|
};
|
|
10761
10974
|
}),
|
|
10975
|
+
/**
|
|
10976
|
+
*
|
|
10977
|
+
* @param {number} [limit]
|
|
10978
|
+
* @param {number} [skip]
|
|
10979
|
+
* @param {*} [options] Override http request option.
|
|
10980
|
+
* @throws {RequiredError}
|
|
10981
|
+
*/
|
|
10982
|
+
getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
10983
|
+
const localVarPath = `/api/users/me/events`;
|
|
10984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10986
|
+
let baseOptions;
|
|
10987
|
+
if (configuration) {
|
|
10988
|
+
baseOptions = configuration.baseOptions;
|
|
10989
|
+
}
|
|
10990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10991
|
+
const localVarHeaderParameter = {};
|
|
10992
|
+
const localVarQueryParameter = {};
|
|
10993
|
+
// authentication bearerAuth required
|
|
10994
|
+
// http bearer authentication required
|
|
10995
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10996
|
+
if (limit !== undefined) {
|
|
10997
|
+
localVarQueryParameter['limit'] = limit;
|
|
10998
|
+
}
|
|
10999
|
+
if (skip !== undefined) {
|
|
11000
|
+
localVarQueryParameter['skip'] = skip;
|
|
11001
|
+
}
|
|
11002
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11003
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11004
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11005
|
+
return {
|
|
11006
|
+
url: toPathString(localVarUrlObj),
|
|
11007
|
+
options: localVarRequestOptions,
|
|
11008
|
+
};
|
|
11009
|
+
}),
|
|
10762
11010
|
/**
|
|
10763
11011
|
*
|
|
10764
11012
|
* @param {string} id
|
|
@@ -11618,6 +11866,22 @@ export const UsersApiFp = function (configuration) {
|
|
|
11618
11866
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11619
11867
|
});
|
|
11620
11868
|
},
|
|
11869
|
+
/**
|
|
11870
|
+
*
|
|
11871
|
+
* @param {number} [limit]
|
|
11872
|
+
* @param {number} [skip]
|
|
11873
|
+
* @param {*} [options] Override http request option.
|
|
11874
|
+
* @throws {RequiredError}
|
|
11875
|
+
*/
|
|
11876
|
+
getUserEvents(limit, skip, options) {
|
|
11877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11878
|
+
var _a, _b, _c;
|
|
11879
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
|
|
11880
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11881
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11883
|
+
});
|
|
11884
|
+
},
|
|
11621
11885
|
/**
|
|
11622
11886
|
*
|
|
11623
11887
|
* @param {string} id
|
|
@@ -12059,6 +12323,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
12059
12323
|
getUserBookings(requestParameters = {}, options) {
|
|
12060
12324
|
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12061
12325
|
},
|
|
12326
|
+
/**
|
|
12327
|
+
*
|
|
12328
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12329
|
+
* @param {*} [options] Override http request option.
|
|
12330
|
+
* @throws {RequiredError}
|
|
12331
|
+
*/
|
|
12332
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12333
|
+
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12334
|
+
},
|
|
12062
12335
|
/**
|
|
12063
12336
|
*
|
|
12064
12337
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -12401,6 +12674,16 @@ export class UsersApi extends BaseAPI {
|
|
|
12401
12674
|
getUserBookings(requestParameters = {}, options) {
|
|
12402
12675
|
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12403
12676
|
}
|
|
12677
|
+
/**
|
|
12678
|
+
*
|
|
12679
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12680
|
+
* @param {*} [options] Override http request option.
|
|
12681
|
+
* @throws {RequiredError}
|
|
12682
|
+
* @memberof UsersApi
|
|
12683
|
+
*/
|
|
12684
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12685
|
+
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12686
|
+
}
|
|
12404
12687
|
/**
|
|
12405
12688
|
*
|
|
12406
12689
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**creditsAppliedInCents** | **number** | | [optional] [default to undefined]
|
|
11
11
|
**currency** | **string** | | [default to undefined]
|
|
12
12
|
**total** | **number** | | [default to undefined]
|
|
13
|
-
**perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
14
13
|
**perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
15
14
|
|
|
16
15
|
## Example
|
|
@@ -24,7 +23,6 @@ const instance: EstimateEventPrice200Response = {
|
|
|
24
23
|
creditsAppliedInCents,
|
|
25
24
|
currency,
|
|
26
25
|
total,
|
|
27
|
-
perPayer,
|
|
28
26
|
perPlayer,
|
|
29
27
|
};
|
|
30
28
|
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# EventBookingDetailSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
12
|
+
**paymentPerPlayers** | [**Array<EventBookingDetailSummaryPaymentPerPlayersInner>**](EventBookingDetailSummaryPaymentPerPlayersInner.md) | Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`. | [default to undefined]
|
|
13
|
+
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
15
|
+
**limitSetupDate** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**limitCancellationDate** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { EventBookingDetailSummary } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: EventBookingDetailSummary = {
|
|
26
|
+
id,
|
|
27
|
+
status,
|
|
28
|
+
teamName,
|
|
29
|
+
players,
|
|
30
|
+
paymentPerPlayers,
|
|
31
|
+
creatorPaymentMethodId,
|
|
32
|
+
paymentMethodSetupCompleted,
|
|
33
|
+
limitSetupDate,
|
|
34
|
+
limitCancellationDate,
|
|
35
|
+
createdAt,
|
|
36
|
+
updatedAt,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# EventBookingDetailSummaryPaymentPerPlayersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**status** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
10
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**id** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EventBookingDetailSummaryPaymentPerPlayersInner } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EventBookingDetailSummaryPaymentPerPlayersInner = {
|
|
21
|
+
amount,
|
|
22
|
+
status,
|
|
23
|
+
profilePicture,
|
|
24
|
+
lastName,
|
|
25
|
+
firstName,
|
|
26
|
+
id,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|