@tennac-booking/sdk 1.0.168 → 1.0.170
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 -1
- package/README.md +13 -1
- package/api.ts +496 -19
- package/dist/api.d.ts +369 -22
- package/dist/api.js +229 -2
- package/dist/esm/api.d.ts +369 -22
- package/dist/esm/api.js +223 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ClubsStaffApi.md +2 -2
- package/docs/EmailExistsRequestBody.md +20 -0
- package/docs/EmailExistsResponse.md +20 -0
- package/docs/EventsStaffApi.md +2 -2
- package/docs/{GetActualities200Response.md → GetPublishedActualities200Response.md} +3 -3
- package/docs/PaginationInfo.md +28 -0
- package/docs/PublicEmailApi.md +167 -0
- package/docs/RequestEmailCodeBody.md +20 -0
- package/docs/RequestEmailCodeResponse.md +22 -0
- package/docs/StaffActualitiesPaginatedResponse.md +26 -0
- package/docs/StaffEventsPaginatedResponse.md +26 -0
- package/docs/VerifyEmailCodeBody.md +22 -0
- package/docs/VerifyEmailCodeResponse.md +22 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -11043,6 +11043,229 @@ export class ImagesApi extends BaseAPI {
|
|
|
11043
11043
|
return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
11044
11044
|
}
|
|
11045
11045
|
}
|
|
11046
|
+
/**
|
|
11047
|
+
* PublicEmailApi - axios parameter creator
|
|
11048
|
+
* @export
|
|
11049
|
+
*/
|
|
11050
|
+
export const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11051
|
+
return {
|
|
11052
|
+
/**
|
|
11053
|
+
*
|
|
11054
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11055
|
+
* @param {*} [options] Override http request option.
|
|
11056
|
+
* @throws {RequiredError}
|
|
11057
|
+
*/
|
|
11058
|
+
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11059
|
+
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11060
|
+
assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11061
|
+
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11063
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11064
|
+
let baseOptions;
|
|
11065
|
+
if (configuration) {
|
|
11066
|
+
baseOptions = configuration.baseOptions;
|
|
11067
|
+
}
|
|
11068
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11069
|
+
const localVarHeaderParameter = {};
|
|
11070
|
+
const localVarQueryParameter = {};
|
|
11071
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11072
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11073
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11074
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11075
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11076
|
+
return {
|
|
11077
|
+
url: toPathString(localVarUrlObj),
|
|
11078
|
+
options: localVarRequestOptions,
|
|
11079
|
+
};
|
|
11080
|
+
}),
|
|
11081
|
+
/**
|
|
11082
|
+
*
|
|
11083
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11084
|
+
* @param {*} [options] Override http request option.
|
|
11085
|
+
* @throws {RequiredError}
|
|
11086
|
+
*/
|
|
11087
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11088
|
+
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11089
|
+
assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11090
|
+
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11091
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11092
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11093
|
+
let baseOptions;
|
|
11094
|
+
if (configuration) {
|
|
11095
|
+
baseOptions = configuration.baseOptions;
|
|
11096
|
+
}
|
|
11097
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11098
|
+
const localVarHeaderParameter = {};
|
|
11099
|
+
const localVarQueryParameter = {};
|
|
11100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11104
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11105
|
+
return {
|
|
11106
|
+
url: toPathString(localVarUrlObj),
|
|
11107
|
+
options: localVarRequestOptions,
|
|
11108
|
+
};
|
|
11109
|
+
}),
|
|
11110
|
+
/**
|
|
11111
|
+
*
|
|
11112
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11113
|
+
* @param {*} [options] Override http request option.
|
|
11114
|
+
* @throws {RequiredError}
|
|
11115
|
+
*/
|
|
11116
|
+
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
11117
|
+
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
11118
|
+
assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
11119
|
+
const localVarPath = `/api/public-email/verify-code`;
|
|
11120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11122
|
+
let baseOptions;
|
|
11123
|
+
if (configuration) {
|
|
11124
|
+
baseOptions = configuration.baseOptions;
|
|
11125
|
+
}
|
|
11126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11127
|
+
const localVarHeaderParameter = {};
|
|
11128
|
+
const localVarQueryParameter = {};
|
|
11129
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11132
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11133
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
11134
|
+
return {
|
|
11135
|
+
url: toPathString(localVarUrlObj),
|
|
11136
|
+
options: localVarRequestOptions,
|
|
11137
|
+
};
|
|
11138
|
+
}),
|
|
11139
|
+
};
|
|
11140
|
+
};
|
|
11141
|
+
/**
|
|
11142
|
+
* PublicEmailApi - functional programming interface
|
|
11143
|
+
* @export
|
|
11144
|
+
*/
|
|
11145
|
+
export const PublicEmailApiFp = function (configuration) {
|
|
11146
|
+
const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
|
|
11147
|
+
return {
|
|
11148
|
+
/**
|
|
11149
|
+
*
|
|
11150
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11151
|
+
* @param {*} [options] Override http request option.
|
|
11152
|
+
* @throws {RequiredError}
|
|
11153
|
+
*/
|
|
11154
|
+
authEmailExists(emailExistsRequestBody, options) {
|
|
11155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11156
|
+
var _a, _b, _c;
|
|
11157
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
11158
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11159
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11160
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11161
|
+
});
|
|
11162
|
+
},
|
|
11163
|
+
/**
|
|
11164
|
+
*
|
|
11165
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11166
|
+
* @param {*} [options] Override http request option.
|
|
11167
|
+
* @throws {RequiredError}
|
|
11168
|
+
*/
|
|
11169
|
+
requestVerificationCode(requestEmailCodeBody, options) {
|
|
11170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11171
|
+
var _a, _b, _c;
|
|
11172
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
|
|
11173
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11174
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11176
|
+
});
|
|
11177
|
+
},
|
|
11178
|
+
/**
|
|
11179
|
+
*
|
|
11180
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11181
|
+
* @param {*} [options] Override http request option.
|
|
11182
|
+
* @throws {RequiredError}
|
|
11183
|
+
*/
|
|
11184
|
+
verifyCode(verifyEmailCodeBody, options) {
|
|
11185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11186
|
+
var _a, _b, _c;
|
|
11187
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
11188
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11189
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11190
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11191
|
+
});
|
|
11192
|
+
},
|
|
11193
|
+
};
|
|
11194
|
+
};
|
|
11195
|
+
/**
|
|
11196
|
+
* PublicEmailApi - factory interface
|
|
11197
|
+
* @export
|
|
11198
|
+
*/
|
|
11199
|
+
export const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
11200
|
+
const localVarFp = PublicEmailApiFp(configuration);
|
|
11201
|
+
return {
|
|
11202
|
+
/**
|
|
11203
|
+
*
|
|
11204
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
11205
|
+
* @param {*} [options] Override http request option.
|
|
11206
|
+
* @throws {RequiredError}
|
|
11207
|
+
*/
|
|
11208
|
+
authEmailExists(requestParameters, options) {
|
|
11209
|
+
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
11210
|
+
},
|
|
11211
|
+
/**
|
|
11212
|
+
*
|
|
11213
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
11214
|
+
* @param {*} [options] Override http request option.
|
|
11215
|
+
* @throws {RequiredError}
|
|
11216
|
+
*/
|
|
11217
|
+
requestVerificationCode(requestParameters, options) {
|
|
11218
|
+
return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11219
|
+
},
|
|
11220
|
+
/**
|
|
11221
|
+
*
|
|
11222
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
11223
|
+
* @param {*} [options] Override http request option.
|
|
11224
|
+
* @throws {RequiredError}
|
|
11225
|
+
*/
|
|
11226
|
+
verifyCode(requestParameters, options) {
|
|
11227
|
+
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11228
|
+
},
|
|
11229
|
+
};
|
|
11230
|
+
};
|
|
11231
|
+
/**
|
|
11232
|
+
* PublicEmailApi - object-oriented interface
|
|
11233
|
+
* @export
|
|
11234
|
+
* @class PublicEmailApi
|
|
11235
|
+
* @extends {BaseAPI}
|
|
11236
|
+
*/
|
|
11237
|
+
export class PublicEmailApi extends BaseAPI {
|
|
11238
|
+
/**
|
|
11239
|
+
*
|
|
11240
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
11241
|
+
* @param {*} [options] Override http request option.
|
|
11242
|
+
* @throws {RequiredError}
|
|
11243
|
+
* @memberof PublicEmailApi
|
|
11244
|
+
*/
|
|
11245
|
+
authEmailExists(requestParameters, options) {
|
|
11246
|
+
return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
11247
|
+
}
|
|
11248
|
+
/**
|
|
11249
|
+
*
|
|
11250
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
11251
|
+
* @param {*} [options] Override http request option.
|
|
11252
|
+
* @throws {RequiredError}
|
|
11253
|
+
* @memberof PublicEmailApi
|
|
11254
|
+
*/
|
|
11255
|
+
requestVerificationCode(requestParameters, options) {
|
|
11256
|
+
return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
11257
|
+
}
|
|
11258
|
+
/**
|
|
11259
|
+
*
|
|
11260
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
11261
|
+
* @param {*} [options] Override http request option.
|
|
11262
|
+
* @throws {RequiredError}
|
|
11263
|
+
* @memberof PublicEmailApi
|
|
11264
|
+
*/
|
|
11265
|
+
verifyCode(requestParameters, options) {
|
|
11266
|
+
return PublicEmailApiFp(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
11267
|
+
}
|
|
11268
|
+
}
|
|
11046
11269
|
/**
|
|
11047
11270
|
* SportsManagerApi - axios parameter creator
|
|
11048
11271
|
* @export
|
package/docs/ClubsApi.md
CHANGED
|
@@ -687,7 +687,7 @@ No authorization required
|
|
|
687
687
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
688
688
|
|
|
689
689
|
# **getPublishedActualities**
|
|
690
|
-
>
|
|
690
|
+
> GetPublishedActualities200Response getPublishedActualities()
|
|
691
691
|
|
|
692
692
|
|
|
693
693
|
### Example
|
|
@@ -717,7 +717,7 @@ const { status, data } = await apiInstance.getPublishedActualities(
|
|
|
717
717
|
|
|
718
718
|
### Return type
|
|
719
719
|
|
|
720
|
-
**
|
|
720
|
+
**GetPublishedActualities200Response**
|
|
721
721
|
|
|
722
722
|
### Authorization
|
|
723
723
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -75,7 +75,7 @@ const { status, data } = await apiInstance.createOnsiteInvoiceForBooking(
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
76
|
|
|
77
77
|
# **getActualities**
|
|
78
|
-
>
|
|
78
|
+
> StaffActualitiesPaginatedResponse getActualities()
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
### Example
|
|
@@ -98,7 +98,7 @@ This endpoint does not have any parameters.
|
|
|
98
98
|
|
|
99
99
|
### Return type
|
|
100
100
|
|
|
101
|
-
**
|
|
101
|
+
**StaffActualitiesPaginatedResponse**
|
|
102
102
|
|
|
103
103
|
### Authorization
|
|
104
104
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# EmailExistsRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EmailExistsRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EmailExistsRequestBody = {
|
|
16
|
+
email,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# EmailExistsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**exists** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EmailExistsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EmailExistsResponse = {
|
|
16
|
+
exists,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -134,7 +134,7 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
134
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
135
135
|
|
|
136
136
|
# **getEventsByClub**
|
|
137
|
-
>
|
|
137
|
+
> StaffEventsPaginatedResponse getEventsByClub()
|
|
138
138
|
|
|
139
139
|
// Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
140
140
|
|
|
@@ -158,7 +158,7 @@ This endpoint does not have any parameters.
|
|
|
158
158
|
|
|
159
159
|
### Return type
|
|
160
160
|
|
|
161
|
-
**
|
|
161
|
+
**StaffEventsPaginatedResponse**
|
|
162
162
|
|
|
163
163
|
### Authorization
|
|
164
164
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GetPublishedActualities200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { GetPublishedActualities200Response } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: GetPublishedActualities200Response = {
|
|
16
16
|
actualities,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PaginationInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**page** | **number** | | [default to undefined]
|
|
9
|
+
**pageSize** | **number** | | [default to undefined]
|
|
10
|
+
**totalItems** | **number** | | [default to undefined]
|
|
11
|
+
**totalPages** | **number** | | [default to undefined]
|
|
12
|
+
**hasMore** | **boolean** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PaginationInfo } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: PaginationInfo = {
|
|
20
|
+
page,
|
|
21
|
+
pageSize,
|
|
22
|
+
totalItems,
|
|
23
|
+
totalPages,
|
|
24
|
+
hasMore,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# PublicEmailApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authEmailExists**](#authemailexists) | **POST** /api/public-email/auth-email-exists | |
|
|
8
|
+
|[**requestVerificationCode**](#requestverificationcode) | **POST** /api/public-email/request-verification-code | |
|
|
9
|
+
|[**verifyCode**](#verifycode) | **POST** /api/public-email/verify-code | |
|
|
10
|
+
|
|
11
|
+
# **authEmailExists**
|
|
12
|
+
> EmailExistsResponse authEmailExists(emailExistsRequestBody)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
PublicEmailApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
EmailExistsRequestBody
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new PublicEmailApi(configuration);
|
|
26
|
+
|
|
27
|
+
let emailExistsRequestBody: EmailExistsRequestBody; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.authEmailExists(
|
|
30
|
+
emailExistsRequestBody
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **emailExistsRequestBody** | **EmailExistsRequestBody**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**EmailExistsResponse**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
No authorization required
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | OK | - |
|
|
59
|
+
|**400** | Payload invalide | - |
|
|
60
|
+
|
|
61
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
62
|
+
|
|
63
|
+
# **requestVerificationCode**
|
|
64
|
+
> RequestEmailCodeResponse requestVerificationCode(requestEmailCodeBody)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
PublicEmailApi,
|
|
72
|
+
Configuration,
|
|
73
|
+
RequestEmailCodeBody
|
|
74
|
+
} from '@tennac-booking/sdk';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new PublicEmailApi(configuration);
|
|
78
|
+
|
|
79
|
+
let requestEmailCodeBody: RequestEmailCodeBody; //
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.requestVerificationCode(
|
|
82
|
+
requestEmailCodeBody
|
|
83
|
+
);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **requestEmailCodeBody** | **RequestEmailCodeBody**| | |
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
**RequestEmailCodeResponse**
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
No authorization required
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: application/json
|
|
104
|
+
- **Accept**: application/json
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### HTTP response details
|
|
108
|
+
| Status code | Description | Response headers |
|
|
109
|
+
|-------------|-------------|------------------|
|
|
110
|
+
|**200** | Code envoyé | - |
|
|
111
|
+
|**400** | Payload invalide | - |
|
|
112
|
+
|**500** | Erreur envoi email | - |
|
|
113
|
+
|
|
114
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
115
|
+
|
|
116
|
+
# **verifyCode**
|
|
117
|
+
> VerifyEmailCodeResponse verifyCode(verifyEmailCodeBody)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
PublicEmailApi,
|
|
125
|
+
Configuration,
|
|
126
|
+
VerifyEmailCodeBody
|
|
127
|
+
} from '@tennac-booking/sdk';
|
|
128
|
+
|
|
129
|
+
const configuration = new Configuration();
|
|
130
|
+
const apiInstance = new PublicEmailApi(configuration);
|
|
131
|
+
|
|
132
|
+
let verifyEmailCodeBody: VerifyEmailCodeBody; //
|
|
133
|
+
|
|
134
|
+
const { status, data } = await apiInstance.verifyCode(
|
|
135
|
+
verifyEmailCodeBody
|
|
136
|
+
);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
|Name | Type | Description | Notes|
|
|
142
|
+
|------------- | ------------- | ------------- | -------------|
|
|
143
|
+
| **verifyEmailCodeBody** | **VerifyEmailCodeBody**| | |
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**VerifyEmailCodeResponse**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
No authorization required
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: application/json
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### HTTP response details
|
|
161
|
+
| Status code | Description | Response headers |
|
|
162
|
+
|-------------|-------------|------------------|
|
|
163
|
+
|**200** | Email verifie | - |
|
|
164
|
+
|**400** | Code invalide | - |
|
|
165
|
+
|
|
166
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
167
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RequestEmailCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RequestEmailCodeBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RequestEmailCodeBody = {
|
|
16
|
+
email,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# RequestEmailCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sent** | **boolean** | | [default to undefined]
|
|
9
|
+
**alreadyVerified** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RequestEmailCodeResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: RequestEmailCodeResponse = {
|
|
17
|
+
sent,
|
|
18
|
+
alreadyVerified,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# StaffActualitiesPaginatedResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**upcoming** | **Array<any>** | | [default to undefined]
|
|
9
|
+
**past** | **Array<any>** | | [default to undefined]
|
|
10
|
+
**upcomingPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
11
|
+
**pastPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { StaffActualitiesPaginatedResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: StaffActualitiesPaginatedResponse = {
|
|
19
|
+
upcoming,
|
|
20
|
+
past,
|
|
21
|
+
upcomingPagination,
|
|
22
|
+
pastPagination,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# StaffEventsPaginatedResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**upcoming** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**past** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
10
|
+
**upcomingPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
11
|
+
**pastPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { StaffEventsPaginatedResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: StaffEventsPaginatedResponse = {
|
|
19
|
+
upcoming,
|
|
20
|
+
past,
|
|
21
|
+
upcomingPagination,
|
|
22
|
+
pastPagination,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VerifyEmailCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**code** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VerifyEmailCodeBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VerifyEmailCodeBody = {
|
|
17
|
+
email,
|
|
18
|
+
code,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|