@tennac-booking/sdk 1.0.171 → 1.0.172
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 +396 -394
- package/README.md +5 -1
- package/api.ts +333 -27
- package/dist/api.d.ts +248 -27
- package/dist/api.js +149 -8
- package/dist/esm/api.d.ts +248 -27
- package/dist/esm/api.js +145 -4
- package/docs/AppRegisterRequestBody.md +22 -0
- package/docs/CompleteRegisterRequestBody.md +32 -0
- package/docs/{UpdateUserRequestBodyLevelBySportsInner.md → CompleteRegisterRequestBodyLevelBySportsInner.md} +3 -3
- package/docs/EmailExistsResponse.md +2 -0
- package/docs/EventsWaitListStaffApi.md +1 -1
- package/docs/GoogleAuthResponse.md +2 -0
- package/docs/IUserAttributes.md +4 -0
- package/docs/LoginResponse.md +2 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +2 -2
- package/docs/UserProfileResponse.md +4 -0
- package/docs/UsersApi.md +104 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -170,6 +170,10 @@ export const Gender = {
|
|
|
170
170
|
Transgender: 'transgender',
|
|
171
171
|
Other: 'other'
|
|
172
172
|
};
|
|
173
|
+
export const IUserAttributesCreatedFromEnum = {
|
|
174
|
+
App: 'app',
|
|
175
|
+
Website: 'website'
|
|
176
|
+
};
|
|
173
177
|
export const IUserLocationTypeEnum = {
|
|
174
178
|
Point: 'Point'
|
|
175
179
|
};
|
|
@@ -309,6 +313,10 @@ export const StaffBookingPaymentState = {
|
|
|
309
313
|
Failed: 'failed',
|
|
310
314
|
Partial: 'partial'
|
|
311
315
|
};
|
|
316
|
+
export const StaffUserProfileResponseCreatedFromEnum = {
|
|
317
|
+
App: 'app',
|
|
318
|
+
Website: 'website'
|
|
319
|
+
};
|
|
312
320
|
/**
|
|
313
321
|
*
|
|
314
322
|
* @export
|
|
@@ -383,6 +391,10 @@ export const UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
|
383
391
|
export const UserLocationSummaryTypeEnum = {
|
|
384
392
|
Point: 'Point'
|
|
385
393
|
};
|
|
394
|
+
export const UserProfileResponseCreatedFromEnum = {
|
|
395
|
+
App: 'app',
|
|
396
|
+
Website: 'website'
|
|
397
|
+
};
|
|
386
398
|
/**
|
|
387
399
|
*
|
|
388
400
|
* @export
|
|
@@ -11216,7 +11228,7 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration)
|
|
|
11216
11228
|
};
|
|
11217
11229
|
}),
|
|
11218
11230
|
/**
|
|
11219
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11231
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11220
11232
|
* @param {string} eventId
|
|
11221
11233
|
* @param {*} [options] Override http request option.
|
|
11222
11234
|
* @throws {RequiredError}
|
|
@@ -11271,7 +11283,7 @@ export const EventsWaitListStaffApiFp = function (configuration) {
|
|
|
11271
11283
|
});
|
|
11272
11284
|
},
|
|
11273
11285
|
/**
|
|
11274
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11286
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11275
11287
|
* @param {string} eventId
|
|
11276
11288
|
* @param {*} [options] Override http request option.
|
|
11277
11289
|
* @throws {RequiredError}
|
|
@@ -11304,7 +11316,7 @@ export const EventsWaitListStaffApiFactory = function (configuration, basePath,
|
|
|
11304
11316
|
return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11305
11317
|
},
|
|
11306
11318
|
/**
|
|
11307
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11319
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11308
11320
|
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11309
11321
|
* @param {*} [options] Override http request option.
|
|
11310
11322
|
* @throws {RequiredError}
|
|
@@ -11332,7 +11344,7 @@ export class EventsWaitListStaffApi extends BaseAPI {
|
|
|
11332
11344
|
return EventsWaitListStaffApiFp(this.configuration).getWaitListForEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11333
11345
|
}
|
|
11334
11346
|
/**
|
|
11335
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11347
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11336
11348
|
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11337
11349
|
* @param {*} [options] Override http request option.
|
|
11338
11350
|
* @throws {RequiredError}
|
|
@@ -13073,6 +13085,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13073
13085
|
options: localVarRequestOptions,
|
|
13074
13086
|
};
|
|
13075
13087
|
}),
|
|
13088
|
+
/**
|
|
13089
|
+
*
|
|
13090
|
+
* @param {CompleteRegisterRequestBody} completeRegisterRequestBody
|
|
13091
|
+
* @param {*} [options] Override http request option.
|
|
13092
|
+
* @throws {RequiredError}
|
|
13093
|
+
*/
|
|
13094
|
+
completeRegister: (completeRegisterRequestBody_1, ...args_1) => __awaiter(this, [completeRegisterRequestBody_1, ...args_1], void 0, function* (completeRegisterRequestBody, options = {}) {
|
|
13095
|
+
// verify required parameter 'completeRegisterRequestBody' is not null or undefined
|
|
13096
|
+
assertParamExists('completeRegister', 'completeRegisterRequestBody', completeRegisterRequestBody);
|
|
13097
|
+
const localVarPath = `/api/users/complete-register`;
|
|
13098
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13099
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13100
|
+
let baseOptions;
|
|
13101
|
+
if (configuration) {
|
|
13102
|
+
baseOptions = configuration.baseOptions;
|
|
13103
|
+
}
|
|
13104
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13105
|
+
const localVarHeaderParameter = {};
|
|
13106
|
+
const localVarQueryParameter = {};
|
|
13107
|
+
// authentication bearerAuth required
|
|
13108
|
+
// http bearer authentication required
|
|
13109
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13110
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13113
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeRegisterRequestBody, localVarRequestOptions, configuration);
|
|
13115
|
+
return {
|
|
13116
|
+
url: toPathString(localVarUrlObj),
|
|
13117
|
+
options: localVarRequestOptions,
|
|
13118
|
+
};
|
|
13119
|
+
}),
|
|
13076
13120
|
/**
|
|
13077
13121
|
*
|
|
13078
13122
|
* @param {*} [options] Override http request option.
|
|
@@ -13754,6 +13798,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13754
13798
|
options: localVarRequestOptions,
|
|
13755
13799
|
};
|
|
13756
13800
|
}),
|
|
13801
|
+
/**
|
|
13802
|
+
*
|
|
13803
|
+
* @param {AppRegisterRequestBody} appRegisterRequestBody
|
|
13804
|
+
* @param {*} [options] Override http request option.
|
|
13805
|
+
* @throws {RequiredError}
|
|
13806
|
+
*/
|
|
13807
|
+
registerFromApp: (appRegisterRequestBody_1, ...args_1) => __awaiter(this, [appRegisterRequestBody_1, ...args_1], void 0, function* (appRegisterRequestBody, options = {}) {
|
|
13808
|
+
// verify required parameter 'appRegisterRequestBody' is not null or undefined
|
|
13809
|
+
assertParamExists('registerFromApp', 'appRegisterRequestBody', appRegisterRequestBody);
|
|
13810
|
+
const localVarPath = `/api/users/register-app`;
|
|
13811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13812
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13813
|
+
let baseOptions;
|
|
13814
|
+
if (configuration) {
|
|
13815
|
+
baseOptions = configuration.baseOptions;
|
|
13816
|
+
}
|
|
13817
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13818
|
+
const localVarHeaderParameter = {};
|
|
13819
|
+
const localVarQueryParameter = {};
|
|
13820
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13821
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13823
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13824
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appRegisterRequestBody, localVarRequestOptions, configuration);
|
|
13825
|
+
return {
|
|
13826
|
+
url: toPathString(localVarUrlObj),
|
|
13827
|
+
options: localVarRequestOptions,
|
|
13828
|
+
};
|
|
13829
|
+
}),
|
|
13757
13830
|
/**
|
|
13758
13831
|
*
|
|
13759
13832
|
* @param {string} clubId
|
|
@@ -14217,6 +14290,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
14217
14290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14218
14291
|
});
|
|
14219
14292
|
},
|
|
14293
|
+
/**
|
|
14294
|
+
*
|
|
14295
|
+
* @param {CompleteRegisterRequestBody} completeRegisterRequestBody
|
|
14296
|
+
* @param {*} [options] Override http request option.
|
|
14297
|
+
* @throws {RequiredError}
|
|
14298
|
+
*/
|
|
14299
|
+
completeRegister(completeRegisterRequestBody, options) {
|
|
14300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14301
|
+
var _a, _b, _c;
|
|
14302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeRegister(completeRegisterRequestBody, options);
|
|
14303
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14304
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.completeRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14305
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14306
|
+
});
|
|
14307
|
+
},
|
|
14220
14308
|
/**
|
|
14221
14309
|
*
|
|
14222
14310
|
* @param {*} [options] Override http request option.
|
|
@@ -14543,6 +14631,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
14543
14631
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14544
14632
|
});
|
|
14545
14633
|
},
|
|
14634
|
+
/**
|
|
14635
|
+
*
|
|
14636
|
+
* @param {AppRegisterRequestBody} appRegisterRequestBody
|
|
14637
|
+
* @param {*} [options] Override http request option.
|
|
14638
|
+
* @throws {RequiredError}
|
|
14639
|
+
*/
|
|
14640
|
+
registerFromApp(appRegisterRequestBody, options) {
|
|
14641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14642
|
+
var _a, _b, _c;
|
|
14643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerFromApp(appRegisterRequestBody, options);
|
|
14644
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14645
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.registerFromApp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14646
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14647
|
+
});
|
|
14648
|
+
},
|
|
14546
14649
|
/**
|
|
14547
14650
|
*
|
|
14548
14651
|
* @param {string} clubId
|
|
@@ -14782,6 +14885,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14782
14885
|
changePassword(requestParameters, options) {
|
|
14783
14886
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
14784
14887
|
},
|
|
14888
|
+
/**
|
|
14889
|
+
*
|
|
14890
|
+
* @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
|
|
14891
|
+
* @param {*} [options] Override http request option.
|
|
14892
|
+
* @throws {RequiredError}
|
|
14893
|
+
*/
|
|
14894
|
+
completeRegister(requestParameters, options) {
|
|
14895
|
+
return localVarFp.completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
14896
|
+
},
|
|
14785
14897
|
/**
|
|
14786
14898
|
*
|
|
14787
14899
|
* @param {*} [options] Override http request option.
|
|
@@ -14963,6 +15075,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14963
15075
|
register(requestParameters, options) {
|
|
14964
15076
|
return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
|
|
14965
15077
|
},
|
|
15078
|
+
/**
|
|
15079
|
+
*
|
|
15080
|
+
* @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
|
|
15081
|
+
* @param {*} [options] Override http request option.
|
|
15082
|
+
* @throws {RequiredError}
|
|
15083
|
+
*/
|
|
15084
|
+
registerFromApp(requestParameters, options) {
|
|
15085
|
+
return localVarFp.registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
15086
|
+
},
|
|
14966
15087
|
/**
|
|
14967
15088
|
*
|
|
14968
15089
|
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
@@ -15128,6 +15249,16 @@ export class UsersApi extends BaseAPI {
|
|
|
15128
15249
|
changePassword(requestParameters, options) {
|
|
15129
15250
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15130
15251
|
}
|
|
15252
|
+
/**
|
|
15253
|
+
*
|
|
15254
|
+
* @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
|
|
15255
|
+
* @param {*} [options] Override http request option.
|
|
15256
|
+
* @throws {RequiredError}
|
|
15257
|
+
* @memberof UsersApi
|
|
15258
|
+
*/
|
|
15259
|
+
completeRegister(requestParameters, options) {
|
|
15260
|
+
return UsersApiFp(this.configuration).completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15261
|
+
}
|
|
15131
15262
|
/**
|
|
15132
15263
|
*
|
|
15133
15264
|
* @param {*} [options] Override http request option.
|
|
@@ -15330,6 +15461,16 @@ export class UsersApi extends BaseAPI {
|
|
|
15330
15461
|
register(requestParameters, options) {
|
|
15331
15462
|
return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15332
15463
|
}
|
|
15464
|
+
/**
|
|
15465
|
+
*
|
|
15466
|
+
* @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
|
|
15467
|
+
* @param {*} [options] Override http request option.
|
|
15468
|
+
* @throws {RequiredError}
|
|
15469
|
+
* @memberof UsersApi
|
|
15470
|
+
*/
|
|
15471
|
+
registerFromApp(requestParameters, options) {
|
|
15472
|
+
return UsersApiFp(this.configuration).registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15473
|
+
}
|
|
15333
15474
|
/**
|
|
15334
15475
|
*
|
|
15335
15476
|
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AppRegisterRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**password** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AppRegisterRequestBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AppRegisterRequestBody = {
|
|
17
|
+
email,
|
|
18
|
+
password,
|
|
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,32 @@
|
|
|
1
|
+
# CompleteRegisterRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**firstName** | **string** | | [default to undefined]
|
|
9
|
+
**lastName** | **string** | | [default to undefined]
|
|
10
|
+
**username** | **string** | | [default to undefined]
|
|
11
|
+
**levelBySports** | [**Array<CompleteRegisterRequestBodyLevelBySportsInner>**](CompleteRegisterRequestBodyLevelBySportsInner.md) | | [default to undefined]
|
|
12
|
+
**city** | **string** | | [default to undefined]
|
|
13
|
+
**organizationId** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**organizationEmail** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CompleteRegisterRequestBody } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: CompleteRegisterRequestBody = {
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
username,
|
|
25
|
+
levelBySports,
|
|
26
|
+
city,
|
|
27
|
+
organizationId,
|
|
28
|
+
organizationEmail,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CompleteRegisterRequestBodyLevelBySportsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { CompleteRegisterRequestBodyLevelBySportsInner } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: CompleteRegisterRequestBodyLevelBySportsInner = {
|
|
17
17
|
level,
|
|
18
18
|
sport,
|
|
19
19
|
};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**exists** | **boolean** | | [default to undefined]
|
|
9
|
+
**verified** | **boolean** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { EmailExistsResponse } from '@tennac-booking/sdk';
|
|
|
14
15
|
|
|
15
16
|
const instance: EmailExistsResponse = {
|
|
16
17
|
exists,
|
|
18
|
+
verified,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -63,7 +63,7 @@ const { status, data } = await apiInstance.getWaitListForEvent(
|
|
|
63
63
|
# **processWaitList**
|
|
64
64
|
> RequestPasswordReset200Response processWaitList()
|
|
65
65
|
|
|
66
|
-
Forcer le traitement de la waitlist (staff only)
|
|
66
|
+
Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
67
67
|
|
|
68
68
|
### Example
|
|
69
69
|
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**sessionDuration** | **number** | | [default to undefined]
|
|
11
11
|
**sessionEnd** | **number** | | [default to undefined]
|
|
12
12
|
**role** | **string** | | [default to undefined]
|
|
13
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [default to undefined]
|
|
13
14
|
**user** | [**GoogleAuthResponseUser**](GoogleAuthResponseUser.md) | | [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -23,6 +24,7 @@ const instance: GoogleAuthResponse = {
|
|
|
23
24
|
sessionDuration,
|
|
24
25
|
sessionEnd,
|
|
25
26
|
role,
|
|
27
|
+
isOnBoardingInAppCompleted,
|
|
26
28
|
user,
|
|
27
29
|
};
|
|
28
30
|
```
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
28
|
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [optional] [default to undefined]
|
|
31
|
+
**createdFrom** | **string** | | [optional] [default to undefined]
|
|
30
32
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
33
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
34
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -65,6 +67,8 @@ const instance: IUserAttributes = {
|
|
|
65
67
|
isGuest,
|
|
66
68
|
isAdmin,
|
|
67
69
|
isClient,
|
|
70
|
+
isOnBoardingInAppCompleted,
|
|
71
|
+
createdFrom,
|
|
68
72
|
createdAt,
|
|
69
73
|
updatedAt,
|
|
70
74
|
isLevelCertified,
|
package/docs/LoginResponse.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**sessionDuration** | **number** | | [default to undefined]
|
|
11
11
|
**sessionEnd** | **number** | | [default to undefined]
|
|
12
12
|
**role** | **string** | | [default to undefined]
|
|
13
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: LoginResponse = {
|
|
|
22
23
|
sessionDuration,
|
|
23
24
|
sessionEnd,
|
|
24
25
|
role,
|
|
26
|
+
isOnBoardingInAppCompleted,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
28
|
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [optional] [default to undefined]
|
|
31
|
+
**createdFrom** | **string** | | [optional] [default to undefined]
|
|
30
32
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
33
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
34
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -67,6 +69,8 @@ const instance: StaffUserProfileResponse = {
|
|
|
67
69
|
isGuest,
|
|
68
70
|
isAdmin,
|
|
69
71
|
isClient,
|
|
72
|
+
isOnBoardingInAppCompleted,
|
|
73
|
+
createdFrom,
|
|
70
74
|
createdAt,
|
|
71
75
|
updatedAt,
|
|
72
76
|
isLevelCertified,
|
|
@@ -13,11 +13,11 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**birthDate** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**levelBySports** | [**Array<
|
|
16
|
+
**levelBySports** | [**Array<CompleteRegisterRequestBodyLevelBySportsInner>**](CompleteRegisterRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
17
17
|
**characteristics** | [**Array<UpdateUserRequestBodyCharacteristicsInner>**](UpdateUserRequestBodyCharacteristicsInner.md) | | [optional] [default to undefined]
|
|
18
18
|
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
20
|
-
**location** | [**
|
|
20
|
+
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
28
|
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [optional] [default to undefined]
|
|
31
|
+
**createdFrom** | **string** | | [optional] [default to undefined]
|
|
30
32
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
33
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
34
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -73,6 +75,8 @@ const instance: UserProfileResponse = {
|
|
|
73
75
|
isGuest,
|
|
74
76
|
isAdmin,
|
|
75
77
|
isClient,
|
|
78
|
+
isOnBoardingInAppCompleted,
|
|
79
|
+
createdFrom,
|
|
76
80
|
createdAt,
|
|
77
81
|
updatedAt,
|
|
78
82
|
isLevelCertified,
|
package/docs/UsersApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
9
|
|[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
|
|
10
10
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
11
|
+
|[**completeRegister**](#completeregister) | **POST** /api/users/complete-register | |
|
|
11
12
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | |
|
|
12
13
|
|[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
|
|
13
14
|
|[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
|
|
@@ -29,6 +30,7 @@ All URIs are relative to *http://localhost*
|
|
|
29
30
|
|[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
|
|
30
31
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
31
32
|
|[**register**](#register) | **POST** /api/users | |
|
|
33
|
+
|[**registerFromApp**](#registerfromapp) | **POST** /api/users/register-app | |
|
|
32
34
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
33
35
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
34
36
|
|[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
|
|
@@ -240,6 +242,57 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
240
242
|
- **Accept**: application/json
|
|
241
243
|
|
|
242
244
|
|
|
245
|
+
### HTTP response details
|
|
246
|
+
| Status code | Description | Response headers |
|
|
247
|
+
|-------------|-------------|------------------|
|
|
248
|
+
|**200** | Ok | - |
|
|
249
|
+
|
|
250
|
+
[[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)
|
|
251
|
+
|
|
252
|
+
# **completeRegister**
|
|
253
|
+
> IUserAttributes completeRegister(completeRegisterRequestBody)
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import {
|
|
260
|
+
UsersApi,
|
|
261
|
+
Configuration,
|
|
262
|
+
CompleteRegisterRequestBody
|
|
263
|
+
} from '@tennac-booking/sdk';
|
|
264
|
+
|
|
265
|
+
const configuration = new Configuration();
|
|
266
|
+
const apiInstance = new UsersApi(configuration);
|
|
267
|
+
|
|
268
|
+
let completeRegisterRequestBody: CompleteRegisterRequestBody; //
|
|
269
|
+
|
|
270
|
+
const { status, data } = await apiInstance.completeRegister(
|
|
271
|
+
completeRegisterRequestBody
|
|
272
|
+
);
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Parameters
|
|
276
|
+
|
|
277
|
+
|Name | Type | Description | Notes|
|
|
278
|
+
|------------- | ------------- | ------------- | -------------|
|
|
279
|
+
| **completeRegisterRequestBody** | **CompleteRegisterRequestBody**| | |
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Return type
|
|
283
|
+
|
|
284
|
+
**IUserAttributes**
|
|
285
|
+
|
|
286
|
+
### Authorization
|
|
287
|
+
|
|
288
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
289
|
+
|
|
290
|
+
### HTTP request headers
|
|
291
|
+
|
|
292
|
+
- **Content-Type**: application/json
|
|
293
|
+
- **Accept**: application/json
|
|
294
|
+
|
|
295
|
+
|
|
243
296
|
### HTTP response details
|
|
244
297
|
| Status code | Description | Response headers |
|
|
245
298
|
|-------------|-------------|------------------|
|
|
@@ -1283,6 +1336,57 @@ const { status, data } = await apiInstance.register(
|
|
|
1283
1336
|
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
1284
1337
|
|
|
1285
1338
|
|
|
1339
|
+
### Return type
|
|
1340
|
+
|
|
1341
|
+
**IUserAttributes**
|
|
1342
|
+
|
|
1343
|
+
### Authorization
|
|
1344
|
+
|
|
1345
|
+
No authorization required
|
|
1346
|
+
|
|
1347
|
+
### HTTP request headers
|
|
1348
|
+
|
|
1349
|
+
- **Content-Type**: application/json
|
|
1350
|
+
- **Accept**: application/json
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
### HTTP response details
|
|
1354
|
+
| Status code | Description | Response headers |
|
|
1355
|
+
|-------------|-------------|------------------|
|
|
1356
|
+
|**201** | Created | - |
|
|
1357
|
+
|
|
1358
|
+
[[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)
|
|
1359
|
+
|
|
1360
|
+
# **registerFromApp**
|
|
1361
|
+
> IUserAttributes registerFromApp(appRegisterRequestBody)
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
### Example
|
|
1365
|
+
|
|
1366
|
+
```typescript
|
|
1367
|
+
import {
|
|
1368
|
+
UsersApi,
|
|
1369
|
+
Configuration,
|
|
1370
|
+
AppRegisterRequestBody
|
|
1371
|
+
} from '@tennac-booking/sdk';
|
|
1372
|
+
|
|
1373
|
+
const configuration = new Configuration();
|
|
1374
|
+
const apiInstance = new UsersApi(configuration);
|
|
1375
|
+
|
|
1376
|
+
let appRegisterRequestBody: AppRegisterRequestBody; //
|
|
1377
|
+
|
|
1378
|
+
const { status, data } = await apiInstance.registerFromApp(
|
|
1379
|
+
appRegisterRequestBody
|
|
1380
|
+
);
|
|
1381
|
+
```
|
|
1382
|
+
|
|
1383
|
+
### Parameters
|
|
1384
|
+
|
|
1385
|
+
|Name | Type | Description | Notes|
|
|
1386
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1387
|
+
| **appRegisterRequestBody** | **AppRegisterRequestBody**| | |
|
|
1388
|
+
|
|
1389
|
+
|
|
1286
1390
|
### Return type
|
|
1287
1391
|
|
|
1288
1392
|
**IUserAttributes**
|