@tennac-booking/sdk 1.0.19 → 1.0.21

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/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Pickle Ball API
5
+ * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.17
8
+ * The version of the OpenAPI document: 1.0.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = void 0;
25
+ exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
+ exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = void 0;
27
+ exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -72,6 +72,14 @@ exports.CreatePriceRequestIntervalEnum = {
72
72
  Month: 'month',
73
73
  Year: 'year'
74
74
  };
75
+ exports.InvoicesResponseInvoicesInnerStatusEnum = {
76
+ Pending: 'pending',
77
+ Paid: 'paid',
78
+ Failed: 'failed',
79
+ Authorized: 'authorized',
80
+ Canceled: 'canceled',
81
+ Expired: 'expired'
82
+ };
75
83
  exports.ManagerCancelBookingResponseBookingStatusEnum = {
76
84
  Cancelled: 'cancelled'
77
85
  };
@@ -503,6 +511,390 @@ class BookingsApi extends base_1.BaseAPI {
503
511
  }
504
512
  }
505
513
  exports.BookingsApi = BookingsApi;
514
+ /**
515
+ * ClubAnalyticsApi - axios parameter creator
516
+ * @export
517
+ */
518
+ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
519
+ return {
520
+ /**
521
+ *
522
+ * @summary Chiffre d\'affaires quotidien
523
+ * @param {string} id ID du club
524
+ * @param {string} date Date (format YYYY-MM-DD)
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ getDailyTurnOver: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
529
+ // verify required parameter 'id' is not null or undefined
530
+ (0, common_1.assertParamExists)('getDailyTurnOver', 'id', id);
531
+ // verify required parameter 'date' is not null or undefined
532
+ (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
533
+ const localVarPath = `/api/clubs/{id}/turnover/daily`
534
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
537
+ let baseOptions;
538
+ if (configuration) {
539
+ baseOptions = configuration.baseOptions;
540
+ }
541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
542
+ const localVarHeaderParameter = {};
543
+ const localVarQueryParameter = {};
544
+ // authentication bearerAuth required
545
+ // http bearer authentication required
546
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
547
+ if (date !== undefined) {
548
+ localVarQueryParameter['date'] = (date instanceof Date) ?
549
+ date.toISOString().substring(0, 10) :
550
+ date;
551
+ }
552
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
554
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
555
+ return {
556
+ url: (0, common_1.toPathString)(localVarUrlObj),
557
+ options: localVarRequestOptions,
558
+ };
559
+ }),
560
+ /**
561
+ *
562
+ * @summary Récupérer les factures du club
563
+ * @param {string} id ID du club
564
+ * @param {number} [page] Numéro de page
565
+ * @param {number} [limit] Nombre d\'éléments par page
566
+ * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
567
+ * @param {string} [startDate] Date de début (ISO format)
568
+ * @param {string} [endDate] Date de fin (ISO format)
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ getInvoices: (id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (id, page, limit, status, startDate, endDate, options = {}) {
573
+ // verify required parameter 'id' is not null or undefined
574
+ (0, common_1.assertParamExists)('getInvoices', 'id', id);
575
+ const localVarPath = `/api/clubs/{id}/invoices`
576
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
577
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
578
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
579
+ let baseOptions;
580
+ if (configuration) {
581
+ baseOptions = configuration.baseOptions;
582
+ }
583
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
584
+ const localVarHeaderParameter = {};
585
+ const localVarQueryParameter = {};
586
+ // authentication bearerAuth required
587
+ // http bearer authentication required
588
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
589
+ if (page !== undefined) {
590
+ localVarQueryParameter['page'] = page;
591
+ }
592
+ if (limit !== undefined) {
593
+ localVarQueryParameter['limit'] = limit;
594
+ }
595
+ if (status !== undefined) {
596
+ localVarQueryParameter['status'] = status;
597
+ }
598
+ if (startDate !== undefined) {
599
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
600
+ startDate.toISOString() :
601
+ startDate;
602
+ }
603
+ if (endDate !== undefined) {
604
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
605
+ endDate.toISOString() :
606
+ endDate;
607
+ }
608
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
609
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
610
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
611
+ return {
612
+ url: (0, common_1.toPathString)(localVarUrlObj),
613
+ options: localVarRequestOptions,
614
+ };
615
+ }),
616
+ /**
617
+ *
618
+ * @summary Chiffre d\'affaires mensuel
619
+ * @param {string} id ID du club
620
+ * @param {number} year Année
621
+ * @param {number} month Mois (1-12)
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ getMonthlyTurnOver: (id_1, year_1, month_1, ...args_1) => __awaiter(this, [id_1, year_1, month_1, ...args_1], void 0, function* (id, year, month, options = {}) {
626
+ // verify required parameter 'id' is not null or undefined
627
+ (0, common_1.assertParamExists)('getMonthlyTurnOver', 'id', id);
628
+ // verify required parameter 'year' is not null or undefined
629
+ (0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
630
+ // verify required parameter 'month' is not null or undefined
631
+ (0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
632
+ const localVarPath = `/api/clubs/{id}/turnover/monthly`
633
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
635
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
636
+ let baseOptions;
637
+ if (configuration) {
638
+ baseOptions = configuration.baseOptions;
639
+ }
640
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
641
+ const localVarHeaderParameter = {};
642
+ const localVarQueryParameter = {};
643
+ // authentication bearerAuth required
644
+ // http bearer authentication required
645
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
646
+ if (year !== undefined) {
647
+ localVarQueryParameter['year'] = year;
648
+ }
649
+ if (month !== undefined) {
650
+ localVarQueryParameter['month'] = month;
651
+ }
652
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
653
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
654
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
655
+ return {
656
+ url: (0, common_1.toPathString)(localVarUrlObj),
657
+ options: localVarRequestOptions,
658
+ };
659
+ }),
660
+ /**
661
+ *
662
+ * @summary Chiffre d\'affaires annuel
663
+ * @param {string} id ID du club
664
+ * @param {number} year Année
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
669
+ // verify required parameter 'id' is not null or undefined
670
+ (0, common_1.assertParamExists)('getYearlyTurnOver', 'id', id);
671
+ // verify required parameter 'year' is not null or undefined
672
+ (0, common_1.assertParamExists)('getYearlyTurnOver', 'year', year);
673
+ const localVarPath = `/api/clubs/{id}/turnover/yearly`
674
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
676
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
677
+ let baseOptions;
678
+ if (configuration) {
679
+ baseOptions = configuration.baseOptions;
680
+ }
681
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
682
+ const localVarHeaderParameter = {};
683
+ const localVarQueryParameter = {};
684
+ // authentication bearerAuth required
685
+ // http bearer authentication required
686
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
687
+ if (year !== undefined) {
688
+ localVarQueryParameter['year'] = year;
689
+ }
690
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
692
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
693
+ return {
694
+ url: (0, common_1.toPathString)(localVarUrlObj),
695
+ options: localVarRequestOptions,
696
+ };
697
+ }),
698
+ };
699
+ };
700
+ exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
701
+ /**
702
+ * ClubAnalyticsApi - functional programming interface
703
+ * @export
704
+ */
705
+ const ClubAnalyticsApiFp = function (configuration) {
706
+ const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
707
+ return {
708
+ /**
709
+ *
710
+ * @summary Chiffre d\'affaires quotidien
711
+ * @param {string} id ID du club
712
+ * @param {string} date Date (format YYYY-MM-DD)
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ getDailyTurnOver(id, date, options) {
717
+ return __awaiter(this, void 0, void 0, function* () {
718
+ var _a, _b, _c;
719
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
720
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
721
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
722
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
723
+ });
724
+ },
725
+ /**
726
+ *
727
+ * @summary Récupérer les factures du club
728
+ * @param {string} id ID du club
729
+ * @param {number} [page] Numéro de page
730
+ * @param {number} [limit] Nombre d\'éléments par page
731
+ * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
732
+ * @param {string} [startDate] Date de début (ISO format)
733
+ * @param {string} [endDate] Date de fin (ISO format)
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ getInvoices(id, page, limit, status, startDate, endDate, options) {
738
+ return __awaiter(this, void 0, void 0, function* () {
739
+ var _a, _b, _c;
740
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
741
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
744
+ });
745
+ },
746
+ /**
747
+ *
748
+ * @summary Chiffre d\'affaires mensuel
749
+ * @param {string} id ID du club
750
+ * @param {number} year Année
751
+ * @param {number} month Mois (1-12)
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ getMonthlyTurnOver(id, year, month, options) {
756
+ return __awaiter(this, void 0, void 0, function* () {
757
+ var _a, _b, _c;
758
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
759
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
760
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
761
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
+ });
763
+ },
764
+ /**
765
+ *
766
+ * @summary Chiffre d\'affaires annuel
767
+ * @param {string} id ID du club
768
+ * @param {number} year Année
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ getYearlyTurnOver(id, year, options) {
773
+ return __awaiter(this, void 0, void 0, function* () {
774
+ var _a, _b, _c;
775
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
776
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
777
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
778
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
779
+ });
780
+ },
781
+ };
782
+ };
783
+ exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
784
+ /**
785
+ * ClubAnalyticsApi - factory interface
786
+ * @export
787
+ */
788
+ const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
789
+ const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
790
+ return {
791
+ /**
792
+ *
793
+ * @summary Chiffre d\'affaires quotidien
794
+ * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ getDailyTurnOver(requestParameters, options) {
799
+ return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
800
+ },
801
+ /**
802
+ *
803
+ * @summary Récupérer les factures du club
804
+ * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
808
+ getInvoices(requestParameters, options) {
809
+ return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
810
+ },
811
+ /**
812
+ *
813
+ * @summary Chiffre d\'affaires mensuel
814
+ * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ getMonthlyTurnOver(requestParameters, options) {
819
+ return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
820
+ },
821
+ /**
822
+ *
823
+ * @summary Chiffre d\'affaires annuel
824
+ * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ getYearlyTurnOver(requestParameters, options) {
829
+ return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
830
+ },
831
+ };
832
+ };
833
+ exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
834
+ /**
835
+ * ClubAnalyticsApi - object-oriented interface
836
+ * @export
837
+ * @class ClubAnalyticsApi
838
+ * @extends {BaseAPI}
839
+ */
840
+ class ClubAnalyticsApi extends base_1.BaseAPI {
841
+ /**
842
+ *
843
+ * @summary Chiffre d\'affaires quotidien
844
+ * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ * @memberof ClubAnalyticsApi
848
+ */
849
+ getDailyTurnOver(requestParameters, options) {
850
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
851
+ }
852
+ /**
853
+ *
854
+ * @summary Récupérer les factures du club
855
+ * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ * @memberof ClubAnalyticsApi
859
+ */
860
+ getInvoices(requestParameters, options) {
861
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
862
+ }
863
+ /**
864
+ *
865
+ * @summary Chiffre d\'affaires mensuel
866
+ * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ * @memberof ClubAnalyticsApi
870
+ */
871
+ getMonthlyTurnOver(requestParameters, options) {
872
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
873
+ }
874
+ /**
875
+ *
876
+ * @summary Chiffre d\'affaires annuel
877
+ * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ * @memberof ClubAnalyticsApi
881
+ */
882
+ getYearlyTurnOver(requestParameters, options) {
883
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
884
+ }
885
+ }
886
+ exports.ClubAnalyticsApi = ClubAnalyticsApi;
887
+ /**
888
+ * @export
889
+ */
890
+ exports.GetInvoicesStatusEnum = {
891
+ Pending: 'pending',
892
+ Paid: 'paid',
893
+ Failed: 'failed',
894
+ Authorized: 'authorized',
895
+ Canceled: 'canceled',
896
+ Expired: 'expired'
897
+ };
506
898
  /**
507
899
  * ManagerBookingsApi - axios parameter creator
508
900
  * @export
@@ -2789,15 +3181,11 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
2789
3181
  /**
2790
3182
  *
2791
3183
  * @summary Get number of users subscribed to the club
2792
- * @param {string} id ID du club
2793
3184
  * @param {*} [options] Override http request option.
2794
3185
  * @throws {RequiredError}
2795
3186
  */
2796
- getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2797
- // verify required parameter 'id' is not null or undefined
2798
- (0, common_1.assertParamExists)('getNumberOfClubUsers', 'id', id);
2799
- const localVarPath = `/api/clubs/{id}/user-count`
2800
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3187
+ getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3188
+ const localVarPath = `/api/clubs/user-count`;
2801
3189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2802
3190
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2803
3191
  let baseOptions;
@@ -2847,14 +3235,13 @@ const StaffClubAnalyticsApiFp = function (configuration) {
2847
3235
  /**
2848
3236
  *
2849
3237
  * @summary Get number of users subscribed to the club
2850
- * @param {string} id ID du club
2851
3238
  * @param {*} [options] Override http request option.
2852
3239
  * @throws {RequiredError}
2853
3240
  */
2854
- getNumberOfClubUsers(id, options) {
3241
+ getNumberOfClubUsers(options) {
2855
3242
  return __awaiter(this, void 0, void 0, function* () {
2856
3243
  var _a, _b, _c;
2857
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
3244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
2858
3245
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2859
3246
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2860
3247
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2883,12 +3270,11 @@ const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
2883
3270
  /**
2884
3271
  *
2885
3272
  * @summary Get number of users subscribed to the club
2886
- * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
2887
3273
  * @param {*} [options] Override http request option.
2888
3274
  * @throws {RequiredError}
2889
3275
  */
2890
- getNumberOfClubUsers(requestParameters, options) {
2891
- return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
3276
+ getNumberOfClubUsers(options) {
3277
+ return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
2892
3278
  },
2893
3279
  };
2894
3280
  };
@@ -2914,13 +3300,12 @@ class StaffClubAnalyticsApi extends base_1.BaseAPI {
2914
3300
  /**
2915
3301
  *
2916
3302
  * @summary Get number of users subscribed to the club
2917
- * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
2918
3303
  * @param {*} [options] Override http request option.
2919
3304
  * @throws {RequiredError}
2920
3305
  * @memberof StaffClubAnalyticsApi
2921
3306
  */
2922
- getNumberOfClubUsers(requestParameters, options) {
2923
- return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3307
+ getNumberOfClubUsers(options) {
3308
+ return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
2924
3309
  }
2925
3310
  }
2926
3311
  exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
@@ -3040,13 +3425,10 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
3040
3425
  /**
3041
3426
  *
3042
3427
  * @summary Récupère les paramètres d\'un club
3043
- * @param {GetClubSettingsRequest} getClubSettingsRequest
3044
3428
  * @param {*} [options] Override http request option.
3045
3429
  * @throws {RequiredError}
3046
3430
  */
3047
- getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
3048
- // verify required parameter 'getClubSettingsRequest' is not null or undefined
3049
- (0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
3431
+ getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3050
3432
  const localVarPath = `/api/club-settings`;
3051
3433
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3052
3434
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3060,11 +3442,9 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
3060
3442
  // authentication bearerAuth required
3061
3443
  // http bearer authentication required
3062
3444
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3063
- localVarHeaderParameter['Content-Type'] = 'application/json';
3064
3445
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3065
3446
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3066
3447
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3067
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
3068
3448
  return {
3069
3449
  url: (0, common_1.toPathString)(localVarUrlObj),
3070
3450
  options: localVarRequestOptions,
@@ -3083,14 +3463,13 @@ const StaffClubSettingsApiFp = function (configuration) {
3083
3463
  /**
3084
3464
  *
3085
3465
  * @summary Récupère les paramètres d\'un club
3086
- * @param {GetClubSettingsRequest} getClubSettingsRequest
3087
3466
  * @param {*} [options] Override http request option.
3088
3467
  * @throws {RequiredError}
3089
3468
  */
3090
- getClubSettings(getClubSettingsRequest, options) {
3469
+ getClubSettings(options) {
3091
3470
  return __awaiter(this, void 0, void 0, function* () {
3092
3471
  var _a, _b, _c;
3093
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
3472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3094
3473
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3095
3474
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3096
3475
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3109,12 +3488,11 @@ const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
3109
3488
  /**
3110
3489
  *
3111
3490
  * @summary Récupère les paramètres d\'un club
3112
- * @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
3113
3491
  * @param {*} [options] Override http request option.
3114
3492
  * @throws {RequiredError}
3115
3493
  */
3116
- getClubSettings(requestParameters, options) {
3117
- return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
3494
+ getClubSettings(options) {
3495
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3118
3496
  },
3119
3497
  };
3120
3498
  };
@@ -3129,13 +3507,12 @@ class StaffClubSettingsApi extends base_1.BaseAPI {
3129
3507
  /**
3130
3508
  *
3131
3509
  * @summary Récupère les paramètres d\'un club
3132
- * @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
3133
3510
  * @param {*} [options] Override http request option.
3134
3511
  * @throws {RequiredError}
3135
3512
  * @memberof StaffClubSettingsApi
3136
3513
  */
3137
- getClubSettings(requestParameters, options) {
3138
- return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3514
+ getClubSettings(options) {
3515
+ return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3139
3516
  }
3140
3517
  }
3141
3518
  exports.StaffClubSettingsApi = StaffClubSettingsApi;
package/dist/base.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Pickle Ball API
2
+ * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.17
5
+ * The version of the OpenAPI document: 1.0.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Pickle Ball API
5
+ * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.17
8
+ * The version of the OpenAPI document: 1.0.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Pickle Ball API
2
+ * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.17
5
+ * The version of the OpenAPI document: 1.0.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Pickle Ball API
5
+ * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.17
8
+ * The version of the OpenAPI document: 1.0.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Pickle Ball API
2
+ * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.17
5
+ * The version of the OpenAPI document: 1.0.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Pickle Ball API
5
+ * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.17
8
+ * The version of the OpenAPI document: 1.0.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).