@tennac-booking/sdk 1.0.155 → 1.0.157
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 +1 -0
- package/README.md +2 -1
- package/api.ts +145 -101
- package/dist/api.d.ts +97 -54
- package/dist/api.js +82 -79
- package/dist/esm/api.d.ts +97 -54
- package/dist/esm/api.js +78 -75
- package/docs/ClubsManagerApi.md +6 -5
- package/docs/CreateActualityRequest.md +30 -0
- package/docs/EventsStaffApi.md +0 -51
- package/docs/PublishEventResponse.md +0 -2
- package/docs/UsersApi.md +52 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -81,6 +81,11 @@ export const CourtStatus = {
|
|
|
81
81
|
Available: 'available',
|
|
82
82
|
Unavailable: 'unavailable'
|
|
83
83
|
};
|
|
84
|
+
export const CreateActualityRequestDiffusionModeEnum = {
|
|
85
|
+
Page: 'page',
|
|
86
|
+
Newsletter: 'newsletter',
|
|
87
|
+
Both: 'both'
|
|
88
|
+
};
|
|
84
89
|
export const CreateClubRoleRequestRoleEnum = {
|
|
85
90
|
Admin: 'admin',
|
|
86
91
|
Manager: 'manager',
|
|
@@ -6658,13 +6663,13 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6658
6663
|
}),
|
|
6659
6664
|
/**
|
|
6660
6665
|
*
|
|
6661
|
-
* @param {
|
|
6666
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
6662
6667
|
* @param {*} [options] Override http request option.
|
|
6663
6668
|
* @throws {RequiredError}
|
|
6664
6669
|
*/
|
|
6665
|
-
createActuality: (
|
|
6666
|
-
// verify required parameter '
|
|
6667
|
-
assertParamExists('createActuality', '
|
|
6670
|
+
createActuality: (createActualityRequest_1, ...args_1) => __awaiter(this, [createActualityRequest_1, ...args_1], void 0, function* (createActualityRequest, options = {}) {
|
|
6671
|
+
// verify required parameter 'createActualityRequest' is not null or undefined
|
|
6672
|
+
assertParamExists('createActuality', 'createActualityRequest', createActualityRequest);
|
|
6668
6673
|
const localVarPath = `/api/clubs/actualities`;
|
|
6669
6674
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6670
6675
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6682,7 +6687,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6682
6687
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6683
6688
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6684
6689
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6685
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6690
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createActualityRequest, localVarRequestOptions, configuration);
|
|
6686
6691
|
return {
|
|
6687
6692
|
url: toPathString(localVarUrlObj),
|
|
6688
6693
|
options: localVarRequestOptions,
|
|
@@ -7313,14 +7318,14 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
7313
7318
|
},
|
|
7314
7319
|
/**
|
|
7315
7320
|
*
|
|
7316
|
-
* @param {
|
|
7321
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
7317
7322
|
* @param {*} [options] Override http request option.
|
|
7318
7323
|
* @throws {RequiredError}
|
|
7319
7324
|
*/
|
|
7320
|
-
createActuality(
|
|
7325
|
+
createActuality(createActualityRequest, options) {
|
|
7321
7326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7322
7327
|
var _a, _b, _c;
|
|
7323
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(
|
|
7328
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(createActualityRequest, options);
|
|
7324
7329
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7325
7330
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.createActuality']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7326
7331
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7634,7 +7639,7 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7634
7639
|
* @throws {RequiredError}
|
|
7635
7640
|
*/
|
|
7636
7641
|
createActuality(requestParameters, options) {
|
|
7637
|
-
return localVarFp.createActuality(requestParameters.
|
|
7642
|
+
return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
|
|
7638
7643
|
},
|
|
7639
7644
|
/**
|
|
7640
7645
|
* Crée un nouveau terrain pour un club
|
|
@@ -7834,7 +7839,7 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
7834
7839
|
* @memberof ClubsManagerApi
|
|
7835
7840
|
*/
|
|
7836
7841
|
createActuality(requestParameters, options) {
|
|
7837
|
-
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.
|
|
7842
|
+
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7838
7843
|
}
|
|
7839
7844
|
/**
|
|
7840
7845
|
* Crée un nouveau terrain pour un club
|
|
@@ -10385,37 +10390,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10385
10390
|
options: localVarRequestOptions,
|
|
10386
10391
|
};
|
|
10387
10392
|
}),
|
|
10388
|
-
/**
|
|
10389
|
-
*
|
|
10390
|
-
* @param {string} eventId
|
|
10391
|
-
* @param {*} [options] Override http request option.
|
|
10392
|
-
* @throws {RequiredError}
|
|
10393
|
-
*/
|
|
10394
|
-
getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10395
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
10396
|
-
assertParamExists('getEventByIdStaff', 'eventId', eventId);
|
|
10397
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10398
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10399
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10400
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10401
|
-
let baseOptions;
|
|
10402
|
-
if (configuration) {
|
|
10403
|
-
baseOptions = configuration.baseOptions;
|
|
10404
|
-
}
|
|
10405
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10406
|
-
const localVarHeaderParameter = {};
|
|
10407
|
-
const localVarQueryParameter = {};
|
|
10408
|
-
// authentication bearerAuth required
|
|
10409
|
-
// http bearer authentication required
|
|
10410
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10411
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10412
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10413
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10414
|
-
return {
|
|
10415
|
-
url: toPathString(localVarUrlObj),
|
|
10416
|
-
options: localVarRequestOptions,
|
|
10417
|
-
};
|
|
10418
|
-
}),
|
|
10419
10393
|
/**
|
|
10420
10394
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10421
10395
|
* @param {*} [options] Override http request option.
|
|
@@ -10581,21 +10555,6 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
10581
10555
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10582
10556
|
});
|
|
10583
10557
|
},
|
|
10584
|
-
/**
|
|
10585
|
-
*
|
|
10586
|
-
* @param {string} eventId
|
|
10587
|
-
* @param {*} [options] Override http request option.
|
|
10588
|
-
* @throws {RequiredError}
|
|
10589
|
-
*/
|
|
10590
|
-
getEventByIdStaff(eventId, options) {
|
|
10591
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10592
|
-
var _a, _b, _c;
|
|
10593
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
|
|
10594
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10595
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10596
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10597
|
-
});
|
|
10598
|
-
},
|
|
10599
10558
|
/**
|
|
10600
10559
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10601
10560
|
* @param {*} [options] Override http request option.
|
|
@@ -10675,15 +10634,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10675
10634
|
getDailyEvents(requestParameters = {}, options) {
|
|
10676
10635
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10677
10636
|
},
|
|
10678
|
-
/**
|
|
10679
|
-
*
|
|
10680
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10681
|
-
* @param {*} [options] Override http request option.
|
|
10682
|
-
* @throws {RequiredError}
|
|
10683
|
-
*/
|
|
10684
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10685
|
-
return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10686
|
-
},
|
|
10687
10637
|
/**
|
|
10688
10638
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10689
10639
|
* @param {*} [options] Override http request option.
|
|
@@ -10739,16 +10689,6 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
10739
10689
|
getDailyEvents(requestParameters = {}, options) {
|
|
10740
10690
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10741
10691
|
}
|
|
10742
|
-
/**
|
|
10743
|
-
*
|
|
10744
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10745
|
-
* @param {*} [options] Override http request option.
|
|
10746
|
-
* @throws {RequiredError}
|
|
10747
|
-
* @memberof EventsStaffApi
|
|
10748
|
-
*/
|
|
10749
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10750
|
-
return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10751
|
-
}
|
|
10752
10692
|
/**
|
|
10753
10693
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10754
10694
|
* @param {*} [options] Override http request option.
|
|
@@ -12926,6 +12866,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12926
12866
|
options: localVarRequestOptions,
|
|
12927
12867
|
};
|
|
12928
12868
|
}),
|
|
12869
|
+
/**
|
|
12870
|
+
*
|
|
12871
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
12872
|
+
* @param {*} [options] Override http request option.
|
|
12873
|
+
* @throws {RequiredError}
|
|
12874
|
+
*/
|
|
12875
|
+
loginClubMember: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
12876
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
12877
|
+
assertParamExists('loginClubMember', 'loginRequestBody', loginRequestBody);
|
|
12878
|
+
const localVarPath = `/api/users/club-members/login`;
|
|
12879
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12880
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12881
|
+
let baseOptions;
|
|
12882
|
+
if (configuration) {
|
|
12883
|
+
baseOptions = configuration.baseOptions;
|
|
12884
|
+
}
|
|
12885
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12886
|
+
const localVarHeaderParameter = {};
|
|
12887
|
+
const localVarQueryParameter = {};
|
|
12888
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12891
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12892
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginRequestBody, localVarRequestOptions, configuration);
|
|
12893
|
+
return {
|
|
12894
|
+
url: toPathString(localVarUrlObj),
|
|
12895
|
+
options: localVarRequestOptions,
|
|
12896
|
+
};
|
|
12897
|
+
}),
|
|
12929
12898
|
/**
|
|
12930
12899
|
*
|
|
12931
12900
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -13728,6 +13697,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
13728
13697
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13729
13698
|
});
|
|
13730
13699
|
},
|
|
13700
|
+
/**
|
|
13701
|
+
*
|
|
13702
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
13703
|
+
* @param {*} [options] Override http request option.
|
|
13704
|
+
* @throws {RequiredError}
|
|
13705
|
+
*/
|
|
13706
|
+
loginClubMember(loginRequestBody, options) {
|
|
13707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13708
|
+
var _a, _b, _c;
|
|
13709
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
|
|
13710
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13711
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.loginClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13712
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13713
|
+
});
|
|
13714
|
+
},
|
|
13731
13715
|
/**
|
|
13732
13716
|
*
|
|
13733
13717
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14151,6 +14135,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14151
14135
|
login(requestParameters, options) {
|
|
14152
14136
|
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14153
14137
|
},
|
|
14138
|
+
/**
|
|
14139
|
+
*
|
|
14140
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14141
|
+
* @param {*} [options] Override http request option.
|
|
14142
|
+
* @throws {RequiredError}
|
|
14143
|
+
*/
|
|
14144
|
+
loginClubMember(requestParameters, options) {
|
|
14145
|
+
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14146
|
+
},
|
|
14154
14147
|
/**
|
|
14155
14148
|
*
|
|
14156
14149
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -14506,6 +14499,16 @@ export class UsersApi extends BaseAPI {
|
|
|
14506
14499
|
login(requestParameters, options) {
|
|
14507
14500
|
return UsersApiFp(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14508
14501
|
}
|
|
14502
|
+
/**
|
|
14503
|
+
*
|
|
14504
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14505
|
+
* @param {*} [options] Override http request option.
|
|
14506
|
+
* @throws {RequiredError}
|
|
14507
|
+
* @memberof UsersApi
|
|
14508
|
+
*/
|
|
14509
|
+
loginClubMember(requestParameters, options) {
|
|
14510
|
+
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14511
|
+
}
|
|
14509
14512
|
/**
|
|
14510
14513
|
*
|
|
14511
14514
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -132,7 +132,7 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
132
132
|
[[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)
|
|
133
133
|
|
|
134
134
|
# **createActuality**
|
|
135
|
-
> UpdateActuality200Response createActuality(
|
|
135
|
+
> UpdateActuality200Response createActuality(createActualityRequest)
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
### Example
|
|
@@ -140,16 +140,17 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
140
140
|
```typescript
|
|
141
141
|
import {
|
|
142
142
|
ClubsManagerApi,
|
|
143
|
-
Configuration
|
|
143
|
+
Configuration,
|
|
144
|
+
CreateActualityRequest
|
|
144
145
|
} from '@tennac-booking/sdk';
|
|
145
146
|
|
|
146
147
|
const configuration = new Configuration();
|
|
147
148
|
const apiInstance = new ClubsManagerApi(configuration);
|
|
148
149
|
|
|
149
|
-
let
|
|
150
|
+
let createActualityRequest: CreateActualityRequest; //
|
|
150
151
|
|
|
151
152
|
const { status, data } = await apiInstance.createActuality(
|
|
152
|
-
|
|
153
|
+
createActualityRequest
|
|
153
154
|
);
|
|
154
155
|
```
|
|
155
156
|
|
|
@@ -157,7 +158,7 @@ const { status, data } = await apiInstance.createActuality(
|
|
|
157
158
|
|
|
158
159
|
|Name | Type | Description | Notes|
|
|
159
160
|
|------------- | ------------- | ------------- | -------------|
|
|
160
|
-
| **
|
|
161
|
+
| **createActualityRequest** | **CreateActualityRequest**| | |
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
### Return type
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CreateActualityRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**diffusionMode** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Nom affiché du sport | [default to undefined]
|
|
10
|
+
**content** | **string** | Description du sport | [default to undefined]
|
|
11
|
+
**imageUrl** | **string** | Niveaux associés | [optional] [default to undefined]
|
|
12
|
+
**externalLink** | **string** | URLs de logos/images | [optional] [default to undefined]
|
|
13
|
+
**isPublished** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CreateActualityRequest } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: CreateActualityRequest = {
|
|
21
|
+
diffusionMode,
|
|
22
|
+
title,
|
|
23
|
+
content,
|
|
24
|
+
imageUrl,
|
|
25
|
+
externalLink,
|
|
26
|
+
isPublished,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
@@ -6,7 +6,6 @@ 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
|
-
|[**getEventByIdStaff**](#geteventbyidstaff) | **GET** /api/events/staff/{eventId} | |
|
|
10
9
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
11
10
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
12
11
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
@@ -134,56 +133,6 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
133
|
|
|
135
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)
|
|
136
135
|
|
|
137
|
-
# **getEventByIdStaff**
|
|
138
|
-
> PublishEventResponse getEventByIdStaff()
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
### Example
|
|
142
|
-
|
|
143
|
-
```typescript
|
|
144
|
-
import {
|
|
145
|
-
EventsStaffApi,
|
|
146
|
-
Configuration
|
|
147
|
-
} from '@tennac-booking/sdk';
|
|
148
|
-
|
|
149
|
-
const configuration = new Configuration();
|
|
150
|
-
const apiInstance = new EventsStaffApi(configuration);
|
|
151
|
-
|
|
152
|
-
let eventId: string; // (default to undefined)
|
|
153
|
-
|
|
154
|
-
const { status, data } = await apiInstance.getEventByIdStaff(
|
|
155
|
-
eventId
|
|
156
|
-
);
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Parameters
|
|
160
|
-
|
|
161
|
-
|Name | Type | Description | Notes|
|
|
162
|
-
|------------- | ------------- | ------------- | -------------|
|
|
163
|
-
| **eventId** | [**string**] | | defaults to undefined|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### Return type
|
|
167
|
-
|
|
168
|
-
**PublishEventResponse**
|
|
169
|
-
|
|
170
|
-
### Authorization
|
|
171
|
-
|
|
172
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
173
|
-
|
|
174
|
-
### HTTP request headers
|
|
175
|
-
|
|
176
|
-
- **Content-Type**: Not defined
|
|
177
|
-
- **Accept**: application/json
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
### HTTP response details
|
|
181
|
-
| Status code | Description | Response headers |
|
|
182
|
-
|-------------|-------------|------------------|
|
|
183
|
-
|**200** | Event details (staff) | - |
|
|
184
|
-
|
|
185
|
-
[[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)
|
|
186
|
-
|
|
187
136
|
# **getEventsByClub**
|
|
188
137
|
> EventsListResponse getEventsByClub()
|
|
189
138
|
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
10
|
**userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
11
11
|
**needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
12
|
-
**eventBookings** | [**Array<EventBookingResponse>**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,7 +20,6 @@ const instance: PublishEventResponse = {
|
|
|
21
20
|
refundedBookingIds,
|
|
22
21
|
userBooking,
|
|
23
22
|
needsToSetupPaymentMethod,
|
|
24
|
-
eventBookings,
|
|
25
23
|
};
|
|
26
24
|
```
|
|
27
25
|
|
package/docs/UsersApi.md
CHANGED
|
@@ -26,6 +26,7 @@ All URIs are relative to *http://localhost*
|
|
|
26
26
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
27
27
|
|[**listPlayers**](#listplayers) | **GET** /api/users/players | |
|
|
28
28
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
29
|
+
|[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
|
|
29
30
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
30
31
|
|[**register**](#register) | **POST** /api/users | |
|
|
31
32
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
@@ -1129,6 +1130,57 @@ const { status, data } = await apiInstance.login(
|
|
|
1129
1130
|
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1130
1131
|
|
|
1131
1132
|
|
|
1133
|
+
### Return type
|
|
1134
|
+
|
|
1135
|
+
**LoginResponse**
|
|
1136
|
+
|
|
1137
|
+
### Authorization
|
|
1138
|
+
|
|
1139
|
+
No authorization required
|
|
1140
|
+
|
|
1141
|
+
### HTTP request headers
|
|
1142
|
+
|
|
1143
|
+
- **Content-Type**: application/json
|
|
1144
|
+
- **Accept**: application/json
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
### HTTP response details
|
|
1148
|
+
| Status code | Description | Response headers |
|
|
1149
|
+
|-------------|-------------|------------------|
|
|
1150
|
+
|**200** | Ok | - |
|
|
1151
|
+
|
|
1152
|
+
[[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)
|
|
1153
|
+
|
|
1154
|
+
# **loginClubMember**
|
|
1155
|
+
> LoginResponse loginClubMember(loginRequestBody)
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
### Example
|
|
1159
|
+
|
|
1160
|
+
```typescript
|
|
1161
|
+
import {
|
|
1162
|
+
UsersApi,
|
|
1163
|
+
Configuration,
|
|
1164
|
+
LoginRequestBody
|
|
1165
|
+
} from '@tennac-booking/sdk';
|
|
1166
|
+
|
|
1167
|
+
const configuration = new Configuration();
|
|
1168
|
+
const apiInstance = new UsersApi(configuration);
|
|
1169
|
+
|
|
1170
|
+
let loginRequestBody: LoginRequestBody; //
|
|
1171
|
+
|
|
1172
|
+
const { status, data } = await apiInstance.loginClubMember(
|
|
1173
|
+
loginRequestBody
|
|
1174
|
+
);
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
### Parameters
|
|
1178
|
+
|
|
1179
|
+
|Name | Type | Description | Notes|
|
|
1180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1181
|
+
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1182
|
+
|
|
1183
|
+
|
|
1132
1184
|
### Return type
|
|
1133
1185
|
|
|
1134
1186
|
**LoginResponse**
|