@tennac-booking/sdk 1.0.185 → 1.0.187
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 +423 -412
- package/README.md +19 -3
- package/api.ts +787 -87
- package/dist/api.d.ts +491 -48
- package/dist/api.js +469 -48
- package/dist/esm/api.d.ts +491 -48
- package/dist/esm/api.js +461 -44
- package/docs/AuthApi.md +113 -0
- package/docs/EventsStaffApi.md +119 -25
- package/docs/PublicEmailApi.md +4 -4
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/RequestVerificationCodeResponse.md +20 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/SupportedLanguage.md +10 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +104 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/VerifyVerificationCodeResponse.md +20 -0
- package/package.json +1 -1
- package/docs/StaffEventsPaginatedResponse.md +0 -26
package/dist/api.js
CHANGED
|
@@ -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.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.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 = void 0;
|
|
25
|
+
exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.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
|
+
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.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = void 0;
|
|
27
|
+
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 = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.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.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -323,6 +323,15 @@ exports.StaffUserProfileResponseCreatedFromEnum = {
|
|
|
323
323
|
App: 'app',
|
|
324
324
|
Website: 'website'
|
|
325
325
|
};
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @export
|
|
329
|
+
* @enum {string}
|
|
330
|
+
*/
|
|
331
|
+
exports.SupportedLanguage = {
|
|
332
|
+
Fr: 'fr',
|
|
333
|
+
En: 'en'
|
|
334
|
+
};
|
|
326
335
|
/**
|
|
327
336
|
*
|
|
328
337
|
* @export
|
|
@@ -430,6 +439,170 @@ exports.WeekdayKey = {
|
|
|
430
439
|
Saturday: 'saturday',
|
|
431
440
|
Sunday: 'sunday'
|
|
432
441
|
};
|
|
442
|
+
/**
|
|
443
|
+
* AuthApi - axios parameter creator
|
|
444
|
+
* @export
|
|
445
|
+
*/
|
|
446
|
+
const AuthApiAxiosParamCreator = function (configuration) {
|
|
447
|
+
return {
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
|
|
455
|
+
// verify required parameter 'requestVerificationCodeBody' is not null or undefined
|
|
456
|
+
(0, common_1.assertParamExists)('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
|
|
457
|
+
const localVarPath = `/api/auth/verification-code`;
|
|
458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
460
|
+
let baseOptions;
|
|
461
|
+
if (configuration) {
|
|
462
|
+
baseOptions = configuration.baseOptions;
|
|
463
|
+
}
|
|
464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
465
|
+
const localVarHeaderParameter = {};
|
|
466
|
+
const localVarQueryParameter = {};
|
|
467
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
468
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
471
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestVerificationCodeBody, localVarRequestOptions, configuration);
|
|
472
|
+
return {
|
|
473
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
474
|
+
options: localVarRequestOptions,
|
|
475
|
+
};
|
|
476
|
+
}),
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
|
|
484
|
+
// verify required parameter 'verifyVerificationCodeBody' is not null or undefined
|
|
485
|
+
(0, common_1.assertParamExists)('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
|
|
486
|
+
const localVarPath = `/api/auth/verification-code/verify`;
|
|
487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
488
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
489
|
+
let baseOptions;
|
|
490
|
+
if (configuration) {
|
|
491
|
+
baseOptions = configuration.baseOptions;
|
|
492
|
+
}
|
|
493
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
494
|
+
const localVarHeaderParameter = {};
|
|
495
|
+
const localVarQueryParameter = {};
|
|
496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
497
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
499
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
500
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyVerificationCodeBody, localVarRequestOptions, configuration);
|
|
501
|
+
return {
|
|
502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
503
|
+
options: localVarRequestOptions,
|
|
504
|
+
};
|
|
505
|
+
}),
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
509
|
+
/**
|
|
510
|
+
* AuthApi - functional programming interface
|
|
511
|
+
* @export
|
|
512
|
+
*/
|
|
513
|
+
const AuthApiFp = function (configuration) {
|
|
514
|
+
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
515
|
+
return {
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
519
|
+
* @param {*} [options] Override http request option.
|
|
520
|
+
* @throws {RequiredError}
|
|
521
|
+
*/
|
|
522
|
+
requestVerificationCode(requestVerificationCodeBody, options) {
|
|
523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
+
var _a, _b, _c;
|
|
525
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
|
|
526
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
527
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
528
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
529
|
+
});
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
verifyVerificationCode(verifyVerificationCodeBody, options) {
|
|
538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
539
|
+
var _a, _b, _c;
|
|
540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
|
|
541
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
542
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
543
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
544
|
+
});
|
|
545
|
+
},
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
exports.AuthApiFp = AuthApiFp;
|
|
549
|
+
/**
|
|
550
|
+
* AuthApi - factory interface
|
|
551
|
+
* @export
|
|
552
|
+
*/
|
|
553
|
+
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
554
|
+
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
555
|
+
return {
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
requestVerificationCode(requestParameters, options) {
|
|
563
|
+
return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
verifyVerificationCode(requestParameters, options) {
|
|
572
|
+
return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
573
|
+
},
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
exports.AuthApiFactory = AuthApiFactory;
|
|
577
|
+
/**
|
|
578
|
+
* AuthApi - object-oriented interface
|
|
579
|
+
* @export
|
|
580
|
+
* @class AuthApi
|
|
581
|
+
* @extends {BaseAPI}
|
|
582
|
+
*/
|
|
583
|
+
class AuthApi extends base_1.BaseAPI {
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
* @memberof AuthApi
|
|
590
|
+
*/
|
|
591
|
+
requestVerificationCode(requestParameters, options) {
|
|
592
|
+
return (0, exports.AuthApiFp)(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
* @memberof AuthApi
|
|
600
|
+
*/
|
|
601
|
+
verifyVerificationCode(requestParameters, options) {
|
|
602
|
+
return (0, exports.AuthApiFp)(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
exports.AuthApi = AuthApi;
|
|
433
606
|
/**
|
|
434
607
|
* BookingsApi - axios parameter creator
|
|
435
608
|
* @export
|
|
@@ -10880,16 +11053,12 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10880
11053
|
};
|
|
10881
11054
|
}),
|
|
10882
11055
|
/**
|
|
10883
|
-
*
|
|
10884
|
-
* @param {string} eventId
|
|
11056
|
+
*
|
|
10885
11057
|
* @param {*} [options] Override http request option.
|
|
10886
11058
|
* @throws {RequiredError}
|
|
10887
11059
|
*/
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
10891
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10892
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11060
|
+
getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11061
|
+
const localVarPath = `/api/events/staff/getEvents/drafts`;
|
|
10893
11062
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10894
11063
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10895
11064
|
let baseOptions;
|
|
@@ -10911,12 +11080,16 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10911
11080
|
};
|
|
10912
11081
|
}),
|
|
10913
11082
|
/**
|
|
10914
|
-
*
|
|
11083
|
+
* Get a specific event by ID (staff)
|
|
11084
|
+
* @param {string} eventId
|
|
10915
11085
|
* @param {*} [options] Override http request option.
|
|
10916
11086
|
* @throws {RequiredError}
|
|
10917
11087
|
*/
|
|
10918
|
-
|
|
10919
|
-
|
|
11088
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
11089
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
11090
|
+
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
11091
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
11092
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10920
11093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10921
11094
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10922
11095
|
let baseOptions;
|
|
@@ -10984,6 +11157,60 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10984
11157
|
options: localVarRequestOptions,
|
|
10985
11158
|
};
|
|
10986
11159
|
}),
|
|
11160
|
+
/**
|
|
11161
|
+
*
|
|
11162
|
+
* @param {*} [options] Override http request option.
|
|
11163
|
+
* @throws {RequiredError}
|
|
11164
|
+
*/
|
|
11165
|
+
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11166
|
+
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
11167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11169
|
+
let baseOptions;
|
|
11170
|
+
if (configuration) {
|
|
11171
|
+
baseOptions = configuration.baseOptions;
|
|
11172
|
+
}
|
|
11173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11174
|
+
const localVarHeaderParameter = {};
|
|
11175
|
+
const localVarQueryParameter = {};
|
|
11176
|
+
// authentication bearerAuth required
|
|
11177
|
+
// http bearer authentication required
|
|
11178
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11179
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11181
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11182
|
+
return {
|
|
11183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11184
|
+
options: localVarRequestOptions,
|
|
11185
|
+
};
|
|
11186
|
+
}),
|
|
11187
|
+
/**
|
|
11188
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11189
|
+
* @param {*} [options] Override http request option.
|
|
11190
|
+
* @throws {RequiredError}
|
|
11191
|
+
*/
|
|
11192
|
+
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11193
|
+
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
11194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11195
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11196
|
+
let baseOptions;
|
|
11197
|
+
if (configuration) {
|
|
11198
|
+
baseOptions = configuration.baseOptions;
|
|
11199
|
+
}
|
|
11200
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11201
|
+
const localVarHeaderParameter = {};
|
|
11202
|
+
const localVarQueryParameter = {};
|
|
11203
|
+
// authentication bearerAuth required
|
|
11204
|
+
// http bearer authentication required
|
|
11205
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11209
|
+
return {
|
|
11210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11211
|
+
options: localVarRequestOptions,
|
|
11212
|
+
};
|
|
11213
|
+
}),
|
|
10987
11214
|
/**
|
|
10988
11215
|
* Get events for the week view (30 day sliding window)
|
|
10989
11216
|
* @param {string} [clubId]
|
|
@@ -11077,31 +11304,31 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11077
11304
|
});
|
|
11078
11305
|
},
|
|
11079
11306
|
/**
|
|
11080
|
-
*
|
|
11081
|
-
* @param {string} eventId
|
|
11307
|
+
*
|
|
11082
11308
|
* @param {*} [options] Override http request option.
|
|
11083
11309
|
* @throws {RequiredError}
|
|
11084
11310
|
*/
|
|
11085
|
-
|
|
11311
|
+
getDraftEventsByClub(options) {
|
|
11086
11312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11087
11313
|
var _a, _b, _c;
|
|
11088
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11314
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
|
|
11089
11315
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11090
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11316
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11091
11317
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11092
11318
|
});
|
|
11093
11319
|
},
|
|
11094
11320
|
/**
|
|
11095
|
-
*
|
|
11321
|
+
* Get a specific event by ID (staff)
|
|
11322
|
+
* @param {string} eventId
|
|
11096
11323
|
* @param {*} [options] Override http request option.
|
|
11097
11324
|
* @throws {RequiredError}
|
|
11098
11325
|
*/
|
|
11099
|
-
|
|
11326
|
+
getEventByIdForStaff(eventId, options) {
|
|
11100
11327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11101
11328
|
var _a, _b, _c;
|
|
11102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11329
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11103
11330
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11104
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11331
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11105
11332
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11106
11333
|
});
|
|
11107
11334
|
},
|
|
@@ -11124,6 +11351,34 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11124
11351
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11125
11352
|
});
|
|
11126
11353
|
},
|
|
11354
|
+
/**
|
|
11355
|
+
*
|
|
11356
|
+
* @param {*} [options] Override http request option.
|
|
11357
|
+
* @throws {RequiredError}
|
|
11358
|
+
*/
|
|
11359
|
+
getPastEventsByClub(options) {
|
|
11360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11361
|
+
var _a, _b, _c;
|
|
11362
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(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['EventsStaffApi.getPastEventsByClub']) === 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
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11370
|
+
* @param {*} [options] Override http request option.
|
|
11371
|
+
* @throws {RequiredError}
|
|
11372
|
+
*/
|
|
11373
|
+
getUpcomingEventsByClub(options) {
|
|
11374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11375
|
+
var _a, _b, _c;
|
|
11376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11378
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11379
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11380
|
+
});
|
|
11381
|
+
},
|
|
11127
11382
|
/**
|
|
11128
11383
|
* Get events for the week view (30 day sliding window)
|
|
11129
11384
|
* @param {string} [clubId]
|
|
@@ -11172,21 +11427,21 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11172
11427
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11173
11428
|
},
|
|
11174
11429
|
/**
|
|
11175
|
-
*
|
|
11176
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11430
|
+
*
|
|
11177
11431
|
* @param {*} [options] Override http request option.
|
|
11178
11432
|
* @throws {RequiredError}
|
|
11179
11433
|
*/
|
|
11180
|
-
|
|
11181
|
-
return localVarFp.
|
|
11434
|
+
getDraftEventsByClub(options) {
|
|
11435
|
+
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11182
11436
|
},
|
|
11183
11437
|
/**
|
|
11184
|
-
*
|
|
11438
|
+
* Get a specific event by ID (staff)
|
|
11439
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11185
11440
|
* @param {*} [options] Override http request option.
|
|
11186
11441
|
* @throws {RequiredError}
|
|
11187
11442
|
*/
|
|
11188
|
-
|
|
11189
|
-
return localVarFp.
|
|
11443
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11444
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11190
11445
|
},
|
|
11191
11446
|
/**
|
|
11192
11447
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11197,6 +11452,22 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11197
11452
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11198
11453
|
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11199
11454
|
},
|
|
11455
|
+
/**
|
|
11456
|
+
*
|
|
11457
|
+
* @param {*} [options] Override http request option.
|
|
11458
|
+
* @throws {RequiredError}
|
|
11459
|
+
*/
|
|
11460
|
+
getPastEventsByClub(options) {
|
|
11461
|
+
return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
|
|
11462
|
+
},
|
|
11463
|
+
/**
|
|
11464
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11465
|
+
* @param {*} [options] Override http request option.
|
|
11466
|
+
* @throws {RequiredError}
|
|
11467
|
+
*/
|
|
11468
|
+
getUpcomingEventsByClub(options) {
|
|
11469
|
+
return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
|
|
11470
|
+
},
|
|
11200
11471
|
/**
|
|
11201
11472
|
* Get events for the week view (30 day sliding window)
|
|
11202
11473
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -11237,23 +11508,23 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11237
11508
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11238
11509
|
}
|
|
11239
11510
|
/**
|
|
11240
|
-
*
|
|
11241
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11511
|
+
*
|
|
11242
11512
|
* @param {*} [options] Override http request option.
|
|
11243
11513
|
* @throws {RequiredError}
|
|
11244
11514
|
* @memberof EventsStaffApi
|
|
11245
11515
|
*/
|
|
11246
|
-
|
|
11247
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11516
|
+
getDraftEventsByClub(options) {
|
|
11517
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11248
11518
|
}
|
|
11249
11519
|
/**
|
|
11250
|
-
*
|
|
11520
|
+
* Get a specific event by ID (staff)
|
|
11521
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11251
11522
|
* @param {*} [options] Override http request option.
|
|
11252
11523
|
* @throws {RequiredError}
|
|
11253
11524
|
* @memberof EventsStaffApi
|
|
11254
11525
|
*/
|
|
11255
|
-
|
|
11256
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11526
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11527
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11257
11528
|
}
|
|
11258
11529
|
/**
|
|
11259
11530
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11265,6 +11536,24 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11265
11536
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11266
11537
|
return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11267
11538
|
}
|
|
11539
|
+
/**
|
|
11540
|
+
*
|
|
11541
|
+
* @param {*} [options] Override http request option.
|
|
11542
|
+
* @throws {RequiredError}
|
|
11543
|
+
* @memberof EventsStaffApi
|
|
11544
|
+
*/
|
|
11545
|
+
getPastEventsByClub(options) {
|
|
11546
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11547
|
+
}
|
|
11548
|
+
/**
|
|
11549
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11550
|
+
* @param {*} [options] Override http request option.
|
|
11551
|
+
* @throws {RequiredError}
|
|
11552
|
+
* @memberof EventsStaffApi
|
|
11553
|
+
*/
|
|
11554
|
+
getUpcomingEventsByClub(options) {
|
|
11555
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11556
|
+
}
|
|
11268
11557
|
/**
|
|
11269
11558
|
* Get events for the week view (30 day sliding window)
|
|
11270
11559
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -11467,9 +11756,9 @@ const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
|
11467
11756
|
* @param {*} [options] Override http request option.
|
|
11468
11757
|
* @throws {RequiredError}
|
|
11469
11758
|
*/
|
|
11470
|
-
|
|
11759
|
+
requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11471
11760
|
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11472
|
-
(0, common_1.assertParamExists)('
|
|
11761
|
+
(0, common_1.assertParamExists)('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11473
11762
|
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11474
11763
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11475
11764
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11550,12 +11839,12 @@ const PublicEmailApiFp = function (configuration) {
|
|
|
11550
11839
|
* @param {*} [options] Override http request option.
|
|
11551
11840
|
* @throws {RequiredError}
|
|
11552
11841
|
*/
|
|
11553
|
-
|
|
11842
|
+
requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
|
|
11554
11843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11555
11844
|
var _a, _b, _c;
|
|
11556
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
|
|
11557
11846
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11558
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.
|
|
11847
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11559
11848
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11560
11849
|
});
|
|
11561
11850
|
},
|
|
@@ -11595,12 +11884,12 @@ const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
|
11595
11884
|
},
|
|
11596
11885
|
/**
|
|
11597
11886
|
*
|
|
11598
|
-
* @param {
|
|
11887
|
+
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
11599
11888
|
* @param {*} [options] Override http request option.
|
|
11600
11889
|
* @throws {RequiredError}
|
|
11601
11890
|
*/
|
|
11602
|
-
|
|
11603
|
-
return localVarFp.
|
|
11891
|
+
requestPublicEmailVerificationCode(requestParameters, options) {
|
|
11892
|
+
return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11604
11893
|
},
|
|
11605
11894
|
/**
|
|
11606
11895
|
*
|
|
@@ -11633,13 +11922,13 @@ class PublicEmailApi extends base_1.BaseAPI {
|
|
|
11633
11922
|
}
|
|
11634
11923
|
/**
|
|
11635
11924
|
*
|
|
11636
|
-
* @param {
|
|
11925
|
+
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
11637
11926
|
* @param {*} [options] Override http request option.
|
|
11638
11927
|
* @throws {RequiredError}
|
|
11639
11928
|
* @memberof PublicEmailApi
|
|
11640
11929
|
*/
|
|
11641
|
-
|
|
11642
|
-
return (0, exports.PublicEmailApiFp)(this.configuration).
|
|
11930
|
+
requestPublicEmailVerificationCode(requestParameters, options) {
|
|
11931
|
+
return (0, exports.PublicEmailApiFp)(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
11643
11932
|
}
|
|
11644
11933
|
/**
|
|
11645
11934
|
*
|
|
@@ -13983,6 +14272,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13983
14272
|
options: localVarRequestOptions,
|
|
13984
14273
|
};
|
|
13985
14274
|
}),
|
|
14275
|
+
/**
|
|
14276
|
+
*
|
|
14277
|
+
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
14278
|
+
* @param {*} [options] Override http request option.
|
|
14279
|
+
* @throws {RequiredError}
|
|
14280
|
+
*/
|
|
14281
|
+
requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
|
|
14282
|
+
// verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
|
|
14283
|
+
(0, common_1.assertParamExists)('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
|
|
14284
|
+
const localVarPath = `/api/users/me/request-organization-code`;
|
|
14285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14286
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14287
|
+
let baseOptions;
|
|
14288
|
+
if (configuration) {
|
|
14289
|
+
baseOptions = configuration.baseOptions;
|
|
14290
|
+
}
|
|
14291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14292
|
+
const localVarHeaderParameter = {};
|
|
14293
|
+
const localVarQueryParameter = {};
|
|
14294
|
+
// authentication bearerAuth required
|
|
14295
|
+
// http bearer authentication required
|
|
14296
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14297
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14298
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14300
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14301
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
14302
|
+
return {
|
|
14303
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14304
|
+
options: localVarRequestOptions,
|
|
14305
|
+
};
|
|
14306
|
+
}),
|
|
13986
14307
|
/**
|
|
13987
14308
|
*
|
|
13988
14309
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -14256,6 +14577,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14256
14577
|
options: localVarRequestOptions,
|
|
14257
14578
|
};
|
|
14258
14579
|
}),
|
|
14580
|
+
/**
|
|
14581
|
+
*
|
|
14582
|
+
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
14583
|
+
* @param {*} [options] Override http request option.
|
|
14584
|
+
* @throws {RequiredError}
|
|
14585
|
+
*/
|
|
14586
|
+
verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
|
|
14587
|
+
// verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
|
|
14588
|
+
(0, common_1.assertParamExists)('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
|
|
14589
|
+
const localVarPath = `/api/users/me/verify-organization-code`;
|
|
14590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14591
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14592
|
+
let baseOptions;
|
|
14593
|
+
if (configuration) {
|
|
14594
|
+
baseOptions = configuration.baseOptions;
|
|
14595
|
+
}
|
|
14596
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14597
|
+
const localVarHeaderParameter = {};
|
|
14598
|
+
const localVarQueryParameter = {};
|
|
14599
|
+
// authentication bearerAuth required
|
|
14600
|
+
// http bearer authentication required
|
|
14601
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14602
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14603
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14605
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14606
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
14607
|
+
return {
|
|
14608
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14609
|
+
options: localVarRequestOptions,
|
|
14610
|
+
};
|
|
14611
|
+
}),
|
|
14259
14612
|
};
|
|
14260
14613
|
};
|
|
14261
14614
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -14756,6 +15109,21 @@ const UsersApiFp = function (configuration) {
|
|
|
14756
15109
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14757
15110
|
});
|
|
14758
15111
|
},
|
|
15112
|
+
/**
|
|
15113
|
+
*
|
|
15114
|
+
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
15115
|
+
* @param {*} [options] Override http request option.
|
|
15116
|
+
* @throws {RequiredError}
|
|
15117
|
+
*/
|
|
15118
|
+
requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
|
|
15119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15120
|
+
var _a, _b, _c;
|
|
15121
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
|
|
15122
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15123
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15124
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15125
|
+
});
|
|
15126
|
+
},
|
|
14759
15127
|
/**
|
|
14760
15128
|
*
|
|
14761
15129
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -14891,6 +15259,21 @@ const UsersApiFp = function (configuration) {
|
|
|
14891
15259
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14892
15260
|
});
|
|
14893
15261
|
},
|
|
15262
|
+
/**
|
|
15263
|
+
*
|
|
15264
|
+
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15265
|
+
* @param {*} [options] Override http request option.
|
|
15266
|
+
* @throws {RequiredError}
|
|
15267
|
+
*/
|
|
15268
|
+
verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
|
|
15269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15270
|
+
var _a, _b, _c;
|
|
15271
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
|
|
15272
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15273
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15274
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15275
|
+
});
|
|
15276
|
+
},
|
|
14894
15277
|
};
|
|
14895
15278
|
};
|
|
14896
15279
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -15180,6 +15563,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
15180
15563
|
requestEmailVerification(options) {
|
|
15181
15564
|
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
15182
15565
|
},
|
|
15566
|
+
/**
|
|
15567
|
+
*
|
|
15568
|
+
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
15569
|
+
* @param {*} [options] Override http request option.
|
|
15570
|
+
* @throws {RequiredError}
|
|
15571
|
+
*/
|
|
15572
|
+
requestOrganizationCode(requestParameters, options) {
|
|
15573
|
+
return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
15574
|
+
},
|
|
15183
15575
|
/**
|
|
15184
15576
|
*
|
|
15185
15577
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -15261,6 +15653,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
15261
15653
|
verifyOrganization(requestParameters, options) {
|
|
15262
15654
|
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
15263
15655
|
},
|
|
15656
|
+
/**
|
|
15657
|
+
*
|
|
15658
|
+
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
15659
|
+
* @param {*} [options] Override http request option.
|
|
15660
|
+
* @throws {RequiredError}
|
|
15661
|
+
*/
|
|
15662
|
+
verifyOrganizationCode(requestParameters, options) {
|
|
15663
|
+
return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
15664
|
+
},
|
|
15264
15665
|
};
|
|
15265
15666
|
};
|
|
15266
15667
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -15582,6 +15983,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15582
15983
|
requestEmailVerification(options) {
|
|
15583
15984
|
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
15584
15985
|
}
|
|
15986
|
+
/**
|
|
15987
|
+
*
|
|
15988
|
+
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
15989
|
+
* @param {*} [options] Override http request option.
|
|
15990
|
+
* @throws {RequiredError}
|
|
15991
|
+
* @memberof UsersApi
|
|
15992
|
+
*/
|
|
15993
|
+
requestOrganizationCode(requestParameters, options) {
|
|
15994
|
+
return (0, exports.UsersApiFp)(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
15995
|
+
}
|
|
15585
15996
|
/**
|
|
15586
15997
|
*
|
|
15587
15998
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -15672,6 +16083,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15672
16083
|
verifyOrganization(requestParameters, options) {
|
|
15673
16084
|
return (0, exports.UsersApiFp)(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15674
16085
|
}
|
|
16086
|
+
/**
|
|
16087
|
+
*
|
|
16088
|
+
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16089
|
+
* @param {*} [options] Override http request option.
|
|
16090
|
+
* @throws {RequiredError}
|
|
16091
|
+
* @memberof UsersApi
|
|
16092
|
+
*/
|
|
16093
|
+
verifyOrganizationCode(requestParameters, options) {
|
|
16094
|
+
return (0, exports.UsersApiFp)(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16095
|
+
}
|
|
15675
16096
|
}
|
|
15676
16097
|
exports.UsersApi = UsersApi;
|
|
15677
16098
|
/**
|