@tennac-booking/sdk 1.0.62 → 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 +3 -1
- package/README.md +7 -3
- package/api.ts +425 -95
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +344 -96
- package/dist/api.js +134 -5
- 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 +344 -96
- package/dist/esm/api.js +133 -4
- 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/IUserAttributes.md +10 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/{UpdateUserRequestBodyLocation.md → RegisterRequestBodyLocation.md} +3 -3
- package/docs/StaffUserProfileResponse.md +10 -0
- package/docs/UpdateUserRequestBody.md +1 -1
- package/docs/UserProfileResponse.md +10 -0
- package/docs/UsersApi.md +104 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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
|
|
@@ -7873,6 +7905,35 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7873
7905
|
options: localVarRequestOptions,
|
|
7874
7906
|
};
|
|
7875
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
|
+
}),
|
|
7876
7937
|
};
|
|
7877
7938
|
};
|
|
7878
7939
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -7913,6 +7974,21 @@ const UsersApiFp = function (configuration) {
|
|
|
7913
7974
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7914
7975
|
});
|
|
7915
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
|
+
},
|
|
7916
7992
|
/**
|
|
7917
7993
|
*
|
|
7918
7994
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -8380,6 +8456,21 @@ const UsersApiFp = function (configuration) {
|
|
|
8380
8456
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8381
8457
|
});
|
|
8382
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
|
+
},
|
|
8383
8474
|
};
|
|
8384
8475
|
};
|
|
8385
8476
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -8408,6 +8499,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8408
8499
|
addFavoritePlayer(requestParameters, options) {
|
|
8409
8500
|
return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
8410
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
|
+
},
|
|
8411
8511
|
/**
|
|
8412
8512
|
*
|
|
8413
8513
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -8680,6 +8780,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8680
8780
|
verifyEmail(requestParameters, options) {
|
|
8681
8781
|
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8682
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
|
+
},
|
|
8683
8792
|
};
|
|
8684
8793
|
};
|
|
8685
8794
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -8710,6 +8819,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8710
8819
|
addFavoritePlayer(requestParameters, options) {
|
|
8711
8820
|
return (0, exports.UsersApiFp)(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8712
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
|
+
}
|
|
8713
8832
|
/**
|
|
8714
8833
|
*
|
|
8715
8834
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -9013,5 +9132,15 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9013
9132
|
verifyEmail(requestParameters, options) {
|
|
9014
9133
|
return (0, exports.UsersApiFp)(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9015
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
|
+
}
|
|
9016
9145
|
}
|
|
9017
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