@tennac-booking/sdk 1.0.19 → 1.0.20
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 +8 -0
- package/README.md +14 -3
- package/api.ts +852 -131
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +537 -45
- package/dist/api.js +411 -34
- 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 +537 -45
- package/dist/esm/api.js +404 -31
- 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/ClubAnalyticsApi.md +253 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/StaffClubAnalyticsApi.md +3 -10
- package/docs/StaffClubSettingsApi.md +5 -13
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -67,6 +67,14 @@ export const CreatePriceRequestIntervalEnum = {
|
|
|
67
67
|
Month: 'month',
|
|
68
68
|
Year: 'year'
|
|
69
69
|
};
|
|
70
|
+
export const InvoicesResponseInvoicesInnerStatusEnum = {
|
|
71
|
+
Pending: 'pending',
|
|
72
|
+
Paid: 'paid',
|
|
73
|
+
Failed: 'failed',
|
|
74
|
+
Authorized: 'authorized',
|
|
75
|
+
Canceled: 'canceled',
|
|
76
|
+
Expired: 'expired'
|
|
77
|
+
};
|
|
70
78
|
export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
71
79
|
Cancelled: 'cancelled'
|
|
72
80
|
};
|
|
@@ -486,6 +494,386 @@ export class BookingsApi extends BaseAPI {
|
|
|
486
494
|
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
487
495
|
}
|
|
488
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
499
|
+
* @export
|
|
500
|
+
*/
|
|
501
|
+
export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
502
|
+
return {
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Chiffre d\'affaires quotidien
|
|
506
|
+
* @param {string} id ID du club
|
|
507
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
getDailyTurnOver: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
|
|
512
|
+
// verify required parameter 'id' is not null or undefined
|
|
513
|
+
assertParamExists('getDailyTurnOver', 'id', id);
|
|
514
|
+
// verify required parameter 'date' is not null or undefined
|
|
515
|
+
assertParamExists('getDailyTurnOver', 'date', date);
|
|
516
|
+
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
517
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
518
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
519
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
520
|
+
let baseOptions;
|
|
521
|
+
if (configuration) {
|
|
522
|
+
baseOptions = configuration.baseOptions;
|
|
523
|
+
}
|
|
524
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
525
|
+
const localVarHeaderParameter = {};
|
|
526
|
+
const localVarQueryParameter = {};
|
|
527
|
+
// authentication bearerAuth required
|
|
528
|
+
// http bearer authentication required
|
|
529
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
530
|
+
if (date !== undefined) {
|
|
531
|
+
localVarQueryParameter['date'] = (date instanceof Date) ?
|
|
532
|
+
date.toISOString().substring(0, 10) :
|
|
533
|
+
date;
|
|
534
|
+
}
|
|
535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
538
|
+
return {
|
|
539
|
+
url: toPathString(localVarUrlObj),
|
|
540
|
+
options: localVarRequestOptions,
|
|
541
|
+
};
|
|
542
|
+
}),
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @summary Récupérer les factures du club
|
|
546
|
+
* @param {string} id ID du club
|
|
547
|
+
* @param {number} [page] Numéro de page
|
|
548
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
549
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
550
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
551
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
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 = {}) {
|
|
556
|
+
// verify required parameter 'id' is not null or undefined
|
|
557
|
+
assertParamExists('getInvoices', 'id', id);
|
|
558
|
+
const localVarPath = `/api/clubs/{id}/invoices`
|
|
559
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
560
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
561
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
562
|
+
let baseOptions;
|
|
563
|
+
if (configuration) {
|
|
564
|
+
baseOptions = configuration.baseOptions;
|
|
565
|
+
}
|
|
566
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
567
|
+
const localVarHeaderParameter = {};
|
|
568
|
+
const localVarQueryParameter = {};
|
|
569
|
+
// authentication bearerAuth required
|
|
570
|
+
// http bearer authentication required
|
|
571
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
572
|
+
if (page !== undefined) {
|
|
573
|
+
localVarQueryParameter['page'] = page;
|
|
574
|
+
}
|
|
575
|
+
if (limit !== undefined) {
|
|
576
|
+
localVarQueryParameter['limit'] = limit;
|
|
577
|
+
}
|
|
578
|
+
if (status !== undefined) {
|
|
579
|
+
localVarQueryParameter['status'] = status;
|
|
580
|
+
}
|
|
581
|
+
if (startDate !== undefined) {
|
|
582
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
583
|
+
startDate.toISOString() :
|
|
584
|
+
startDate;
|
|
585
|
+
}
|
|
586
|
+
if (endDate !== undefined) {
|
|
587
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
588
|
+
endDate.toISOString() :
|
|
589
|
+
endDate;
|
|
590
|
+
}
|
|
591
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
594
|
+
return {
|
|
595
|
+
url: toPathString(localVarUrlObj),
|
|
596
|
+
options: localVarRequestOptions,
|
|
597
|
+
};
|
|
598
|
+
}),
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @summary Chiffre d\'affaires mensuel
|
|
602
|
+
* @param {string} id ID du club
|
|
603
|
+
* @param {number} year Année
|
|
604
|
+
* @param {number} month Mois (1-12)
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
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 = {}) {
|
|
609
|
+
// verify required parameter 'id' is not null or undefined
|
|
610
|
+
assertParamExists('getMonthlyTurnOver', 'id', id);
|
|
611
|
+
// verify required parameter 'year' is not null or undefined
|
|
612
|
+
assertParamExists('getMonthlyTurnOver', 'year', year);
|
|
613
|
+
// verify required parameter 'month' is not null or undefined
|
|
614
|
+
assertParamExists('getMonthlyTurnOver', 'month', month);
|
|
615
|
+
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
616
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
618
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
619
|
+
let baseOptions;
|
|
620
|
+
if (configuration) {
|
|
621
|
+
baseOptions = configuration.baseOptions;
|
|
622
|
+
}
|
|
623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
624
|
+
const localVarHeaderParameter = {};
|
|
625
|
+
const localVarQueryParameter = {};
|
|
626
|
+
// authentication bearerAuth required
|
|
627
|
+
// http bearer authentication required
|
|
628
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
629
|
+
if (year !== undefined) {
|
|
630
|
+
localVarQueryParameter['year'] = year;
|
|
631
|
+
}
|
|
632
|
+
if (month !== undefined) {
|
|
633
|
+
localVarQueryParameter['month'] = month;
|
|
634
|
+
}
|
|
635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
638
|
+
return {
|
|
639
|
+
url: toPathString(localVarUrlObj),
|
|
640
|
+
options: localVarRequestOptions,
|
|
641
|
+
};
|
|
642
|
+
}),
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @summary Chiffre d\'affaires annuel
|
|
646
|
+
* @param {string} id ID du club
|
|
647
|
+
* @param {number} year Année
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
|
|
652
|
+
// verify required parameter 'id' is not null or undefined
|
|
653
|
+
assertParamExists('getYearlyTurnOver', 'id', id);
|
|
654
|
+
// verify required parameter 'year' is not null or undefined
|
|
655
|
+
assertParamExists('getYearlyTurnOver', 'year', year);
|
|
656
|
+
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
657
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
660
|
+
let baseOptions;
|
|
661
|
+
if (configuration) {
|
|
662
|
+
baseOptions = configuration.baseOptions;
|
|
663
|
+
}
|
|
664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
665
|
+
const localVarHeaderParameter = {};
|
|
666
|
+
const localVarQueryParameter = {};
|
|
667
|
+
// authentication bearerAuth required
|
|
668
|
+
// http bearer authentication required
|
|
669
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
670
|
+
if (year !== undefined) {
|
|
671
|
+
localVarQueryParameter['year'] = year;
|
|
672
|
+
}
|
|
673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
676
|
+
return {
|
|
677
|
+
url: toPathString(localVarUrlObj),
|
|
678
|
+
options: localVarRequestOptions,
|
|
679
|
+
};
|
|
680
|
+
}),
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* ClubAnalyticsApi - functional programming interface
|
|
685
|
+
* @export
|
|
686
|
+
*/
|
|
687
|
+
export const ClubAnalyticsApiFp = function (configuration) {
|
|
688
|
+
const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
|
|
689
|
+
return {
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @summary Chiffre d\'affaires quotidien
|
|
693
|
+
* @param {string} id ID du club
|
|
694
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
getDailyTurnOver(id, date, options) {
|
|
699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
700
|
+
var _a, _b, _c;
|
|
701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
|
|
702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
703
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
704
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
705
|
+
});
|
|
706
|
+
},
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @summary Récupérer les factures du club
|
|
710
|
+
* @param {string} id ID du club
|
|
711
|
+
* @param {number} [page] Numéro de page
|
|
712
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
713
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
714
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
715
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
getInvoices(id, page, limit, status, startDate, endDate, options) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
721
|
+
var _a, _b, _c;
|
|
722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
|
|
723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
724
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
725
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
726
|
+
});
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary Chiffre d\'affaires mensuel
|
|
731
|
+
* @param {string} id ID du club
|
|
732
|
+
* @param {number} year Année
|
|
733
|
+
* @param {number} month Mois (1-12)
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
getMonthlyTurnOver(id, year, month, options) {
|
|
738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
739
|
+
var _a, _b, _c;
|
|
740
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, 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 = operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
743
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
* @summary Chiffre d\'affaires annuel
|
|
749
|
+
* @param {string} id ID du club
|
|
750
|
+
* @param {number} year Année
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
getYearlyTurnOver(id, year, options) {
|
|
755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
756
|
+
var _a, _b, _c;
|
|
757
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
|
|
758
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
759
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
760
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
761
|
+
});
|
|
762
|
+
},
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* ClubAnalyticsApi - factory interface
|
|
767
|
+
* @export
|
|
768
|
+
*/
|
|
769
|
+
export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
770
|
+
const localVarFp = ClubAnalyticsApiFp(configuration);
|
|
771
|
+
return {
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @summary Chiffre d\'affaires quotidien
|
|
775
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
getDailyTurnOver(requestParameters, options) {
|
|
780
|
+
return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
781
|
+
},
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @summary Récupérer les factures du club
|
|
785
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
*/
|
|
789
|
+
getInvoices(requestParameters, options) {
|
|
790
|
+
return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
791
|
+
},
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @summary Chiffre d\'affaires mensuel
|
|
795
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
*/
|
|
799
|
+
getMonthlyTurnOver(requestParameters, options) {
|
|
800
|
+
return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
801
|
+
},
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @summary Chiffre d\'affaires annuel
|
|
805
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
*/
|
|
809
|
+
getYearlyTurnOver(requestParameters, options) {
|
|
810
|
+
return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
811
|
+
},
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
816
|
+
* @export
|
|
817
|
+
* @class ClubAnalyticsApi
|
|
818
|
+
* @extends {BaseAPI}
|
|
819
|
+
*/
|
|
820
|
+
export class ClubAnalyticsApi extends BaseAPI {
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @summary Chiffre d\'affaires quotidien
|
|
824
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
* @memberof ClubAnalyticsApi
|
|
828
|
+
*/
|
|
829
|
+
getDailyTurnOver(requestParameters, options) {
|
|
830
|
+
return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @summary Récupérer les factures du club
|
|
835
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
* @memberof ClubAnalyticsApi
|
|
839
|
+
*/
|
|
840
|
+
getInvoices(requestParameters, options) {
|
|
841
|
+
return ClubAnalyticsApiFp(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @summary Chiffre d\'affaires mensuel
|
|
846
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
* @memberof ClubAnalyticsApi
|
|
850
|
+
*/
|
|
851
|
+
getMonthlyTurnOver(requestParameters, options) {
|
|
852
|
+
return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @summary Chiffre d\'affaires annuel
|
|
857
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
* @memberof ClubAnalyticsApi
|
|
861
|
+
*/
|
|
862
|
+
getYearlyTurnOver(requestParameters, options) {
|
|
863
|
+
return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* @export
|
|
868
|
+
*/
|
|
869
|
+
export const GetInvoicesStatusEnum = {
|
|
870
|
+
Pending: 'pending',
|
|
871
|
+
Paid: 'paid',
|
|
872
|
+
Failed: 'failed',
|
|
873
|
+
Authorized: 'authorized',
|
|
874
|
+
Canceled: 'canceled',
|
|
875
|
+
Expired: 'expired'
|
|
876
|
+
};
|
|
489
877
|
/**
|
|
490
878
|
* ManagerBookingsApi - axios parameter creator
|
|
491
879
|
* @export
|
|
@@ -2744,15 +3132,11 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2744
3132
|
/**
|
|
2745
3133
|
*
|
|
2746
3134
|
* @summary Get number of users subscribed to the club
|
|
2747
|
-
* @param {string} id ID du club
|
|
2748
3135
|
* @param {*} [options] Override http request option.
|
|
2749
3136
|
* @throws {RequiredError}
|
|
2750
3137
|
*/
|
|
2751
|
-
getNumberOfClubUsers: (
|
|
2752
|
-
|
|
2753
|
-
assertParamExists('getNumberOfClubUsers', 'id', id);
|
|
2754
|
-
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2755
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3138
|
+
getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3139
|
+
const localVarPath = `/api/clubs/user-count`;
|
|
2756
3140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2757
3141
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2758
3142
|
let baseOptions;
|
|
@@ -2801,14 +3185,13 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
2801
3185
|
/**
|
|
2802
3186
|
*
|
|
2803
3187
|
* @summary Get number of users subscribed to the club
|
|
2804
|
-
* @param {string} id ID du club
|
|
2805
3188
|
* @param {*} [options] Override http request option.
|
|
2806
3189
|
* @throws {RequiredError}
|
|
2807
3190
|
*/
|
|
2808
|
-
getNumberOfClubUsers(
|
|
3191
|
+
getNumberOfClubUsers(options) {
|
|
2809
3192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2810
3193
|
var _a, _b, _c;
|
|
2811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(
|
|
3194
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
|
|
2812
3195
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2813
3196
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2814
3197
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2836,12 +3219,11 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
|
|
|
2836
3219
|
/**
|
|
2837
3220
|
*
|
|
2838
3221
|
* @summary Get number of users subscribed to the club
|
|
2839
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2840
3222
|
* @param {*} [options] Override http request option.
|
|
2841
3223
|
* @throws {RequiredError}
|
|
2842
3224
|
*/
|
|
2843
|
-
getNumberOfClubUsers(
|
|
2844
|
-
return localVarFp.getNumberOfClubUsers(
|
|
3225
|
+
getNumberOfClubUsers(options) {
|
|
3226
|
+
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2845
3227
|
},
|
|
2846
3228
|
};
|
|
2847
3229
|
};
|
|
@@ -2866,13 +3248,12 @@ export class StaffClubAnalyticsApi extends BaseAPI {
|
|
|
2866
3248
|
/**
|
|
2867
3249
|
*
|
|
2868
3250
|
* @summary Get number of users subscribed to the club
|
|
2869
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2870
3251
|
* @param {*} [options] Override http request option.
|
|
2871
3252
|
* @throws {RequiredError}
|
|
2872
3253
|
* @memberof StaffClubAnalyticsApi
|
|
2873
3254
|
*/
|
|
2874
|
-
getNumberOfClubUsers(
|
|
2875
|
-
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(
|
|
3255
|
+
getNumberOfClubUsers(options) {
|
|
3256
|
+
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2876
3257
|
}
|
|
2877
3258
|
}
|
|
2878
3259
|
/**
|
|
@@ -2987,13 +3368,10 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2987
3368
|
/**
|
|
2988
3369
|
*
|
|
2989
3370
|
* @summary Récupère les paramètres d\'un club
|
|
2990
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2991
3371
|
* @param {*} [options] Override http request option.
|
|
2992
3372
|
* @throws {RequiredError}
|
|
2993
3373
|
*/
|
|
2994
|
-
getClubSettings: (
|
|
2995
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2996
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
3374
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2997
3375
|
const localVarPath = `/api/club-settings`;
|
|
2998
3376
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2999
3377
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3007,11 +3385,9 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
3007
3385
|
// authentication bearerAuth required
|
|
3008
3386
|
// http bearer authentication required
|
|
3009
3387
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3010
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3011
3388
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3012
3389
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3013
3390
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3014
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
3015
3391
|
return {
|
|
3016
3392
|
url: toPathString(localVarUrlObj),
|
|
3017
3393
|
options: localVarRequestOptions,
|
|
@@ -3029,14 +3405,13 @@ export const StaffClubSettingsApiFp = function (configuration) {
|
|
|
3029
3405
|
/**
|
|
3030
3406
|
*
|
|
3031
3407
|
* @summary Récupère les paramètres d\'un club
|
|
3032
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
3033
3408
|
* @param {*} [options] Override http request option.
|
|
3034
3409
|
* @throws {RequiredError}
|
|
3035
3410
|
*/
|
|
3036
|
-
getClubSettings(
|
|
3411
|
+
getClubSettings(options) {
|
|
3037
3412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3038
3413
|
var _a, _b, _c;
|
|
3039
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(
|
|
3414
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
3040
3415
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3041
3416
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3042
3417
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3054,12 +3429,11 @@ export const StaffClubSettingsApiFactory = function (configuration, basePath, ax
|
|
|
3054
3429
|
/**
|
|
3055
3430
|
*
|
|
3056
3431
|
* @summary Récupère les paramètres d\'un club
|
|
3057
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
3058
3432
|
* @param {*} [options] Override http request option.
|
|
3059
3433
|
* @throws {RequiredError}
|
|
3060
3434
|
*/
|
|
3061
|
-
getClubSettings(
|
|
3062
|
-
return localVarFp.getClubSettings(
|
|
3435
|
+
getClubSettings(options) {
|
|
3436
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3063
3437
|
},
|
|
3064
3438
|
};
|
|
3065
3439
|
};
|
|
@@ -3073,13 +3447,12 @@ export class StaffClubSettingsApi extends BaseAPI {
|
|
|
3073
3447
|
/**
|
|
3074
3448
|
*
|
|
3075
3449
|
* @summary Récupère les paramètres d\'un club
|
|
3076
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
3077
3450
|
* @param {*} [options] Override http request option.
|
|
3078
3451
|
* @throws {RequiredError}
|
|
3079
3452
|
* @memberof StaffClubSettingsApi
|
|
3080
3453
|
*/
|
|
3081
|
-
getClubSettings(
|
|
3082
|
-
return StaffClubSettingsApiFp(this.configuration).getClubSettings(
|
|
3454
|
+
getClubSettings(options) {
|
|
3455
|
+
return StaffClubSettingsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3083
3456
|
}
|
|
3084
3457
|
}
|
|
3085
3458
|
/**
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.19
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.19
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.19
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.19
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.19
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pickle Ball API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.19
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|