@matchi/api 0.20250305.1 → 0.20250305.2
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/main/index.d.mts +2 -4
- package/dist/main/index.d.ts +2 -4
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -2306,11 +2306,10 @@ declare class AuthorizedService {
|
|
|
2306
2306
|
* @param endDateTime String end DateTime (UTC)
|
|
2307
2307
|
* @param sportIds String ID of the sport
|
|
2308
2308
|
* @param availableSpots Number of minimum available spots (0 for returning only full matches)
|
|
2309
|
-
* @param limit Maximum number of items to return.
|
|
2310
2309
|
* @returns playSessionResponse List of open play session available for the user
|
|
2311
2310
|
* @throws ApiError
|
|
2312
2311
|
*/
|
|
2313
|
-
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number
|
|
2312
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number): CancelablePromise<playSessionResponse>;
|
|
2314
2313
|
/**
|
|
2315
2314
|
* Add user to waitlist on occasion with id
|
|
2316
2315
|
* @param id Activity occasion id
|
|
@@ -2783,11 +2782,10 @@ declare class PlaySessionServiceV1Service {
|
|
|
2783
2782
|
* @param endDateTime String end DateTime (UTC)
|
|
2784
2783
|
* @param sportIds String ID of the sport
|
|
2785
2784
|
* @param availableSpots Number of minimum available spots (0 for returning only full matches)
|
|
2786
|
-
* @param limit Maximum number of items to return.
|
|
2787
2785
|
* @returns playSessionResponse List of open play session available for the user
|
|
2788
2786
|
* @throws ApiError
|
|
2789
2787
|
*/
|
|
2790
|
-
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number
|
|
2788
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number): CancelablePromise<playSessionResponse>;
|
|
2791
2789
|
}
|
|
2792
2790
|
|
|
2793
2791
|
declare class UserServiceV1Service {
|
package/dist/main/index.d.ts
CHANGED
|
@@ -2306,11 +2306,10 @@ declare class AuthorizedService {
|
|
|
2306
2306
|
* @param endDateTime String end DateTime (UTC)
|
|
2307
2307
|
* @param sportIds String ID of the sport
|
|
2308
2308
|
* @param availableSpots Number of minimum available spots (0 for returning only full matches)
|
|
2309
|
-
* @param limit Maximum number of items to return.
|
|
2310
2309
|
* @returns playSessionResponse List of open play session available for the user
|
|
2311
2310
|
* @throws ApiError
|
|
2312
2311
|
*/
|
|
2313
|
-
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number
|
|
2312
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number): CancelablePromise<playSessionResponse>;
|
|
2314
2313
|
/**
|
|
2315
2314
|
* Add user to waitlist on occasion with id
|
|
2316
2315
|
* @param id Activity occasion id
|
|
@@ -2783,11 +2782,10 @@ declare class PlaySessionServiceV1Service {
|
|
|
2783
2782
|
* @param endDateTime String end DateTime (UTC)
|
|
2784
2783
|
* @param sportIds String ID of the sport
|
|
2785
2784
|
* @param availableSpots Number of minimum available spots (0 for returning only full matches)
|
|
2786
|
-
* @param limit Maximum number of items to return.
|
|
2787
2785
|
* @returns playSessionResponse List of open play session available for the user
|
|
2788
2786
|
* @throws ApiError
|
|
2789
2787
|
*/
|
|
2790
|
-
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number
|
|
2788
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp, sportIds?: Array<string>, availableSpots?: number): CancelablePromise<playSessionResponse>;
|
|
2791
2789
|
}
|
|
2792
2790
|
|
|
2793
2791
|
declare class UserServiceV1Service {
|
package/dist/main/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,lr=Object.defineProperties,pr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var he=(t,e,r)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,u=(t,e)=>{for(var r in e||(e={}))Te.call(e,r)&&he(t,r,e[r]);if(L)for(var r of L(e))Me.call(e,r)&&he(t,r,e[r]);return t},d=(t,e)=>lr(t,ur(e));var je=(t,e)=>{var r={};for(var o in t)Te.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&L)for(var o of L(t))e.indexOf(o)<0&&Me.call(t,o)&&(r[o]=t[o]);return r};var Ie=(t,e)=>{for(var r in e)F(t,r,{get:e[r],enumerable:!0})},dr=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cr(e))!Te.call(t,i)&&i!==r&&F(t,i,{get:()=>e[i],enumerable:!(o=pr(e,i))||o.enumerable});return t};var mr=t=>dr(F({},"__esModule",{value:!0}),t);var He=(t,e,r)=>(he(t,typeof e!="symbol"?e+"":e,r),r),Ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Ve(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(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)},h=(t,e,r,o)=>(Ve(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var b=(t,e,r)=>new Promise((o,i)=>{var l=c=>{try{p(r.next(c))}catch(y){i(y)}},n=c=>{try{p(r.throw(c))}catch(y){i(y)}},p=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,n);p((r=r.apply(t,e)).next())});var $r={};Ie($r,{ActivityServiceV1Service:()=>Z,AnonymousService:()=>ee,ApiClientServiceV1Service:()=>re,ApiError:()=>R,AuthorizedService:()=>te,BookingServiceV1Service:()=>oe,CancelError:()=>w,CancelablePromise:()=>U,CheckoutServiceV1Service:()=>ie,CompetitionServiceV1Service:()=>se,CorsService:()=>ae,LoyaltyServiceV1Service:()=>ne,MembershipServiceV1Service:()=>le,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>pe,UserServiceV1Service:()=>ue,access:()=>Ee,bookingRestriction:()=>Ce,bookingSubType:()=>Oe,bookingSubscription:()=>_,bookingUserStatus:()=>Pe,cancellationPolicy:()=>M,chat:()=>j,chatTarget:()=>Se,clientType:()=>ve,createChatResponse:()=>H,directionParam:()=>Re,months:()=>Ae,notificationChatGroup:()=>V,notificationEntity:()=>W,pendingPayment:()=>K,playSessionSettings:()=>Y,playSessionUser:()=>Q,playerStatusParam:()=>ke,playingUserResponse:()=>$,userChatStatusParam:()=>xe,userPunchCard:()=>J,v1:()=>be});module.exports=mr($r);var R=class extends Error{constructor(r,o,i){super(i);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var w=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,C,T,S,A,G,x,U=class{constructor(e){P(this,E,void 0);P(this,C,void 0);P(this,T,void 0);P(this,S,void 0);P(this,A,void 0);P(this,G,void 0);P(this,x,void 0);h(this,E,!1),h(this,C,!1),h(this,T,!1),h(this,S,[]),h(this,A,new Promise((r,o)=>{h(this,G,r),h(this,x,o);let i=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,E,!0),(c=f(this,G))==null||c.call(this,p))},l=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,C,!0),(c=f(this,x))==null||c.call(this,p))},n=p=>{f(this,E)||f(this,C)||f(this,T)||f(this,S).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,C)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,T)}),e(i,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,A).then(e,r)}catch(e){return f(this,A).catch(e)}finally(e){return f(this,A).finally(e)}cancel(){var e;if(!(f(this,E)||f(this,C)||f(this,T))){if(h(this,T,!0),f(this,S).length)try{for(let r of f(this,S))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,S).length=0,(e=f(this,x))==null||e.call(this,new w("Request aborted"))}}get isCancelled(){return f(this,T)}};E=new WeakMap,C=new WeakMap,T=new WeakMap,S=new WeakMap,A=new WeakMap,G=new WeakMap,x=new WeakMap;var s={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 Ee=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(Ee||{});var Ce=(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))(Ce||{});var _;(e=>{let t;(g=>(g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY",g.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(_||(_={}));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 Pe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Pe||{});var M;(e=>{let t;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(M||(M={}));var j;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(j||(j={}));var Se=(e=>(e.PLAYSESSION="playsession",e))(Se||{});var ve=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ve||{});var H;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(H||(H={}));var Re=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Re||{});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 V;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(V||(V={}));var W;(e=>{let t;(i=>(i.GROUP="group",i.USER="user"))(t=e.entityType||(e.entityType={}))})(W||(W={}));var K;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(K||(K={}));var ke=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(ke||{});var $;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})($||($={}));var Y;(e=>{let t;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Y||(Y={}));var Q;(e=>{let t;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Q||(Q={}));var xe=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(xe||{});var J;(e=>{let t;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(J||(J={}));var De=t=>t!=null,B=t=>typeof t=="string",Ue=t=>B(t)&&t!=="",we=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]),We=t=>t instanceof FormData,fr=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},yr=t=>{let e=[],r=(i,l)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(l))}`)},o=(i,l)=>{De(l)&&(Array.isArray(l)?l.forEach(n=>{o(i,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{o(`${i}[${n}]`,p)}):r(i,l))};return Object.entries(t).forEach(([i,l])=>{o(i,l)}),e.length>0?`?${e.join("&")}`:""},gr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),i=`${t.BASE}${o}`;return e.query?`${i}${yr(e.query)}`:i},br=t=>{if(t.formData){let e=new FormData,r=(o,i)=>{B(i)||we(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(t.formData).filter(([o,i])=>De(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(l=>r(o,l)):r(o,i)}),e}},X=(t,e)=>b(void 0,null,function*(){return typeof e=="function"?e(t):e}),hr=(t,e)=>b(void 0,null,function*(){let r=yield X(e,t.TOKEN),o=yield X(e,t.USERNAME),i=yield X(e,t.PASSWORD),l=yield X(e,t.HEADERS),n=Object.entries(u(u({Accept:"application/json"},l),e.headers)).filter(([p,c])=>De(c)).reduce((p,[c,y])=>d(u({},p),{[c]:String(y)}),{});if(Ue(r)&&(n.Authorization=`Bearer ${r}`),Ue(o)&&Ue(i)){let p=fr(`${o}:${i}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:we(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":B(e.body)?n["Content-Type"]="text/plain":We(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Tr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):B(t.body)||we(t.body)||We(t.body)?t.body:JSON.stringify(t.body)},Ir=(t,e,r,o,i,l,n)=>b(void 0,null,function*(){let p=new AbortController,c={headers:l,body:o!=null?o:i,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(c.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,c)}),Er=(t,e)=>{if(e){let r=t.headers.get(e);if(B(r))return r}},Cr=t=>b(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(i=>e.toLowerCase().startsWith(i))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Or=(t,e)=>{var i,l;let o=u({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(o)throw new R(t,e,o);if(!e.ok){let n=(i=e.status)!=null?i:"unknown",p=(l=e.statusText)!=null?l:"unknown",c=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new R(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${c}`)}},a=(t,e)=>new U((r,o,i)=>b(void 0,null,function*(){try{let l=gr(t,e),n=br(e),p=Tr(e),c=yield hr(t,e);if(!i.isCancelled){let y=yield Ir(t,e,l,p,n,c,i),g=yield Cr(y),v=Er(y,e.responseHeader),m={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:v!=null?v:g};Or(e,m),r(m.body)}}catch(l){o(l)}}));var Z=class{static getAdminActivityOccasions(e,r,o,i,l,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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 ee=class{static listActivities(e=!1,r=!1,o,i,l,n,p,c,y,g,v,m=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:i,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:c,startDate:y,endDate:g,offset:v,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 a(s,{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,o,i,l){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:i,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 a(s,{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,o,i,l,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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 a(s,{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,o,i,l,n,p,c,y=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:i,longitude:l,radius:n,resourceTypes:p,offset:c,limit:y},errors:{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 re=class{static getApiClientList(e,r=10){return a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 a(s,{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 te=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-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 getActivityOccasionPrice(e,r){return a(s,{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 a(s,{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,o,i,l,n,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:i},errors:{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 a(s,{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 a(s,{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 listChats(e="ALL",r,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",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 listUserFavourites(){return a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o},errors:{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{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,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{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 a(s,{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 a(s,{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,o,i,l,n=10){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots: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 addWaitlistOccasion(e){return a(s,{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 a(s,{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 listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 a(s,{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 oe=class{static getAvailabilityWithPrice(e,r,o,i,l,n,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},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 ie=class{static getCheckout(e){return a(s,{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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 se=class{static updateCompetitionAccount(e){return a(s,{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 ae=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var ne=class{static createPromoCode(e){return a(s,{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 le=class{static createMembership(e){return a(s,{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 a(s,{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 pe=class{static getPlaySessionById(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,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 a(s,{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 a(s,{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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{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,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{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 a(s,{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 a(s,{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,o,i,l,n=10){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots: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 ue=class{static getUserProfile(e){return a(s,{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 listChats(e="ALL",r,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",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 getRelationToFriend(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var be={};Ie(be,{addBooking:()=>me,createFacilityOfferOrder:()=>ye,deleteBooking:()=>qe,findBookingById:()=>ze,findBookings:()=>de,listFacilityOffers:()=>fe,queries:()=>ge,updateBooking:()=>Ne});var Pr=(t,e)=>b(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Rr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Ar=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ye=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(c=>encodeURIComponent(c))).join(Rr(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=vr(o),n=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):ce({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+n:n},ce=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Qe=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let p=[];Object.entries(i).forEach(([y,g])=>{p=[...p,y,t?g:encodeURIComponent(g)]});let c=p.join(",");switch(o){case"form":return`${r}=${c}`;case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;default:return c}}let l=Ar(o),n=Object.entries(i).map(([p,c])=>ce({allowReserved:t,name:o==="deepObject"?`${r}[${p}]`:p,value:c})).join(l);return o==="label"||o==="matrix"?l+n:n},kr=/\{[^{}]+\}/g,xr=({path:t,url:e})=>{let r=e,o=e.match(kr);if(o)for(let i of o){let l=!1,n=i.substring(1,i.length-1),p="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),p="label"):n.startsWith(";")&&(n=n.substring(1),p="matrix");let c=t[n];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,Ye({explode:l,name:n,style:p,value:c}));continue}if(typeof c=="object"){r=r.replace(i,Qe({explode:l,name:n,style:p,value:c}));continue}if(p==="matrix"){r=r.replace(i,`;${ce({name:n,value:c})}`);continue}let y=encodeURIComponent(p==="label"?`.${c}`:c);r=r.replace(i,y)}return r},Je=({allowReserved:t,array:e,object:r}={})=>o=>{let i=[];if(o&&typeof o=="object")for(let l in o){let n=o[l];if(n!=null){if(Array.isArray(n)){i=[...i,Ye(u({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){i=[...i,Qe(u({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}i=[...i,ce({allowReserved:t,name:l,value:n})]}}return i.join("&")},Ur=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Dr=r=>b(void 0,null,function*(){var o=r,{security:t}=o,e=je(o,["security"]);var i;for(let l of t){let n=yield Pr(l,e.auth);if(!n)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=n;break;case"header":default:e.headers.set(p,n);break}return}}),Ke=t=>wr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Je(t.querySerializer),url:t.url}),wr=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,n=(t!=null?t:"")+l;e&&(n=xr({path:e,url:n}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},$e=(t,e)=>{var o;let r=u(u({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Xe(t.headers,e.headers),r},Xe=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let n of l)e.append(i,n);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},Ge=class{constructor(){He(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},Gr=()=>({error:new Ge,request:new Ge,response:new Ge}),Br=Je({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qr={"Content-Type":"application/json"},Be=(t={})=>u(d(u({},Sr),{headers:qr,parseAs:"auto",querySerializer:Br}),t),Ze=(t={})=>{let e=$e(Be(),t),r=()=>u({},e),o=n=>(e=$e(e,n),r()),i=Gr(),l=n=>b(void 0,null,function*(){var Le,Fe,_e;let p=d(u(u({},e),n),{fetch:(Fe=(Le=n.fetch)!=null?Le:e.fetch)!=null?Fe:globalThis.fetch,headers:Xe(e.headers,n.headers)});p.security&&(yield Dr(d(u({},p),{security:p.security}))),p.body&&p.bodySerializer&&(p.body=p.bodySerializer(p.body)),(p.body===void 0||p.body==="")&&p.headers.delete("Content-Type");let c=Ke(p),y=u({redirect:"follow"},p),g=new Request(c,y);for(let I of i.request._fns)g=yield I(g,p);let v=p.fetch,m=yield v(g);for(let I of i.response._fns)m=yield I(m,g,p);let q={request:g,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return u({data:{}},q);let I=(_e=p.parseAs==="auto"?Ur(m.headers.get("Content-Type")):p.parseAs)!=null?_e:"json";if(I==="stream")return u({data:m.body},q);let N=yield m[I]();return I==="json"&&(p.responseValidator&&(yield p.responseValidator(N)),p.responseTransformer&&(N=yield p.responseTransformer(N))),u({data:N},q)}let z=yield m.text();try{z=JSON.parse(z)}catch(I){}let D=z;for(let I of i.error._fns)D=yield I(z,m,g,p);if(D=D||{},p.throwOnError)throw D;return u({error:D},q)});return{buildUrl:Ke,connect:n=>l(d(u({},n),{method:"CONNECT"})),delete:n=>l(d(u({},n),{method:"DELETE"})),get:n=>l(d(u({},n),{method:"GET"})),getConfig:r,head:n=>l(d(u({},n),{method:"HEAD"})),interceptors:i,options:n=>l(d(u({},n),{method:"OPTIONS"})),patch:n=>l(d(u({},n),{method:"PATCH"})),post:n=>l(d(u({},n),{method:"POST"})),put:n=>l(d(u({},n),{method:"PUT"})),request:l,setConfig:o,trace:n=>l(d(u({},n),{method:"TRACE"}))}};var O=Ze(Be({baseUrl:"https://api.matchi.com/v1"}));var de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:O).get(u({url:"/bookings"},t))},me=t=>{var e;return((e=t.client)!=null?e:O).post(d(u({url:"/bookings"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:O).delete(u({url:"/bookings/{bookingId}"},t))},ze=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/bookings/{bookingId}"},t))},Ne=t=>{var e;return((e=t.client)!=null?e:O).put(d(u({url:"/bookings/{bookingId}"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},fe=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/facilities/{facility_id}/offers"},t))},ye=t=>{var e;return((e=t.client)!=null?e:O).post(u({url:"/facilities/{facility_id}/offers/{offer_id}"},t))};var ge={};Ie(ge,{addBookingMutation:()=>Fr,addBookingOptions:()=>Lr,addBookingQueryKey:()=>or,createFacilityOfferOrderMutation:()=>Kr,createFacilityOfferOrderOptions:()=>Wr,createFacilityOfferOrderQueryKey:()=>nr,deleteBookingMutation:()=>_r,findBookingByIdOptions:()=>Mr,findBookingByIdQueryKey:()=>ir,findBookingsInfiniteOptions:()=>Nr,findBookingsInfiniteQueryKey:()=>tr,findBookingsOptions:()=>zr,findBookingsQueryKey:()=>er,listFacilityOffersInfiniteOptions:()=>Vr,listFacilityOffersInfiniteQueryKey:()=>ar,listFacilityOffersOptions:()=>Hr,listFacilityOffersQueryKey:()=>sr,updateBookingMutation:()=>jr});var k=(t,e,r)=>{var i;let o={_id:t,baseUrl:((i=e==null?void 0:e.client)!=null?i:O).getConfig().baseUrl};return r&&(o._infinite=r),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},er=t=>k("findBookings",t),zr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield de(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:er(t)}),rr=(t,e)=>{let r=t[0];return e.body&&(r.body=u(u({},t[0].body),e.body)),e.headers&&(r.headers=u(u({},t[0].headers),e.headers)),e.path&&(r.path=u(u({},t[0].path),e.path)),e.query&&(r.query=u(u({},t[0].query),e.query)),r},tr=t=>k("findBookings",t,!0),Nr=t=>({queryFn:i=>b(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield de(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:tr(t)}),or=t=>k("addBooking",t),Lr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield me(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:or(t)}),Fr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield me(d(u(u({},t),r),{throwOnError:!0}));return o})}),_r=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield qe(d(u(u({},t),r),{throwOnError:!0}));return o})}),ir=t=>k("findBookingById",t),Mr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ze(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ir(t)}),jr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Ne(d(u(u({},t),r),{throwOnError:!0}));return o})}),sr=t=>k("listFacilityOffers",t),Hr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield fe(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:sr(t)}),ar=t=>k("listFacilityOffers",t,!0),Vr=t=>({queryFn:i=>b(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield fe(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:ar(t)}),nr=t=>k("createFacilityOfferOrder",t),Wr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ye(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:nr(t)}),Kr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield ye(d(u(u({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,access,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatTarget,clientType,createChatResponse,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userPunchCard,v1});
|
|
1
|
+
"use strict";var F=Object.defineProperty,lr=Object.defineProperties,pr=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var he=(t,e,r)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,u=(t,e)=>{for(var r in e||(e={}))Te.call(e,r)&&he(t,r,e[r]);if(L)for(var r of L(e))Me.call(e,r)&&he(t,r,e[r]);return t},d=(t,e)=>lr(t,ur(e));var je=(t,e)=>{var r={};for(var o in t)Te.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&L)for(var o of L(t))e.indexOf(o)<0&&Me.call(t,o)&&(r[o]=t[o]);return r};var Ie=(t,e)=>{for(var r in e)F(t,r,{get:e[r],enumerable:!0})},dr=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cr(e))!Te.call(t,i)&&i!==r&&F(t,i,{get:()=>e[i],enumerable:!(o=pr(e,i))||o.enumerable});return t};var mr=t=>dr(F({},"__esModule",{value:!0}),t);var He=(t,e,r)=>(he(t,typeof e!="symbol"?e+"":e,r),r),Ve=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Ve(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(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)},h=(t,e,r,o)=>(Ve(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var b=(t,e,r)=>new Promise((o,i)=>{var l=c=>{try{p(r.next(c))}catch(y){i(y)}},n=c=>{try{p(r.throw(c))}catch(y){i(y)}},p=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,n);p((r=r.apply(t,e)).next())});var $r={};Ie($r,{ActivityServiceV1Service:()=>Z,AnonymousService:()=>ee,ApiClientServiceV1Service:()=>re,ApiError:()=>R,AuthorizedService:()=>te,BookingServiceV1Service:()=>oe,CancelError:()=>w,CancelablePromise:()=>U,CheckoutServiceV1Service:()=>ie,CompetitionServiceV1Service:()=>se,CorsService:()=>ae,LoyaltyServiceV1Service:()=>ne,MembershipServiceV1Service:()=>le,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>pe,UserServiceV1Service:()=>ue,access:()=>Ee,bookingRestriction:()=>Ce,bookingSubType:()=>Oe,bookingSubscription:()=>_,bookingUserStatus:()=>Pe,cancellationPolicy:()=>M,chat:()=>j,chatTarget:()=>Se,clientType:()=>ve,createChatResponse:()=>H,directionParam:()=>Re,months:()=>Ae,notificationChatGroup:()=>V,notificationEntity:()=>W,pendingPayment:()=>K,playSessionSettings:()=>Y,playSessionUser:()=>Q,playerStatusParam:()=>ke,playingUserResponse:()=>$,userChatStatusParam:()=>xe,userPunchCard:()=>J,v1:()=>be});module.exports=mr($r);var R=class extends Error{constructor(r,o,i){super(i);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var w=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,C,T,S,A,G,x,U=class{constructor(e){P(this,E,void 0);P(this,C,void 0);P(this,T,void 0);P(this,S,void 0);P(this,A,void 0);P(this,G,void 0);P(this,x,void 0);h(this,E,!1),h(this,C,!1),h(this,T,!1),h(this,S,[]),h(this,A,new Promise((r,o)=>{h(this,G,r),h(this,x,o);let i=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,E,!0),(c=f(this,G))==null||c.call(this,p))},l=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,C,!0),(c=f(this,x))==null||c.call(this,p))},n=p=>{f(this,E)||f(this,C)||f(this,T)||f(this,S).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,C)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,T)}),e(i,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,A).then(e,r)}catch(e){return f(this,A).catch(e)}finally(e){return f(this,A).finally(e)}cancel(){var e;if(!(f(this,E)||f(this,C)||f(this,T))){if(h(this,T,!0),f(this,S).length)try{for(let r of f(this,S))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,S).length=0,(e=f(this,x))==null||e.call(this,new w("Request aborted"))}}get isCancelled(){return f(this,T)}};E=new WeakMap,C=new WeakMap,T=new WeakMap,S=new WeakMap,A=new WeakMap,G=new WeakMap,x=new WeakMap;var s={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 Ee=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(Ee||{});var Ce=(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))(Ce||{});var _;(e=>{let t;(g=>(g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY",g.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(_||(_={}));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 Pe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Pe||{});var M;(e=>{let t;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(M||(M={}));var j;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(j||(j={}));var Se=(e=>(e.PLAYSESSION="playsession",e))(Se||{});var ve=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ve||{});var H;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(H||(H={}));var Re=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Re||{});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 V;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(V||(V={}));var W;(e=>{let t;(i=>(i.GROUP="group",i.USER="user"))(t=e.entityType||(e.entityType={}))})(W||(W={}));var K;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(K||(K={}));var ke=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(ke||{});var $;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})($||($={}));var Y;(e=>{let t;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Y||(Y={}));var Q;(e=>{let t;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Q||(Q={}));var xe=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(xe||{});var J;(e=>{let t;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(J||(J={}));var De=t=>t!=null,B=t=>typeof t=="string",Ue=t=>B(t)&&t!=="",we=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]),We=t=>t instanceof FormData,fr=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},yr=t=>{let e=[],r=(i,l)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(l))}`)},o=(i,l)=>{De(l)&&(Array.isArray(l)?l.forEach(n=>{o(i,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{o(`${i}[${n}]`,p)}):r(i,l))};return Object.entries(t).forEach(([i,l])=>{o(i,l)}),e.length>0?`?${e.join("&")}`:""},gr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),i=`${t.BASE}${o}`;return e.query?`${i}${yr(e.query)}`:i},br=t=>{if(t.formData){let e=new FormData,r=(o,i)=>{B(i)||we(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(t.formData).filter(([o,i])=>De(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(l=>r(o,l)):r(o,i)}),e}},X=(t,e)=>b(void 0,null,function*(){return typeof e=="function"?e(t):e}),hr=(t,e)=>b(void 0,null,function*(){let r=yield X(e,t.TOKEN),o=yield X(e,t.USERNAME),i=yield X(e,t.PASSWORD),l=yield X(e,t.HEADERS),n=Object.entries(u(u({Accept:"application/json"},l),e.headers)).filter(([p,c])=>De(c)).reduce((p,[c,y])=>d(u({},p),{[c]:String(y)}),{});if(Ue(r)&&(n.Authorization=`Bearer ${r}`),Ue(o)&&Ue(i)){let p=fr(`${o}:${i}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:we(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":B(e.body)?n["Content-Type"]="text/plain":We(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Tr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):B(t.body)||we(t.body)||We(t.body)?t.body:JSON.stringify(t.body)},Ir=(t,e,r,o,i,l,n)=>b(void 0,null,function*(){let p=new AbortController,c={headers:l,body:o!=null?o:i,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(c.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,c)}),Er=(t,e)=>{if(e){let r=t.headers.get(e);if(B(r))return r}},Cr=t=>b(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(i=>e.toLowerCase().startsWith(i))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Or=(t,e)=>{var i,l;let o=u({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(o)throw new R(t,e,o);if(!e.ok){let n=(i=e.status)!=null?i:"unknown",p=(l=e.statusText)!=null?l:"unknown",c=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new R(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${c}`)}},a=(t,e)=>new U((r,o,i)=>b(void 0,null,function*(){try{let l=gr(t,e),n=br(e),p=Tr(e),c=yield hr(t,e);if(!i.isCancelled){let y=yield Ir(t,e,l,p,n,c,i),g=yield Cr(y),v=Er(y,e.responseHeader),m={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:v!=null?v:g};Or(e,m),r(m.body)}}catch(l){o(l)}}));var Z=class{static getAdminActivityOccasions(e,r,o,i,l,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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 ee=class{static listActivities(e=!1,r=!1,o,i,l,n,p,c,y,g,v,m=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:i,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:c,startDate:y,endDate:g,offset:v,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 a(s,{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,o,i,l){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:i,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 a(s,{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,o,i,l,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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 a(s,{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,o,i,l,n,p,c,y=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:i,longitude:l,radius:n,resourceTypes:p,offset:c,limit:y},errors:{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 re=class{static getApiClientList(e,r=10){return a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 a(s,{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 te=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-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 getActivityOccasionPrice(e,r){return a(s,{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 a(s,{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,o,i,l,n,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:i},errors:{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 a(s,{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 a(s,{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 listChats(e="ALL",r,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",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 listUserFavourites(){return a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o},errors:{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{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,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{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 a(s,{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 a(s,{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,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots: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 addWaitlistOccasion(e){return a(s,{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 a(s,{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 listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{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 a(s,{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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 a(s,{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 oe=class{static getAvailabilityWithPrice(e,r,o,i,l,n,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},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 ie=class{static getCheckout(e){return a(s,{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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 se=class{static updateCompetitionAccount(e){return a(s,{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 ae=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var ne=class{static createPromoCode(e){return a(s,{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 le=class{static createMembership(e){return a(s,{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 a(s,{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 pe=class{static getPlaySessionById(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{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,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,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 a(s,{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 a(s,{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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{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,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{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 a(s,{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 a(s,{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,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots: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."}})}};var ue=class{static getUserProfile(e){return a(s,{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 listChats(e="ALL",r,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",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 getRelationToFriend(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{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 a(s,{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."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var be={};Ie(be,{addBooking:()=>me,createFacilityOfferOrder:()=>ye,deleteBooking:()=>qe,findBookingById:()=>ze,findBookings:()=>de,listFacilityOffers:()=>fe,queries:()=>ge,updateBooking:()=>Ne});var Pr=(t,e)=>b(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Rr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Ar=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ye=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(c=>encodeURIComponent(c))).join(Rr(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=vr(o),n=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):ce({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+n:n},ce=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Qe=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let p=[];Object.entries(i).forEach(([y,g])=>{p=[...p,y,t?g:encodeURIComponent(g)]});let c=p.join(",");switch(o){case"form":return`${r}=${c}`;case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;default:return c}}let l=Ar(o),n=Object.entries(i).map(([p,c])=>ce({allowReserved:t,name:o==="deepObject"?`${r}[${p}]`:p,value:c})).join(l);return o==="label"||o==="matrix"?l+n:n},kr=/\{[^{}]+\}/g,xr=({path:t,url:e})=>{let r=e,o=e.match(kr);if(o)for(let i of o){let l=!1,n=i.substring(1,i.length-1),p="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),p="label"):n.startsWith(";")&&(n=n.substring(1),p="matrix");let c=t[n];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,Ye({explode:l,name:n,style:p,value:c}));continue}if(typeof c=="object"){r=r.replace(i,Qe({explode:l,name:n,style:p,value:c}));continue}if(p==="matrix"){r=r.replace(i,`;${ce({name:n,value:c})}`);continue}let y=encodeURIComponent(p==="label"?`.${c}`:c);r=r.replace(i,y)}return r},Je=({allowReserved:t,array:e,object:r}={})=>o=>{let i=[];if(o&&typeof o=="object")for(let l in o){let n=o[l];if(n!=null){if(Array.isArray(n)){i=[...i,Ye(u({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){i=[...i,Qe(u({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}i=[...i,ce({allowReserved:t,name:l,value:n})]}}return i.join("&")},Ur=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Dr=r=>b(void 0,null,function*(){var o=r,{security:t}=o,e=je(o,["security"]);var i;for(let l of t){let n=yield Pr(l,e.auth);if(!n)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=n;break;case"header":default:e.headers.set(p,n);break}return}}),Ke=t=>wr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Je(t.querySerializer),url:t.url}),wr=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,n=(t!=null?t:"")+l;e&&(n=xr({path:e,url:n}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},$e=(t,e)=>{var o;let r=u(u({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Xe(t.headers,e.headers),r},Xe=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let n of l)e.append(i,n);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},Ge=class{constructor(){He(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},Gr=()=>({error:new Ge,request:new Ge,response:new Ge}),Br=Je({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qr={"Content-Type":"application/json"},Be=(t={})=>u(d(u({},Sr),{headers:qr,parseAs:"auto",querySerializer:Br}),t),Ze=(t={})=>{let e=$e(Be(),t),r=()=>u({},e),o=n=>(e=$e(e,n),r()),i=Gr(),l=n=>b(void 0,null,function*(){var Le,Fe,_e;let p=d(u(u({},e),n),{fetch:(Fe=(Le=n.fetch)!=null?Le:e.fetch)!=null?Fe:globalThis.fetch,headers:Xe(e.headers,n.headers)});p.security&&(yield Dr(d(u({},p),{security:p.security}))),p.body&&p.bodySerializer&&(p.body=p.bodySerializer(p.body)),(p.body===void 0||p.body==="")&&p.headers.delete("Content-Type");let c=Ke(p),y=u({redirect:"follow"},p),g=new Request(c,y);for(let I of i.request._fns)g=yield I(g,p);let v=p.fetch,m=yield v(g);for(let I of i.response._fns)m=yield I(m,g,p);let q={request:g,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return u({data:{}},q);let I=(_e=p.parseAs==="auto"?Ur(m.headers.get("Content-Type")):p.parseAs)!=null?_e:"json";if(I==="stream")return u({data:m.body},q);let N=yield m[I]();return I==="json"&&(p.responseValidator&&(yield p.responseValidator(N)),p.responseTransformer&&(N=yield p.responseTransformer(N))),u({data:N},q)}let z=yield m.text();try{z=JSON.parse(z)}catch(I){}let D=z;for(let I of i.error._fns)D=yield I(z,m,g,p);if(D=D||{},p.throwOnError)throw D;return u({error:D},q)});return{buildUrl:Ke,connect:n=>l(d(u({},n),{method:"CONNECT"})),delete:n=>l(d(u({},n),{method:"DELETE"})),get:n=>l(d(u({},n),{method:"GET"})),getConfig:r,head:n=>l(d(u({},n),{method:"HEAD"})),interceptors:i,options:n=>l(d(u({},n),{method:"OPTIONS"})),patch:n=>l(d(u({},n),{method:"PATCH"})),post:n=>l(d(u({},n),{method:"POST"})),put:n=>l(d(u({},n),{method:"PUT"})),request:l,setConfig:o,trace:n=>l(d(u({},n),{method:"TRACE"}))}};var O=Ze(Be({baseUrl:"https://api.matchi.com/v1"}));var de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:O).get(u({url:"/bookings"},t))},me=t=>{var e;return((e=t.client)!=null?e:O).post(d(u({url:"/bookings"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:O).delete(u({url:"/bookings/{bookingId}"},t))},ze=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/bookings/{bookingId}"},t))},Ne=t=>{var e;return((e=t.client)!=null?e:O).put(d(u({url:"/bookings/{bookingId}"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},fe=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/facilities/{facility_id}/offers"},t))},ye=t=>{var e;return((e=t.client)!=null?e:O).post(u({url:"/facilities/{facility_id}/offers/{offer_id}"},t))};var ge={};Ie(ge,{addBookingMutation:()=>Fr,addBookingOptions:()=>Lr,addBookingQueryKey:()=>or,createFacilityOfferOrderMutation:()=>Kr,createFacilityOfferOrderOptions:()=>Wr,createFacilityOfferOrderQueryKey:()=>nr,deleteBookingMutation:()=>_r,findBookingByIdOptions:()=>Mr,findBookingByIdQueryKey:()=>ir,findBookingsInfiniteOptions:()=>Nr,findBookingsInfiniteQueryKey:()=>tr,findBookingsOptions:()=>zr,findBookingsQueryKey:()=>er,listFacilityOffersInfiniteOptions:()=>Vr,listFacilityOffersInfiniteQueryKey:()=>ar,listFacilityOffersOptions:()=>Hr,listFacilityOffersQueryKey:()=>sr,updateBookingMutation:()=>jr});var k=(t,e,r)=>{var i;let o={_id:t,baseUrl:((i=e==null?void 0:e.client)!=null?i:O).getConfig().baseUrl};return r&&(o._infinite=r),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},er=t=>k("findBookings",t),zr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield de(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:er(t)}),rr=(t,e)=>{let r=t[0];return e.body&&(r.body=u(u({},t[0].body),e.body)),e.headers&&(r.headers=u(u({},t[0].headers),e.headers)),e.path&&(r.path=u(u({},t[0].path),e.path)),e.query&&(r.query=u(u({},t[0].query),e.query)),r},tr=t=>k("findBookings",t,!0),Nr=t=>({queryFn:i=>b(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield de(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:tr(t)}),or=t=>k("addBooking",t),Lr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield me(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:or(t)}),Fr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield me(d(u(u({},t),r),{throwOnError:!0}));return o})}),_r=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield qe(d(u(u({},t),r),{throwOnError:!0}));return o})}),ir=t=>k("findBookingById",t),Mr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ze(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ir(t)}),jr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Ne(d(u(u({},t),r),{throwOnError:!0}));return o})}),sr=t=>k("listFacilityOffers",t),Hr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield fe(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:sr(t)}),ar=t=>k("listFacilityOffers",t,!0),Vr=t=>({queryFn:i=>b(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield fe(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:ar(t)}),nr=t=>k("createFacilityOfferOrder",t),Wr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ye(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:nr(t)}),Kr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield ye(d(u(u({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,access,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatTarget,clientType,createChatResponse,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userPunchCard,v1});
|
package/dist/main/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ke=Object.defineProperty,lr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable;var K=(t,e,r)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,u=(t,e)=>{for(var r in e||(e={}))xe.call(e,r)&&K(t,r,e[r]);if(N)for(var r of N(e))Ue.call(e,r)&&K(t,r,e[r]);return t},d=(t,e)=>lr(t,pr(e));var De=(t,e)=>{var r={};for(var o in t)xe.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&N)for(var o of N(t))e.indexOf(o)<0&&Ue.call(t,o)&&(r[o]=t[o]);return r};var we=(t,e)=>{for(var r in e)ke(t,r,{get:e[r],enumerable:!0})};var Ge=(t,e,r)=>(K(t,typeof e!="symbol"?e+"":e,r),r),Be=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Be(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(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)},h=(t,e,r,o)=>(Be(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var b=(t,e,r)=>new Promise((o,a)=>{var l=c=>{try{p(r.next(c))}catch(y){a(y)}},n=c=>{try{p(r.throw(c))}catch(y){a(y)}},p=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,n);p((r=r.apply(t,e)).next())});var k=class extends Error{constructor(r,o,a){super(a);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var L=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,C,T,S,R,w,x,D=class{constructor(e){P(this,E,void 0);P(this,C,void 0);P(this,T,void 0);P(this,S,void 0);P(this,R,void 0);P(this,w,void 0);P(this,x,void 0);h(this,E,!1),h(this,C,!1),h(this,T,!1),h(this,S,[]),h(this,R,new Promise((r,o)=>{h(this,w,r),h(this,x,o);let a=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,E,!0),(c=f(this,w))==null||c.call(this,p))},l=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,C,!0),(c=f(this,x))==null||c.call(this,p))},n=p=>{f(this,E)||f(this,C)||f(this,T)||f(this,S).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,C)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,T)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,R).then(e,r)}catch(e){return f(this,R).catch(e)}finally(e){return f(this,R).finally(e)}cancel(){var e;if(!(f(this,E)||f(this,C)||f(this,T))){if(h(this,T,!0),f(this,S).length)try{for(let r of f(this,S))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,S).length=0,(e=f(this,x))==null||e.call(this,new L("Request aborted"))}}get isCancelled(){return f(this,T)}};E=new WeakMap,C=new WeakMap,T=new WeakMap,S=new WeakMap,R=new WeakMap,w=new WeakMap,x=new WeakMap;var i={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 qe=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(qe||{});var ze=(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))(ze||{});var $;(e=>{let t;(g=>(g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY",g.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})($||($={}));var Ne=(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))(Ne||{});var Le=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Le||{});var Y;(e=>{let t;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(Y||(Y={}));var Q;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Q||(Q={}));var Fe=(e=>(e.PLAYSESSION="playsession",e))(Fe||{});var _e=(r=>(r.WIDGET="WIDGET",r.API="API",r))(_e||{});var J;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(J||(J={}));var Me=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Me||{});var je=(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))(je||{});var X;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(X||(X={}));var Z;(e=>{let t;(a=>(a.GROUP="group",a.USER="user"))(t=e.entityType||(e.entityType={}))})(Z||(Z={}));var ee;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(ee||(ee={}));var He=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(He||{});var re;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(re||(re={}));var te;(e=>{let t;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(te||(te={}));var oe;(e=>{let t;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(oe||(oe={}));var Ve=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(Ve||{});var ie;(e=>{let t;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ie||(ie={}));var ae=t=>t!=null,G=t=>typeof t=="string",se=t=>G(t)&&t!=="",ne=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]),We=t=>t instanceof FormData,ur=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},cr=t=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},o=(a,l)=>{ae(l)&&(Array.isArray(l)?l.forEach(n=>{o(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{o(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(t).forEach(([a,l])=>{o(a,l)}),e.length>0?`?${e.join("&")}`:""},dr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${t.BASE}${o}`;return e.query?`${a}${cr(e.query)}`:a},mr=t=>{if(t.formData){let e=new FormData,r=(o,a)=>{G(a)||ne(a)?e.append(o,a):e.append(o,JSON.stringify(a))};return Object.entries(t.formData).filter(([o,a])=>ae(a)).forEach(([o,a])=>{Array.isArray(a)?a.forEach(l=>r(o,l)):r(o,a)}),e}},F=(t,e)=>b(void 0,null,function*(){return typeof e=="function"?e(t):e}),fr=(t,e)=>b(void 0,null,function*(){let r=yield F(e,t.TOKEN),o=yield F(e,t.USERNAME),a=yield F(e,t.PASSWORD),l=yield F(e,t.HEADERS),n=Object.entries(u(u({Accept:"application/json"},l),e.headers)).filter(([p,c])=>ae(c)).reduce((p,[c,y])=>d(u({},p),{[c]:String(y)}),{});if(se(r)&&(n.Authorization=`Bearer ${r}`),se(o)&&se(a)){let p=ur(`${o}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:ne(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":G(e.body)?n["Content-Type"]="text/plain":We(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),yr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):G(t.body)||ne(t.body)||We(t.body)?t.body:JSON.stringify(t.body)},gr=(t,e,r,o,a,l,n)=>b(void 0,null,function*(){let p=new AbortController,c={headers:l,body:o!=null?o:a,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(c.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,c)}),br=(t,e)=>{if(e){let r=t.headers.get(e);if(G(r))return r}},hr=t=>b(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)}}),Tr=(t,e)=>{var a,l;let o=u({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(o)throw new k(t,e,o);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",p=(l=e.statusText)!=null?l:"unknown",c=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new k(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${c}`)}},s=(t,e)=>new D((r,o,a)=>b(void 0,null,function*(){try{let l=dr(t,e),n=mr(e),p=yr(e),c=yield fr(t,e);if(!a.isCancelled){let y=yield gr(t,e,l,p,n,c,a),g=yield hr(y),v=br(y,e.responseHeader),m={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:v!=null?v:g};Tr(e,m),r(m.body)}}catch(l){o(l)}}));var le=class{static getAdminActivityOccasions(e,r,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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 pe=class{static listActivities(e=!1,r=!1,o,a,l,n,p,c,y,g,v,m=10){return s(i,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:c,startDate:y,endDate:g,offset:v,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 s(i,{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,o,a,l){return s(i,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,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 s(i,{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,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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 s(i,{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,o,a,l,n,p,c,y=10){return s(i,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:c,limit:y},errors:{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 ue=class{static getApiClientList(e,r=10){return s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 s(i,{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 ce=class{static getActivityOccasionForUser(e){return s(i,{method:"GET",url:"/activities/user-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 getActivityOccasionPrice(e,r){return s(i,{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 s(i,{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,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 listAvailabilityEndTimesWithRestrictions(e,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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,o,a){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,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 s(i,{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 s(i,{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 listChats(e="ALL",r,o=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return s(i,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return s(i,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return s(i,{method:"PUT",url:"/users/profile",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 listUserFavourites(){return s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o},errors:{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{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,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(i,{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 s(i,{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,o,a,l,n=10){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:a,availableSpots: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 addWaitlistOccasion(e){return s(i,{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 s(i,{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 listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 s(i,{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 de=class{static getAvailabilityWithPrice(e,r,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 listAvailabilityEndTimesWithRestrictions(e,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},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 me=class{static getCheckout(e){return s(i,{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,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 fe=class{static updateCompetitionAccount(e){return s(i,{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 ye=class{static options(e){return s(i,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var ge=class{static createPromoCode(e){return s(i,{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 be=class{static createMembership(e){return s(i,{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 s(i,{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 he=class{static getPlaySessionById(e){return s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,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 s(i,{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 s(i,{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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return s(i,{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,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(i,{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 s(i,{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,o,a,l,n=10){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:a,availableSpots: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 Te=class{static getUserProfile(e){return s(i,{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 listChats(e="ALL",r,o=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return s(i,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return s(i,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return s(i,{method:"PUT",url:"/users/profile",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 getRelationToFriend(e){return s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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."}})}static listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Se={};we(Se,{addBooking:()=>j,createFacilityOfferOrder:()=>V,deleteBooking:()=>Ce,findBookingById:()=>Oe,findBookings:()=>M,listFacilityOffers:()=>H,queries:()=>W,updateBooking:()=>Pe});var Ir=(t,e)=>b(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Er={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Cr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Or=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Pr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ye=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(!e){let p=(t?a:a.map(c=>encodeURIComponent(c))).join(Or(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Cr(o),n=a.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):_({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+n:n},_=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Qe=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(a instanceof Date)return`${r}=${a.toISOString()}`;if(o!=="deepObject"&&!e){let p=[];Object.entries(a).forEach(([y,g])=>{p=[...p,y,t?g:encodeURIComponent(g)]});let c=p.join(",");switch(o){case"form":return`${r}=${c}`;case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;default:return c}}let l=Pr(o),n=Object.entries(a).map(([p,c])=>_({allowReserved:t,name:o==="deepObject"?`${r}[${p}]`:p,value:c})).join(l);return o==="label"||o==="matrix"?l+n:n},Sr=/\{[^{}]+\}/g,vr=({path:t,url:e})=>{let r=e,o=e.match(Sr);if(o)for(let a of o){let l=!1,n=a.substring(1,a.length-1),p="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),p="label"):n.startsWith(";")&&(n=n.substring(1),p="matrix");let c=t[n];if(c==null)continue;if(Array.isArray(c)){r=r.replace(a,Ye({explode:l,name:n,style:p,value:c}));continue}if(typeof c=="object"){r=r.replace(a,Qe({explode:l,name:n,style:p,value:c}));continue}if(p==="matrix"){r=r.replace(a,`;${_({name:n,value:c})}`);continue}let y=encodeURIComponent(p==="label"?`.${c}`:c);r=r.replace(a,y)}return r},Je=({allowReserved:t,array:e,object:r}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let l in o){let n=o[l];if(n!=null){if(Array.isArray(n)){a=[...a,Ye(u({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){a=[...a,Qe(u({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}a=[...a,_({allowReserved:t,name:l,value:n})]}}return a.join("&")},Rr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Ar=r=>b(void 0,null,function*(){var o=r,{security:t}=o,e=De(o,["security"]);var a;for(let l of t){let n=yield Ir(l,e.auth);if(!n)continue;let p=(a=l.name)!=null?a:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=n;break;case"header":default:e.headers.set(p,n);break}return}}),Ke=t=>kr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Je(t.querySerializer),url:t.url}),kr=({baseUrl:t,path:e,query:r,querySerializer:o,url:a})=>{let l=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+l;e&&(n=vr({path:e,url:n}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},$e=(t,e)=>{var o;let r=u(u({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Xe(t.headers,e.headers),r},Xe=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[a,l]of o)if(l===null)e.delete(a);else if(Array.isArray(l))for(let n of l)e.append(a,n);else l!==void 0&&e.set(a,typeof l=="object"?JSON.stringify(l):l)}return e},Ie=class{constructor(){Ge(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},xr=()=>({error:new Ie,request:new Ie,response:new Ie}),Ur=Je({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Dr={"Content-Type":"application/json"},Ee=(t={})=>u(d(u({},Er),{headers:Dr,parseAs:"auto",querySerializer:Ur}),t),Ze=(t={})=>{let e=$e(Ee(),t),r=()=>u({},e),o=n=>(e=$e(e,n),r()),a=xr(),l=n=>b(void 0,null,function*(){var ve,Re,Ae;let p=d(u(u({},e),n),{fetch:(Re=(ve=n.fetch)!=null?ve:e.fetch)!=null?Re:globalThis.fetch,headers:Xe(e.headers,n.headers)});p.security&&(yield Ar(d(u({},p),{security:p.security}))),p.body&&p.bodySerializer&&(p.body=p.bodySerializer(p.body)),(p.body===void 0||p.body==="")&&p.headers.delete("Content-Type");let c=Ke(p),y=u({redirect:"follow"},p),g=new Request(c,y);for(let I of a.request._fns)g=yield I(g,p);let v=p.fetch,m=yield v(g);for(let I of a.response._fns)m=yield I(m,g,p);let B={request:g,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return u({data:{}},B);let I=(Ae=p.parseAs==="auto"?Rr(m.headers.get("Content-Type")):p.parseAs)!=null?Ae:"json";if(I==="stream")return u({data:m.body},B);let z=yield m[I]();return I==="json"&&(p.responseValidator&&(yield p.responseValidator(z)),p.responseTransformer&&(z=yield p.responseTransformer(z))),u({data:z},B)}let q=yield m.text();try{q=JSON.parse(q)}catch(I){}let U=q;for(let I of a.error._fns)U=yield I(q,m,g,p);if(U=U||{},p.throwOnError)throw U;return u({error:U},B)});return{buildUrl:Ke,connect:n=>l(d(u({},n),{method:"CONNECT"})),delete:n=>l(d(u({},n),{method:"DELETE"})),get:n=>l(d(u({},n),{method:"GET"})),getConfig:r,head:n=>l(d(u({},n),{method:"HEAD"})),interceptors:a,options:n=>l(d(u({},n),{method:"OPTIONS"})),patch:n=>l(d(u({},n),{method:"PATCH"})),post:n=>l(d(u({},n),{method:"POST"})),put:n=>l(d(u({},n),{method:"PUT"})),request:l,setConfig:o,trace:n=>l(d(u({},n),{method:"TRACE"}))}};var O=Ze(Ee({baseUrl:"https://api.matchi.com/v1"}));var M=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:O).get(u({url:"/bookings"},t))},j=t=>{var e;return((e=t.client)!=null?e:O).post(d(u({url:"/bookings"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},Ce=t=>{var e;return((e=t.client)!=null?e:O).delete(u({url:"/bookings/{bookingId}"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/bookings/{bookingId}"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:O).put(d(u({url:"/bookings/{bookingId}"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},H=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/facilities/{facility_id}/offers"},t))},V=t=>{var e;return((e=t.client)!=null?e:O).post(u({url:"/facilities/{facility_id}/offers/{offer_id}"},t))};var W={};we(W,{addBookingMutation:()=>qr,addBookingOptions:()=>Br,addBookingQueryKey:()=>or,createFacilityOfferOrderMutation:()=>jr,createFacilityOfferOrderOptions:()=>Mr,createFacilityOfferOrderQueryKey:()=>nr,deleteBookingMutation:()=>zr,findBookingByIdOptions:()=>Nr,findBookingByIdQueryKey:()=>ir,findBookingsInfiniteOptions:()=>Gr,findBookingsInfiniteQueryKey:()=>tr,findBookingsOptions:()=>wr,findBookingsQueryKey:()=>er,listFacilityOffersInfiniteOptions:()=>_r,listFacilityOffersInfiniteQueryKey:()=>ar,listFacilityOffersOptions:()=>Fr,listFacilityOffersQueryKey:()=>sr,updateBookingMutation:()=>Lr});var A=(t,e,r)=>{var a;let o={_id:t,baseUrl:((a=e==null?void 0:e.client)!=null?a:O).getConfig().baseUrl};return r&&(o._infinite=r),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},er=t=>A("findBookings",t),wr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield M(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:er(t)}),rr=(t,e)=>{let r=t[0];return e.body&&(r.body=u(u({},t[0].body),e.body)),e.headers&&(r.headers=u(u({},t[0].headers),e.headers)),e.path&&(r.path=u(u({},t[0].path),e.path)),e.query&&(r.query=u(u({},t[0].query),e.query)),r},tr=t=>A("findBookings",t,!0),Gr=t=>({queryFn:a=>b(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield M(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:tr(t)}),or=t=>A("addBooking",t),Br=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield j(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:or(t)}),qr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield j(d(u(u({},t),r),{throwOnError:!0}));return o})}),zr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Ce(d(u(u({},t),r),{throwOnError:!0}));return o})}),ir=t=>A("findBookingById",t),Nr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield Oe(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:ir(t)}),Lr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Pe(d(u(u({},t),r),{throwOnError:!0}));return o})}),sr=t=>A("listFacilityOffers",t),Fr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield H(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:sr(t)}),ar=t=>A("listFacilityOffers",t,!0),_r=t=>({queryFn:a=>b(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield H(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:ar(t)}),nr=t=>A("createFacilityOfferOrder",t),Mr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield V(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:nr(t)}),jr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield V(d(u(u({},t),r),{throwOnError:!0}));return o})});export{le as ActivityServiceV1Service,pe as AnonymousService,ue as ApiClientServiceV1Service,k as ApiError,ce as AuthorizedService,de as BookingServiceV1Service,L as CancelError,D as CancelablePromise,me as CheckoutServiceV1Service,fe as CompetitionServiceV1Service,ye as CorsService,ge as LoyaltyServiceV1Service,be as MembershipServiceV1Service,i as OpenAPI,he as PlaySessionServiceV1Service,Te as UserServiceV1Service,qe as access,ze as bookingRestriction,Ne as bookingSubType,$ as bookingSubscription,Le as bookingUserStatus,Y as cancellationPolicy,Q as chat,Fe as chatTarget,_e as clientType,J as createChatResponse,Me as directionParam,je as months,X as notificationChatGroup,Z as notificationEntity,ee as pendingPayment,te as playSessionSettings,oe as playSessionUser,He as playerStatusParam,re as playingUserResponse,Ve as userChatStatusParam,ie as userPunchCard,Se as v1};
|
|
1
|
+
var ke=Object.defineProperty,lr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable;var K=(t,e,r)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,u=(t,e)=>{for(var r in e||(e={}))xe.call(e,r)&&K(t,r,e[r]);if(N)for(var r of N(e))Ue.call(e,r)&&K(t,r,e[r]);return t},d=(t,e)=>lr(t,pr(e));var De=(t,e)=>{var r={};for(var o in t)xe.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&N)for(var o of N(t))e.indexOf(o)<0&&Ue.call(t,o)&&(r[o]=t[o]);return r};var we=(t,e)=>{for(var r in e)ke(t,r,{get:e[r],enumerable:!0})};var Ge=(t,e,r)=>(K(t,typeof e!="symbol"?e+"":e,r),r),Be=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Be(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(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)},h=(t,e,r,o)=>(Be(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var b=(t,e,r)=>new Promise((o,a)=>{var l=c=>{try{p(r.next(c))}catch(y){a(y)}},n=c=>{try{p(r.throw(c))}catch(y){a(y)}},p=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,n);p((r=r.apply(t,e)).next())});var k=class extends Error{constructor(r,o,a){super(a);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var L=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,C,T,S,R,w,x,D=class{constructor(e){P(this,E,void 0);P(this,C,void 0);P(this,T,void 0);P(this,S,void 0);P(this,R,void 0);P(this,w,void 0);P(this,x,void 0);h(this,E,!1),h(this,C,!1),h(this,T,!1),h(this,S,[]),h(this,R,new Promise((r,o)=>{h(this,w,r),h(this,x,o);let a=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,E,!0),(c=f(this,w))==null||c.call(this,p))},l=p=>{var c;f(this,E)||f(this,C)||f(this,T)||(h(this,C,!0),(c=f(this,x))==null||c.call(this,p))},n=p=>{f(this,E)||f(this,C)||f(this,T)||f(this,S).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,C)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,T)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,R).then(e,r)}catch(e){return f(this,R).catch(e)}finally(e){return f(this,R).finally(e)}cancel(){var e;if(!(f(this,E)||f(this,C)||f(this,T))){if(h(this,T,!0),f(this,S).length)try{for(let r of f(this,S))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,S).length=0,(e=f(this,x))==null||e.call(this,new L("Request aborted"))}}get isCancelled(){return f(this,T)}};E=new WeakMap,C=new WeakMap,T=new WeakMap,S=new WeakMap,R=new WeakMap,w=new WeakMap,x=new WeakMap;var i={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 qe=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(qe||{});var ze=(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))(ze||{});var $;(e=>{let t;(g=>(g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY",g.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})($||($={}));var Ne=(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))(Ne||{});var Le=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Le||{});var Y;(e=>{let t;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(Y||(Y={}));var Q;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Q||(Q={}));var Fe=(e=>(e.PLAYSESSION="playsession",e))(Fe||{});var _e=(r=>(r.WIDGET="WIDGET",r.API="API",r))(_e||{});var J;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(J||(J={}));var Me=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Me||{});var je=(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))(je||{});var X;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(X||(X={}));var Z;(e=>{let t;(a=>(a.GROUP="group",a.USER="user"))(t=e.entityType||(e.entityType={}))})(Z||(Z={}));var ee;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(ee||(ee={}));var He=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(He||{});var re;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(re||(re={}));var te;(e=>{let t;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(te||(te={}));var oe;(e=>{let t;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(oe||(oe={}));var Ve=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(Ve||{});var ie;(e=>{let t;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ie||(ie={}));var ae=t=>t!=null,G=t=>typeof t=="string",se=t=>G(t)&&t!=="",ne=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]),We=t=>t instanceof FormData,ur=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},cr=t=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},o=(a,l)=>{ae(l)&&(Array.isArray(l)?l.forEach(n=>{o(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{o(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(t).forEach(([a,l])=>{o(a,l)}),e.length>0?`?${e.join("&")}`:""},dr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${t.BASE}${o}`;return e.query?`${a}${cr(e.query)}`:a},mr=t=>{if(t.formData){let e=new FormData,r=(o,a)=>{G(a)||ne(a)?e.append(o,a):e.append(o,JSON.stringify(a))};return Object.entries(t.formData).filter(([o,a])=>ae(a)).forEach(([o,a])=>{Array.isArray(a)?a.forEach(l=>r(o,l)):r(o,a)}),e}},F=(t,e)=>b(void 0,null,function*(){return typeof e=="function"?e(t):e}),fr=(t,e)=>b(void 0,null,function*(){let r=yield F(e,t.TOKEN),o=yield F(e,t.USERNAME),a=yield F(e,t.PASSWORD),l=yield F(e,t.HEADERS),n=Object.entries(u(u({Accept:"application/json"},l),e.headers)).filter(([p,c])=>ae(c)).reduce((p,[c,y])=>d(u({},p),{[c]:String(y)}),{});if(se(r)&&(n.Authorization=`Bearer ${r}`),se(o)&&se(a)){let p=ur(`${o}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:ne(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":G(e.body)?n["Content-Type"]="text/plain":We(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),yr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):G(t.body)||ne(t.body)||We(t.body)?t.body:JSON.stringify(t.body)},gr=(t,e,r,o,a,l,n)=>b(void 0,null,function*(){let p=new AbortController,c={headers:l,body:o!=null?o:a,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(c.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,c)}),br=(t,e)=>{if(e){let r=t.headers.get(e);if(G(r))return r}},hr=t=>b(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)}}),Tr=(t,e)=>{var a,l;let o=u({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(o)throw new k(t,e,o);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",p=(l=e.statusText)!=null?l:"unknown",c=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new k(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${c}`)}},s=(t,e)=>new D((r,o,a)=>b(void 0,null,function*(){try{let l=dr(t,e),n=mr(e),p=yr(e),c=yield fr(t,e);if(!a.isCancelled){let y=yield gr(t,e,l,p,n,c,a),g=yield hr(y),v=br(y,e.responseHeader),m={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:v!=null?v:g};Tr(e,m),r(m.body)}}catch(l){o(l)}}));var le=class{static getAdminActivityOccasions(e,r,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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 pe=class{static listActivities(e=!1,r=!1,o,a,l,n,p,c,y,g,v,m=10){return s(i,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:c,startDate:y,endDate:g,offset:v,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 s(i,{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,o,a,l){return s(i,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,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 s(i,{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,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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 s(i,{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,o,a,l,n,p,c,y=10){return s(i,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:c,limit:y},errors:{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 ue=class{static getApiClientList(e,r=10){return s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 s(i,{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 ce=class{static getActivityOccasionForUser(e){return s(i,{method:"GET",url:"/activities/user-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 getActivityOccasionPrice(e,r){return s(i,{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 s(i,{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,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 listAvailabilityEndTimesWithRestrictions(e,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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,o,a){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,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 s(i,{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 s(i,{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 listChats(e="ALL",r,o=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return s(i,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return s(i,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return s(i,{method:"PUT",url:"/users/profile",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 listUserFavourites(){return s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o},errors:{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{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,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(i,{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 s(i,{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,o,a,l){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:a,availableSpots: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 addWaitlistOccasion(e){return s(i,{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 s(i,{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 listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return s(i,{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 s(i,{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,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},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 s(i,{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 de=class{static getAvailabilityWithPrice(e,r,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 listAvailabilityEndTimesWithRestrictions(e,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},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 me=class{static getCheckout(e){return s(i,{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,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},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 fe=class{static updateCompetitionAccount(e){return s(i,{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 ye=class{static options(e){return s(i,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var ge=class{static createPromoCode(e){return s(i,{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 be=class{static createMembership(e){return s(i,{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 s(i,{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 he=class{static getPlaySessionById(e){return s(i,{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 s(i,{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 s(i,{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 s(i,{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,o){return s(i,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,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 s(i,{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 s(i,{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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return s(i,{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,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(i,{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 s(i,{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,o,a,l){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:a,availableSpots: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."}})}};var Te=class{static getUserProfile(e){return s(i,{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 listChats(e="ALL",r,o=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{method:"POST",url:"/users/chats",body:e,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."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return s(i,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return s(i,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return s(i,{method:"PUT",url:"/users/profile",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 getRelationToFriend(e){return s(i,{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 s(i,{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 s(i,{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 s(i,{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 s(i,{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."}})}static listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Se={};we(Se,{addBooking:()=>j,createFacilityOfferOrder:()=>V,deleteBooking:()=>Ce,findBookingById:()=>Oe,findBookings:()=>M,listFacilityOffers:()=>H,queries:()=>W,updateBooking:()=>Pe});var Ir=(t,e)=>b(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Er={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Cr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Or=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Pr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ye=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(!e){let p=(t?a:a.map(c=>encodeURIComponent(c))).join(Or(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Cr(o),n=a.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):_({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+n:n},_=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Qe=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(a instanceof Date)return`${r}=${a.toISOString()}`;if(o!=="deepObject"&&!e){let p=[];Object.entries(a).forEach(([y,g])=>{p=[...p,y,t?g:encodeURIComponent(g)]});let c=p.join(",");switch(o){case"form":return`${r}=${c}`;case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;default:return c}}let l=Pr(o),n=Object.entries(a).map(([p,c])=>_({allowReserved:t,name:o==="deepObject"?`${r}[${p}]`:p,value:c})).join(l);return o==="label"||o==="matrix"?l+n:n},Sr=/\{[^{}]+\}/g,vr=({path:t,url:e})=>{let r=e,o=e.match(Sr);if(o)for(let a of o){let l=!1,n=a.substring(1,a.length-1),p="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),p="label"):n.startsWith(";")&&(n=n.substring(1),p="matrix");let c=t[n];if(c==null)continue;if(Array.isArray(c)){r=r.replace(a,Ye({explode:l,name:n,style:p,value:c}));continue}if(typeof c=="object"){r=r.replace(a,Qe({explode:l,name:n,style:p,value:c}));continue}if(p==="matrix"){r=r.replace(a,`;${_({name:n,value:c})}`);continue}let y=encodeURIComponent(p==="label"?`.${c}`:c);r=r.replace(a,y)}return r},Je=({allowReserved:t,array:e,object:r}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let l in o){let n=o[l];if(n!=null){if(Array.isArray(n)){a=[...a,Ye(u({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){a=[...a,Qe(u({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}a=[...a,_({allowReserved:t,name:l,value:n})]}}return a.join("&")},Rr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Ar=r=>b(void 0,null,function*(){var o=r,{security:t}=o,e=De(o,["security"]);var a;for(let l of t){let n=yield Ir(l,e.auth);if(!n)continue;let p=(a=l.name)!=null?a:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=n;break;case"header":default:e.headers.set(p,n);break}return}}),Ke=t=>kr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Je(t.querySerializer),url:t.url}),kr=({baseUrl:t,path:e,query:r,querySerializer:o,url:a})=>{let l=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+l;e&&(n=vr({path:e,url:n}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},$e=(t,e)=>{var o;let r=u(u({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Xe(t.headers,e.headers),r},Xe=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[a,l]of o)if(l===null)e.delete(a);else if(Array.isArray(l))for(let n of l)e.append(a,n);else l!==void 0&&e.set(a,typeof l=="object"?JSON.stringify(l):l)}return e},Ie=class{constructor(){Ge(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},xr=()=>({error:new Ie,request:new Ie,response:new Ie}),Ur=Je({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Dr={"Content-Type":"application/json"},Ee=(t={})=>u(d(u({},Er),{headers:Dr,parseAs:"auto",querySerializer:Ur}),t),Ze=(t={})=>{let e=$e(Ee(),t),r=()=>u({},e),o=n=>(e=$e(e,n),r()),a=xr(),l=n=>b(void 0,null,function*(){var ve,Re,Ae;let p=d(u(u({},e),n),{fetch:(Re=(ve=n.fetch)!=null?ve:e.fetch)!=null?Re:globalThis.fetch,headers:Xe(e.headers,n.headers)});p.security&&(yield Ar(d(u({},p),{security:p.security}))),p.body&&p.bodySerializer&&(p.body=p.bodySerializer(p.body)),(p.body===void 0||p.body==="")&&p.headers.delete("Content-Type");let c=Ke(p),y=u({redirect:"follow"},p),g=new Request(c,y);for(let I of a.request._fns)g=yield I(g,p);let v=p.fetch,m=yield v(g);for(let I of a.response._fns)m=yield I(m,g,p);let B={request:g,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return u({data:{}},B);let I=(Ae=p.parseAs==="auto"?Rr(m.headers.get("Content-Type")):p.parseAs)!=null?Ae:"json";if(I==="stream")return u({data:m.body},B);let z=yield m[I]();return I==="json"&&(p.responseValidator&&(yield p.responseValidator(z)),p.responseTransformer&&(z=yield p.responseTransformer(z))),u({data:z},B)}let q=yield m.text();try{q=JSON.parse(q)}catch(I){}let U=q;for(let I of a.error._fns)U=yield I(q,m,g,p);if(U=U||{},p.throwOnError)throw U;return u({error:U},B)});return{buildUrl:Ke,connect:n=>l(d(u({},n),{method:"CONNECT"})),delete:n=>l(d(u({},n),{method:"DELETE"})),get:n=>l(d(u({},n),{method:"GET"})),getConfig:r,head:n=>l(d(u({},n),{method:"HEAD"})),interceptors:a,options:n=>l(d(u({},n),{method:"OPTIONS"})),patch:n=>l(d(u({},n),{method:"PATCH"})),post:n=>l(d(u({},n),{method:"POST"})),put:n=>l(d(u({},n),{method:"PUT"})),request:l,setConfig:o,trace:n=>l(d(u({},n),{method:"TRACE"}))}};var O=Ze(Ee({baseUrl:"https://api.matchi.com/v1"}));var M=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:O).get(u({url:"/bookings"},t))},j=t=>{var e;return((e=t.client)!=null?e:O).post(d(u({url:"/bookings"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},Ce=t=>{var e;return((e=t.client)!=null?e:O).delete(u({url:"/bookings/{bookingId}"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/bookings/{bookingId}"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:O).put(d(u({url:"/bookings/{bookingId}"},t),{headers:u({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},H=t=>{var e;return((e=t.client)!=null?e:O).get(u({url:"/facilities/{facility_id}/offers"},t))},V=t=>{var e;return((e=t.client)!=null?e:O).post(u({url:"/facilities/{facility_id}/offers/{offer_id}"},t))};var W={};we(W,{addBookingMutation:()=>qr,addBookingOptions:()=>Br,addBookingQueryKey:()=>or,createFacilityOfferOrderMutation:()=>jr,createFacilityOfferOrderOptions:()=>Mr,createFacilityOfferOrderQueryKey:()=>nr,deleteBookingMutation:()=>zr,findBookingByIdOptions:()=>Nr,findBookingByIdQueryKey:()=>ir,findBookingsInfiniteOptions:()=>Gr,findBookingsInfiniteQueryKey:()=>tr,findBookingsOptions:()=>wr,findBookingsQueryKey:()=>er,listFacilityOffersInfiniteOptions:()=>_r,listFacilityOffersInfiniteQueryKey:()=>ar,listFacilityOffersOptions:()=>Fr,listFacilityOffersQueryKey:()=>sr,updateBookingMutation:()=>Lr});var A=(t,e,r)=>{var a;let o={_id:t,baseUrl:((a=e==null?void 0:e.client)!=null?a:O).getConfig().baseUrl};return r&&(o._infinite=r),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},er=t=>A("findBookings",t),wr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield M(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:er(t)}),rr=(t,e)=>{let r=t[0];return e.body&&(r.body=u(u({},t[0].body),e.body)),e.headers&&(r.headers=u(u({},t[0].headers),e.headers)),e.path&&(r.path=u(u({},t[0].path),e.path)),e.query&&(r.query=u(u({},t[0].query),e.query)),r},tr=t=>A("findBookings",t,!0),Gr=t=>({queryFn:a=>b(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield M(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:tr(t)}),or=t=>A("addBooking",t),Br=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield j(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:or(t)}),qr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield j(d(u(u({},t),r),{throwOnError:!0}));return o})}),zr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Ce(d(u(u({},t),r),{throwOnError:!0}));return o})}),ir=t=>A("findBookingById",t),Nr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield Oe(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:ir(t)}),Lr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield Pe(d(u(u({},t),r),{throwOnError:!0}));return o})}),sr=t=>A("listFacilityOffers",t),Fr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield H(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:sr(t)}),ar=t=>A("listFacilityOffers",t,!0),_r=t=>({queryFn:a=>b(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield H(d(u(u({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:ar(t)}),nr=t=>A("createFacilityOfferOrder",t),Mr=t=>({queryFn:o=>b(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield V(d(u(u({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:nr(t)}),jr=t=>({mutationFn:r=>b(void 0,null,function*(){let{data:o}=yield V(d(u(u({},t),r),{throwOnError:!0}));return o})});export{le as ActivityServiceV1Service,pe as AnonymousService,ue as ApiClientServiceV1Service,k as ApiError,ce as AuthorizedService,de as BookingServiceV1Service,L as CancelError,D as CancelablePromise,me as CheckoutServiceV1Service,fe as CompetitionServiceV1Service,ye as CorsService,ge as LoyaltyServiceV1Service,be as MembershipServiceV1Service,i as OpenAPI,he as PlaySessionServiceV1Service,Te as UserServiceV1Service,qe as access,ze as bookingRestriction,Ne as bookingSubType,$ as bookingSubscription,Le as bookingUserStatus,Y as cancellationPolicy,Q as chat,Fe as chatTarget,_e as clientType,J as createChatResponse,Me as directionParam,je as months,X as notificationChatGroup,Z as notificationEntity,ee as pendingPayment,te as playSessionSettings,oe as playSessionUser,He as playerStatusParam,re as playingUserResponse,Ve as userChatStatusParam,ie as userPunchCard,Se as v1};
|