@tennac-booking/sdk 1.0.62 → 1.0.64
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 +4 -1
- package/README.md +9 -3
- package/api.ts +514 -95
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +400 -96
- package/dist/api.js +189 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +400 -96
- package/dist/esm/api.js +188 -4
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/ClubsApi.md +46 -0
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +26 -0
- package/docs/IUserAttributes.md +10 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/{UpdateUserRequestBodyLocation.md → RegisterRequestBodyLocation.md} +3 -3
- package/docs/StaffUserProfileResponse.md +10 -0
- package/docs/UpdateUserRequestBody.md +1 -1
- package/docs/UserProfileResponse.md +10 -0
- package/docs/UsersApi.md +104 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/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.63
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,6 +116,9 @@ export const PlanInterval = {
|
|
|
116
116
|
Trimester: 'trimester',
|
|
117
117
|
Semester: 'semester'
|
|
118
118
|
};
|
|
119
|
+
export const RegisterRequestBodyLocationTypeEnum = {
|
|
120
|
+
Point: 'Point'
|
|
121
|
+
};
|
|
119
122
|
export const StripeStripeDeletedProductObjectEnum = {
|
|
120
123
|
Product: 'product'
|
|
121
124
|
};
|
|
@@ -240,9 +243,6 @@ export const UpdateClubRoleRequestRoleEnum = {
|
|
|
240
243
|
Manager: 'manager',
|
|
241
244
|
Staff: 'staff'
|
|
242
245
|
};
|
|
243
|
-
export const UpdateUserRequestBodyLocationTypeEnum = {
|
|
244
|
-
Point: 'Point'
|
|
245
|
-
};
|
|
246
246
|
export const UserLocationSummaryTypeEnum = {
|
|
247
247
|
Point: 'Point'
|
|
248
248
|
};
|
|
@@ -2870,6 +2870,30 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2870
2870
|
options: localVarRequestOptions,
|
|
2871
2871
|
};
|
|
2872
2872
|
}),
|
|
2873
|
+
/**
|
|
2874
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
2875
|
+
* @param {*} [options] Override http request option.
|
|
2876
|
+
* @throws {RequiredError}
|
|
2877
|
+
*/
|
|
2878
|
+
getClubsWithVerificationDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2879
|
+
const localVarPath = `/api/clubs/verification-domains`;
|
|
2880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2881
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2882
|
+
let baseOptions;
|
|
2883
|
+
if (configuration) {
|
|
2884
|
+
baseOptions = configuration.baseOptions;
|
|
2885
|
+
}
|
|
2886
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2887
|
+
const localVarHeaderParameter = {};
|
|
2888
|
+
const localVarQueryParameter = {};
|
|
2889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2891
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2892
|
+
return {
|
|
2893
|
+
url: toPathString(localVarUrlObj),
|
|
2894
|
+
options: localVarRequestOptions,
|
|
2895
|
+
};
|
|
2896
|
+
}),
|
|
2873
2897
|
/**
|
|
2874
2898
|
*
|
|
2875
2899
|
* @param {string} id
|
|
@@ -3100,6 +3124,20 @@ export const ClubsApiFp = function (configuration) {
|
|
|
3100
3124
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3101
3125
|
});
|
|
3102
3126
|
},
|
|
3127
|
+
/**
|
|
3128
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
3129
|
+
* @param {*} [options] Override http request option.
|
|
3130
|
+
* @throws {RequiredError}
|
|
3131
|
+
*/
|
|
3132
|
+
getClubsWithVerificationDomains(options) {
|
|
3133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3134
|
+
var _a, _b, _c;
|
|
3135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubsWithVerificationDomains(options);
|
|
3136
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3137
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubsWithVerificationDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3138
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3139
|
+
});
|
|
3140
|
+
},
|
|
3103
3141
|
/**
|
|
3104
3142
|
*
|
|
3105
3143
|
* @param {string} id
|
|
@@ -3230,6 +3268,14 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3230
3268
|
getClubUsersById(requestParameters, options) {
|
|
3231
3269
|
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3232
3270
|
},
|
|
3271
|
+
/**
|
|
3272
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
3273
|
+
* @param {*} [options] Override http request option.
|
|
3274
|
+
* @throws {RequiredError}
|
|
3275
|
+
*/
|
|
3276
|
+
getClubsWithVerificationDomains(options) {
|
|
3277
|
+
return localVarFp.getClubsWithVerificationDomains(options).then((request) => request(axios, basePath));
|
|
3278
|
+
},
|
|
3233
3279
|
/**
|
|
3234
3280
|
*
|
|
3235
3281
|
* @param {ClubsApiGetCourtsByClubAndSportByIdRequest} requestParameters Request parameters.
|
|
@@ -3342,6 +3388,15 @@ export class ClubsApi extends BaseAPI {
|
|
|
3342
3388
|
getClubUsersById(requestParameters, options) {
|
|
3343
3389
|
return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3344
3390
|
}
|
|
3391
|
+
/**
|
|
3392
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
* @memberof ClubsApi
|
|
3396
|
+
*/
|
|
3397
|
+
getClubsWithVerificationDomains(options) {
|
|
3398
|
+
return ClubsApiFp(this.configuration).getClubsWithVerificationDomains(options).then((request) => request(this.axios, this.basePath));
|
|
3399
|
+
}
|
|
3345
3400
|
/**
|
|
3346
3401
|
*
|
|
3347
3402
|
* @param {ClubsApiGetCourtsByClubAndSportByIdRequest} requestParameters Request parameters.
|
|
@@ -6823,6 +6878,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6823
6878
|
options: localVarRequestOptions,
|
|
6824
6879
|
};
|
|
6825
6880
|
}),
|
|
6881
|
+
/**
|
|
6882
|
+
*
|
|
6883
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
6884
|
+
* @param {*} [options] Override http request option.
|
|
6885
|
+
* @throws {RequiredError}
|
|
6886
|
+
*/
|
|
6887
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
6888
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
6889
|
+
assertParamExists('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
6890
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
6891
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6892
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6893
|
+
let baseOptions;
|
|
6894
|
+
if (configuration) {
|
|
6895
|
+
baseOptions = configuration.baseOptions;
|
|
6896
|
+
}
|
|
6897
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6898
|
+
const localVarHeaderParameter = {};
|
|
6899
|
+
const localVarQueryParameter = {};
|
|
6900
|
+
// authentication bearerAuth required
|
|
6901
|
+
// http bearer authentication required
|
|
6902
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6906
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6907
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
6908
|
+
return {
|
|
6909
|
+
url: toPathString(localVarUrlObj),
|
|
6910
|
+
options: localVarRequestOptions,
|
|
6911
|
+
};
|
|
6912
|
+
}),
|
|
6826
6913
|
/**
|
|
6827
6914
|
*
|
|
6828
6915
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -7780,6 +7867,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7780
7867
|
options: localVarRequestOptions,
|
|
7781
7868
|
};
|
|
7782
7869
|
}),
|
|
7870
|
+
/**
|
|
7871
|
+
*
|
|
7872
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
7873
|
+
* @param {*} [options] Override http request option.
|
|
7874
|
+
* @throws {RequiredError}
|
|
7875
|
+
*/
|
|
7876
|
+
verifyOrganization: (verifyEmailRequest_1, ...args_1) => __awaiter(this, [verifyEmailRequest_1, ...args_1], void 0, function* (verifyEmailRequest, options = {}) {
|
|
7877
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
7878
|
+
assertParamExists('verifyOrganization', 'verifyEmailRequest', verifyEmailRequest);
|
|
7879
|
+
const localVarPath = `/api/users/verify-organization`;
|
|
7880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7881
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7882
|
+
let baseOptions;
|
|
7883
|
+
if (configuration) {
|
|
7884
|
+
baseOptions = configuration.baseOptions;
|
|
7885
|
+
}
|
|
7886
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7887
|
+
const localVarHeaderParameter = {};
|
|
7888
|
+
const localVarQueryParameter = {};
|
|
7889
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7890
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7892
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7893
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration);
|
|
7894
|
+
return {
|
|
7895
|
+
url: toPathString(localVarUrlObj),
|
|
7896
|
+
options: localVarRequestOptions,
|
|
7897
|
+
};
|
|
7898
|
+
}),
|
|
7783
7899
|
};
|
|
7784
7900
|
};
|
|
7785
7901
|
/**
|
|
@@ -7819,6 +7935,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
7819
7935
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7820
7936
|
});
|
|
7821
7937
|
},
|
|
7938
|
+
/**
|
|
7939
|
+
*
|
|
7940
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7941
|
+
* @param {*} [options] Override http request option.
|
|
7942
|
+
* @throws {RequiredError}
|
|
7943
|
+
*/
|
|
7944
|
+
addOrganization(addOrganizationRequest, options) {
|
|
7945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7946
|
+
var _a, _b, _c;
|
|
7947
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addOrganization(addOrganizationRequest, options);
|
|
7948
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7949
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7950
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7951
|
+
});
|
|
7952
|
+
},
|
|
7822
7953
|
/**
|
|
7823
7954
|
*
|
|
7824
7955
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -8286,6 +8417,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
8286
8417
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8287
8418
|
});
|
|
8288
8419
|
},
|
|
8420
|
+
/**
|
|
8421
|
+
*
|
|
8422
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
8423
|
+
* @param {*} [options] Override http request option.
|
|
8424
|
+
* @throws {RequiredError}
|
|
8425
|
+
*/
|
|
8426
|
+
verifyOrganization(verifyEmailRequest, options) {
|
|
8427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8428
|
+
var _a, _b, _c;
|
|
8429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganization(verifyEmailRequest, options);
|
|
8430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8431
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8433
|
+
});
|
|
8434
|
+
},
|
|
8289
8435
|
};
|
|
8290
8436
|
};
|
|
8291
8437
|
/**
|
|
@@ -8313,6 +8459,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8313
8459
|
addFavoritePlayer(requestParameters, options) {
|
|
8314
8460
|
return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
8315
8461
|
},
|
|
8462
|
+
/**
|
|
8463
|
+
*
|
|
8464
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
8465
|
+
* @param {*} [options] Override http request option.
|
|
8466
|
+
* @throws {RequiredError}
|
|
8467
|
+
*/
|
|
8468
|
+
addOrganization(requestParameters, options) {
|
|
8469
|
+
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
8470
|
+
},
|
|
8316
8471
|
/**
|
|
8317
8472
|
*
|
|
8318
8473
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -8585,6 +8740,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8585
8740
|
verifyEmail(requestParameters, options) {
|
|
8586
8741
|
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8587
8742
|
},
|
|
8743
|
+
/**
|
|
8744
|
+
*
|
|
8745
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
8746
|
+
* @param {*} [options] Override http request option.
|
|
8747
|
+
* @throws {RequiredError}
|
|
8748
|
+
*/
|
|
8749
|
+
verifyOrganization(requestParameters, options) {
|
|
8750
|
+
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8751
|
+
},
|
|
8588
8752
|
};
|
|
8589
8753
|
};
|
|
8590
8754
|
/**
|
|
@@ -8614,6 +8778,16 @@ export class UsersApi extends BaseAPI {
|
|
|
8614
8778
|
addFavoritePlayer(requestParameters, options) {
|
|
8615
8779
|
return UsersApiFp(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8616
8780
|
}
|
|
8781
|
+
/**
|
|
8782
|
+
*
|
|
8783
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
8784
|
+
* @param {*} [options] Override http request option.
|
|
8785
|
+
* @throws {RequiredError}
|
|
8786
|
+
* @memberof UsersApi
|
|
8787
|
+
*/
|
|
8788
|
+
addOrganization(requestParameters, options) {
|
|
8789
|
+
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8790
|
+
}
|
|
8617
8791
|
/**
|
|
8618
8792
|
*
|
|
8619
8793
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -8917,4 +9091,14 @@ export class UsersApi extends BaseAPI {
|
|
|
8917
9091
|
verifyEmail(requestParameters, options) {
|
|
8918
9092
|
return UsersApiFp(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8919
9093
|
}
|
|
9094
|
+
/**
|
|
9095
|
+
*
|
|
9096
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
9097
|
+
* @param {*} [options] Override http request option.
|
|
9098
|
+
* @throws {RequiredError}
|
|
9099
|
+
* @memberof UsersApi
|
|
9100
|
+
*/
|
|
9101
|
+
verifyOrganization(requestParameters, options) {
|
|
9102
|
+
return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9103
|
+
}
|
|
8920
9104
|
}
|
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
|
+
# AddOrganizationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**organizationEmail** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**organizationId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AddOrganizationRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AddOrganizationRequest = {
|
|
17
|
+
organizationEmail,
|
|
18
|
+
organizationId,
|
|
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)
|
package/docs/ClubsApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
|
|
12
12
|
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
|
|
13
13
|
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
|
|
14
|
+
|[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
|
|
14
15
|
|[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
|
|
15
16
|
|[**getPublishedActualities**](#getpublishedactualities) | **GET** /api/clubs/{id}/actualities | |
|
|
16
17
|
|[**getSlotsByClubById**](#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots | |
|
|
@@ -363,6 +364,51 @@ No authorization required
|
|
|
363
364
|
|
|
364
365
|
[[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)
|
|
365
366
|
|
|
367
|
+
# **getClubsWithVerificationDomains**
|
|
368
|
+
> Array<GetClubsWithVerificationDomains200ResponseInner> getClubsWithVerificationDomains()
|
|
369
|
+
|
|
370
|
+
Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
371
|
+
|
|
372
|
+
### Example
|
|
373
|
+
|
|
374
|
+
```typescript
|
|
375
|
+
import {
|
|
376
|
+
ClubsApi,
|
|
377
|
+
Configuration
|
|
378
|
+
} from '@tennac-booking/sdk';
|
|
379
|
+
|
|
380
|
+
const configuration = new Configuration();
|
|
381
|
+
const apiInstance = new ClubsApi(configuration);
|
|
382
|
+
|
|
383
|
+
const { status, data } = await apiInstance.getClubsWithVerificationDomains();
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Parameters
|
|
387
|
+
This endpoint does not have any parameters.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
### Return type
|
|
391
|
+
|
|
392
|
+
**Array<GetClubsWithVerificationDomains200ResponseInner>**
|
|
393
|
+
|
|
394
|
+
### Authorization
|
|
395
|
+
|
|
396
|
+
No authorization required
|
|
397
|
+
|
|
398
|
+
### HTTP request headers
|
|
399
|
+
|
|
400
|
+
- **Content-Type**: Not defined
|
|
401
|
+
- **Accept**: application/json
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
### HTTP response details
|
|
405
|
+
| Status code | Description | Response headers |
|
|
406
|
+
|-------------|-------------|------------------|
|
|
407
|
+
|**200** | Liste des clubs avec domaines de vérification | - |
|
|
408
|
+
|**500** | Server Error | - |
|
|
409
|
+
|
|
410
|
+
[[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)
|
|
411
|
+
|
|
366
412
|
# **getCourtsByClubAndSportById**
|
|
367
413
|
> GetCourtsByClubAndSportById200Response getCourtsByClubAndSportById()
|
|
368
414
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GetClubsWithVerificationDomains200ResponseInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**allowedEmailDomains** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**clubId** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GetClubsWithVerificationDomains200ResponseInner } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GetClubsWithVerificationDomains200ResponseInner = {
|
|
19
|
+
allowedEmailDomains,
|
|
20
|
+
address,
|
|
21
|
+
name,
|
|
22
|
+
clubId,
|
|
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)
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -53,6 +58,11 @@ const instance: IUserAttributes = {
|
|
|
53
58
|
phone,
|
|
54
59
|
password,
|
|
55
60
|
profilePicture,
|
|
61
|
+
resetPasswordToken,
|
|
62
|
+
resetPasswordExpires,
|
|
63
|
+
emailVerificationToken,
|
|
64
|
+
emailVerificationExpires,
|
|
65
|
+
organizations,
|
|
56
66
|
isAdmin,
|
|
57
67
|
createdAt,
|
|
58
68
|
updatedAt,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# IUserAttributesOrganizationsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**verificationExpires** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**verificationToken** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**verified** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**orgEmail** | **string** | | [default to undefined]
|
|
12
|
+
**clubId** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { IUserAttributesOrganizationsInner } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: IUserAttributesOrganizationsInner = {
|
|
20
|
+
verificationExpires,
|
|
21
|
+
verificationToken,
|
|
22
|
+
verified,
|
|
23
|
+
orgEmail,
|
|
24
|
+
clubId,
|
|
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)
|
|
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**phone** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
|
|
18
|
+
**organizationId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**organizationEmail** | **string** | | [optional] [default to undefined]
|
|
17
20
|
|
|
18
21
|
## Example
|
|
19
22
|
|
|
@@ -30,6 +33,9 @@ const instance: RegisterRequestBody = {
|
|
|
30
33
|
stripeCustomerId,
|
|
31
34
|
phone,
|
|
32
35
|
profilePicture,
|
|
36
|
+
location,
|
|
37
|
+
organizationId,
|
|
38
|
+
organizationEmail,
|
|
33
39
|
};
|
|
34
40
|
```
|
|
35
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RegisterRequestBodyLocation
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import {
|
|
25
|
+
import { RegisterRequestBodyLocation } from '@tennac-booking/sdk';
|
|
26
26
|
|
|
27
|
-
const instance:
|
|
27
|
+
const instance: RegisterRequestBodyLocation = {
|
|
28
28
|
coordinates,
|
|
29
29
|
mapboxId,
|
|
30
30
|
mapboxPlaceType,
|
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -55,6 +60,11 @@ const instance: StaffUserProfileResponse = {
|
|
|
55
60
|
phone,
|
|
56
61
|
password,
|
|
57
62
|
profilePicture,
|
|
63
|
+
resetPasswordToken,
|
|
64
|
+
resetPasswordExpires,
|
|
65
|
+
emailVerificationToken,
|
|
66
|
+
emailVerificationExpires,
|
|
67
|
+
organizations,
|
|
58
68
|
isAdmin,
|
|
59
69
|
createdAt,
|
|
60
70
|
updatedAt,
|
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**levelBySports** | [**Array<UpdateUserRequestBodyLevelBySportsInner>**](UpdateUserRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
15
15
|
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
16
16
|
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**location** | [**
|
|
17
|
+
**location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -58,6 +63,11 @@ const instance: UserProfileResponse = {
|
|
|
58
63
|
phone,
|
|
59
64
|
password,
|
|
60
65
|
profilePicture,
|
|
66
|
+
resetPasswordToken,
|
|
67
|
+
resetPasswordExpires,
|
|
68
|
+
emailVerificationToken,
|
|
69
|
+
emailVerificationExpires,
|
|
70
|
+
organizations,
|
|
61
71
|
isAdmin,
|
|
62
72
|
createdAt,
|
|
63
73
|
updatedAt,
|