@tennac-booking/sdk 1.0.61 → 1.0.63
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 +222 -217
- package/README.md +17 -7
- package/api.ts +792 -107
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +708 -226
- package/dist/api.js +331 -18
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +708 -226
- package/dist/esm/api.js +330 -17
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -6
- package/docs/IUserAttributes.md +10 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/PlayerSummary.md +2 -0
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/{UpdateUserRequestBodyLocation.md → RegisterRequestBodyLocation.md} +3 -3
- package/docs/{NotImplementedResponse.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/StaffUserProfileResponse.md +10 -0
- package/docs/UpdatePlanRequest.md +0 -2
- package/docs/UpdateUserRequestBody.md +1 -1
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserProfileResponse.md +10 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +260 -8
- package/docs/{DeleteSlotsByClubInRange200Response.md → VerifyEmailRequest.md} +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.62
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ClubAnalyticsApiAxiosParamCreator = 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.UserLocationSummaryTypeEnum = exports.
|
|
25
|
+
exports.ClubAnalyticsApiAxiosParamCreator = 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.UserLocationSummaryTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.RegisterRequestBodyLocationTypeEnum = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPerformedByTypeEnum = void 0;
|
|
26
26
|
exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = void 0;
|
|
27
27
|
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = 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.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
@@ -121,6 +121,9 @@ exports.PlanInterval = {
|
|
|
121
121
|
Trimester: 'trimester',
|
|
122
122
|
Semester: 'semester'
|
|
123
123
|
};
|
|
124
|
+
exports.RegisterRequestBodyLocationTypeEnum = {
|
|
125
|
+
Point: 'Point'
|
|
126
|
+
};
|
|
124
127
|
exports.StripeStripeDeletedProductObjectEnum = {
|
|
125
128
|
Product: 'product'
|
|
126
129
|
};
|
|
@@ -245,9 +248,6 @@ exports.UpdateClubRoleRequestRoleEnum = {
|
|
|
245
248
|
Manager: 'manager',
|
|
246
249
|
Staff: 'staff'
|
|
247
250
|
};
|
|
248
|
-
exports.UpdateUserRequestBodyLocationTypeEnum = {
|
|
249
|
-
Point: 'Point'
|
|
250
|
-
};
|
|
251
251
|
exports.UserLocationSummaryTypeEnum = {
|
|
252
252
|
Point: 'Point'
|
|
253
253
|
};
|
|
@@ -6916,6 +6916,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6916
6916
|
options: localVarRequestOptions,
|
|
6917
6917
|
};
|
|
6918
6918
|
}),
|
|
6919
|
+
/**
|
|
6920
|
+
*
|
|
6921
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
6922
|
+
* @param {*} [options] Override http request option.
|
|
6923
|
+
* @throws {RequiredError}
|
|
6924
|
+
*/
|
|
6925
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
6926
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
6927
|
+
(0, common_1.assertParamExists)('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
6928
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
6929
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6930
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6931
|
+
let baseOptions;
|
|
6932
|
+
if (configuration) {
|
|
6933
|
+
baseOptions = configuration.baseOptions;
|
|
6934
|
+
}
|
|
6935
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6936
|
+
const localVarHeaderParameter = {};
|
|
6937
|
+
const localVarQueryParameter = {};
|
|
6938
|
+
// authentication bearerAuth required
|
|
6939
|
+
// http bearer authentication required
|
|
6940
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6941
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6942
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6943
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6944
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6945
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
6946
|
+
return {
|
|
6947
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6948
|
+
options: localVarRequestOptions,
|
|
6949
|
+
};
|
|
6950
|
+
}),
|
|
6919
6951
|
/**
|
|
6920
6952
|
*
|
|
6921
6953
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -7570,6 +7602,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7570
7602
|
options: localVarRequestOptions,
|
|
7571
7603
|
};
|
|
7572
7604
|
}),
|
|
7605
|
+
/**
|
|
7606
|
+
*
|
|
7607
|
+
* @param {*} [options] Override http request option.
|
|
7608
|
+
* @throws {RequiredError}
|
|
7609
|
+
*/
|
|
7610
|
+
requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7611
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
7612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7613
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7614
|
+
let baseOptions;
|
|
7615
|
+
if (configuration) {
|
|
7616
|
+
baseOptions = configuration.baseOptions;
|
|
7617
|
+
}
|
|
7618
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7619
|
+
const localVarHeaderParameter = {};
|
|
7620
|
+
const localVarQueryParameter = {};
|
|
7621
|
+
// authentication bearerAuth required
|
|
7622
|
+
// http bearer authentication required
|
|
7623
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7624
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7626
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7627
|
+
return {
|
|
7628
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7629
|
+
options: localVarRequestOptions,
|
|
7630
|
+
};
|
|
7631
|
+
}),
|
|
7573
7632
|
/**
|
|
7574
7633
|
*
|
|
7575
7634
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -7579,7 +7638,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7579
7638
|
requestPasswordReset: (passwordResetRequestBody_1, ...args_1) => __awaiter(this, [passwordResetRequestBody_1, ...args_1], void 0, function* (passwordResetRequestBody, options = {}) {
|
|
7580
7639
|
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
7581
7640
|
(0, common_1.assertParamExists)('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
7582
|
-
const localVarPath = `/api/users/
|
|
7641
|
+
const localVarPath = `/api/users/request-password-reset`;
|
|
7583
7642
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7584
7643
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7585
7644
|
let baseOptions;
|
|
@@ -7599,16 +7658,45 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7599
7658
|
options: localVarRequestOptions,
|
|
7600
7659
|
};
|
|
7601
7660
|
}),
|
|
7661
|
+
/**
|
|
7662
|
+
*
|
|
7663
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
7664
|
+
* @param {*} [options] Override http request option.
|
|
7665
|
+
* @throws {RequiredError}
|
|
7666
|
+
*/
|
|
7667
|
+
resetPassword: (resetPasswordRequest_1, ...args_1) => __awaiter(this, [resetPasswordRequest_1, ...args_1], void 0, function* (resetPasswordRequest, options = {}) {
|
|
7668
|
+
// verify required parameter 'resetPasswordRequest' is not null or undefined
|
|
7669
|
+
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordRequest', resetPasswordRequest);
|
|
7670
|
+
const localVarPath = `/api/users/reset-password`;
|
|
7671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7672
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7673
|
+
let baseOptions;
|
|
7674
|
+
if (configuration) {
|
|
7675
|
+
baseOptions = configuration.baseOptions;
|
|
7676
|
+
}
|
|
7677
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7678
|
+
const localVarHeaderParameter = {};
|
|
7679
|
+
const localVarQueryParameter = {};
|
|
7680
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7681
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7683
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7684
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetPasswordRequest, localVarRequestOptions, configuration);
|
|
7685
|
+
return {
|
|
7686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7687
|
+
options: localVarRequestOptions,
|
|
7688
|
+
};
|
|
7689
|
+
}),
|
|
7602
7690
|
/**
|
|
7603
7691
|
*
|
|
7604
7692
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
7605
7693
|
* @param {*} [options] Override http request option.
|
|
7606
7694
|
* @throws {RequiredError}
|
|
7607
7695
|
*/
|
|
7608
|
-
|
|
7696
|
+
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
7609
7697
|
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
7610
|
-
(0, common_1.assertParamExists)('
|
|
7611
|
-
const localVarPath = `/api/users/
|
|
7698
|
+
(0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
7699
|
+
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
7612
7700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7613
7701
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7614
7702
|
let baseOptions;
|
|
@@ -7788,6 +7876,64 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7788
7876
|
options: localVarRequestOptions,
|
|
7789
7877
|
};
|
|
7790
7878
|
}),
|
|
7879
|
+
/**
|
|
7880
|
+
*
|
|
7881
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
7882
|
+
* @param {*} [options] Override http request option.
|
|
7883
|
+
* @throws {RequiredError}
|
|
7884
|
+
*/
|
|
7885
|
+
verifyEmail: (verifyEmailRequest_1, ...args_1) => __awaiter(this, [verifyEmailRequest_1, ...args_1], void 0, function* (verifyEmailRequest, options = {}) {
|
|
7886
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
7887
|
+
(0, common_1.assertParamExists)('verifyEmail', 'verifyEmailRequest', verifyEmailRequest);
|
|
7888
|
+
const localVarPath = `/api/users/verify-email`;
|
|
7889
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7890
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7891
|
+
let baseOptions;
|
|
7892
|
+
if (configuration) {
|
|
7893
|
+
baseOptions = configuration.baseOptions;
|
|
7894
|
+
}
|
|
7895
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7896
|
+
const localVarHeaderParameter = {};
|
|
7897
|
+
const localVarQueryParameter = {};
|
|
7898
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7899
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7900
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7901
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7902
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailRequest, localVarRequestOptions, configuration);
|
|
7903
|
+
return {
|
|
7904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7905
|
+
options: localVarRequestOptions,
|
|
7906
|
+
};
|
|
7907
|
+
}),
|
|
7908
|
+
/**
|
|
7909
|
+
*
|
|
7910
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
7911
|
+
* @param {*} [options] Override http request option.
|
|
7912
|
+
* @throws {RequiredError}
|
|
7913
|
+
*/
|
|
7914
|
+
verifyOrganization: (verifyEmailRequest_1, ...args_1) => __awaiter(this, [verifyEmailRequest_1, ...args_1], void 0, function* (verifyEmailRequest, options = {}) {
|
|
7915
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
7916
|
+
(0, common_1.assertParamExists)('verifyOrganization', 'verifyEmailRequest', verifyEmailRequest);
|
|
7917
|
+
const localVarPath = `/api/users/verify-organization`;
|
|
7918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7919
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7920
|
+
let baseOptions;
|
|
7921
|
+
if (configuration) {
|
|
7922
|
+
baseOptions = configuration.baseOptions;
|
|
7923
|
+
}
|
|
7924
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7925
|
+
const localVarHeaderParameter = {};
|
|
7926
|
+
const localVarQueryParameter = {};
|
|
7927
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7928
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7931
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailRequest, localVarRequestOptions, configuration);
|
|
7932
|
+
return {
|
|
7933
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7934
|
+
options: localVarRequestOptions,
|
|
7935
|
+
};
|
|
7936
|
+
}),
|
|
7791
7937
|
};
|
|
7792
7938
|
};
|
|
7793
7939
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -7828,6 +7974,21 @@ const UsersApiFp = function (configuration) {
|
|
|
7828
7974
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7829
7975
|
});
|
|
7830
7976
|
},
|
|
7977
|
+
/**
|
|
7978
|
+
*
|
|
7979
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7980
|
+
* @param {*} [options] Override http request option.
|
|
7981
|
+
* @throws {RequiredError}
|
|
7982
|
+
*/
|
|
7983
|
+
addOrganization(addOrganizationRequest, options) {
|
|
7984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7985
|
+
var _a, _b, _c;
|
|
7986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrganization(addOrganizationRequest, options);
|
|
7987
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7988
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.addOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7989
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7990
|
+
});
|
|
7991
|
+
},
|
|
7831
7992
|
/**
|
|
7832
7993
|
*
|
|
7833
7994
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -8146,6 +8307,20 @@ const UsersApiFp = function (configuration) {
|
|
|
8146
8307
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8147
8308
|
});
|
|
8148
8309
|
},
|
|
8310
|
+
/**
|
|
8311
|
+
*
|
|
8312
|
+
* @param {*} [options] Override http request option.
|
|
8313
|
+
* @throws {RequiredError}
|
|
8314
|
+
*/
|
|
8315
|
+
requestEmailVerification(options) {
|
|
8316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8317
|
+
var _a, _b, _c;
|
|
8318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestEmailVerification(options);
|
|
8319
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8320
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestEmailVerification']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8321
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8322
|
+
});
|
|
8323
|
+
},
|
|
8149
8324
|
/**
|
|
8150
8325
|
*
|
|
8151
8326
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -8161,18 +8336,33 @@ const UsersApiFp = function (configuration) {
|
|
|
8161
8336
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8162
8337
|
});
|
|
8163
8338
|
},
|
|
8339
|
+
/**
|
|
8340
|
+
*
|
|
8341
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
8342
|
+
* @param {*} [options] Override http request option.
|
|
8343
|
+
* @throws {RequiredError}
|
|
8344
|
+
*/
|
|
8345
|
+
resetPassword(resetPasswordRequest, options) {
|
|
8346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8347
|
+
var _a, _b, _c;
|
|
8348
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPassword(resetPasswordRequest, options);
|
|
8349
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8350
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.resetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8351
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8352
|
+
});
|
|
8353
|
+
},
|
|
8164
8354
|
/**
|
|
8165
8355
|
*
|
|
8166
8356
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8167
8357
|
* @param {*} [options] Override http request option.
|
|
8168
8358
|
* @throws {RequiredError}
|
|
8169
8359
|
*/
|
|
8170
|
-
|
|
8360
|
+
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
8171
8361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8172
8362
|
var _a, _b, _c;
|
|
8173
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
8174
8364
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8175
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8176
8366
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8177
8367
|
});
|
|
8178
8368
|
},
|
|
@@ -8251,6 +8441,36 @@ const UsersApiFp = function (configuration) {
|
|
|
8251
8441
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8252
8442
|
});
|
|
8253
8443
|
},
|
|
8444
|
+
/**
|
|
8445
|
+
*
|
|
8446
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
8447
|
+
* @param {*} [options] Override http request option.
|
|
8448
|
+
* @throws {RequiredError}
|
|
8449
|
+
*/
|
|
8450
|
+
verifyEmail(verifyEmailRequest, options) {
|
|
8451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8452
|
+
var _a, _b, _c;
|
|
8453
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmail(verifyEmailRequest, options);
|
|
8454
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8455
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.verifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8456
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8457
|
+
});
|
|
8458
|
+
},
|
|
8459
|
+
/**
|
|
8460
|
+
*
|
|
8461
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
8462
|
+
* @param {*} [options] Override http request option.
|
|
8463
|
+
* @throws {RequiredError}
|
|
8464
|
+
*/
|
|
8465
|
+
verifyOrganization(verifyEmailRequest, options) {
|
|
8466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8467
|
+
var _a, _b, _c;
|
|
8468
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganization(verifyEmailRequest, options);
|
|
8469
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8470
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.verifyOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8471
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8472
|
+
});
|
|
8473
|
+
},
|
|
8254
8474
|
};
|
|
8255
8475
|
};
|
|
8256
8476
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -8279,6 +8499,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8279
8499
|
addFavoritePlayer(requestParameters, options) {
|
|
8280
8500
|
return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
8281
8501
|
},
|
|
8502
|
+
/**
|
|
8503
|
+
*
|
|
8504
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
8505
|
+
* @param {*} [options] Override http request option.
|
|
8506
|
+
* @throws {RequiredError}
|
|
8507
|
+
*/
|
|
8508
|
+
addOrganization(requestParameters, options) {
|
|
8509
|
+
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
8510
|
+
},
|
|
8282
8511
|
/**
|
|
8283
8512
|
*
|
|
8284
8513
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -8462,6 +8691,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8462
8691
|
removeFavoritePlayer(requestParameters, options) {
|
|
8463
8692
|
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
8464
8693
|
},
|
|
8694
|
+
/**
|
|
8695
|
+
*
|
|
8696
|
+
* @param {*} [options] Override http request option.
|
|
8697
|
+
* @throws {RequiredError}
|
|
8698
|
+
*/
|
|
8699
|
+
requestEmailVerification(options) {
|
|
8700
|
+
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
8701
|
+
},
|
|
8465
8702
|
/**
|
|
8466
8703
|
*
|
|
8467
8704
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -8473,12 +8710,21 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8473
8710
|
},
|
|
8474
8711
|
/**
|
|
8475
8712
|
*
|
|
8476
|
-
* @param {
|
|
8713
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
8477
8714
|
* @param {*} [options] Override http request option.
|
|
8478
8715
|
* @throws {RequiredError}
|
|
8479
8716
|
*/
|
|
8480
|
-
|
|
8481
|
-
return localVarFp.
|
|
8717
|
+
resetPassword(requestParameters, options) {
|
|
8718
|
+
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
8719
|
+
},
|
|
8720
|
+
/**
|
|
8721
|
+
*
|
|
8722
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
8723
|
+
* @param {*} [options] Override http request option.
|
|
8724
|
+
* @throws {RequiredError}
|
|
8725
|
+
*/
|
|
8726
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
8727
|
+
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
8482
8728
|
},
|
|
8483
8729
|
/**
|
|
8484
8730
|
*
|
|
@@ -8525,6 +8771,24 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8525
8771
|
updateProfilePicture(requestParameters, options) {
|
|
8526
8772
|
return localVarFp.updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(axios, basePath));
|
|
8527
8773
|
},
|
|
8774
|
+
/**
|
|
8775
|
+
*
|
|
8776
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
8777
|
+
* @param {*} [options] Override http request option.
|
|
8778
|
+
* @throws {RequiredError}
|
|
8779
|
+
*/
|
|
8780
|
+
verifyEmail(requestParameters, options) {
|
|
8781
|
+
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8782
|
+
},
|
|
8783
|
+
/**
|
|
8784
|
+
*
|
|
8785
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
8786
|
+
* @param {*} [options] Override http request option.
|
|
8787
|
+
* @throws {RequiredError}
|
|
8788
|
+
*/
|
|
8789
|
+
verifyOrganization(requestParameters, options) {
|
|
8790
|
+
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8791
|
+
},
|
|
8528
8792
|
};
|
|
8529
8793
|
};
|
|
8530
8794
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -8555,6 +8819,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8555
8819
|
addFavoritePlayer(requestParameters, options) {
|
|
8556
8820
|
return (0, exports.UsersApiFp)(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8557
8821
|
}
|
|
8822
|
+
/**
|
|
8823
|
+
*
|
|
8824
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
8825
|
+
* @param {*} [options] Override http request option.
|
|
8826
|
+
* @throws {RequiredError}
|
|
8827
|
+
* @memberof UsersApi
|
|
8828
|
+
*/
|
|
8829
|
+
addOrganization(requestParameters, options) {
|
|
8830
|
+
return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8831
|
+
}
|
|
8558
8832
|
/**
|
|
8559
8833
|
*
|
|
8560
8834
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -8759,6 +9033,15 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8759
9033
|
removeFavoritePlayer(requestParameters, options) {
|
|
8760
9034
|
return (0, exports.UsersApiFp)(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
8761
9035
|
}
|
|
9036
|
+
/**
|
|
9037
|
+
*
|
|
9038
|
+
* @param {*} [options] Override http request option.
|
|
9039
|
+
* @throws {RequiredError}
|
|
9040
|
+
* @memberof UsersApi
|
|
9041
|
+
*/
|
|
9042
|
+
requestEmailVerification(options) {
|
|
9043
|
+
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
9044
|
+
}
|
|
8762
9045
|
/**
|
|
8763
9046
|
*
|
|
8764
9047
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -8771,13 +9054,23 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8771
9054
|
}
|
|
8772
9055
|
/**
|
|
8773
9056
|
*
|
|
8774
|
-
* @param {
|
|
9057
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
9058
|
+
* @param {*} [options] Override http request option.
|
|
9059
|
+
* @throws {RequiredError}
|
|
9060
|
+
* @memberof UsersApi
|
|
9061
|
+
*/
|
|
9062
|
+
resetPassword(requestParameters, options) {
|
|
9063
|
+
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9064
|
+
}
|
|
9065
|
+
/**
|
|
9066
|
+
*
|
|
9067
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
8775
9068
|
* @param {*} [options] Override http request option.
|
|
8776
9069
|
* @throws {RequiredError}
|
|
8777
9070
|
* @memberof UsersApi
|
|
8778
9071
|
*/
|
|
8779
|
-
|
|
8780
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
9072
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9073
|
+
return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8781
9074
|
}
|
|
8782
9075
|
/**
|
|
8783
9076
|
*
|
|
@@ -8829,5 +9122,25 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8829
9122
|
updateProfilePicture(requestParameters, options) {
|
|
8830
9123
|
return (0, exports.UsersApiFp)(this.configuration).updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8831
9124
|
}
|
|
9125
|
+
/**
|
|
9126
|
+
*
|
|
9127
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
9128
|
+
* @param {*} [options] Override http request option.
|
|
9129
|
+
* @throws {RequiredError}
|
|
9130
|
+
* @memberof UsersApi
|
|
9131
|
+
*/
|
|
9132
|
+
verifyEmail(requestParameters, options) {
|
|
9133
|
+
return (0, exports.UsersApiFp)(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9134
|
+
}
|
|
9135
|
+
/**
|
|
9136
|
+
*
|
|
9137
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
9138
|
+
* @param {*} [options] Override http request option.
|
|
9139
|
+
* @throws {RequiredError}
|
|
9140
|
+
* @memberof UsersApi
|
|
9141
|
+
*/
|
|
9142
|
+
verifyOrganization(requestParameters, options) {
|
|
9143
|
+
return (0, exports.UsersApiFp)(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9144
|
+
}
|
|
8832
9145
|
}
|
|
8833
9146
|
exports.UsersApi = UsersApi;
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED