@tennac-booking/sdk 1.0.169 → 1.0.171
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 +394 -380
- package/README.md +21 -2
- package/api.ts +1082 -34
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +680 -1
- package/dist/api.js +637 -3
- 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 +680 -1
- package/dist/esm/api.js +623 -1
- 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/EmailExistsRequestBody.md +20 -0
- package/docs/EmailExistsResponse.md +20 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventsWaitListApi.md +175 -0
- package/docs/EventsWaitListStaffApi.md +115 -0
- package/docs/GetUserPosition200Response.md +22 -0
- package/docs/GetWaitListForEvent200Response.md +22 -0
- package/docs/JoinWaitList200Response.md +26 -0
- package/docs/JoinWaitListRequest.md +22 -0
- package/docs/PublicEmailApi.md +167 -0
- package/docs/RequestEmailCodeBody.md +20 -0
- package/docs/RequestEmailCodeResponse.md +22 -0
- package/docs/VerifyEmailCodeBody.md +22 -0
- package/docs/VerifyEmailCodeResponse.md +22 -0
- package/docs/WaitListResponse.md +38 -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.171
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,8 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
26
|
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 = 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.WeekdayKey = void 0;
|
|
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 = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
27
|
+
exports.EventsWaitListStaffApiFactory = exports.EventsWaitListStaffApiFp = exports.EventsWaitListStaffApiAxiosParamCreator = exports.EventsWaitListApi = exports.EventsWaitListApiFactory = exports.EventsWaitListApiFp = exports.EventsWaitListApiAxiosParamCreator = 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.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 = 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 = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.EventsWaitListStaffApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -11033,6 +11033,413 @@ exports.GetWeeklyEventsTypeEnum = {
|
|
|
11033
11033
|
Event: 'event',
|
|
11034
11034
|
Closure: 'closure'
|
|
11035
11035
|
};
|
|
11036
|
+
/**
|
|
11037
|
+
* EventsWaitListApi - axios parameter creator
|
|
11038
|
+
* @export
|
|
11039
|
+
*/
|
|
11040
|
+
const EventsWaitListApiAxiosParamCreator = function (configuration) {
|
|
11041
|
+
return {
|
|
11042
|
+
/**
|
|
11043
|
+
* Obtenir la position actuelle dans la file d\'attente
|
|
11044
|
+
* @param {string} eventId
|
|
11045
|
+
* @param {*} [options] Override http request option.
|
|
11046
|
+
* @throws {RequiredError}
|
|
11047
|
+
*/
|
|
11048
|
+
getUserPosition: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
11049
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11050
|
+
(0, common_1.assertParamExists)('getUserPosition', 'eventId', eventId);
|
|
11051
|
+
const localVarPath = `/api/events/waitlist/{eventId}/position`
|
|
11052
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11053
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11054
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11055
|
+
let baseOptions;
|
|
11056
|
+
if (configuration) {
|
|
11057
|
+
baseOptions = configuration.baseOptions;
|
|
11058
|
+
}
|
|
11059
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11060
|
+
const localVarHeaderParameter = {};
|
|
11061
|
+
const localVarQueryParameter = {};
|
|
11062
|
+
// authentication bearerAuth required
|
|
11063
|
+
// http bearer authentication required
|
|
11064
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11065
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11067
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11068
|
+
return {
|
|
11069
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11070
|
+
options: localVarRequestOptions,
|
|
11071
|
+
};
|
|
11072
|
+
}),
|
|
11073
|
+
/**
|
|
11074
|
+
* Rejoindre la file d\'attente pour un événement
|
|
11075
|
+
* @param {string} eventId
|
|
11076
|
+
* @param {JoinWaitListRequest} joinWaitListRequest
|
|
11077
|
+
* @param {*} [options] Override http request option.
|
|
11078
|
+
* @throws {RequiredError}
|
|
11079
|
+
*/
|
|
11080
|
+
joinWaitList: (eventId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinWaitListRequest_1, ...args_1], void 0, function* (eventId, joinWaitListRequest, options = {}) {
|
|
11081
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11082
|
+
(0, common_1.assertParamExists)('joinWaitList', 'eventId', eventId);
|
|
11083
|
+
// verify required parameter 'joinWaitListRequest' is not null or undefined
|
|
11084
|
+
(0, common_1.assertParamExists)('joinWaitList', 'joinWaitListRequest', joinWaitListRequest);
|
|
11085
|
+
const localVarPath = `/api/events/waitlist/{eventId}/join`
|
|
11086
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11088
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11089
|
+
let baseOptions;
|
|
11090
|
+
if (configuration) {
|
|
11091
|
+
baseOptions = configuration.baseOptions;
|
|
11092
|
+
}
|
|
11093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11094
|
+
const localVarHeaderParameter = {};
|
|
11095
|
+
const localVarQueryParameter = {};
|
|
11096
|
+
// authentication bearerAuth required
|
|
11097
|
+
// http bearer authentication required
|
|
11098
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11100
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11103
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
|
|
11104
|
+
return {
|
|
11105
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11106
|
+
options: localVarRequestOptions,
|
|
11107
|
+
};
|
|
11108
|
+
}),
|
|
11109
|
+
/**
|
|
11110
|
+
* Quitter la file d\'attente
|
|
11111
|
+
* @param {string} eventId
|
|
11112
|
+
* @param {*} [options] Override http request option.
|
|
11113
|
+
* @throws {RequiredError}
|
|
11114
|
+
*/
|
|
11115
|
+
leaveWaitList: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
11116
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11117
|
+
(0, common_1.assertParamExists)('leaveWaitList', 'eventId', eventId);
|
|
11118
|
+
const localVarPath = `/api/events/waitlist/{eventId}/leave`
|
|
11119
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11121
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11122
|
+
let baseOptions;
|
|
11123
|
+
if (configuration) {
|
|
11124
|
+
baseOptions = configuration.baseOptions;
|
|
11125
|
+
}
|
|
11126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11127
|
+
const localVarHeaderParameter = {};
|
|
11128
|
+
const localVarQueryParameter = {};
|
|
11129
|
+
// authentication bearerAuth required
|
|
11130
|
+
// http bearer authentication required
|
|
11131
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11134
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11135
|
+
return {
|
|
11136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11137
|
+
options: localVarRequestOptions,
|
|
11138
|
+
};
|
|
11139
|
+
}),
|
|
11140
|
+
};
|
|
11141
|
+
};
|
|
11142
|
+
exports.EventsWaitListApiAxiosParamCreator = EventsWaitListApiAxiosParamCreator;
|
|
11143
|
+
/**
|
|
11144
|
+
* EventsWaitListApi - functional programming interface
|
|
11145
|
+
* @export
|
|
11146
|
+
*/
|
|
11147
|
+
const EventsWaitListApiFp = function (configuration) {
|
|
11148
|
+
const localVarAxiosParamCreator = (0, exports.EventsWaitListApiAxiosParamCreator)(configuration);
|
|
11149
|
+
return {
|
|
11150
|
+
/**
|
|
11151
|
+
* Obtenir la position actuelle dans la file d\'attente
|
|
11152
|
+
* @param {string} eventId
|
|
11153
|
+
* @param {*} [options] Override http request option.
|
|
11154
|
+
* @throws {RequiredError}
|
|
11155
|
+
*/
|
|
11156
|
+
getUserPosition(eventId, options) {
|
|
11157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11158
|
+
var _a, _b, _c;
|
|
11159
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPosition(eventId, options);
|
|
11160
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11161
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsWaitListApi.getUserPosition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11162
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11163
|
+
});
|
|
11164
|
+
},
|
|
11165
|
+
/**
|
|
11166
|
+
* Rejoindre la file d\'attente pour un événement
|
|
11167
|
+
* @param {string} eventId
|
|
11168
|
+
* @param {JoinWaitListRequest} joinWaitListRequest
|
|
11169
|
+
* @param {*} [options] Override http request option.
|
|
11170
|
+
* @throws {RequiredError}
|
|
11171
|
+
*/
|
|
11172
|
+
joinWaitList(eventId, joinWaitListRequest, options) {
|
|
11173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11174
|
+
var _a, _b, _c;
|
|
11175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinWaitList(eventId, joinWaitListRequest, options);
|
|
11176
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11177
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsWaitListApi.joinWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11179
|
+
});
|
|
11180
|
+
},
|
|
11181
|
+
/**
|
|
11182
|
+
* Quitter la file d\'attente
|
|
11183
|
+
* @param {string} eventId
|
|
11184
|
+
* @param {*} [options] Override http request option.
|
|
11185
|
+
* @throws {RequiredError}
|
|
11186
|
+
*/
|
|
11187
|
+
leaveWaitList(eventId, options) {
|
|
11188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11189
|
+
var _a, _b, _c;
|
|
11190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveWaitList(eventId, options);
|
|
11191
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11192
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsWaitListApi.leaveWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11194
|
+
});
|
|
11195
|
+
},
|
|
11196
|
+
};
|
|
11197
|
+
};
|
|
11198
|
+
exports.EventsWaitListApiFp = EventsWaitListApiFp;
|
|
11199
|
+
/**
|
|
11200
|
+
* EventsWaitListApi - factory interface
|
|
11201
|
+
* @export
|
|
11202
|
+
*/
|
|
11203
|
+
const EventsWaitListApiFactory = function (configuration, basePath, axios) {
|
|
11204
|
+
const localVarFp = (0, exports.EventsWaitListApiFp)(configuration);
|
|
11205
|
+
return {
|
|
11206
|
+
/**
|
|
11207
|
+
* Obtenir la position actuelle dans la file d\'attente
|
|
11208
|
+
* @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
|
|
11209
|
+
* @param {*} [options] Override http request option.
|
|
11210
|
+
* @throws {RequiredError}
|
|
11211
|
+
*/
|
|
11212
|
+
getUserPosition(requestParameters, options) {
|
|
11213
|
+
return localVarFp.getUserPosition(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11214
|
+
},
|
|
11215
|
+
/**
|
|
11216
|
+
* Rejoindre la file d\'attente pour un événement
|
|
11217
|
+
* @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
|
|
11218
|
+
* @param {*} [options] Override http request option.
|
|
11219
|
+
* @throws {RequiredError}
|
|
11220
|
+
*/
|
|
11221
|
+
joinWaitList(requestParameters, options) {
|
|
11222
|
+
return localVarFp.joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
|
|
11223
|
+
},
|
|
11224
|
+
/**
|
|
11225
|
+
* Quitter la file d\'attente
|
|
11226
|
+
* @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
|
|
11227
|
+
* @param {*} [options] Override http request option.
|
|
11228
|
+
* @throws {RequiredError}
|
|
11229
|
+
*/
|
|
11230
|
+
leaveWaitList(requestParameters, options) {
|
|
11231
|
+
return localVarFp.leaveWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11232
|
+
},
|
|
11233
|
+
};
|
|
11234
|
+
};
|
|
11235
|
+
exports.EventsWaitListApiFactory = EventsWaitListApiFactory;
|
|
11236
|
+
/**
|
|
11237
|
+
* EventsWaitListApi - object-oriented interface
|
|
11238
|
+
* @export
|
|
11239
|
+
* @class EventsWaitListApi
|
|
11240
|
+
* @extends {BaseAPI}
|
|
11241
|
+
*/
|
|
11242
|
+
class EventsWaitListApi extends base_1.BaseAPI {
|
|
11243
|
+
/**
|
|
11244
|
+
* Obtenir la position actuelle dans la file d\'attente
|
|
11245
|
+
* @param {EventsWaitListApiGetUserPositionRequest} requestParameters Request parameters.
|
|
11246
|
+
* @param {*} [options] Override http request option.
|
|
11247
|
+
* @throws {RequiredError}
|
|
11248
|
+
* @memberof EventsWaitListApi
|
|
11249
|
+
*/
|
|
11250
|
+
getUserPosition(requestParameters, options) {
|
|
11251
|
+
return (0, exports.EventsWaitListApiFp)(this.configuration).getUserPosition(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11252
|
+
}
|
|
11253
|
+
/**
|
|
11254
|
+
* Rejoindre la file d\'attente pour un événement
|
|
11255
|
+
* @param {EventsWaitListApiJoinWaitListRequest} requestParameters Request parameters.
|
|
11256
|
+
* @param {*} [options] Override http request option.
|
|
11257
|
+
* @throws {RequiredError}
|
|
11258
|
+
* @memberof EventsWaitListApi
|
|
11259
|
+
*/
|
|
11260
|
+
joinWaitList(requestParameters, options) {
|
|
11261
|
+
return (0, exports.EventsWaitListApiFp)(this.configuration).joinWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11262
|
+
}
|
|
11263
|
+
/**
|
|
11264
|
+
* Quitter la file d\'attente
|
|
11265
|
+
* @param {EventsWaitListApiLeaveWaitListRequest} requestParameters Request parameters.
|
|
11266
|
+
* @param {*} [options] Override http request option.
|
|
11267
|
+
* @throws {RequiredError}
|
|
11268
|
+
* @memberof EventsWaitListApi
|
|
11269
|
+
*/
|
|
11270
|
+
leaveWaitList(requestParameters, options) {
|
|
11271
|
+
return (0, exports.EventsWaitListApiFp)(this.configuration).leaveWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11272
|
+
}
|
|
11273
|
+
}
|
|
11274
|
+
exports.EventsWaitListApi = EventsWaitListApi;
|
|
11275
|
+
/**
|
|
11276
|
+
* EventsWaitListStaffApi - axios parameter creator
|
|
11277
|
+
* @export
|
|
11278
|
+
*/
|
|
11279
|
+
const EventsWaitListStaffApiAxiosParamCreator = function (configuration) {
|
|
11280
|
+
return {
|
|
11281
|
+
/**
|
|
11282
|
+
* Obtenir la liste complète de la file d\'attente (staff only)
|
|
11283
|
+
* @param {string} eventId
|
|
11284
|
+
* @param {*} [options] Override http request option.
|
|
11285
|
+
* @throws {RequiredError}
|
|
11286
|
+
*/
|
|
11287
|
+
getWaitListForEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
11288
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11289
|
+
(0, common_1.assertParamExists)('getWaitListForEvent', 'eventId', eventId);
|
|
11290
|
+
const localVarPath = `/api/events/waitlist/{eventId}`
|
|
11291
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11293
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11294
|
+
let baseOptions;
|
|
11295
|
+
if (configuration) {
|
|
11296
|
+
baseOptions = configuration.baseOptions;
|
|
11297
|
+
}
|
|
11298
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11299
|
+
const localVarHeaderParameter = {};
|
|
11300
|
+
const localVarQueryParameter = {};
|
|
11301
|
+
// authentication bearerAuth required
|
|
11302
|
+
// http bearer authentication required
|
|
11303
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11304
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11306
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11307
|
+
return {
|
|
11308
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11309
|
+
options: localVarRequestOptions,
|
|
11310
|
+
};
|
|
11311
|
+
}),
|
|
11312
|
+
/**
|
|
11313
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11314
|
+
* @param {string} eventId
|
|
11315
|
+
* @param {*} [options] Override http request option.
|
|
11316
|
+
* @throws {RequiredError}
|
|
11317
|
+
*/
|
|
11318
|
+
processWaitList: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
11319
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11320
|
+
(0, common_1.assertParamExists)('processWaitList', 'eventId', eventId);
|
|
11321
|
+
const localVarPath = `/api/events/waitlist/{eventId}/process`
|
|
11322
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11324
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11325
|
+
let baseOptions;
|
|
11326
|
+
if (configuration) {
|
|
11327
|
+
baseOptions = configuration.baseOptions;
|
|
11328
|
+
}
|
|
11329
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11330
|
+
const localVarHeaderParameter = {};
|
|
11331
|
+
const localVarQueryParameter = {};
|
|
11332
|
+
// authentication bearerAuth required
|
|
11333
|
+
// http bearer authentication required
|
|
11334
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11338
|
+
return {
|
|
11339
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11340
|
+
options: localVarRequestOptions,
|
|
11341
|
+
};
|
|
11342
|
+
}),
|
|
11343
|
+
};
|
|
11344
|
+
};
|
|
11345
|
+
exports.EventsWaitListStaffApiAxiosParamCreator = EventsWaitListStaffApiAxiosParamCreator;
|
|
11346
|
+
/**
|
|
11347
|
+
* EventsWaitListStaffApi - functional programming interface
|
|
11348
|
+
* @export
|
|
11349
|
+
*/
|
|
11350
|
+
const EventsWaitListStaffApiFp = function (configuration) {
|
|
11351
|
+
const localVarAxiosParamCreator = (0, exports.EventsWaitListStaffApiAxiosParamCreator)(configuration);
|
|
11352
|
+
return {
|
|
11353
|
+
/**
|
|
11354
|
+
* Obtenir la liste complète de la file d\'attente (staff only)
|
|
11355
|
+
* @param {string} eventId
|
|
11356
|
+
* @param {*} [options] Override http request option.
|
|
11357
|
+
* @throws {RequiredError}
|
|
11358
|
+
*/
|
|
11359
|
+
getWaitListForEvent(eventId, options) {
|
|
11360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11361
|
+
var _a, _b, _c;
|
|
11362
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWaitListForEvent(eventId, options);
|
|
11363
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11364
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsWaitListStaffApi.getWaitListForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11365
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11366
|
+
});
|
|
11367
|
+
},
|
|
11368
|
+
/**
|
|
11369
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11370
|
+
* @param {string} eventId
|
|
11371
|
+
* @param {*} [options] Override http request option.
|
|
11372
|
+
* @throws {RequiredError}
|
|
11373
|
+
*/
|
|
11374
|
+
processWaitList(eventId, options) {
|
|
11375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11376
|
+
var _a, _b, _c;
|
|
11377
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.processWaitList(eventId, options);
|
|
11378
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11379
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsWaitListStaffApi.processWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11380
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11381
|
+
});
|
|
11382
|
+
},
|
|
11383
|
+
};
|
|
11384
|
+
};
|
|
11385
|
+
exports.EventsWaitListStaffApiFp = EventsWaitListStaffApiFp;
|
|
11386
|
+
/**
|
|
11387
|
+
* EventsWaitListStaffApi - factory interface
|
|
11388
|
+
* @export
|
|
11389
|
+
*/
|
|
11390
|
+
const EventsWaitListStaffApiFactory = function (configuration, basePath, axios) {
|
|
11391
|
+
const localVarFp = (0, exports.EventsWaitListStaffApiFp)(configuration);
|
|
11392
|
+
return {
|
|
11393
|
+
/**
|
|
11394
|
+
* Obtenir la liste complète de la file d\'attente (staff only)
|
|
11395
|
+
* @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
|
|
11396
|
+
* @param {*} [options] Override http request option.
|
|
11397
|
+
* @throws {RequiredError}
|
|
11398
|
+
*/
|
|
11399
|
+
getWaitListForEvent(requestParameters, options) {
|
|
11400
|
+
return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11401
|
+
},
|
|
11402
|
+
/**
|
|
11403
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11404
|
+
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11405
|
+
* @param {*} [options] Override http request option.
|
|
11406
|
+
* @throws {RequiredError}
|
|
11407
|
+
*/
|
|
11408
|
+
processWaitList(requestParameters, options) {
|
|
11409
|
+
return localVarFp.processWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11410
|
+
},
|
|
11411
|
+
};
|
|
11412
|
+
};
|
|
11413
|
+
exports.EventsWaitListStaffApiFactory = EventsWaitListStaffApiFactory;
|
|
11414
|
+
/**
|
|
11415
|
+
* EventsWaitListStaffApi - object-oriented interface
|
|
11416
|
+
* @export
|
|
11417
|
+
* @class EventsWaitListStaffApi
|
|
11418
|
+
* @extends {BaseAPI}
|
|
11419
|
+
*/
|
|
11420
|
+
class EventsWaitListStaffApi extends base_1.BaseAPI {
|
|
11421
|
+
/**
|
|
11422
|
+
* Obtenir la liste complète de la file d\'attente (staff only)
|
|
11423
|
+
* @param {EventsWaitListStaffApiGetWaitListForEventRequest} requestParameters Request parameters.
|
|
11424
|
+
* @param {*} [options] Override http request option.
|
|
11425
|
+
* @throws {RequiredError}
|
|
11426
|
+
* @memberof EventsWaitListStaffApi
|
|
11427
|
+
*/
|
|
11428
|
+
getWaitListForEvent(requestParameters, options) {
|
|
11429
|
+
return (0, exports.EventsWaitListStaffApiFp)(this.configuration).getWaitListForEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11430
|
+
}
|
|
11431
|
+
/**
|
|
11432
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11433
|
+
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11434
|
+
* @param {*} [options] Override http request option.
|
|
11435
|
+
* @throws {RequiredError}
|
|
11436
|
+
* @memberof EventsWaitListStaffApi
|
|
11437
|
+
*/
|
|
11438
|
+
processWaitList(requestParameters, options) {
|
|
11439
|
+
return (0, exports.EventsWaitListStaffApiFp)(this.configuration).processWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11440
|
+
}
|
|
11441
|
+
}
|
|
11442
|
+
exports.EventsWaitListStaffApi = EventsWaitListStaffApi;
|
|
11036
11443
|
/**
|
|
11037
11444
|
* ImagesApi - axios parameter creator
|
|
11038
11445
|
* @export
|
|
@@ -11137,6 +11544,233 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11137
11544
|
}
|
|
11138
11545
|
}
|
|
11139
11546
|
exports.ImagesApi = ImagesApi;
|
|
11547
|
+
/**
|
|
11548
|
+
* PublicEmailApi - axios parameter creator
|
|
11549
|
+
* @export
|
|
11550
|
+
*/
|
|
11551
|
+
const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11552
|
+
return {
|
|
11553
|
+
/**
|
|
11554
|
+
*
|
|
11555
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11556
|
+
* @param {*} [options] Override http request option.
|
|
11557
|
+
* @throws {RequiredError}
|
|
11558
|
+
*/
|
|
11559
|
+
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11560
|
+
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11561
|
+
(0, common_1.assertParamExists)('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11562
|
+
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11563
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11564
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11565
|
+
let baseOptions;
|
|
11566
|
+
if (configuration) {
|
|
11567
|
+
baseOptions = configuration.baseOptions;
|
|
11568
|
+
}
|
|
11569
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11570
|
+
const localVarHeaderParameter = {};
|
|
11571
|
+
const localVarQueryParameter = {};
|
|
11572
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11573
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11575
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11576
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11577
|
+
return {
|
|
11578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11579
|
+
options: localVarRequestOptions,
|
|
11580
|
+
};
|
|
11581
|
+
}),
|
|
11582
|
+
/**
|
|
11583
|
+
*
|
|
11584
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11585
|
+
* @param {*} [options] Override http request option.
|
|
11586
|
+
* @throws {RequiredError}
|
|
11587
|
+
*/
|
|
11588
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11589
|
+
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11590
|
+
(0, common_1.assertParamExists)('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11591
|
+
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11592
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11593
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11594
|
+
let baseOptions;
|
|
11595
|
+
if (configuration) {
|
|
11596
|
+
baseOptions = configuration.baseOptions;
|
|
11597
|
+
}
|
|
11598
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11599
|
+
const localVarHeaderParameter = {};
|
|
11600
|
+
const localVarQueryParameter = {};
|
|
11601
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11602
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11603
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11604
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11605
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11606
|
+
return {
|
|
11607
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11608
|
+
options: localVarRequestOptions,
|
|
11609
|
+
};
|
|
11610
|
+
}),
|
|
11611
|
+
/**
|
|
11612
|
+
*
|
|
11613
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11614
|
+
* @param {*} [options] Override http request option.
|
|
11615
|
+
* @throws {RequiredError}
|
|
11616
|
+
*/
|
|
11617
|
+
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
11618
|
+
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
11619
|
+
(0, common_1.assertParamExists)('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
11620
|
+
const localVarPath = `/api/public-email/verify-code`;
|
|
11621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11622
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11623
|
+
let baseOptions;
|
|
11624
|
+
if (configuration) {
|
|
11625
|
+
baseOptions = configuration.baseOptions;
|
|
11626
|
+
}
|
|
11627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11628
|
+
const localVarHeaderParameter = {};
|
|
11629
|
+
const localVarQueryParameter = {};
|
|
11630
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11631
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11633
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11634
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
11635
|
+
return {
|
|
11636
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11637
|
+
options: localVarRequestOptions,
|
|
11638
|
+
};
|
|
11639
|
+
}),
|
|
11640
|
+
};
|
|
11641
|
+
};
|
|
11642
|
+
exports.PublicEmailApiAxiosParamCreator = PublicEmailApiAxiosParamCreator;
|
|
11643
|
+
/**
|
|
11644
|
+
* PublicEmailApi - functional programming interface
|
|
11645
|
+
* @export
|
|
11646
|
+
*/
|
|
11647
|
+
const PublicEmailApiFp = function (configuration) {
|
|
11648
|
+
const localVarAxiosParamCreator = (0, exports.PublicEmailApiAxiosParamCreator)(configuration);
|
|
11649
|
+
return {
|
|
11650
|
+
/**
|
|
11651
|
+
*
|
|
11652
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11653
|
+
* @param {*} [options] Override http request option.
|
|
11654
|
+
* @throws {RequiredError}
|
|
11655
|
+
*/
|
|
11656
|
+
authEmailExists(emailExistsRequestBody, options) {
|
|
11657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11658
|
+
var _a, _b, _c;
|
|
11659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
11660
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11661
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11662
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11663
|
+
});
|
|
11664
|
+
},
|
|
11665
|
+
/**
|
|
11666
|
+
*
|
|
11667
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11668
|
+
* @param {*} [options] Override http request option.
|
|
11669
|
+
* @throws {RequiredError}
|
|
11670
|
+
*/
|
|
11671
|
+
requestVerificationCode(requestEmailCodeBody, options) {
|
|
11672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11673
|
+
var _a, _b, _c;
|
|
11674
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
|
|
11675
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11676
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11677
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11678
|
+
});
|
|
11679
|
+
},
|
|
11680
|
+
/**
|
|
11681
|
+
*
|
|
11682
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11683
|
+
* @param {*} [options] Override http request option.
|
|
11684
|
+
* @throws {RequiredError}
|
|
11685
|
+
*/
|
|
11686
|
+
verifyCode(verifyEmailCodeBody, options) {
|
|
11687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11688
|
+
var _a, _b, _c;
|
|
11689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
11690
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11691
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11693
|
+
});
|
|
11694
|
+
},
|
|
11695
|
+
};
|
|
11696
|
+
};
|
|
11697
|
+
exports.PublicEmailApiFp = PublicEmailApiFp;
|
|
11698
|
+
/**
|
|
11699
|
+
* PublicEmailApi - factory interface
|
|
11700
|
+
* @export
|
|
11701
|
+
*/
|
|
11702
|
+
const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
11703
|
+
const localVarFp = (0, exports.PublicEmailApiFp)(configuration);
|
|
11704
|
+
return {
|
|
11705
|
+
/**
|
|
11706
|
+
*
|
|
11707
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
11708
|
+
* @param {*} [options] Override http request option.
|
|
11709
|
+
* @throws {RequiredError}
|
|
11710
|
+
*/
|
|
11711
|
+
authEmailExists(requestParameters, options) {
|
|
11712
|
+
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
11713
|
+
},
|
|
11714
|
+
/**
|
|
11715
|
+
*
|
|
11716
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
11717
|
+
* @param {*} [options] Override http request option.
|
|
11718
|
+
* @throws {RequiredError}
|
|
11719
|
+
*/
|
|
11720
|
+
requestVerificationCode(requestParameters, options) {
|
|
11721
|
+
return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11722
|
+
},
|
|
11723
|
+
/**
|
|
11724
|
+
*
|
|
11725
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
11726
|
+
* @param {*} [options] Override http request option.
|
|
11727
|
+
* @throws {RequiredError}
|
|
11728
|
+
*/
|
|
11729
|
+
verifyCode(requestParameters, options) {
|
|
11730
|
+
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11731
|
+
},
|
|
11732
|
+
};
|
|
11733
|
+
};
|
|
11734
|
+
exports.PublicEmailApiFactory = PublicEmailApiFactory;
|
|
11735
|
+
/**
|
|
11736
|
+
* PublicEmailApi - object-oriented interface
|
|
11737
|
+
* @export
|
|
11738
|
+
* @class PublicEmailApi
|
|
11739
|
+
* @extends {BaseAPI}
|
|
11740
|
+
*/
|
|
11741
|
+
class PublicEmailApi extends base_1.BaseAPI {
|
|
11742
|
+
/**
|
|
11743
|
+
*
|
|
11744
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
11745
|
+
* @param {*} [options] Override http request option.
|
|
11746
|
+
* @throws {RequiredError}
|
|
11747
|
+
* @memberof PublicEmailApi
|
|
11748
|
+
*/
|
|
11749
|
+
authEmailExists(requestParameters, options) {
|
|
11750
|
+
return (0, exports.PublicEmailApiFp)(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
11751
|
+
}
|
|
11752
|
+
/**
|
|
11753
|
+
*
|
|
11754
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
11755
|
+
* @param {*} [options] Override http request option.
|
|
11756
|
+
* @throws {RequiredError}
|
|
11757
|
+
* @memberof PublicEmailApi
|
|
11758
|
+
*/
|
|
11759
|
+
requestVerificationCode(requestParameters, options) {
|
|
11760
|
+
return (0, exports.PublicEmailApiFp)(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
11761
|
+
}
|
|
11762
|
+
/**
|
|
11763
|
+
*
|
|
11764
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
11765
|
+
* @param {*} [options] Override http request option.
|
|
11766
|
+
* @throws {RequiredError}
|
|
11767
|
+
* @memberof PublicEmailApi
|
|
11768
|
+
*/
|
|
11769
|
+
verifyCode(requestParameters, options) {
|
|
11770
|
+
return (0, exports.PublicEmailApiFp)(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
exports.PublicEmailApi = PublicEmailApi;
|
|
11140
11774
|
/**
|
|
11141
11775
|
* SportsManagerApi - axios parameter creator
|
|
11142
11776
|
* @export
|