@tennac-booking/sdk 1.0.186 → 1.0.187

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/dist/esm/api.js CHANGED
@@ -317,6 +317,15 @@ export const StaffUserProfileResponseCreatedFromEnum = {
317
317
  App: 'app',
318
318
  Website: 'website'
319
319
  };
320
+ /**
321
+ *
322
+ * @export
323
+ * @enum {string}
324
+ */
325
+ export const SupportedLanguage = {
326
+ Fr: 'fr',
327
+ En: 'en'
328
+ };
320
329
  /**
321
330
  *
322
331
  * @export
@@ -424,6 +433,166 @@ export const WeekdayKey = {
424
433
  Saturday: 'saturday',
425
434
  Sunday: 'sunday'
426
435
  };
436
+ /**
437
+ * AuthApi - axios parameter creator
438
+ * @export
439
+ */
440
+ export const AuthApiAxiosParamCreator = function (configuration) {
441
+ return {
442
+ /**
443
+ *
444
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
449
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
450
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
451
+ const localVarPath = `/api/auth/verification-code`;
452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
454
+ let baseOptions;
455
+ if (configuration) {
456
+ baseOptions = configuration.baseOptions;
457
+ }
458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
459
+ const localVarHeaderParameter = {};
460
+ const localVarQueryParameter = {};
461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
466
+ return {
467
+ url: toPathString(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ }),
471
+ /**
472
+ *
473
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
478
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
479
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
480
+ const localVarPath = `/api/auth/verification-code/verify`;
481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
483
+ let baseOptions;
484
+ if (configuration) {
485
+ baseOptions = configuration.baseOptions;
486
+ }
487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
488
+ const localVarHeaderParameter = {};
489
+ const localVarQueryParameter = {};
490
+ localVarHeaderParameter['Content-Type'] = 'application/json';
491
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
492
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
494
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
495
+ return {
496
+ url: toPathString(localVarUrlObj),
497
+ options: localVarRequestOptions,
498
+ };
499
+ }),
500
+ };
501
+ };
502
+ /**
503
+ * AuthApi - functional programming interface
504
+ * @export
505
+ */
506
+ export const AuthApiFp = function (configuration) {
507
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
508
+ return {
509
+ /**
510
+ *
511
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ requestVerificationCode(requestVerificationCodeBody, options) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ var _a, _b, _c;
518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
520
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
522
+ });
523
+ },
524
+ /**
525
+ *
526
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ verifyVerificationCode(verifyVerificationCodeBody, options) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ var _a, _b, _c;
533
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
534
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
535
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
536
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
537
+ });
538
+ },
539
+ };
540
+ };
541
+ /**
542
+ * AuthApi - factory interface
543
+ * @export
544
+ */
545
+ export const AuthApiFactory = function (configuration, basePath, axios) {
546
+ const localVarFp = AuthApiFp(configuration);
547
+ return {
548
+ /**
549
+ *
550
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ requestVerificationCode(requestParameters, options) {
555
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
556
+ },
557
+ /**
558
+ *
559
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ verifyVerificationCode(requestParameters, options) {
564
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
565
+ },
566
+ };
567
+ };
568
+ /**
569
+ * AuthApi - object-oriented interface
570
+ * @export
571
+ * @class AuthApi
572
+ * @extends {BaseAPI}
573
+ */
574
+ export class AuthApi extends BaseAPI {
575
+ /**
576
+ *
577
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ * @memberof AuthApi
581
+ */
582
+ requestVerificationCode(requestParameters, options) {
583
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
584
+ }
585
+ /**
586
+ *
587
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof AuthApi
591
+ */
592
+ verifyVerificationCode(requestParameters, options) {
593
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
594
+ }
595
+ }
427
596
  /**
428
597
  * BookingsApi - axios parameter creator
429
598
  * @export
@@ -11489,9 +11658,9 @@ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11489
11658
  * @param {*} [options] Override http request option.
11490
11659
  * @throws {RequiredError}
11491
11660
  */
11492
- requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11661
+ requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11493
11662
  // verify required parameter 'requestEmailCodeBody' is not null or undefined
11494
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11663
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11495
11664
  const localVarPath = `/api/public-email/request-verification-code`;
11496
11665
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11497
11666
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11571,12 +11740,12 @@ export const PublicEmailApiFp = function (configuration) {
11571
11740
  * @param {*} [options] Override http request option.
11572
11741
  * @throws {RequiredError}
11573
11742
  */
11574
- requestVerificationCode(requestEmailCodeBody, options) {
11743
+ requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
11575
11744
  return __awaiter(this, void 0, void 0, function* () {
11576
11745
  var _a, _b, _c;
11577
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
11746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
11578
11747
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11579
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11748
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11580
11749
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11581
11750
  });
11582
11751
  },
@@ -11615,12 +11784,12 @@ export const PublicEmailApiFactory = function (configuration, basePath, axios) {
11615
11784
  },
11616
11785
  /**
11617
11786
  *
11618
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
11787
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11619
11788
  * @param {*} [options] Override http request option.
11620
11789
  * @throws {RequiredError}
11621
11790
  */
11622
- requestVerificationCode(requestParameters, options) {
11623
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
11791
+ requestPublicEmailVerificationCode(requestParameters, options) {
11792
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
11624
11793
  },
11625
11794
  /**
11626
11795
  *
@@ -11652,13 +11821,13 @@ export class PublicEmailApi extends BaseAPI {
11652
11821
  }
11653
11822
  /**
11654
11823
  *
11655
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
11824
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11656
11825
  * @param {*} [options] Override http request option.
11657
11826
  * @throws {RequiredError}
11658
11827
  * @memberof PublicEmailApi
11659
11828
  */
11660
- requestVerificationCode(requestParameters, options) {
11661
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11829
+ requestPublicEmailVerificationCode(requestParameters, options) {
11830
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11662
11831
  }
11663
11832
  /**
11664
11833
  *
@@ -13973,6 +14142,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
13973
14142
  options: localVarRequestOptions,
13974
14143
  };
13975
14144
  }),
14145
+ /**
14146
+ *
14147
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14148
+ * @param {*} [options] Override http request option.
14149
+ * @throws {RequiredError}
14150
+ */
14151
+ requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
14152
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
14153
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
14154
+ const localVarPath = `/api/users/me/request-organization-code`;
14155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14157
+ let baseOptions;
14158
+ if (configuration) {
14159
+ baseOptions = configuration.baseOptions;
14160
+ }
14161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14162
+ const localVarHeaderParameter = {};
14163
+ const localVarQueryParameter = {};
14164
+ // authentication bearerAuth required
14165
+ // http bearer authentication required
14166
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14171
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14172
+ return {
14173
+ url: toPathString(localVarUrlObj),
14174
+ options: localVarRequestOptions,
14175
+ };
14176
+ }),
13976
14177
  /**
13977
14178
  *
13978
14179
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -14246,6 +14447,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14246
14447
  options: localVarRequestOptions,
14247
14448
  };
14248
14449
  }),
14450
+ /**
14451
+ *
14452
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
14453
+ * @param {*} [options] Override http request option.
14454
+ * @throws {RequiredError}
14455
+ */
14456
+ verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
14457
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
14458
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
14459
+ const localVarPath = `/api/users/me/verify-organization-code`;
14460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14462
+ let baseOptions;
14463
+ if (configuration) {
14464
+ baseOptions = configuration.baseOptions;
14465
+ }
14466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14467
+ const localVarHeaderParameter = {};
14468
+ const localVarQueryParameter = {};
14469
+ // authentication bearerAuth required
14470
+ // http bearer authentication required
14471
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14476
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14477
+ return {
14478
+ url: toPathString(localVarUrlObj),
14479
+ options: localVarRequestOptions,
14480
+ };
14481
+ }),
14249
14482
  };
14250
14483
  };
14251
14484
  /**
@@ -14745,6 +14978,21 @@ export const UsersApiFp = function (configuration) {
14745
14978
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14746
14979
  });
14747
14980
  },
14981
+ /**
14982
+ *
14983
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14984
+ * @param {*} [options] Override http request option.
14985
+ * @throws {RequiredError}
14986
+ */
14987
+ requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
14988
+ return __awaiter(this, void 0, void 0, function* () {
14989
+ var _a, _b, _c;
14990
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
14991
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14992
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14993
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14994
+ });
14995
+ },
14748
14996
  /**
14749
14997
  *
14750
14998
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -14880,6 +15128,21 @@ export const UsersApiFp = function (configuration) {
14880
15128
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14881
15129
  });
14882
15130
  },
15131
+ /**
15132
+ *
15133
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15134
+ * @param {*} [options] Override http request option.
15135
+ * @throws {RequiredError}
15136
+ */
15137
+ verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
15138
+ return __awaiter(this, void 0, void 0, function* () {
15139
+ var _a, _b, _c;
15140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
15141
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15142
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15143
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15144
+ });
15145
+ },
14883
15146
  };
14884
15147
  };
14885
15148
  /**
@@ -15168,6 +15431,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15168
15431
  requestEmailVerification(options) {
15169
15432
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
15170
15433
  },
15434
+ /**
15435
+ *
15436
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
15437
+ * @param {*} [options] Override http request option.
15438
+ * @throws {RequiredError}
15439
+ */
15440
+ requestOrganizationCode(requestParameters, options) {
15441
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
15442
+ },
15171
15443
  /**
15172
15444
  *
15173
15445
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -15249,6 +15521,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15249
15521
  verifyOrganization(requestParameters, options) {
15250
15522
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
15251
15523
  },
15524
+ /**
15525
+ *
15526
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
15527
+ * @param {*} [options] Override http request option.
15528
+ * @throws {RequiredError}
15529
+ */
15530
+ verifyOrganizationCode(requestParameters, options) {
15531
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
15532
+ },
15252
15533
  };
15253
15534
  };
15254
15535
  /**
@@ -15569,6 +15850,16 @@ export class UsersApi extends BaseAPI {
15569
15850
  requestEmailVerification(options) {
15570
15851
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
15571
15852
  }
15853
+ /**
15854
+ *
15855
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
15856
+ * @param {*} [options] Override http request option.
15857
+ * @throws {RequiredError}
15858
+ * @memberof UsersApi
15859
+ */
15860
+ requestOrganizationCode(requestParameters, options) {
15861
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
15862
+ }
15572
15863
  /**
15573
15864
  *
15574
15865
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -15659,6 +15950,16 @@ export class UsersApi extends BaseAPI {
15659
15950
  verifyOrganization(requestParameters, options) {
15660
15951
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
15661
15952
  }
15953
+ /**
15954
+ *
15955
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
15956
+ * @param {*} [options] Override http request option.
15957
+ * @throws {RequiredError}
15958
+ * @memberof UsersApi
15959
+ */
15960
+ verifyOrganizationCode(requestParameters, options) {
15961
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
15962
+ }
15662
15963
  }
15663
15964
  /**
15664
15965
  * WaitListApi - axios parameter creator
@@ -0,0 +1,113 @@
1
+ # AuthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**requestVerificationCode**](#requestverificationcode) | **POST** /api/auth/verification-code | |
8
+ |[**verifyVerificationCode**](#verifyverificationcode) | **POST** /api/auth/verification-code/verify | |
9
+
10
+ # **requestVerificationCode**
11
+ > RequestVerificationCodeResponse requestVerificationCode(requestVerificationCodeBody)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ AuthApi,
19
+ Configuration,
20
+ RequestVerificationCodeBody
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new AuthApi(configuration);
25
+
26
+ let requestVerificationCodeBody: RequestVerificationCodeBody; //
27
+
28
+ const { status, data } = await apiInstance.requestVerificationCode(
29
+ requestVerificationCodeBody
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **requestVerificationCodeBody** | **RequestVerificationCodeBody**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ **RequestVerificationCodeResponse**
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | OK | - |
58
+ |**400** | Payload invalide | - |
59
+
60
+ [[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)
61
+
62
+ # **verifyVerificationCode**
63
+ > VerifyVerificationCodeResponse verifyVerificationCode(verifyVerificationCodeBody)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ AuthApi,
71
+ Configuration,
72
+ VerifyVerificationCodeBody
73
+ } from '@tennac-booking/sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new AuthApi(configuration);
77
+
78
+ let verifyVerificationCodeBody: VerifyVerificationCodeBody; //
79
+
80
+ const { status, data } = await apiInstance.verifyVerificationCode(
81
+ verifyVerificationCodeBody
82
+ );
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ |Name | Type | Description | Notes|
88
+ |------------- | ------------- | ------------- | -------------|
89
+ | **verifyVerificationCodeBody** | **VerifyVerificationCodeBody**| | |
90
+
91
+
92
+ ### Return type
93
+
94
+ **VerifyVerificationCodeResponse**
95
+
96
+ ### Authorization
97
+
98
+ No authorization required
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+ ### HTTP response details
107
+ | Status code | Description | Response headers |
108
+ |-------------|-------------|------------------|
109
+ |**200** | OK | - |
110
+ |**400** | Code invalide | - |
111
+
112
+ [[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)
113
+
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**authEmailExists**](#authemailexists) | **POST** /api/public-email/auth-email-exists | |
8
- |[**requestVerificationCode**](#requestverificationcode) | **POST** /api/public-email/request-verification-code | |
8
+ |[**requestPublicEmailVerificationCode**](#requestpublicemailverificationcode) | **POST** /api/public-email/request-verification-code | |
9
9
  |[**verifyCode**](#verifycode) | **POST** /api/public-email/verify-code | |
10
10
 
11
11
  # **authEmailExists**
@@ -60,8 +60,8 @@ No authorization required
60
60
 
61
61
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
62
 
63
- # **requestVerificationCode**
64
- > RequestEmailCodeResponse requestVerificationCode(requestEmailCodeBody)
63
+ # **requestPublicEmailVerificationCode**
64
+ > RequestEmailCodeResponse requestPublicEmailVerificationCode(requestEmailCodeBody)
65
65
 
66
66
 
67
67
  ### Example
@@ -78,7 +78,7 @@ const apiInstance = new PublicEmailApi(configuration);
78
78
 
79
79
  let requestEmailCodeBody: RequestEmailCodeBody; //
80
80
 
81
- const { status, data } = await apiInstance.requestVerificationCode(
81
+ const { status, data } = await apiInstance.requestPublicEmailVerificationCode(
82
82
  requestEmailCodeBody
83
83
  );
84
84
  ```
@@ -0,0 +1,22 @@
1
+ # RequestOrganizationEmailCodeBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **organizationId** | **string** | | [default to undefined]
9
+ **organizationEmail** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { RequestOrganizationEmailCodeBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: RequestOrganizationEmailCodeBody = {
17
+ organizationId,
18
+ organizationEmail,
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,22 @@
1
+ # RequestOrganizationEmailCodeResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sent** | **boolean** | | [default to undefined]
9
+ **alreadyVerified** | **boolean** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { RequestOrganizationEmailCodeResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: RequestOrganizationEmailCodeResponse = {
17
+ sent,
18
+ alreadyVerified,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # RequestVerificationCodeBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | | [default to undefined]
9
+ **context** | **string** | | [optional] [default to undefined]
10
+ **lang** | [**SupportedLanguage**](SupportedLanguage.md) | | [optional] [default to undefined]
11
+ **requestId** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { RequestVerificationCodeBody } from '@tennac-booking/sdk';
17
+
18
+ const instance: RequestVerificationCodeBody = {
19
+ email,
20
+ context,
21
+ lang,
22
+ requestId,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # RequestVerificationCodeResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sent** | **boolean** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { RequestVerificationCodeResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: RequestVerificationCodeResponse = {
16
+ sent,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,10 @@
1
+ # SupportedLanguage
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Fr` (value: `'fr'`)
7
+
8
+ * `En` (value: `'en'`)
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)