@tennac-booking/sdk 1.0.186 → 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 +11 -0
- package/README.md +15 -1
- package/api.ts +603 -15
- package/dist/api.d.ts +415 -10
- package/dist/api.js +320 -15
- package/dist/esm/api.d.ts +415 -10
- package/dist/esm/api.js +312 -11
- package/docs/AuthApi.md +113 -0
- 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/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/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
|
|
@@ -11583,9 +11756,9 @@ const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
|
11583
11756
|
* @param {*} [options] Override http request option.
|
|
11584
11757
|
* @throws {RequiredError}
|
|
11585
11758
|
*/
|
|
11586
|
-
|
|
11759
|
+
requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11587
11760
|
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11588
|
-
(0, common_1.assertParamExists)('
|
|
11761
|
+
(0, common_1.assertParamExists)('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11589
11762
|
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11590
11763
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11591
11764
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11666,12 +11839,12 @@ const PublicEmailApiFp = function (configuration) {
|
|
|
11666
11839
|
* @param {*} [options] Override http request option.
|
|
11667
11840
|
* @throws {RequiredError}
|
|
11668
11841
|
*/
|
|
11669
|
-
|
|
11842
|
+
requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
|
|
11670
11843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11671
11844
|
var _a, _b, _c;
|
|
11672
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
|
|
11673
11846
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11674
|
-
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;
|
|
11675
11848
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11676
11849
|
});
|
|
11677
11850
|
},
|
|
@@ -11711,12 +11884,12 @@ const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
|
11711
11884
|
},
|
|
11712
11885
|
/**
|
|
11713
11886
|
*
|
|
11714
|
-
* @param {
|
|
11887
|
+
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
11715
11888
|
* @param {*} [options] Override http request option.
|
|
11716
11889
|
* @throws {RequiredError}
|
|
11717
11890
|
*/
|
|
11718
|
-
|
|
11719
|
-
return localVarFp.
|
|
11891
|
+
requestPublicEmailVerificationCode(requestParameters, options) {
|
|
11892
|
+
return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11720
11893
|
},
|
|
11721
11894
|
/**
|
|
11722
11895
|
*
|
|
@@ -11749,13 +11922,13 @@ class PublicEmailApi extends base_1.BaseAPI {
|
|
|
11749
11922
|
}
|
|
11750
11923
|
/**
|
|
11751
11924
|
*
|
|
11752
|
-
* @param {
|
|
11925
|
+
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
11753
11926
|
* @param {*} [options] Override http request option.
|
|
11754
11927
|
* @throws {RequiredError}
|
|
11755
11928
|
* @memberof PublicEmailApi
|
|
11756
11929
|
*/
|
|
11757
|
-
|
|
11758
|
-
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));
|
|
11759
11932
|
}
|
|
11760
11933
|
/**
|
|
11761
11934
|
*
|
|
@@ -14099,6 +14272,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14099
14272
|
options: localVarRequestOptions,
|
|
14100
14273
|
};
|
|
14101
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
|
+
}),
|
|
14102
14307
|
/**
|
|
14103
14308
|
*
|
|
14104
14309
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -14372,6 +14577,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14372
14577
|
options: localVarRequestOptions,
|
|
14373
14578
|
};
|
|
14374
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
|
+
}),
|
|
14375
14612
|
};
|
|
14376
14613
|
};
|
|
14377
14614
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -14872,6 +15109,21 @@ const UsersApiFp = function (configuration) {
|
|
|
14872
15109
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14873
15110
|
});
|
|
14874
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
|
+
},
|
|
14875
15127
|
/**
|
|
14876
15128
|
*
|
|
14877
15129
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -15007,6 +15259,21 @@ const UsersApiFp = function (configuration) {
|
|
|
15007
15259
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15008
15260
|
});
|
|
15009
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
|
+
},
|
|
15010
15277
|
};
|
|
15011
15278
|
};
|
|
15012
15279
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -15296,6 +15563,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
15296
15563
|
requestEmailVerification(options) {
|
|
15297
15564
|
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
15298
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
|
+
},
|
|
15299
15575
|
/**
|
|
15300
15576
|
*
|
|
15301
15577
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -15377,6 +15653,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
15377
15653
|
verifyOrganization(requestParameters, options) {
|
|
15378
15654
|
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
15379
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
|
+
},
|
|
15380
15665
|
};
|
|
15381
15666
|
};
|
|
15382
15667
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -15698,6 +15983,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15698
15983
|
requestEmailVerification(options) {
|
|
15699
15984
|
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
15700
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
|
+
}
|
|
15701
15996
|
/**
|
|
15702
15997
|
*
|
|
15703
15998
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -15788,6 +16083,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15788
16083
|
verifyOrganization(requestParameters, options) {
|
|
15789
16084
|
return (0, exports.UsersApiFp)(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15790
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
|
+
}
|
|
15791
16096
|
}
|
|
15792
16097
|
exports.UsersApi = UsersApi;
|
|
15793
16098
|
/**
|