@matchi/api 0.20240617.1 → 0.20240620.1

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/index.d.mts CHANGED
@@ -327,6 +327,18 @@ type booking = {
327
327
  refundableUntil?: string;
328
328
  };
329
329
 
330
+ declare enum bookingRestriction {
331
+ LIMIT_REACHED = "LIMIT_REACHED",
332
+ DAY_LIMIT_REACHED = "DAY_LIMIT_REACHED",
333
+ MINUTES_OF_BOOKING_LIMIT_REACHED = "MINUTES_OF_BOOKING_LIMIT_REACHED",
334
+ MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED = "MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",
335
+ COURT_GROUP = "COURT_GROUP",
336
+ TOO_SOON = "TOO_SOON",
337
+ MEMBERS_ONLY = "MEMBERS_ONLY"
338
+ }
339
+
340
+ type bookingRestrictions = Array<bookingRestriction>;
341
+
330
342
  type bookingsResponse = {
331
343
  resultSet: resultSet;
332
344
  items: Array<booking>;
@@ -1578,6 +1590,13 @@ declare class AuthorizedService {
1578
1590
  * @throws ApiError
1579
1591
  */
1580
1592
  static getBookingSubscriptionDetails(subscriptionId: string): CancelablePromise<bookingSubscription>;
1593
+ /**
1594
+ * Get list of user restrictions for a booking
1595
+ * @param bookingId ID of the booking to fetch restrictions for
1596
+ * @returns bookingRestrictions List of restrictions codes
1597
+ * @throws ApiError
1598
+ */
1599
+ static getUserBookingRestrictions(bookingId: string): CancelablePromise<bookingRestrictions>;
1581
1600
  /**
1582
1601
  * Get users of a booking
1583
1602
  * @param bookingId id of the booking
@@ -1898,6 +1917,13 @@ declare class BookingServiceV1Service {
1898
1917
  * @throws ApiError
1899
1918
  */
1900
1919
  static getBookingSubscriptionDetails(subscriptionId: string): CancelablePromise<bookingSubscription>;
1920
+ /**
1921
+ * Get list of user restrictions for a booking
1922
+ * @param bookingId ID of the booking to fetch restrictions for
1923
+ * @returns bookingRestrictions List of restrictions codes
1924
+ * @throws ApiError
1925
+ */
1926
+ static getUserBookingRestrictions(bookingId: string): CancelablePromise<bookingRestrictions>;
1901
1927
  /**
1902
1928
  * Get users of a booking
1903
1929
  * @param bookingId id of the booking
@@ -2203,4 +2229,4 @@ declare class UserServiceV1Service {
2203
2229
  static listIncomingFriendRequests(offset?: number, limit?: number): CancelablePromise<friendRelationsResponse>;
2204
2230
  }
2205
2231
 
2206
- export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, bookingUser, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, type playSessionSettings, type playSessionUser, type playerLevels, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type timeOfDay, type timeStamp, type usagePlan, type userFacility, type userId, type userInfo, type userMembership, type userPublicProfile, type valueCardOutcome };
2232
+ export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, bookingUser, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, type playSessionSettings, type playSessionUser, type playerLevels, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type timeOfDay, type timeStamp, type usagePlan, type userFacility, type userId, type userInfo, type userMembership, type userPublicProfile, type valueCardOutcome };
package/dist/index.d.ts CHANGED
@@ -327,6 +327,18 @@ type booking = {
327
327
  refundableUntil?: string;
328
328
  };
329
329
 
330
+ declare enum bookingRestriction {
331
+ LIMIT_REACHED = "LIMIT_REACHED",
332
+ DAY_LIMIT_REACHED = "DAY_LIMIT_REACHED",
333
+ MINUTES_OF_BOOKING_LIMIT_REACHED = "MINUTES_OF_BOOKING_LIMIT_REACHED",
334
+ MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED = "MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",
335
+ COURT_GROUP = "COURT_GROUP",
336
+ TOO_SOON = "TOO_SOON",
337
+ MEMBERS_ONLY = "MEMBERS_ONLY"
338
+ }
339
+
340
+ type bookingRestrictions = Array<bookingRestriction>;
341
+
330
342
  type bookingsResponse = {
331
343
  resultSet: resultSet;
332
344
  items: Array<booking>;
@@ -1578,6 +1590,13 @@ declare class AuthorizedService {
1578
1590
  * @throws ApiError
1579
1591
  */
1580
1592
  static getBookingSubscriptionDetails(subscriptionId: string): CancelablePromise<bookingSubscription>;
1593
+ /**
1594
+ * Get list of user restrictions for a booking
1595
+ * @param bookingId ID of the booking to fetch restrictions for
1596
+ * @returns bookingRestrictions List of restrictions codes
1597
+ * @throws ApiError
1598
+ */
1599
+ static getUserBookingRestrictions(bookingId: string): CancelablePromise<bookingRestrictions>;
1581
1600
  /**
1582
1601
  * Get users of a booking
1583
1602
  * @param bookingId id of the booking
@@ -1898,6 +1917,13 @@ declare class BookingServiceV1Service {
1898
1917
  * @throws ApiError
1899
1918
  */
1900
1919
  static getBookingSubscriptionDetails(subscriptionId: string): CancelablePromise<bookingSubscription>;
1920
+ /**
1921
+ * Get list of user restrictions for a booking
1922
+ * @param bookingId ID of the booking to fetch restrictions for
1923
+ * @returns bookingRestrictions List of restrictions codes
1924
+ * @throws ApiError
1925
+ */
1926
+ static getUserBookingRestrictions(bookingId: string): CancelablePromise<bookingRestrictions>;
1901
1927
  /**
1902
1928
  * Get users of a booking
1903
1929
  * @param bookingId id of the booking
@@ -2203,4 +2229,4 @@ declare class UserServiceV1Service {
2203
2229
  static listIncomingFriendRequests(offset?: number, limit?: number): CancelablePromise<friendRelationsResponse>;
2204
2230
  }
2205
2231
 
2206
- export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, bookingUser, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, type playSessionSettings, type playSessionUser, type playerLevels, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type timeOfDay, type timeStamp, type usagePlan, type userFacility, type userId, type userInfo, type userMembership, type userPublicProfile, type valueCardOutcome };
2232
+ export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, bookingUser, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, type playSessionSettings, type playSessionUser, type playerLevels, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type timeOfDay, type timeStamp, type usagePlan, type userFacility, type userId, type userInfo, type userMembership, type userPublicProfile, type valueCardOutcome };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var O=Object.defineProperty,pe=Object.defineProperties,ue=Object.getOwnPropertyDescriptor,ce=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e||(e={}))se.call(e,r)&&ie(t,r,e[r]);if(te)for(var r of te(e))de.call(e,r)&&ie(t,r,e[r]);return t},ae=(t,e)=>pe(t,ce(e));var fe=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},ye=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of me(e))!se.call(t,a)&&a!==r&&O(t,a,{get:()=>e[a],enumerable:!(s=ue(e,a))||s.enumerable});return t};var be=t=>ye(O({},"__esModule",{value:!0}),t);var ne=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(ne(t,e,"read from private field"),r?r.call(t):e.get(t)),I=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,s)=>(ne(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r);var v=(t,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(t,e)).next())});var Ae={};fe(Ae,{ActivityServiceV1Service:()=>N,AnonymousService:()=>L,ApiClientServiceV1Service:()=>M,ApiError:()=>S,AuthorizedService:()=>j,BookingServiceV1Service:()=>H,CancelError:()=>U,CancelablePromise:()=>C,CheckoutServiceV1Service:()=>_,CompetitionServiceV1Service:()=>F,CorsService:()=>W,LoyaltyServiceV1Service:()=>Y,MembershipServiceV1Service:()=>$,OpenAPI:()=>o,PlaySessionServiceV1Service:()=>V,UserServiceV1Service:()=>K,bookingSubType:()=>J,bookingSubscription:()=>G,bookingUser:()=>w,cancellationPolicy:()=>D,clientType:()=>Q,directionParam:()=>X,months:()=>Z,pendingPayment:()=>q,playingUserResponse:()=>z});module.exports=be(Ae);var S=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var U=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,P,k,E,C=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,P,void 0);I(this,k,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,P,new Promise((r,s)=>{y(this,k,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,k))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,P).then(e,r)}catch(e){return c(this,P).catch(e)}finally(e){return c(this,P).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new U("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,P=new WeakMap,k=new WeakMap,E=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let t;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(G||(G={}));var J=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(J||{});var w;(e=>{let t;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DECLINED="DECLINED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(t=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let t;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(D||(D={}));var Q=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Q||{});var X=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(X||{});var Z=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(Z||{});var q;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(z||(z={}));var re=t=>t!=null,x=t=>typeof t=="string",ee=t=>x(t)&&t!=="",oe=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),le=t=>t instanceof FormData,ge=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},he=t=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{re(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(t).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},Ie=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${t.BASE}${s}`;return e.query?`${a}${he(e.query)}`:a},Te=t=>{if(t.formData){let e=new FormData,r=(s,a)=>{x(a)||oe(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(t.formData).filter(([s,a])=>re(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},B=(t,e)=>v(void 0,null,function*(){return typeof e=="function"?e(t):e}),Se=(t,e)=>v(void 0,null,function*(){let r=yield B(e,t.TOKEN),s=yield B(e,t.USERNAME),a=yield B(e,t.PASSWORD),l=yield B(e,t.HEADERS),n=Object.entries(A(A({Accept:"application/json"},l),e.headers)).filter(([u,p])=>re(p)).reduce((u,[p,d])=>ae(A({},u),{[p]:String(d)}),{});if(ee(r)&&(n.Authorization=`Bearer ${r}`),ee(s)&&ee(a)){let u=ge(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:oe(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":x(e.body)?n["Content-Type"]="text/plain":le(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Pe=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):x(t.body)||oe(t.body)||le(t.body)?t.body:JSON.stringify(t.body)},ve=(t,e,r,s,a,l,n)=>v(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return t.WITH_CREDENTIALS&&(p.credentials=t.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),Ee=(t,e)=>{if(e){let r=t.headers.get(e);if(x(r))return r}},Ce=t=>v(void 0,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Re=(t,e)=>{var a,l;let s=A({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(s)throw new S(t,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new S(t,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},i=(t,e)=>new C((r,s,a)=>v(void 0,null,function*(){try{let l=Ie(t,e),n=Te(e),u=Pe(e),p=yield Se(t,e);if(!a.isCancelled){let d=yield ve(t,e,l,u,n,p,a),f=yield Ce(d),R=Ee(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:R!=null?R:f};Re(e,m),r(m.body)}}catch(l){s(l)}}));var N=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var L=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,R,m=10){return i(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:R,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return i(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return i(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return i(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return i(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return i(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return i(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return i(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return i(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return i(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static getApiClientList(e,r=10){return i(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static getActivityOccasionPrice(e,r){return i(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return i(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return i(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return i(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return i(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return i(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return i(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return i(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return i(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return i(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return i(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return i(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return i(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return i(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return i(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return i(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return i(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return i(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return i(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return i(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return i(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return i(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return i(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return i(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return i(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return i(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return i(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return i(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getCheckout(e){return i(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static updateCompetitionAccount(e){return i(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static options(e){return i(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Y=class{static createPromoCode(e){return i(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static createMembership(e){return i(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return i(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var V=class{static getPlaySessionById(e){return i(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return i(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return i(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return i(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return i(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return i(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return i(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return i(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return i(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return i(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static getUserProfile(e){return i(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return i(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return i(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return i(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return i(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingSubType,bookingSubscription,bookingUser,cancellationPolicy,clientType,directionParam,months,pendingPayment,playingUserResponse});
1
+ "use strict";var x=Object.defineProperty,ue=Object.defineProperties,ce=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var se=(i,e,r)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,A=(i,e)=>{for(var r in e||(e={}))ae.call(e,r)&&se(i,r,e[r]);if(ie)for(var r of ie(e))fe.call(e,r)&&se(i,r,e[r]);return i},ne=(i,e)=>ue(i,me(e));var ye=(i,e)=>{for(var r in e)x(i,r,{get:e[r],enumerable:!0})},be=(i,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of de(e))!ae.call(i,a)&&a!==r&&x(i,a,{get:()=>e[a],enumerable:!(s=ce(e,a))||s.enumerable});return i};var ge=i=>be(x({},"__esModule",{value:!0}),i);var le=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(le(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(le(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var P=(i,e,r)=>new Promise((s,a)=>{var l=u=>{try{p(r.next(u))}catch(d){a(d)}},n=u=>{try{p(r.throw(u))}catch(d){a(d)}},p=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(i,e)).next())});var Ue={};ye(Ue,{ActivityServiceV1Service:()=>N,AnonymousService:()=>_,ApiClientServiceV1Service:()=>L,ApiError:()=>S,AuthorizedService:()=>M,BookingServiceV1Service:()=>j,CancelError:()=>U,CancelablePromise:()=>C,CheckoutServiceV1Service:()=>H,CompetitionServiceV1Service:()=>F,CorsService:()=>Y,LoyaltyServiceV1Service:()=>W,MembershipServiceV1Service:()=>K,OpenAPI:()=>o,PlaySessionServiceV1Service:()=>$,UserServiceV1Service:()=>V,bookingRestriction:()=>J,bookingSubType:()=>Q,bookingSubscription:()=>G,bookingUser:()=>D,cancellationPolicy:()=>w,clientType:()=>X,directionParam:()=>Z,months:()=>ee,pendingPayment:()=>q,playingUserResponse:()=>z});module.exports=ge(Ue);var S=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var U=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,E,O,v,C=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,E,void 0);I(this,O,void 0);I(this,v,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,E,new Promise((r,s)=>{y(this,O,r),y(this,v,s);let a=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,O))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,v))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,E).then(e,r)}catch(e){return c(this,E).catch(e)}finally(e){return c(this,E).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,v))==null||e.call(this,new U("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,E=new WeakMap,O=new WeakMap,v=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var J=(p=>(p.LIMIT_REACHED="LIMIT_REACHED",p.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",p.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",p.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",p.COURT_GROUP="COURT_GROUP",p.TOO_SOON="TOO_SOON",p.MEMBERS_ONLY="MEMBERS_ONLY",p))(J||{});var G;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(G||(G={}));var Q=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(Q||{});var D;(e=>{let i;(u=>(u.UNAPPROVED="UNAPPROVED",u.UNCONFIRMED="UNCONFIRMED",u.DECLINED="DECLINED",u.PARTICIPANT="PARTICIPANT",u.CO_BOOKER="CO-BOOKER",u.OWNER="OWNER"))(i=e.status||(e.status={}))})(D||(D={}));var w;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(w||(w={}));var X=(r=>(r.WIDGET="WIDGET",r.API="API",r))(X||{});var Z=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Z||{});var ee=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(ee||{});var q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var oe=i=>i!=null,k=i=>typeof i=="string",re=i=>k(i)&&i!=="",te=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),pe=i=>i instanceof FormData,he=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},Ie=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{oe(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{s(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},Te=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${Ie(e.query)}`:a},Se=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{k(a)||te(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>oe(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},B=(i,e)=>P(void 0,null,function*(){return typeof e=="function"?e(i):e}),Ee=(i,e)=>P(void 0,null,function*(){let r=yield B(e,i.TOKEN),s=yield B(e,i.USERNAME),a=yield B(e,i.PASSWORD),l=yield B(e,i.HEADERS),n=Object.entries(A(A({Accept:"application/json"},l),e.headers)).filter(([p,u])=>oe(u)).reduce((p,[u,d])=>ne(A({},p),{[u]:String(d)}),{});if(re(r)&&(n.Authorization=`Bearer ${r}`),re(s)&&re(a)){let p=he(`${s}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:te(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":k(e.body)?n["Content-Type"]="text/plain":pe(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Pe=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):k(i.body)||te(i.body)||pe(i.body)?i.body:JSON.stringify(i.body)},ve=(i,e,r,s,a,l,n)=>P(void 0,null,function*(){let p=new AbortController,u={headers:l,body:s!=null?s:a,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Ce=(i,e)=>{if(e){let r=i.headers.get(e);if(k(r))return r}},Re=i=>P(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Ae=(i,e)=>{var a,l;let s=A({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new S(i,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",p=(l=e.statusText)!=null?l:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new S(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},t=(i,e)=>new C((r,s,a)=>P(void 0,null,function*(){try{let l=Te(i,e),n=Se(e),p=Pe(e),u=yield Ee(i,e);if(!a.isCancelled){let d=yield ve(i,e,l,p,n,u,a),f=yield Re(d),R=Ce(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:R!=null?R:f};Ae(e,m),r(m.body)}}catch(l){s(l)}}));var N=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static listActivities(e=!1,r=!1,s,a,l,n,p,u,d,f,R,m=10){return t(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:d,endDate:f,offset:R,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return t(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return t(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,p,u,d=10){return t(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return t(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return t(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return t(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var L=class{static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static getActivityOccasionPrice(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,p){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return t(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return t(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return t(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return t(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return t(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return t(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return t(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return t(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return t(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserBookingRestrictions(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return t(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return t(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return t(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return t(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return t(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return t(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return t(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return t(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return t(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static getAvailabilityWithPrice(e,r,s,a,l,n,p){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserBookingRestrictions(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var Y=class{static options(e){return t(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var W=class{static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return t(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static getPlaySessionById(e){return t(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return t(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return t(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return t(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return t(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return t(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var V=class{static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return t(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return t(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUser,cancellationPolicy,clientType,directionParam,months,pendingPayment,playingUserResponse});
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var ne=Object.defineProperty,le=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var Z=(i,e,r)=>e in i?ne(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))ue.call(e,r)&&Z(i,r,e[r]);if(X)for(var r of X(e))ce.call(e,r)&&Z(i,r,e[r]);return i},ee=(i,e)=>le(i,pe(e));var re=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(re(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(re(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var P=(i,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(i,e)).next())});var v=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var x=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,S,U,E,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,S,void 0);I(this,U,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,S,new Promise((r,s)=>{y(this,U,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,U))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,S).then(e,r)}catch(e){return c(this,S).catch(e)}finally(e){return c(this,S).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new x("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,S=new WeakMap,U=new WeakMap,E=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(G||(G={}));var oe=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(oe||{});var w;(e=>{let i;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DECLINED="DECLINED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(i=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var te=(r=>(r.WIDGET="WIDGET",r.API="API",r))(te||{});var ie=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(ie||{});var se=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(se||{});var q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var N=i=>i!=null,k=i=>typeof i=="string",B=i=>k(i)&&i!=="",L=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),ae=i=>i instanceof FormData,me=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},de=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{N(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},fe=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${de(e.query)}`:a},ye=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{k(a)||L(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>N(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},O=(i,e)=>P(void 0,null,function*(){return typeof e=="function"?e(i):e}),be=(i,e)=>P(void 0,null,function*(){let r=yield O(e,i.TOKEN),s=yield O(e,i.USERNAME),a=yield O(e,i.PASSWORD),l=yield O(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([u,p])=>N(p)).reduce((u,[p,d])=>ee(R({},u),{[p]:String(d)}),{});if(B(r)&&(n.Authorization=`Bearer ${r}`),B(s)&&B(a)){let u=me(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:L(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":k(e.body)?n["Content-Type"]="text/plain":ae(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ge=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):k(i.body)||L(i.body)||ae(i.body)?i.body:JSON.stringify(i.body)},he=(i,e,r,s,a,l,n)=>P(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return i.WITH_CREDENTIALS&&(p.credentials=i.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),Ie=(i,e)=>{if(e){let r=i.headers.get(e);if(k(r))return r}},Te=i=>P(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Se=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new v(i,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new v(i,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},t=(i,e)=>new A((r,s,a)=>P(void 0,null,function*(){try{let l=fe(i,e),n=ye(e),u=ge(e),p=yield be(i,e);if(!a.isCancelled){let d=yield he(i,e,l,u,n,p,a),f=yield Te(d),C=Ie(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:C!=null?C:f};Se(e,m),r(m.body)}}catch(l){s(l)}}));var M=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,C,m=10){return t(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:C,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return t(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return t(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return t(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return t(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return t(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return t(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getActivityOccasionPrice(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return t(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return t(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return t(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return t(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return t(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return t(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return t(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return t(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return t(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return t(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return t(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return t(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return t(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return t(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return t(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return t(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return t(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return t(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var Y=class{static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static options(e){return t(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var V=class{static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return t(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var J=class{static getPlaySessionById(e){return t(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return t(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return t(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return t(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return t(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return t(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var Q=class{static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return t(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return t(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};export{M as ActivityServiceV1Service,j as AnonymousService,H as ApiClientServiceV1Service,v as ApiError,_ as AuthorizedService,F as BookingServiceV1Service,x as CancelError,A as CancelablePromise,W as CheckoutServiceV1Service,Y as CompetitionServiceV1Service,$ as CorsService,V as LoyaltyServiceV1Service,K as MembershipServiceV1Service,o as OpenAPI,J as PlaySessionServiceV1Service,Q as UserServiceV1Service,oe as bookingSubType,G as bookingSubscription,w as bookingUser,D as cancellationPolicy,te as clientType,ie as directionParam,se as months,q as pendingPayment,z as playingUserResponse};
1
+ var le=Object.defineProperty,pe=Object.defineProperties;var ue=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var Z=(i,e,r)=>e in i?le(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))ce.call(e,r)&&Z(i,r,e[r]);if(X)for(var r of X(e))me.call(e,r)&&Z(i,r,e[r]);return i},ee=(i,e)=>pe(i,ue(e));var re=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(re(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(re(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var E=(i,e,r)=>new Promise((s,a)=>{var l=u=>{try{p(r.next(u))}catch(d){a(d)}},n=u=>{try{p(r.throw(u))}catch(d){a(d)}},p=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(i,e)).next())});var P=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var k=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,S,U,v,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,S,void 0);I(this,U,void 0);I(this,v,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,S,new Promise((r,s)=>{y(this,U,r),y(this,v,s);let a=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,U))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,v))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,S).then(e,r)}catch(e){return c(this,S).catch(e)}finally(e){return c(this,S).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,v))==null||e.call(this,new k("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,S=new WeakMap,U=new WeakMap,v=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var oe=(p=>(p.LIMIT_REACHED="LIMIT_REACHED",p.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",p.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",p.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",p.COURT_GROUP="COURT_GROUP",p.TOO_SOON="TOO_SOON",p.MEMBERS_ONLY="MEMBERS_ONLY",p))(oe||{});var G;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(G||(G={}));var te=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(te||{});var D;(e=>{let i;(u=>(u.UNAPPROVED="UNAPPROVED",u.UNCONFIRMED="UNCONFIRMED",u.DECLINED="DECLINED",u.PARTICIPANT="PARTICIPANT",u.CO_BOOKER="CO-BOOKER",u.OWNER="OWNER"))(i=e.status||(e.status={}))})(D||(D={}));var w;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(w||(w={}));var ie=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ie||{});var se=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(se||{});var ae=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(ae||{});var q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var N=i=>i!=null,O=i=>typeof i=="string",B=i=>O(i)&&i!=="",_=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),ne=i=>i instanceof FormData,de=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},fe=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{N(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{s(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},ye=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${fe(e.query)}`:a},be=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{O(a)||_(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>N(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},x=(i,e)=>E(void 0,null,function*(){return typeof e=="function"?e(i):e}),ge=(i,e)=>E(void 0,null,function*(){let r=yield x(e,i.TOKEN),s=yield x(e,i.USERNAME),a=yield x(e,i.PASSWORD),l=yield x(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([p,u])=>N(u)).reduce((p,[u,d])=>ee(R({},p),{[u]:String(d)}),{});if(B(r)&&(n.Authorization=`Bearer ${r}`),B(s)&&B(a)){let p=de(`${s}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:_(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":O(e.body)?n["Content-Type"]="text/plain":ne(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),he=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):O(i.body)||_(i.body)||ne(i.body)?i.body:JSON.stringify(i.body)},Ie=(i,e,r,s,a,l,n)=>E(void 0,null,function*(){let p=new AbortController,u={headers:l,body:s!=null?s:a,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Te=(i,e)=>{if(e){let r=i.headers.get(e);if(O(r))return r}},Se=i=>E(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Ee=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new P(i,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",p=(l=e.statusText)!=null?l:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},t=(i,e)=>new A((r,s,a)=>E(void 0,null,function*(){try{let l=ye(i,e),n=be(e),p=he(e),u=yield ge(i,e);if(!a.isCancelled){let d=yield Ie(i,e,l,p,n,u,a),f=yield Se(d),C=Te(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:C!=null?C:f};Ee(e,m),r(m.body)}}catch(l){s(l)}}));var L=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static listActivities(e=!1,r=!1,s,a,l,n,p,u,d,f,C,m=10){return t(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:d,endDate:f,offset:C,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return t(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return t(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,p,u,d=10){return t(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return t(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return t(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return t(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getActivityOccasionPrice(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,p){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return t(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return t(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return t(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return t(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return t(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return t(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return t(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return t(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return t(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserBookingRestrictions(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return t(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return t(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return t(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return t(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return t(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return t(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return t(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return t(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return t(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getAvailabilityWithPrice(e,r,s,a,l,n,p){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserBookingRestrictions(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var Y=class{static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static options(e){return t(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var $=class{static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var V=class{static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return t(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var J=class{static getPlaySessionById(e){return t(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return t(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return t(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return t(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return t(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return t(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessions(e,r=10,s="UPCOMING"){return t(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s,a=10){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,limit:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var Q=class{static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return t(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return t(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};export{L as ActivityServiceV1Service,M as AnonymousService,j as ApiClientServiceV1Service,P as ApiError,H as AuthorizedService,F as BookingServiceV1Service,k as CancelError,A as CancelablePromise,Y as CheckoutServiceV1Service,W as CompetitionServiceV1Service,K as CorsService,$ as LoyaltyServiceV1Service,V as MembershipServiceV1Service,o as OpenAPI,J as PlaySessionServiceV1Service,Q as UserServiceV1Service,oe as bookingRestriction,te as bookingSubType,G as bookingSubscription,D as bookingUser,w as cancellationPolicy,ie as clientType,se as directionParam,ae as months,q as pendingPayment,z as playingUserResponse};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchi/api",
3
- "version": "0.20240617.1",
3
+ "version": "0.20240620.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.mjs",