@tennac-booking/sdk 1.0.193 → 1.0.195
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 +430 -425
- package/README.md +16 -2
- package/api.ts +847 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +523 -13
- package/dist/api.js +596 -6
- 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 +523 -13
- package/dist/esm/api.js +587 -1
- 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/BookingSummary.md +4 -0
- package/docs/ClubResponse.md +0 -2
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/Health200Response.md +22 -0
- package/docs/JobResult.md +24 -0
- package/docs/JobsApi.md +367 -0
- package/docs/MyClubInfosResponse.md +0 -2
- package/docs/StaffEventsPaginatedResponse.md +26 -0
- package/docs/WaitListEntryWithPlayer.md +44 -0
- package/docs/WaitListPlayer.md +28 -0
- package/docs/WaitListPlayersListResponse.md +22 -0
- package/docs/WaitListStaffApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.195
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.WaitListStaffApi = void 0;
|
|
25
|
+
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.QuickReservationCourtType = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.EventBookingDetailSummaryUserParticipationStatusEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingSummaryUserParticipationStatusEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.WaitListEntryWithPlayerTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = void 0;
|
|
27
|
+
exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -68,6 +68,11 @@ exports.BookingStatus = {
|
|
|
68
68
|
Canceled: 'canceled',
|
|
69
69
|
NoShow: 'no-show'
|
|
70
70
|
};
|
|
71
|
+
exports.BookingSummaryUserParticipationStatusEnum = {
|
|
72
|
+
Participant: 'participant',
|
|
73
|
+
WaitingJoinPayment: 'waitingJoinPayment',
|
|
74
|
+
Waitlist: 'waitlist'
|
|
75
|
+
};
|
|
71
76
|
exports.CaptureResultTypeEnum = {
|
|
72
77
|
CreatorPayment: 'creator_payment',
|
|
73
78
|
PlayerPayment: 'player_payment'
|
|
@@ -134,6 +139,11 @@ exports.DiscountType = {
|
|
|
134
139
|
Percentage: 'percentage',
|
|
135
140
|
OffPeak: 'off_peak'
|
|
136
141
|
};
|
|
142
|
+
exports.EventBookingDetailSummaryUserParticipationStatusEnum = {
|
|
143
|
+
Participant: 'participant',
|
|
144
|
+
WaitingJoinPayment: 'waitingJoinPayment',
|
|
145
|
+
Waitlist: 'waitlist'
|
|
146
|
+
};
|
|
137
147
|
/**
|
|
138
148
|
*
|
|
139
149
|
* @export
|
|
@@ -430,6 +440,11 @@ exports.VisibilityType = {
|
|
|
430
440
|
Private: 'private',
|
|
431
441
|
Invitation: 'invitation'
|
|
432
442
|
};
|
|
443
|
+
exports.WaitListEntryWithPlayerTargetTypeEnum = {
|
|
444
|
+
Event: 'event',
|
|
445
|
+
Booking: 'booking',
|
|
446
|
+
EventBooking: 'event_booking'
|
|
447
|
+
};
|
|
433
448
|
exports.WaitListResponseTargetTypeEnum = {
|
|
434
449
|
Event: 'event',
|
|
435
450
|
Booking: 'booking',
|
|
@@ -11725,6 +11740,516 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11725
11740
|
}
|
|
11726
11741
|
}
|
|
11727
11742
|
exports.ImagesApi = ImagesApi;
|
|
11743
|
+
/**
|
|
11744
|
+
* JobsApi - axios parameter creator
|
|
11745
|
+
* @export
|
|
11746
|
+
*/
|
|
11747
|
+
const JobsApiAxiosParamCreator = function (configuration) {
|
|
11748
|
+
return {
|
|
11749
|
+
/**
|
|
11750
|
+
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
11751
|
+
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
11752
|
+
* @param {*} [options] Override http request option.
|
|
11753
|
+
* @throws {RequiredError}
|
|
11754
|
+
*/
|
|
11755
|
+
captureExpiringAuthorizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11756
|
+
const localVarPath = `/api/jobs/capture-expiring-authorizations`;
|
|
11757
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11758
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11759
|
+
let baseOptions;
|
|
11760
|
+
if (configuration) {
|
|
11761
|
+
baseOptions = configuration.baseOptions;
|
|
11762
|
+
}
|
|
11763
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11764
|
+
const localVarHeaderParameter = {};
|
|
11765
|
+
const localVarQueryParameter = {};
|
|
11766
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11768
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11769
|
+
return {
|
|
11770
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11771
|
+
options: localVarRequestOptions,
|
|
11772
|
+
};
|
|
11773
|
+
}),
|
|
11774
|
+
/**
|
|
11775
|
+
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
11776
|
+
* @summary Capture les paiements autorisés pour les réservations passées
|
|
11777
|
+
* @param {*} [options] Override http request option.
|
|
11778
|
+
* @throws {RequiredError}
|
|
11779
|
+
*/
|
|
11780
|
+
capturePastReservations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11781
|
+
const localVarPath = `/api/jobs/capture-past-reservations`;
|
|
11782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11783
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11784
|
+
let baseOptions;
|
|
11785
|
+
if (configuration) {
|
|
11786
|
+
baseOptions = configuration.baseOptions;
|
|
11787
|
+
}
|
|
11788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11789
|
+
const localVarHeaderParameter = {};
|
|
11790
|
+
const localVarQueryParameter = {};
|
|
11791
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11792
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11793
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11794
|
+
return {
|
|
11795
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11796
|
+
options: localVarRequestOptions,
|
|
11797
|
+
};
|
|
11798
|
+
}),
|
|
11799
|
+
/**
|
|
11800
|
+
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
11801
|
+
* @summary Expire les réservations en attente de paiement
|
|
11802
|
+
* @param {*} [options] Override http request option.
|
|
11803
|
+
* @throws {RequiredError}
|
|
11804
|
+
*/
|
|
11805
|
+
expireBookingWaitingPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11806
|
+
const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
|
|
11807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11808
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11809
|
+
let baseOptions;
|
|
11810
|
+
if (configuration) {
|
|
11811
|
+
baseOptions = configuration.baseOptions;
|
|
11812
|
+
}
|
|
11813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11814
|
+
const localVarHeaderParameter = {};
|
|
11815
|
+
const localVarQueryParameter = {};
|
|
11816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11819
|
+
return {
|
|
11820
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11821
|
+
options: localVarRequestOptions,
|
|
11822
|
+
};
|
|
11823
|
+
}),
|
|
11824
|
+
/**
|
|
11825
|
+
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
11826
|
+
* @summary Expire les paiements en attente sur la waitlist
|
|
11827
|
+
* @param {*} [options] Override http request option.
|
|
11828
|
+
* @throws {RequiredError}
|
|
11829
|
+
*/
|
|
11830
|
+
expireWaitlistPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11831
|
+
const localVarPath = `/api/jobs/expire-waitlist-payments`;
|
|
11832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11833
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11834
|
+
let baseOptions;
|
|
11835
|
+
if (configuration) {
|
|
11836
|
+
baseOptions = configuration.baseOptions;
|
|
11837
|
+
}
|
|
11838
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11839
|
+
const localVarHeaderParameter = {};
|
|
11840
|
+
const localVarQueryParameter = {};
|
|
11841
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11843
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11844
|
+
return {
|
|
11845
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11846
|
+
options: localVarRequestOptions,
|
|
11847
|
+
};
|
|
11848
|
+
}),
|
|
11849
|
+
/**
|
|
11850
|
+
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
11851
|
+
* @summary Health check pour les jobs
|
|
11852
|
+
* @param {*} [options] Override http request option.
|
|
11853
|
+
* @throws {RequiredError}
|
|
11854
|
+
*/
|
|
11855
|
+
health: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11856
|
+
const localVarPath = `/api/jobs/health`;
|
|
11857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11859
|
+
let baseOptions;
|
|
11860
|
+
if (configuration) {
|
|
11861
|
+
baseOptions = configuration.baseOptions;
|
|
11862
|
+
}
|
|
11863
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11864
|
+
const localVarHeaderParameter = {};
|
|
11865
|
+
const localVarQueryParameter = {};
|
|
11866
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11867
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11868
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11869
|
+
return {
|
|
11870
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11871
|
+
options: localVarRequestOptions,
|
|
11872
|
+
};
|
|
11873
|
+
}),
|
|
11874
|
+
/**
|
|
11875
|
+
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
11876
|
+
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
11877
|
+
* @param {*} [options] Override http request option.
|
|
11878
|
+
* @throws {RequiredError}
|
|
11879
|
+
*/
|
|
11880
|
+
maintainSlots: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11881
|
+
const localVarPath = `/api/jobs/maintain-slots`;
|
|
11882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11883
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11884
|
+
let baseOptions;
|
|
11885
|
+
if (configuration) {
|
|
11886
|
+
baseOptions = configuration.baseOptions;
|
|
11887
|
+
}
|
|
11888
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11889
|
+
const localVarHeaderParameter = {};
|
|
11890
|
+
const localVarQueryParameter = {};
|
|
11891
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11893
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11894
|
+
return {
|
|
11895
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11896
|
+
options: localVarRequestOptions,
|
|
11897
|
+
};
|
|
11898
|
+
}),
|
|
11899
|
+
/**
|
|
11900
|
+
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
11901
|
+
* @summary Libère les anciennes réservations terminées
|
|
11902
|
+
* @param {*} [options] Override http request option.
|
|
11903
|
+
* @throws {RequiredError}
|
|
11904
|
+
*/
|
|
11905
|
+
releaseOldBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11906
|
+
const localVarPath = `/api/jobs/release-old-bookings`;
|
|
11907
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11908
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11909
|
+
let baseOptions;
|
|
11910
|
+
if (configuration) {
|
|
11911
|
+
baseOptions = configuration.baseOptions;
|
|
11912
|
+
}
|
|
11913
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11914
|
+
const localVarHeaderParameter = {};
|
|
11915
|
+
const localVarQueryParameter = {};
|
|
11916
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11918
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11919
|
+
return {
|
|
11920
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11921
|
+
options: localVarRequestOptions,
|
|
11922
|
+
};
|
|
11923
|
+
}),
|
|
11924
|
+
/**
|
|
11925
|
+
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
11926
|
+
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
11927
|
+
* @param {*} [options] Override http request option.
|
|
11928
|
+
* @throws {RequiredError}
|
|
11929
|
+
*/
|
|
11930
|
+
sendBookingReminders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11931
|
+
const localVarPath = `/api/jobs/send-booking-reminders`;
|
|
11932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11933
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11934
|
+
let baseOptions;
|
|
11935
|
+
if (configuration) {
|
|
11936
|
+
baseOptions = configuration.baseOptions;
|
|
11937
|
+
}
|
|
11938
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11939
|
+
const localVarHeaderParameter = {};
|
|
11940
|
+
const localVarQueryParameter = {};
|
|
11941
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11943
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11944
|
+
return {
|
|
11945
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11946
|
+
options: localVarRequestOptions,
|
|
11947
|
+
};
|
|
11948
|
+
}),
|
|
11949
|
+
};
|
|
11950
|
+
};
|
|
11951
|
+
exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
|
|
11952
|
+
/**
|
|
11953
|
+
* JobsApi - functional programming interface
|
|
11954
|
+
* @export
|
|
11955
|
+
*/
|
|
11956
|
+
const JobsApiFp = function (configuration) {
|
|
11957
|
+
const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
|
|
11958
|
+
return {
|
|
11959
|
+
/**
|
|
11960
|
+
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
11961
|
+
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
11962
|
+
* @param {*} [options] Override http request option.
|
|
11963
|
+
* @throws {RequiredError}
|
|
11964
|
+
*/
|
|
11965
|
+
captureExpiringAuthorizations(options) {
|
|
11966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11967
|
+
var _a, _b, _c;
|
|
11968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
|
|
11969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11970
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11972
|
+
});
|
|
11973
|
+
},
|
|
11974
|
+
/**
|
|
11975
|
+
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
11976
|
+
* @summary Capture les paiements autorisés pour les réservations passées
|
|
11977
|
+
* @param {*} [options] Override http request option.
|
|
11978
|
+
* @throws {RequiredError}
|
|
11979
|
+
*/
|
|
11980
|
+
capturePastReservations(options) {
|
|
11981
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11982
|
+
var _a, _b, _c;
|
|
11983
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
|
|
11984
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11985
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11986
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11987
|
+
});
|
|
11988
|
+
},
|
|
11989
|
+
/**
|
|
11990
|
+
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
11991
|
+
* @summary Expire les réservations en attente de paiement
|
|
11992
|
+
* @param {*} [options] Override http request option.
|
|
11993
|
+
* @throws {RequiredError}
|
|
11994
|
+
*/
|
|
11995
|
+
expireBookingWaitingPayments(options) {
|
|
11996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11997
|
+
var _a, _b, _c;
|
|
11998
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
|
|
11999
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12000
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12001
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12002
|
+
});
|
|
12003
|
+
},
|
|
12004
|
+
/**
|
|
12005
|
+
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12006
|
+
* @summary Expire les paiements en attente sur la waitlist
|
|
12007
|
+
* @param {*} [options] Override http request option.
|
|
12008
|
+
* @throws {RequiredError}
|
|
12009
|
+
*/
|
|
12010
|
+
expireWaitlistPayments(options) {
|
|
12011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12012
|
+
var _a, _b, _c;
|
|
12013
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
|
|
12014
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12015
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12016
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12017
|
+
});
|
|
12018
|
+
},
|
|
12019
|
+
/**
|
|
12020
|
+
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12021
|
+
* @summary Health check pour les jobs
|
|
12022
|
+
* @param {*} [options] Override http request option.
|
|
12023
|
+
* @throws {RequiredError}
|
|
12024
|
+
*/
|
|
12025
|
+
health(options) {
|
|
12026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12027
|
+
var _a, _b, _c;
|
|
12028
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
|
|
12029
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12030
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12031
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12032
|
+
});
|
|
12033
|
+
},
|
|
12034
|
+
/**
|
|
12035
|
+
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12036
|
+
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12037
|
+
* @param {*} [options] Override http request option.
|
|
12038
|
+
* @throws {RequiredError}
|
|
12039
|
+
*/
|
|
12040
|
+
maintainSlots(options) {
|
|
12041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12042
|
+
var _a, _b, _c;
|
|
12043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.maintainSlots(options);
|
|
12044
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12045
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.maintainSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12046
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12047
|
+
});
|
|
12048
|
+
},
|
|
12049
|
+
/**
|
|
12050
|
+
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12051
|
+
* @summary Libère les anciennes réservations terminées
|
|
12052
|
+
* @param {*} [options] Override http request option.
|
|
12053
|
+
* @throws {RequiredError}
|
|
12054
|
+
*/
|
|
12055
|
+
releaseOldBookings(options) {
|
|
12056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12057
|
+
var _a, _b, _c;
|
|
12058
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.releaseOldBookings(options);
|
|
12059
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12060
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.releaseOldBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12061
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12062
|
+
});
|
|
12063
|
+
},
|
|
12064
|
+
/**
|
|
12065
|
+
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12066
|
+
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12067
|
+
* @param {*} [options] Override http request option.
|
|
12068
|
+
* @throws {RequiredError}
|
|
12069
|
+
*/
|
|
12070
|
+
sendBookingReminders(options) {
|
|
12071
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12072
|
+
var _a, _b, _c;
|
|
12073
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendBookingReminders(options);
|
|
12074
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12075
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.sendBookingReminders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12076
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12077
|
+
});
|
|
12078
|
+
},
|
|
12079
|
+
};
|
|
12080
|
+
};
|
|
12081
|
+
exports.JobsApiFp = JobsApiFp;
|
|
12082
|
+
/**
|
|
12083
|
+
* JobsApi - factory interface
|
|
12084
|
+
* @export
|
|
12085
|
+
*/
|
|
12086
|
+
const JobsApiFactory = function (configuration, basePath, axios) {
|
|
12087
|
+
const localVarFp = (0, exports.JobsApiFp)(configuration);
|
|
12088
|
+
return {
|
|
12089
|
+
/**
|
|
12090
|
+
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
12091
|
+
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
12092
|
+
* @param {*} [options] Override http request option.
|
|
12093
|
+
* @throws {RequiredError}
|
|
12094
|
+
*/
|
|
12095
|
+
captureExpiringAuthorizations(options) {
|
|
12096
|
+
return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
|
|
12097
|
+
},
|
|
12098
|
+
/**
|
|
12099
|
+
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12100
|
+
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12101
|
+
* @param {*} [options] Override http request option.
|
|
12102
|
+
* @throws {RequiredError}
|
|
12103
|
+
*/
|
|
12104
|
+
capturePastReservations(options) {
|
|
12105
|
+
return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
|
|
12106
|
+
},
|
|
12107
|
+
/**
|
|
12108
|
+
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12109
|
+
* @summary Expire les réservations en attente de paiement
|
|
12110
|
+
* @param {*} [options] Override http request option.
|
|
12111
|
+
* @throws {RequiredError}
|
|
12112
|
+
*/
|
|
12113
|
+
expireBookingWaitingPayments(options) {
|
|
12114
|
+
return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
|
|
12115
|
+
},
|
|
12116
|
+
/**
|
|
12117
|
+
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12118
|
+
* @summary Expire les paiements en attente sur la waitlist
|
|
12119
|
+
* @param {*} [options] Override http request option.
|
|
12120
|
+
* @throws {RequiredError}
|
|
12121
|
+
*/
|
|
12122
|
+
expireWaitlistPayments(options) {
|
|
12123
|
+
return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
|
|
12124
|
+
},
|
|
12125
|
+
/**
|
|
12126
|
+
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12127
|
+
* @summary Health check pour les jobs
|
|
12128
|
+
* @param {*} [options] Override http request option.
|
|
12129
|
+
* @throws {RequiredError}
|
|
12130
|
+
*/
|
|
12131
|
+
health(options) {
|
|
12132
|
+
return localVarFp.health(options).then((request) => request(axios, basePath));
|
|
12133
|
+
},
|
|
12134
|
+
/**
|
|
12135
|
+
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12136
|
+
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12137
|
+
* @param {*} [options] Override http request option.
|
|
12138
|
+
* @throws {RequiredError}
|
|
12139
|
+
*/
|
|
12140
|
+
maintainSlots(options) {
|
|
12141
|
+
return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
|
|
12142
|
+
},
|
|
12143
|
+
/**
|
|
12144
|
+
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12145
|
+
* @summary Libère les anciennes réservations terminées
|
|
12146
|
+
* @param {*} [options] Override http request option.
|
|
12147
|
+
* @throws {RequiredError}
|
|
12148
|
+
*/
|
|
12149
|
+
releaseOldBookings(options) {
|
|
12150
|
+
return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
|
|
12151
|
+
},
|
|
12152
|
+
/**
|
|
12153
|
+
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12154
|
+
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12155
|
+
* @param {*} [options] Override http request option.
|
|
12156
|
+
* @throws {RequiredError}
|
|
12157
|
+
*/
|
|
12158
|
+
sendBookingReminders(options) {
|
|
12159
|
+
return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
|
|
12160
|
+
},
|
|
12161
|
+
};
|
|
12162
|
+
};
|
|
12163
|
+
exports.JobsApiFactory = JobsApiFactory;
|
|
12164
|
+
/**
|
|
12165
|
+
* JobsApi - object-oriented interface
|
|
12166
|
+
* @export
|
|
12167
|
+
* @class JobsApi
|
|
12168
|
+
* @extends {BaseAPI}
|
|
12169
|
+
*/
|
|
12170
|
+
class JobsApi extends base_1.BaseAPI {
|
|
12171
|
+
/**
|
|
12172
|
+
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
12173
|
+
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
12174
|
+
* @param {*} [options] Override http request option.
|
|
12175
|
+
* @throws {RequiredError}
|
|
12176
|
+
* @memberof JobsApi
|
|
12177
|
+
*/
|
|
12178
|
+
captureExpiringAuthorizations(options) {
|
|
12179
|
+
return (0, exports.JobsApiFp)(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
|
|
12180
|
+
}
|
|
12181
|
+
/**
|
|
12182
|
+
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12183
|
+
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12184
|
+
* @param {*} [options] Override http request option.
|
|
12185
|
+
* @throws {RequiredError}
|
|
12186
|
+
* @memberof JobsApi
|
|
12187
|
+
*/
|
|
12188
|
+
capturePastReservations(options) {
|
|
12189
|
+
return (0, exports.JobsApiFp)(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
|
|
12190
|
+
}
|
|
12191
|
+
/**
|
|
12192
|
+
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12193
|
+
* @summary Expire les réservations en attente de paiement
|
|
12194
|
+
* @param {*} [options] Override http request option.
|
|
12195
|
+
* @throws {RequiredError}
|
|
12196
|
+
* @memberof JobsApi
|
|
12197
|
+
*/
|
|
12198
|
+
expireBookingWaitingPayments(options) {
|
|
12199
|
+
return (0, exports.JobsApiFp)(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12200
|
+
}
|
|
12201
|
+
/**
|
|
12202
|
+
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12203
|
+
* @summary Expire les paiements en attente sur la waitlist
|
|
12204
|
+
* @param {*} [options] Override http request option.
|
|
12205
|
+
* @throws {RequiredError}
|
|
12206
|
+
* @memberof JobsApi
|
|
12207
|
+
*/
|
|
12208
|
+
expireWaitlistPayments(options) {
|
|
12209
|
+
return (0, exports.JobsApiFp)(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12210
|
+
}
|
|
12211
|
+
/**
|
|
12212
|
+
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12213
|
+
* @summary Health check pour les jobs
|
|
12214
|
+
* @param {*} [options] Override http request option.
|
|
12215
|
+
* @throws {RequiredError}
|
|
12216
|
+
* @memberof JobsApi
|
|
12217
|
+
*/
|
|
12218
|
+
health(options) {
|
|
12219
|
+
return (0, exports.JobsApiFp)(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
|
|
12220
|
+
}
|
|
12221
|
+
/**
|
|
12222
|
+
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12223
|
+
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12224
|
+
* @param {*} [options] Override http request option.
|
|
12225
|
+
* @throws {RequiredError}
|
|
12226
|
+
* @memberof JobsApi
|
|
12227
|
+
*/
|
|
12228
|
+
maintainSlots(options) {
|
|
12229
|
+
return (0, exports.JobsApiFp)(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
|
|
12230
|
+
}
|
|
12231
|
+
/**
|
|
12232
|
+
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12233
|
+
* @summary Libère les anciennes réservations terminées
|
|
12234
|
+
* @param {*} [options] Override http request option.
|
|
12235
|
+
* @throws {RequiredError}
|
|
12236
|
+
* @memberof JobsApi
|
|
12237
|
+
*/
|
|
12238
|
+
releaseOldBookings(options) {
|
|
12239
|
+
return (0, exports.JobsApiFp)(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
|
|
12240
|
+
}
|
|
12241
|
+
/**
|
|
12242
|
+
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12243
|
+
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12244
|
+
* @param {*} [options] Override http request option.
|
|
12245
|
+
* @throws {RequiredError}
|
|
12246
|
+
* @memberof JobsApi
|
|
12247
|
+
*/
|
|
12248
|
+
sendBookingReminders(options) {
|
|
12249
|
+
return (0, exports.JobsApiFp)(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
|
|
12250
|
+
}
|
|
12251
|
+
}
|
|
12252
|
+
exports.JobsApi = JobsApi;
|
|
11728
12253
|
/**
|
|
11729
12254
|
* PublicEmailApi - axios parameter creator
|
|
11730
12255
|
* @export
|
|
@@ -16827,6 +17352,37 @@ const WaitListStaffApiAxiosParamCreator = function (configuration) {
|
|
|
16827
17352
|
options: localVarRequestOptions,
|
|
16828
17353
|
};
|
|
16829
17354
|
}),
|
|
17355
|
+
/**
|
|
17356
|
+
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17357
|
+
* @param {string} eventId
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
*/
|
|
17361
|
+
getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
17362
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
17363
|
+
(0, common_1.assertParamExists)('getEventWaitListPlayers', 'eventId', eventId);
|
|
17364
|
+
const localVarPath = `/api/waitlist/event/{eventId}/players`
|
|
17365
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
17366
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17367
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17368
|
+
let baseOptions;
|
|
17369
|
+
if (configuration) {
|
|
17370
|
+
baseOptions = configuration.baseOptions;
|
|
17371
|
+
}
|
|
17372
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17373
|
+
const localVarHeaderParameter = {};
|
|
17374
|
+
const localVarQueryParameter = {};
|
|
17375
|
+
// authentication bearerAuth required
|
|
17376
|
+
// http bearer authentication required
|
|
17377
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17378
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17379
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17380
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17381
|
+
return {
|
|
17382
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17383
|
+
options: localVarRequestOptions,
|
|
17384
|
+
};
|
|
17385
|
+
}),
|
|
16830
17386
|
/**
|
|
16831
17387
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
16832
17388
|
* @param {string} bookingId
|
|
@@ -16975,6 +17531,21 @@ const WaitListStaffApiFp = function (configuration) {
|
|
|
16975
17531
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16976
17532
|
});
|
|
16977
17533
|
},
|
|
17534
|
+
/**
|
|
17535
|
+
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17536
|
+
* @param {string} eventId
|
|
17537
|
+
* @param {*} [options] Override http request option.
|
|
17538
|
+
* @throws {RequiredError}
|
|
17539
|
+
*/
|
|
17540
|
+
getEventWaitListPlayers(eventId, options) {
|
|
17541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17542
|
+
var _a, _b, _c;
|
|
17543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
|
|
17544
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17545
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17546
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17547
|
+
});
|
|
17548
|
+
},
|
|
16978
17549
|
/**
|
|
16979
17550
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
16980
17551
|
* @param {string} bookingId
|
|
@@ -17057,6 +17628,15 @@ const WaitListStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
17057
17628
|
getEventWaitList(requestParameters, options) {
|
|
17058
17629
|
return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17059
17630
|
},
|
|
17631
|
+
/**
|
|
17632
|
+
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17633
|
+
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17634
|
+
* @param {*} [options] Override http request option.
|
|
17635
|
+
* @throws {RequiredError}
|
|
17636
|
+
*/
|
|
17637
|
+
getEventWaitListPlayers(requestParameters, options) {
|
|
17638
|
+
return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17639
|
+
},
|
|
17060
17640
|
/**
|
|
17061
17641
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17062
17642
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|
|
@@ -17124,6 +17704,16 @@ class WaitListStaffApi extends base_1.BaseAPI {
|
|
|
17124
17704
|
getEventWaitList(requestParameters, options) {
|
|
17125
17705
|
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17126
17706
|
}
|
|
17707
|
+
/**
|
|
17708
|
+
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17709
|
+
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17710
|
+
* @param {*} [options] Override http request option.
|
|
17711
|
+
* @throws {RequiredError}
|
|
17712
|
+
* @memberof WaitListStaffApi
|
|
17713
|
+
*/
|
|
17714
|
+
getEventWaitListPlayers(requestParameters, options) {
|
|
17715
|
+
return (0, exports.WaitListStaffApiFp)(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17716
|
+
}
|
|
17127
17717
|
/**
|
|
17128
17718
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17129
17719
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|