@tennac-booking/sdk 1.0.171 → 1.0.173
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 +399 -394
- package/README.md +11 -3
- package/api.ts +562 -28
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +432 -28
- package/dist/api.js +215 -9
- 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 +432 -28
- package/dist/esm/api.js +211 -5
- 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/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/EventsStaffApi.md +54 -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/StaffEventBookingInvoiceResponse.md +32 -0
- package/docs/StaffEventBookingResponse.md +40 -0
- package/docs/StaffEventDetailResponse.md +22 -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/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.172
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
|
@@ -10569,6 +10581,37 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10569
10581
|
options: localVarRequestOptions,
|
|
10570
10582
|
};
|
|
10571
10583
|
}),
|
|
10584
|
+
/**
|
|
10585
|
+
* Get a specific event by ID (staff)
|
|
10586
|
+
* @param {string} eventId
|
|
10587
|
+
* @param {*} [options] Override http request option.
|
|
10588
|
+
* @throws {RequiredError}
|
|
10589
|
+
*/
|
|
10590
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10591
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10592
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId);
|
|
10593
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10594
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10596
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10597
|
+
let baseOptions;
|
|
10598
|
+
if (configuration) {
|
|
10599
|
+
baseOptions = configuration.baseOptions;
|
|
10600
|
+
}
|
|
10601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10602
|
+
const localVarHeaderParameter = {};
|
|
10603
|
+
const localVarQueryParameter = {};
|
|
10604
|
+
// authentication bearerAuth required
|
|
10605
|
+
// http bearer authentication required
|
|
10606
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10607
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10609
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10610
|
+
return {
|
|
10611
|
+
url: toPathString(localVarUrlObj),
|
|
10612
|
+
options: localVarRequestOptions,
|
|
10613
|
+
};
|
|
10614
|
+
}),
|
|
10572
10615
|
/**
|
|
10573
10616
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10574
10617
|
* @param {*} [options] Override http request option.
|
|
@@ -10734,6 +10777,21 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
10734
10777
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10735
10778
|
});
|
|
10736
10779
|
},
|
|
10780
|
+
/**
|
|
10781
|
+
* Get a specific event by ID (staff)
|
|
10782
|
+
* @param {string} eventId
|
|
10783
|
+
* @param {*} [options] Override http request option.
|
|
10784
|
+
* @throws {RequiredError}
|
|
10785
|
+
*/
|
|
10786
|
+
getEventByIdForStaff(eventId, options) {
|
|
10787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10788
|
+
var _a, _b, _c;
|
|
10789
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
10790
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10791
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10793
|
+
});
|
|
10794
|
+
},
|
|
10737
10795
|
/**
|
|
10738
10796
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10739
10797
|
* @param {*} [options] Override http request option.
|
|
@@ -10813,6 +10871,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10813
10871
|
getDailyEvents(requestParameters = {}, options) {
|
|
10814
10872
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10815
10873
|
},
|
|
10874
|
+
/**
|
|
10875
|
+
* Get a specific event by ID (staff)
|
|
10876
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
10877
|
+
* @param {*} [options] Override http request option.
|
|
10878
|
+
* @throws {RequiredError}
|
|
10879
|
+
*/
|
|
10880
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
10881
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10882
|
+
},
|
|
10816
10883
|
/**
|
|
10817
10884
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10818
10885
|
* @param {*} [options] Override http request option.
|
|
@@ -10868,6 +10935,16 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
10868
10935
|
getDailyEvents(requestParameters = {}, options) {
|
|
10869
10936
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10870
10937
|
}
|
|
10938
|
+
/**
|
|
10939
|
+
* Get a specific event by ID (staff)
|
|
10940
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
10941
|
+
* @param {*} [options] Override http request option.
|
|
10942
|
+
* @throws {RequiredError}
|
|
10943
|
+
* @memberof EventsStaffApi
|
|
10944
|
+
*/
|
|
10945
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
10946
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10947
|
+
}
|
|
10871
10948
|
/**
|
|
10872
10949
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10873
10950
|
* @param {*} [options] Override http request option.
|
|
@@ -11216,7 +11293,7 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration)
|
|
|
11216
11293
|
};
|
|
11217
11294
|
}),
|
|
11218
11295
|
/**
|
|
11219
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11296
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11220
11297
|
* @param {string} eventId
|
|
11221
11298
|
* @param {*} [options] Override http request option.
|
|
11222
11299
|
* @throws {RequiredError}
|
|
@@ -11271,7 +11348,7 @@ export const EventsWaitListStaffApiFp = function (configuration) {
|
|
|
11271
11348
|
});
|
|
11272
11349
|
},
|
|
11273
11350
|
/**
|
|
11274
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11351
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11275
11352
|
* @param {string} eventId
|
|
11276
11353
|
* @param {*} [options] Override http request option.
|
|
11277
11354
|
* @throws {RequiredError}
|
|
@@ -11304,7 +11381,7 @@ export const EventsWaitListStaffApiFactory = function (configuration, basePath,
|
|
|
11304
11381
|
return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11305
11382
|
},
|
|
11306
11383
|
/**
|
|
11307
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11384
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11308
11385
|
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11309
11386
|
* @param {*} [options] Override http request option.
|
|
11310
11387
|
* @throws {RequiredError}
|
|
@@ -11332,7 +11409,7 @@ export class EventsWaitListStaffApi extends BaseAPI {
|
|
|
11332
11409
|
return EventsWaitListStaffApiFp(this.configuration).getWaitListForEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11333
11410
|
}
|
|
11334
11411
|
/**
|
|
11335
|
-
* Forcer le traitement de la waitlist (staff only)
|
|
11412
|
+
* Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
|
|
11336
11413
|
* @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
|
|
11337
11414
|
* @param {*} [options] Override http request option.
|
|
11338
11415
|
* @throws {RequiredError}
|
|
@@ -13073,6 +13150,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13073
13150
|
options: localVarRequestOptions,
|
|
13074
13151
|
};
|
|
13075
13152
|
}),
|
|
13153
|
+
/**
|
|
13154
|
+
*
|
|
13155
|
+
* @param {CompleteRegisterRequestBody} completeRegisterRequestBody
|
|
13156
|
+
* @param {*} [options] Override http request option.
|
|
13157
|
+
* @throws {RequiredError}
|
|
13158
|
+
*/
|
|
13159
|
+
completeRegister: (completeRegisterRequestBody_1, ...args_1) => __awaiter(this, [completeRegisterRequestBody_1, ...args_1], void 0, function* (completeRegisterRequestBody, options = {}) {
|
|
13160
|
+
// verify required parameter 'completeRegisterRequestBody' is not null or undefined
|
|
13161
|
+
assertParamExists('completeRegister', 'completeRegisterRequestBody', completeRegisterRequestBody);
|
|
13162
|
+
const localVarPath = `/api/users/complete-register`;
|
|
13163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13165
|
+
let baseOptions;
|
|
13166
|
+
if (configuration) {
|
|
13167
|
+
baseOptions = configuration.baseOptions;
|
|
13168
|
+
}
|
|
13169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13170
|
+
const localVarHeaderParameter = {};
|
|
13171
|
+
const localVarQueryParameter = {};
|
|
13172
|
+
// authentication bearerAuth required
|
|
13173
|
+
// http bearer authentication required
|
|
13174
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13179
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeRegisterRequestBody, localVarRequestOptions, configuration);
|
|
13180
|
+
return {
|
|
13181
|
+
url: toPathString(localVarUrlObj),
|
|
13182
|
+
options: localVarRequestOptions,
|
|
13183
|
+
};
|
|
13184
|
+
}),
|
|
13076
13185
|
/**
|
|
13077
13186
|
*
|
|
13078
13187
|
* @param {*} [options] Override http request option.
|
|
@@ -13754,6 +13863,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13754
13863
|
options: localVarRequestOptions,
|
|
13755
13864
|
};
|
|
13756
13865
|
}),
|
|
13866
|
+
/**
|
|
13867
|
+
*
|
|
13868
|
+
* @param {AppRegisterRequestBody} appRegisterRequestBody
|
|
13869
|
+
* @param {*} [options] Override http request option.
|
|
13870
|
+
* @throws {RequiredError}
|
|
13871
|
+
*/
|
|
13872
|
+
registerFromApp: (appRegisterRequestBody_1, ...args_1) => __awaiter(this, [appRegisterRequestBody_1, ...args_1], void 0, function* (appRegisterRequestBody, options = {}) {
|
|
13873
|
+
// verify required parameter 'appRegisterRequestBody' is not null or undefined
|
|
13874
|
+
assertParamExists('registerFromApp', 'appRegisterRequestBody', appRegisterRequestBody);
|
|
13875
|
+
const localVarPath = `/api/users/register-app`;
|
|
13876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13878
|
+
let baseOptions;
|
|
13879
|
+
if (configuration) {
|
|
13880
|
+
baseOptions = configuration.baseOptions;
|
|
13881
|
+
}
|
|
13882
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13883
|
+
const localVarHeaderParameter = {};
|
|
13884
|
+
const localVarQueryParameter = {};
|
|
13885
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13886
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13889
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appRegisterRequestBody, localVarRequestOptions, configuration);
|
|
13890
|
+
return {
|
|
13891
|
+
url: toPathString(localVarUrlObj),
|
|
13892
|
+
options: localVarRequestOptions,
|
|
13893
|
+
};
|
|
13894
|
+
}),
|
|
13757
13895
|
/**
|
|
13758
13896
|
*
|
|
13759
13897
|
* @param {string} clubId
|
|
@@ -14217,6 +14355,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
14217
14355
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14218
14356
|
});
|
|
14219
14357
|
},
|
|
14358
|
+
/**
|
|
14359
|
+
*
|
|
14360
|
+
* @param {CompleteRegisterRequestBody} completeRegisterRequestBody
|
|
14361
|
+
* @param {*} [options] Override http request option.
|
|
14362
|
+
* @throws {RequiredError}
|
|
14363
|
+
*/
|
|
14364
|
+
completeRegister(completeRegisterRequestBody, options) {
|
|
14365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14366
|
+
var _a, _b, _c;
|
|
14367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeRegister(completeRegisterRequestBody, options);
|
|
14368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14369
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.completeRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14371
|
+
});
|
|
14372
|
+
},
|
|
14220
14373
|
/**
|
|
14221
14374
|
*
|
|
14222
14375
|
* @param {*} [options] Override http request option.
|
|
@@ -14543,6 +14696,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
14543
14696
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14544
14697
|
});
|
|
14545
14698
|
},
|
|
14699
|
+
/**
|
|
14700
|
+
*
|
|
14701
|
+
* @param {AppRegisterRequestBody} appRegisterRequestBody
|
|
14702
|
+
* @param {*} [options] Override http request option.
|
|
14703
|
+
* @throws {RequiredError}
|
|
14704
|
+
*/
|
|
14705
|
+
registerFromApp(appRegisterRequestBody, options) {
|
|
14706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14707
|
+
var _a, _b, _c;
|
|
14708
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerFromApp(appRegisterRequestBody, options);
|
|
14709
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14710
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.registerFromApp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14711
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14712
|
+
});
|
|
14713
|
+
},
|
|
14546
14714
|
/**
|
|
14547
14715
|
*
|
|
14548
14716
|
* @param {string} clubId
|
|
@@ -14782,6 +14950,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14782
14950
|
changePassword(requestParameters, options) {
|
|
14783
14951
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
14784
14952
|
},
|
|
14953
|
+
/**
|
|
14954
|
+
*
|
|
14955
|
+
* @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
|
|
14956
|
+
* @param {*} [options] Override http request option.
|
|
14957
|
+
* @throws {RequiredError}
|
|
14958
|
+
*/
|
|
14959
|
+
completeRegister(requestParameters, options) {
|
|
14960
|
+
return localVarFp.completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
14961
|
+
},
|
|
14785
14962
|
/**
|
|
14786
14963
|
*
|
|
14787
14964
|
* @param {*} [options] Override http request option.
|
|
@@ -14963,6 +15140,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14963
15140
|
register(requestParameters, options) {
|
|
14964
15141
|
return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
|
|
14965
15142
|
},
|
|
15143
|
+
/**
|
|
15144
|
+
*
|
|
15145
|
+
* @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
|
|
15146
|
+
* @param {*} [options] Override http request option.
|
|
15147
|
+
* @throws {RequiredError}
|
|
15148
|
+
*/
|
|
15149
|
+
registerFromApp(requestParameters, options) {
|
|
15150
|
+
return localVarFp.registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
15151
|
+
},
|
|
14966
15152
|
/**
|
|
14967
15153
|
*
|
|
14968
15154
|
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
@@ -15128,6 +15314,16 @@ export class UsersApi extends BaseAPI {
|
|
|
15128
15314
|
changePassword(requestParameters, options) {
|
|
15129
15315
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15130
15316
|
}
|
|
15317
|
+
/**
|
|
15318
|
+
*
|
|
15319
|
+
* @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
|
|
15320
|
+
* @param {*} [options] Override http request option.
|
|
15321
|
+
* @throws {RequiredError}
|
|
15322
|
+
* @memberof UsersApi
|
|
15323
|
+
*/
|
|
15324
|
+
completeRegister(requestParameters, options) {
|
|
15325
|
+
return UsersApiFp(this.configuration).completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15326
|
+
}
|
|
15131
15327
|
/**
|
|
15132
15328
|
*
|
|
15133
15329
|
* @param {*} [options] Override http request option.
|
|
@@ -15330,6 +15526,16 @@ export class UsersApi extends BaseAPI {
|
|
|
15330
15526
|
register(requestParameters, options) {
|
|
15331
15527
|
return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15332
15528
|
}
|
|
15529
|
+
/**
|
|
15530
|
+
*
|
|
15531
|
+
* @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
|
|
15532
|
+
* @param {*} [options] Override http request option.
|
|
15533
|
+
* @throws {RequiredError}
|
|
15534
|
+
* @memberof UsersApi
|
|
15535
|
+
*/
|
|
15536
|
+
registerFromApp(requestParameters, options) {
|
|
15537
|
+
return UsersApiFp(this.configuration).registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15538
|
+
}
|
|
15333
15539
|
/**
|
|
15334
15540
|
*
|
|
15335
15541
|
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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
|
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
+
|[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
|
|
9
10
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
10
11
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
11
12
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
@@ -133,6 +134,59 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
133
134
|
|
|
134
135
|
[[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
136
|
|
|
137
|
+
# **getEventByIdForStaff**
|
|
138
|
+
> StaffEventDetailResponse getEventByIdForStaff()
|
|
139
|
+
|
|
140
|
+
Get a specific event by ID (staff)
|
|
141
|
+
|
|
142
|
+
### Example
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
import {
|
|
146
|
+
EventsStaffApi,
|
|
147
|
+
Configuration
|
|
148
|
+
} from '@tennac-booking/sdk';
|
|
149
|
+
|
|
150
|
+
const configuration = new Configuration();
|
|
151
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
152
|
+
|
|
153
|
+
let eventId: string; // (default to undefined)
|
|
154
|
+
|
|
155
|
+
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
156
|
+
eventId
|
|
157
|
+
);
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Parameters
|
|
161
|
+
|
|
162
|
+
|Name | Type | Description | Notes|
|
|
163
|
+
|------------- | ------------- | ------------- | -------------|
|
|
164
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Return type
|
|
168
|
+
|
|
169
|
+
**StaffEventDetailResponse**
|
|
170
|
+
|
|
171
|
+
### Authorization
|
|
172
|
+
|
|
173
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
174
|
+
|
|
175
|
+
### HTTP request headers
|
|
176
|
+
|
|
177
|
+
- **Content-Type**: Not defined
|
|
178
|
+
- **Accept**: application/json
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### HTTP response details
|
|
182
|
+
| Status code | Description | Response headers |
|
|
183
|
+
|-------------|-------------|------------------|
|
|
184
|
+
|**200** | Event details | - |
|
|
185
|
+
|**400** | Bad Request | - |
|
|
186
|
+
|**404** | Not Found | - |
|
|
187
|
+
|
|
188
|
+
[[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)
|
|
189
|
+
|
|
136
190
|
# **getEventsByClub**
|
|
137
191
|
> StaffEventsPaginatedResponse getEventsByClub()
|
|
138
192
|
|
|
@@ -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,
|