@matchi/api 0.20260519.3 → 0.20260520.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- "use strict";var ye=Object.defineProperty,Zr=Object.defineProperties,eo=Object.getOwnPropertyDescriptor,to=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable;var oo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Zt=t=>{throw TypeError(t)};var Jt=(t,e,r)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Dt.call(e,r)&&Jt(t,r,e[r]);if(de)for(var r of de(e))Xt.call(e,r)&&Jt(t,r,e[r]);return t},m=(t,e)=>Zr(t,to(e));var W=(t,e)=>{var r={};for(var o in t)Dt.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&de)for(var o of de(t))e.indexOf(o)<0&&Xt.call(t,o)&&(r[o]=t[o]);return r};var fe=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},so=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ro(e))!Dt.call(t,s)&&s!==r&&ye(t,s,{get:()=>e[s],enumerable:!(o=eo(e,s))||o.enumerable});return t};var io=t=>so(ye({},"__esModule",{value:!0}),t);var er=(t,e,r)=>e.has(t)||Zt("Cannot "+r);var O=(t,e,r)=>(er(t,e,"read from private field"),r?r.call(t):e.get(t)),L=(t,e,r)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(er(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var c=d=>{try{p(r.next(d))}catch(f){s(f)}},l=d=>{try{p(r.throw(d))}catch(f){s(f)}},p=d=>d.done?o(d.value):Promise.resolve(d.value).then(c,l);p((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},tr=(t,e,r)=>{var o=(l,p,d,f)=>{try{var u=r[l](p),S=(p=u.value)instanceof N,g=u.done;Promise.resolve(S?p[0]:p).then(P=>S?o(l==="return"?l:"next",p[1]?{done:P.done,value:P.value}:P,d,f):d({value:P,done:g})).catch(P=>o("throw",P,d,f))}catch(P){f(P)}},s=l=>c[l]=p=>new Promise((d,f)=>o(l,p,d,f)),c={};return r=r.apply(t,e),c[oo("asyncIterator")]=()=>c,s("next"),s("throw"),s("return"),c};var la={};fe(la,{ActivityServiceV1Service:()=>Te,AnonymousService:()=>ve,ApiClientServiceV1Service:()=>_e,ApiError:()=>z,AuthorizedService:()=>ke,BookingServiceV1Service:()=>Ae,CancelError:()=>J,CancelablePromise:()=>K,CheckoutServiceV1Service:()=>Ge,CompetitionServiceV1Service:()=>Me,CorsService:()=>Le,LoyaltyServiceV1Service:()=>Ne,MembershipServiceV1Service:()=>we,OpenAPI:()=>a,PlaySessionServiceV1Service:()=>qe,UserServiceV1Service:()=>Fe,bookingRestriction:()=>xt,bookingSubType:()=>Ut,bookingSubscription:()=>he,bookingUserStatus:()=>Tt,cancellationPolicy:()=>ge,chat:()=>be,chatCreation:()=>Pe,chatTarget:()=>vt,clientType:()=>_t,directionParam:()=>kt,months:()=>At,notificationChatGroup:()=>Oe,notificationEntity:()=>Se,pendingPayment:()=>Ee,playSessionSettings:()=>Ce,playSessionUser:()=>Ie,playerStatusParam:()=>Gt,playingUserResponse:()=>Re,userChatStatusParam:()=>Mt,userChatTargetParam:()=>Lt,userPunchCard:()=>De,userRelation:()=>xe,userRelationStatusParam:()=>Nt,v1:()=>Rt});module.exports=io(la);var z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var J=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,_,U,w,j,X,B,K=class{constructor(e){L(this,v);L(this,_);L(this,U);L(this,w);L(this,j);L(this,X);L(this,B);x(this,v,!1),x(this,_,!1),x(this,U,!1),x(this,w,[]),x(this,j,new Promise((r,o)=>{x(this,X,r),x(this,B,o);let s=p=>{var d;O(this,v)||O(this,_)||O(this,U)||(x(this,v,!0),(d=O(this,X))==null||d.call(this,p))},c=p=>{var d;O(this,v)||O(this,_)||O(this,U)||(x(this,_,!0),(d=O(this,B))==null||d.call(this,p))},l=p=>{O(this,v)||O(this,_)||O(this,U)||O(this,w).push(p)};return Object.defineProperty(l,"isResolved",{get:()=>O(this,v)}),Object.defineProperty(l,"isRejected",{get:()=>O(this,_)}),Object.defineProperty(l,"isCancelled",{get:()=>O(this,U)}),e(s,c,l)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return O(this,j).then(e,r)}catch(e){return O(this,j).catch(e)}finally(e){return O(this,j).finally(e)}cancel(){var e;if(!(O(this,v)||O(this,_)||O(this,U))){if(x(this,U,!0),O(this,w).length)try{for(let r of O(this,w))r()}catch(r){console.warn("Cancellation threw an error",r);return}O(this,w).length=0,(e=O(this,B))==null||e.call(this,new J("Request aborted"))}}get isCancelled(){return O(this,U)}};v=new WeakMap,_=new WeakMap,U=new WeakMap,w=new WeakMap,j=new WeakMap,X=new WeakMap,B=new WeakMap;var a={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 xt=(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))(xt||{});var he;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(he||(he={}));var Ut=(p=>(p.BOOKING="booking",p.BOOKING_PLAYER="booking_player",p.ACTIVITY="activity",p.MATCH="match",p.SPLIT="split",p.SPLIT_MAIN="split_main",p.SPLIT_INVITE="split_invite",p))(Ut||{});var Tt=(l=>(l.UNAPPROVED="UNAPPROVED",l.UNCONFIRMED="UNCONFIRMED",l.DECLINED="DECLINED",l.PARTICIPANT="PARTICIPANT",l.CO_BOOKER="CO-BOOKER",l.OWNER="OWNER",l))(Tt||{});var ge;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ge||(ge={}));var be;(e=>{let t;(c=>(c.ACTIVE="active",c.INACTIVE="inactive",c.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(be||(be={}));var Pe;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(Pe||(Pe={}));var vt=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(vt||{});var _t=(r=>(r.WIDGET="WIDGET",r.API="API",r))(_t||{});var kt=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(kt||{});var At=(g=>(g.JANUARY="January",g.FEBRUARY="February",g.MARCH="March",g.APRIL="April",g.MAY="May",g.JUNE="June",g.JULY="July",g.AUGUST="August",g.SEPTEMBER="September",g.OCTOBER="October",g.NOVEMBER="November",g.DECEMBER="December",g))(At||{});var Oe;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(Oe||(Oe={}));var Se;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Se||(Se={}));var Ee;(e=>{let t;(l=>(l.BOOKING="BOOKING",l.ACTIVITY="ACTIVITY",l.MEMBERSHIP="MEMBERSHIP",l.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Ee||(Ee={}));var Gt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Gt||{});var Re;(e=>{let t;(l=>(l.PAID="PAID",l.INVITED="INVITED",l.JOINED="JOINED",l.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Re||(Re={}));var Ce;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Ce||(Ce={}));var Ie;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Ie||(Ie={}));var Mt=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(Mt||{});var Lt=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(Lt||{});var De;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(De||(De={}));var xe;(e=>{let t;(p=>(p.FRIENDS="FRIENDS",p.OUTGOING="OUTGOING",p.INCOMING="INCOMING",p.BLOCKED="BLOCKED",p.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(xe||(xe={}));var Nt=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Nt||{});var qt=t=>t!=null,Z=t=>typeof t=="string",wt=t=>Z(t)&&t!=="",Ft=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]),rr=t=>t instanceof FormData,ao=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},no=t=>{let e=[],r=(s,c)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(c))}`)},o=(s,c)=>{qt(c)&&(Array.isArray(c)?c.forEach(l=>{o(s,l)}):typeof c=="object"?Object.entries(c).forEach(([l,p])=>{o(`${s}[${l}]`,p)}):r(s,c))};return Object.entries(t).forEach(([s,c])=>{o(s,c)}),e.length>0?`?${e.join("&")}`:""},po=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(c,l)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(l)?r(String(e.path[l])):c}),s=`${t.BASE}${o}`;return e.query?`${s}${no(e.query)}`:s},lo=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{Z(s)||Ft(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>qt(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(c=>r(o,c)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),co=(t,e)=>y(null,null,function*(){let r=yield Ue(e,t.TOKEN),o=yield Ue(e,t.USERNAME),s=yield Ue(e,t.PASSWORD),c=yield Ue(e,t.HEADERS),l=Object.entries(i(i({Accept:"application/json"},c),e.headers)).filter(([p,d])=>qt(d)).reduce((p,[d,f])=>m(i({},p),{[d]:String(f)}),{});if(wt(r)&&(l.Authorization=`Bearer ${r}`),wt(o)&&wt(s)){let p=ao(`${o}:${s}`);l.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?l["Content-Type"]=e.mediaType:Ft(e.body)?l["Content-Type"]=e.body.type||"application/octet-stream":Z(e.body)?l["Content-Type"]="text/plain":rr(e.body)||(l["Content-Type"]="application/json")),new Headers(l)}),uo=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):Z(t.body)||Ft(t.body)||rr(t.body)?t.body:JSON.stringify(t.body)},mo=(t,e,r,o,s,c,l)=>y(null,null,function*(){let p=new AbortController,d={headers:c,body:o!=null?o:s,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),l(()=>p.abort()),yield fetch(r,d)}),yo=(t,e)=>{if(e){let r=t.headers.get(e);if(Z(r))return r}},fo=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),ho=(t,e)=>{var s,c;let o=i({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 z(t,e,o);if(!e.ok){let l=(s=e.status)!=null?s:"unknown",p=(c=e.statusText)!=null?c:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(t,e,`Generic Error: status: ${l}; status text: ${p}; body: ${d}`)}},n=(t,e)=>new K((r,o,s)=>y(null,null,function*(){try{let c=po(t,e),l=lo(e),p=uo(e),d=yield co(t,e);if(!s.isCancelled){let f=yield mo(t,e,c,p,l,d,s),u=yield fo(f),S=yo(f,e.responseHeader),g={url:c,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};ho(e,g),r(g.body)}}catch(c){o(c)}}));var Te=class{static getAdminActivityOccasions(e,r,o,s,c,l=10){return n(a,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,limit: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 ve=class{static listActivities(e=!1,r=!1,o,s,c,l,p,d,f,u,S,g=10){return n(a,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:c,categorySearch:l,querySearch:p,resourceTypes:d,startDate:f,endDate:u,offset:S,limit:g},errors:{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:c},errors:{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 n(a,{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,s,c,l=10){return n(a,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,limit: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 updateCompetitionAccount(e){return n(a,{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,s,c,l,p,d,f=10){return n(a,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:c,radius:l,resourceTypes:p,offset:d,limit:f},errors:{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 getRelationToUser(e){return n(a,{method:"GET",url:"/users/relations/{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 _e=class{static getApiClientList(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 ke=class{static getActivityOccasionForUser(e){return n(a,{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 n(a,{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 n(a,{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,s,c,l,p){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,emails:l,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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return n(a,{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 n(a,{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="ALL",o,s=10){return n(a,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return n(a,{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 adminCreateChat(e){return n(a,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return n(a,{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 getUserGroupChat(e){return n(a,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return n(a,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return n(a,{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 n(a,{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 n(a,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return n(a,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return n(a,{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 n(a,{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 n(a,{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,s){return n(a,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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",s="ALL"){return n(a,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return n(a,{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},errors:{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 n(a,{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 n(a,{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 getRelations(e,r=10,o="FRIENDS"){return n(a,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 Ae=class{static getAvailabilityWithPrice(e,r,o,s,c,l,p){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,emails:l,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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 Ge=class{static getCheckout(e){return n(a,{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 n(a,{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 Me=class{static updateCompetitionAccount(e){return n(a,{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 Le=class{static options(e){return n(a,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Ne=class{static createPromoCode(e){return n(a,{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 we=class{static createMembership(e){return n(a,{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.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return n(a,{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 qe=class{static getPlaySessionById(e){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 updateUserWithId(e,r,o){return n(a,{method:"PATCH",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 n(a,{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 n(a,{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 n(a,{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",s="ALL"){return n(a,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return n(a,{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},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 Fe=class{static getUserProfile(e){return n(a,{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 getUserChatProfile(e){return n(a,{method:"GET",url:"/profiles/users/{userId}/chat",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="ALL",o,s=10){return n(a,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return n(a,{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 adminCreateChat(e){return n(a,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return n(a,{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 getUserGroupChat(e){return n(a,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return n(a,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return n(a,{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 n(a,{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 n(a,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return n(a,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return n(a,{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 n(a,{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 getRelations(e,r=10,o="FRIENDS"){return n(a,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return n(a,{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 n(a,{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 n(a,{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 getRelationToUser(e){return n(a,{method:"GET",url:"/users/relations/{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 blockRelationToUser(e){return n(a,{method:"POST",url:"/users/relations/{userId}/block",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 unblockRelationToUser(e){return n(a,{method:"DELETE",url:"/users/relations/{userId}/block",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 listFriends(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 Rt={};fe(Rt,{Gender:()=>cr,LinkType:()=>ur,MatchStatus:()=>mr,MemberRelation:()=>dr,MembershipStatus:()=>yr,PostingPermission:()=>fr,Source:()=>hr,Topic:()=>gr,UserParticipationStatus:()=>br,UserRelation:()=>Pr,Visibility:()=>Or,acceptInvitation:()=>Qe,addUserSportProfileLevel:()=>Pt,client:()=>h,createComment:()=>Xe,createFacilityOfferOrder:()=>tt,createMatchParticipation:()=>ot,createPost:()=>He,createUserSportProfile:()=>ht,deleteComment:()=>Ze,deleteMatchParticipation:()=>st,deletePost:()=>Ye,deleteUserSportProfile:()=>gt,deleteUserSportProfileLevel:()=>Ot,getCommunity:()=>$e,getMatch:()=>rt,getMatchUserPrice:()=>it,getNotificationById:()=>lt,getNotifications:()=>pe,getNotificationsPreferences:()=>nt,getPost:()=>We,getRecommendations:()=>ce,getSportAuthorities:()=>ut,getUserFacilityPermissions:()=>dt,getUserSportProfile:()=>bt,getUserSportProfiles:()=>ft,leaveCommunity:()=>Ve,listComments:()=>ie,listCommunities:()=>re,listFacilityOffers:()=>ae,listMatches:()=>ne,listMembers:()=>oe,listPosts:()=>se,markCommentRead:()=>et,markPostRead:()=>Je,queries:()=>Et,registerDevice:()=>mt,schemas:()=>Ke,searchUsers:()=>le,updateAllNotifications:()=>at,updateNotification:()=>ct,updateNotificationsPreferences:()=>pt,updateUserProfile:()=>yt,updateUserSportProfileLevel:()=>St});var zt={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var go={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},up=Object.entries(go);var or=S=>{var g=S,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:c,sseMaxRetryAttempts:l,sseMaxRetryDelay:p,sseSleepFn:d,url:f}=g,u=W(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let P,V=d!=null?d:(G=>new Promise(T=>setTimeout(T,G)));return{stream:function(){return tr(this,null,function*(){var M,Q,R;let G=c!=null?c:3e3,T=0,q=(M=u.signal)!=null?M:new AbortController().signal;for(;!q.aborted;){T++;let I=u.headers instanceof Headers?u.headers:new Headers(u.headers);P!==void 0&&I.set("Last-Event-ID",P);try{let C=m(i({redirect:"follow"},u),{body:u.serializedBody,headers:I,signal:q}),ue=new Request(f,C);t&&(ue=yield new N(t(f,C)));let Yr=(Q=u.fetch)!=null?Q:globalThis.fetch,H=yield new N(Yr(ue));if(!H.ok)throw new Error(`SSE failed: ${H.status} ${H.statusText}`);if(!H.body)throw new Error("No body in SSE response");let Ct=H.body.pipeThrough(new TextDecoderStream).getReader(),Y="",Vt=()=>{try{Ct.cancel()}catch(Qt){}};q.addEventListener("abort",Vt);try{for(;;){let{done:Qt,value:Wr}=yield new N(Ct.read());if(Qt)break;Y+=Wr,Y=Y.replace(/\r\n/g,`
1
+ "use strict";var ye=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptor,ro=Object.getOwnPropertyDescriptors,oo=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable;var so=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),er=t=>{throw TypeError(t)};var Xt=(t,e,r)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))xt.call(e,r)&&Xt(t,r,e[r]);if(de)for(var r of de(e))Zt.call(e,r)&&Xt(t,r,e[r]);return t},m=(t,e)=>eo(t,ro(e));var W=(t,e)=>{var r={};for(var o in t)xt.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&de)for(var o of de(t))e.indexOf(o)<0&&Zt.call(t,o)&&(r[o]=t[o]);return r};var fe=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},io=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of oo(e))!xt.call(t,s)&&s!==r&&ye(t,s,{get:()=>e[s],enumerable:!(o=to(e,s))||o.enumerable});return t};var ao=t=>io(ye({},"__esModule",{value:!0}),t);var tr=(t,e,r)=>e.has(t)||er("Cannot "+r);var O=(t,e,r)=>(tr(t,e,"read from private field"),r?r.call(t):e.get(t)),M=(t,e,r)=>e.has(t)?er("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(tr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var c=d=>{try{p(r.next(d))}catch(f){s(f)}},l=d=>{try{p(r.throw(d))}catch(f){s(f)}},p=d=>d.done?o(d.value):Promise.resolve(d.value).then(c,l);p((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},rr=(t,e,r)=>{var o=(l,p,d,f)=>{try{var u=r[l](p),S=(p=u.value)instanceof N,g=u.done;Promise.resolve(S?p[0]:p).then(P=>S?o(l==="return"?l:"next",p[1]?{done:P.done,value:P.value}:P,d,f):d({value:P,done:g})).catch(P=>o("throw",P,d,f))}catch(P){f(P)}},s=l=>c[l]=p=>new Promise((d,f)=>o(l,p,d,f)),c={};return r=r.apply(t,e),c[so("asyncIterator")]=()=>c,s("next"),s("throw"),s("return"),c};var ca={};fe(ca,{ActivityServiceV1Service:()=>ve,AnonymousService:()=>_e,ApiClientServiceV1Service:()=>ke,ApiError:()=>z,AuthorizedService:()=>Ae,BookingServiceV1Service:()=>Ge,CancelError:()=>J,CancelablePromise:()=>K,CheckoutServiceV1Service:()=>Le,CompetitionServiceV1Service:()=>Me,CorsService:()=>Ne,LoyaltyServiceV1Service:()=>we,MembershipServiceV1Service:()=>qe,OpenAPI:()=>a,PlaySessionServiceV1Service:()=>Fe,UserServiceV1Service:()=>ze,bookingRestriction:()=>Ut,bookingSubType:()=>Tt,bookingSubscription:()=>he,bookingUserStatus:()=>vt,cancellationPolicy:()=>ge,chat:()=>be,chatCreation:()=>Pe,chatTarget:()=>_t,clientType:()=>kt,directionParam:()=>At,months:()=>Gt,notificationChatGroup:()=>Oe,notificationEntity:()=>Se,pendingPayment:()=>Ee,playSessionSettings:()=>Ie,playSessionUser:()=>De,playerRefundInfo:()=>Re,playerStatusParam:()=>Lt,playingUserResponse:()=>Ce,userChatStatusParam:()=>Mt,userChatTargetParam:()=>Nt,userPunchCard:()=>xe,userRelation:()=>Ue,userRelationStatusParam:()=>wt,v1:()=>Ct});module.exports=ao(ca);var z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var J=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,_,U,w,j,X,B,K=class{constructor(e){M(this,v);M(this,_);M(this,U);M(this,w);M(this,j);M(this,X);M(this,B);x(this,v,!1),x(this,_,!1),x(this,U,!1),x(this,w,[]),x(this,j,new Promise((r,o)=>{x(this,X,r),x(this,B,o);let s=p=>{var d;O(this,v)||O(this,_)||O(this,U)||(x(this,v,!0),(d=O(this,X))==null||d.call(this,p))},c=p=>{var d;O(this,v)||O(this,_)||O(this,U)||(x(this,_,!0),(d=O(this,B))==null||d.call(this,p))},l=p=>{O(this,v)||O(this,_)||O(this,U)||O(this,w).push(p)};return Object.defineProperty(l,"isResolved",{get:()=>O(this,v)}),Object.defineProperty(l,"isRejected",{get:()=>O(this,_)}),Object.defineProperty(l,"isCancelled",{get:()=>O(this,U)}),e(s,c,l)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return O(this,j).then(e,r)}catch(e){return O(this,j).catch(e)}finally(e){return O(this,j).finally(e)}cancel(){var e;if(!(O(this,v)||O(this,_)||O(this,U))){if(x(this,U,!0),O(this,w).length)try{for(let r of O(this,w))r()}catch(r){console.warn("Cancellation threw an error",r);return}O(this,w).length=0,(e=O(this,B))==null||e.call(this,new J("Request aborted"))}}get isCancelled(){return O(this,U)}};v=new WeakMap,_=new WeakMap,U=new WeakMap,w=new WeakMap,j=new WeakMap,X=new WeakMap,B=new WeakMap;var a={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 Ut=(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))(Ut||{});var he;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(he||(he={}));var Tt=(p=>(p.BOOKING="booking",p.BOOKING_PLAYER="booking_player",p.ACTIVITY="activity",p.MATCH="match",p.SPLIT="split",p.SPLIT_MAIN="split_main",p.SPLIT_INVITE="split_invite",p))(Tt||{});var vt=(l=>(l.UNAPPROVED="UNAPPROVED",l.UNCONFIRMED="UNCONFIRMED",l.DECLINED="DECLINED",l.PARTICIPANT="PARTICIPANT",l.CO_BOOKER="CO-BOOKER",l.OWNER="OWNER",l))(vt||{});var ge;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ge||(ge={}));var be;(e=>{let t;(c=>(c.ACTIVE="active",c.INACTIVE="inactive",c.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(be||(be={}));var Pe;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(Pe||(Pe={}));var _t=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(_t||{});var kt=(r=>(r.WIDGET="WIDGET",r.API="API",r))(kt||{});var At=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(At||{});var Gt=(g=>(g.JANUARY="January",g.FEBRUARY="February",g.MARCH="March",g.APRIL="April",g.MAY="May",g.JUNE="June",g.JULY="July",g.AUGUST="August",g.SEPTEMBER="September",g.OCTOBER="October",g.NOVEMBER="November",g.DECEMBER="December",g))(Gt||{});var Oe;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(Oe||(Oe={}));var Se;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Se||(Se={}));var Ee;(e=>{let t;(l=>(l.BOOKING="BOOKING",l.ACTIVITY="ACTIVITY",l.MEMBERSHIP="MEMBERSHIP",l.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Ee||(Ee={}));var Re;(e=>{let t;(p=>(p.REFUNDABLE="REFUNDABLE",p.ALREADY_REFUNDED="ALREADY_REFUNDED",p.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",p.PAID_AT_VENUE="PAID_AT_VENUE",p.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(Re||(Re={}));var Lt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Lt||{});var Ce;(e=>{let t;(l=>(l.PAID="PAID",l.INVITED="INVITED",l.JOINED="JOINED",l.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Ce||(Ce={}));var Ie;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Ie||(Ie={}));var De;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(De||(De={}));var Mt=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(Mt||{});var Nt=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(Nt||{});var xe;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(xe||(xe={}));var Ue;(e=>{let t;(p=>(p.FRIENDS="FRIENDS",p.OUTGOING="OUTGOING",p.INCOMING="INCOMING",p.BLOCKED="BLOCKED",p.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Ue||(Ue={}));var wt=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(wt||{});var Ft=t=>t!=null,Z=t=>typeof t=="string",qt=t=>Z(t)&&t!=="",zt=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]),or=t=>t instanceof FormData,no=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},po=t=>{let e=[],r=(s,c)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(c))}`)},o=(s,c)=>{Ft(c)&&(Array.isArray(c)?c.forEach(l=>{o(s,l)}):typeof c=="object"?Object.entries(c).forEach(([l,p])=>{o(`${s}[${l}]`,p)}):r(s,c))};return Object.entries(t).forEach(([s,c])=>{o(s,c)}),e.length>0?`?${e.join("&")}`:""},lo=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(c,l)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(l)?r(String(e.path[l])):c}),s=`${t.BASE}${o}`;return e.query?`${s}${po(e.query)}`:s},co=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{Z(s)||zt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>Ft(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(c=>r(o,c)):r(o,s)}),e}},Te=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),uo=(t,e)=>y(null,null,function*(){let r=yield Te(e,t.TOKEN),o=yield Te(e,t.USERNAME),s=yield Te(e,t.PASSWORD),c=yield Te(e,t.HEADERS),l=Object.entries(i(i({Accept:"application/json"},c),e.headers)).filter(([p,d])=>Ft(d)).reduce((p,[d,f])=>m(i({},p),{[d]:String(f)}),{});if(qt(r)&&(l.Authorization=`Bearer ${r}`),qt(o)&&qt(s)){let p=no(`${o}:${s}`);l.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?l["Content-Type"]=e.mediaType:zt(e.body)?l["Content-Type"]=e.body.type||"application/octet-stream":Z(e.body)?l["Content-Type"]="text/plain":or(e.body)||(l["Content-Type"]="application/json")),new Headers(l)}),mo=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):Z(t.body)||zt(t.body)||or(t.body)?t.body:JSON.stringify(t.body)},yo=(t,e,r,o,s,c,l)=>y(null,null,function*(){let p=new AbortController,d={headers:c,body:o!=null?o:s,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),l(()=>p.abort()),yield fetch(r,d)}),fo=(t,e)=>{if(e){let r=t.headers.get(e);if(Z(r))return r}},ho=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),go=(t,e)=>{var s,c;let o=i({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 z(t,e,o);if(!e.ok){let l=(s=e.status)!=null?s:"unknown",p=(c=e.statusText)!=null?c:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(t,e,`Generic Error: status: ${l}; status text: ${p}; body: ${d}`)}},n=(t,e)=>new K((r,o,s)=>y(null,null,function*(){try{let c=lo(t,e),l=co(e),p=mo(e),d=yield uo(t,e);if(!s.isCancelled){let f=yield yo(t,e,c,p,l,d,s),u=yield ho(f),S=fo(f,e.responseHeader),g={url:c,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};go(e,g),r(g.body)}}catch(c){o(c)}}));var ve=class{static getAdminActivityOccasions(e,r,o,s,c,l=10){return n(a,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,limit: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 _e=class{static listActivities(e=!1,r=!1,o,s,c,l,p,d,f,u,S,g=10){return n(a,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:c,categorySearch:l,querySearch:p,resourceTypes:d,startDate:f,endDate:u,offset:S,limit:g},errors:{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:c},errors:{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 n(a,{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,s,c,l=10){return n(a,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,limit: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 updateCompetitionAccount(e){return n(a,{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,s,c,l,p,d,f=10){return n(a,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:c,radius:l,resourceTypes:p,offset:d,limit:f},errors:{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 getRelationToUser(e){return n(a,{method:"GET",url:"/users/relations/{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 ke=class{static getApiClientList(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 Ae=class{static getActivityOccasionForUser(e){return n(a,{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 n(a,{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 n(a,{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,s,c,l,p){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,emails:l,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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return n(a,{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 n(a,{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="ALL",o,s=10){return n(a,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return n(a,{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 adminCreateChat(e){return n(a,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return n(a,{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 getUserGroupChat(e){return n(a,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return n(a,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return n(a,{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 n(a,{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 n(a,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return n(a,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return n(a,{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 n(a,{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 n(a,{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,s){return n(a,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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",s="ALL"){return n(a,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return n(a,{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},errors:{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 n(a,{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 n(a,{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 getRelations(e,r=10,o="FRIENDS"){return n(a,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 Ge=class{static getAvailabilityWithPrice(e,r,o,s,c,l,p){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,emails:l,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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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,s,c){return n(a,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 Le=class{static getCheckout(e){return n(a,{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 n(a,{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 Me=class{static updateCompetitionAccount(e){return n(a,{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 Ne=class{static options(e){return n(a,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var we=class{static createPromoCode(e){return n(a,{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 qe=class{static createMembership(e){return n(a,{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.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return n(a,{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 Fe=class{static getPlaySessionById(e){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 n(a,{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 updateUserWithId(e,r,o){return n(a,{method:"PATCH",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 n(a,{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 n(a,{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 n(a,{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",s="ALL"){return n(a,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return n(a,{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 n(a,{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,s,c){return n(a,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},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 ze=class{static getUserProfile(e){return n(a,{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 getUserChatProfile(e){return n(a,{method:"GET",url:"/profiles/users/{userId}/chat",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="ALL",o,s=10){return n(a,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return n(a,{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 adminCreateChat(e){return n(a,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return n(a,{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 getUserGroupChat(e){return n(a,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return n(a,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return n(a,{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 n(a,{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 n(a,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return n(a,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return n(a,{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 n(a,{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 getRelations(e,r=10,o="FRIENDS"){return n(a,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return n(a,{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 n(a,{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 n(a,{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 getRelationToUser(e){return n(a,{method:"GET",url:"/users/relations/{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 blockRelationToUser(e){return n(a,{method:"POST",url:"/users/relations/{userId}/block",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 unblockRelationToUser(e){return n(a,{method:"DELETE",url:"/users/relations/{userId}/block",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 listFriends(e,r=10){return n(a,{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 n(a,{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 n(a,{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 n(a,{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 Ct={};fe(Ct,{Gender:()=>ur,LinkType:()=>mr,MatchStatus:()=>dr,MemberRelation:()=>yr,MembershipStatus:()=>fr,PostingPermission:()=>hr,Source:()=>gr,Topic:()=>br,UserParticipationStatus:()=>Pr,UserRelation:()=>Or,Visibility:()=>Sr,acceptInvitation:()=>He,addUserSportProfileLevel:()=>Ot,client:()=>h,createComment:()=>Ze,createFacilityOfferOrder:()=>rt,createMatchParticipation:()=>st,createPost:()=>Ye,createUserSportProfile:()=>gt,deleteComment:()=>et,deleteMatchParticipation:()=>it,deletePost:()=>We,deleteUserSportProfile:()=>bt,deleteUserSportProfileLevel:()=>St,getCommunity:()=>Ve,getMatch:()=>ot,getMatchUserPrice:()=>at,getNotificationById:()=>ct,getNotifications:()=>pe,getNotificationsPreferences:()=>pt,getPost:()=>Je,getRecommendations:()=>ce,getSportAuthorities:()=>mt,getUserFacilityPermissions:()=>yt,getUserSportProfile:()=>Pt,getUserSportProfiles:()=>ht,leaveCommunity:()=>Qe,listComments:()=>ie,listCommunities:()=>re,listFacilityOffers:()=>ae,listMatches:()=>ne,listMembers:()=>oe,listPosts:()=>se,markCommentRead:()=>tt,markPostRead:()=>Xe,queries:()=>Rt,registerDevice:()=>dt,schemas:()=>$e,searchUsers:()=>le,updateAllNotifications:()=>nt,updateNotification:()=>ut,updateNotificationsPreferences:()=>lt,updateUserProfile:()=>ft,updateUserSportProfileLevel:()=>Et});var jt={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var bo={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},yp=Object.entries(bo);var sr=S=>{var g=S,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:c,sseMaxRetryAttempts:l,sseMaxRetryDelay:p,sseSleepFn:d,url:f}=g,u=W(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let P,V=d!=null?d:(G=>new Promise(T=>setTimeout(T,G)));return{stream:function(){return rr(this,null,function*(){var L,Q,R;let G=c!=null?c:3e3,T=0,q=(L=u.signal)!=null?L:new AbortController().signal;for(;!q.aborted;){T++;let I=u.headers instanceof Headers?u.headers:new Headers(u.headers);P!==void 0&&I.set("Last-Event-ID",P);try{let C=m(i({redirect:"follow"},u),{body:u.serializedBody,headers:I,signal:q}),ue=new Request(f,C);t&&(ue=yield new N(t(f,C)));let Wr=(Q=u.fetch)!=null?Q:globalThis.fetch,H=yield new N(Wr(ue));if(!H.ok)throw new Error(`SSE failed: ${H.status} ${H.statusText}`);if(!H.body)throw new Error("No body in SSE response");let It=H.body.pipeThrough(new TextDecoderStream).getReader(),Y="",Qt=()=>{try{It.cancel()}catch(Ht){}};q.addEventListener("abort",Qt);try{for(;;){let{done:Ht,value:Jr}=yield new N(It.read());if(Ht)break;Y+=Jr,Y=Y.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let Ht=Y.split(`
3
+ `);let Yt=Y.split(`
4
4
 
5
- `);Y=(R=Ht.pop())!=null?R:"";for(let Jr of Ht){let Xr=Jr.split(`
6
- `),me=[],Yt;for(let D of Xr)if(D.startsWith("data:"))me.push(D.replace(/^data:\s*/,""));else if(D.startsWith("event:"))Yt=D.replace(/^event:\s*/,"");else if(D.startsWith("id:"))P=D.replace(/^id:\s*/,"");else if(D.startsWith("retry:")){let It=Number.parseInt(D.replace(/^retry:\s*/,""),10);Number.isNaN(It)||(G=It)}let F,Wt=!1;if(me.length){let D=me.join(`
7
- `);try{F=JSON.parse(D),Wt=!0}catch(It){F=D}}Wt&&(s&&(yield new N(s(F))),o&&(F=yield new N(o(F)))),r==null||r({data:F,event:Yt,id:P,retry:G}),me.length&&(yield F)}}}finally{q.removeEventListener("abort",Vt),Ct.releaseLock()}break}catch(C){if(e==null||e(C),l!==void 0&&T>=l)break;let ue=Math.min(G*2**(T-1),p!=null?p:3e4);yield new N(V(ue))}}})}()}};var bo=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Po=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Oo=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ze=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let p=(t?s:s.map(d=>encodeURIComponent(d))).join(Po(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let c=bo(o),l=s.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):$({allowReserved:t,name:r,value:p})).join(c);return o==="label"||o==="matrix"?c+l:l},$=({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)}`},je=({allowReserved:t,explode:e,name:r,style:o,value:s,valueOnly:c})=>{if(s instanceof Date)return c?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(s).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let f=d.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let l=Oo(o),p=Object.entries(s).map(([d,f])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(l);return o==="label"||o==="matrix"?l+p:p};var So=/\{[^{}]+\}/g,Eo=({path:t,url:e})=>{let r=e,o=e.match(So);if(o)for(let s of o){let c=!1,l=s.substring(1,s.length-1),p="simple";l.endsWith("*")&&(c=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),p="label"):l.startsWith(";")&&(l=l.substring(1),p="matrix");let d=t[l];if(d==null)continue;if(Array.isArray(d)){r=r.replace(s,ze({explode:c,name:l,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(s,je({explode:c,name:l,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(s,`;${$({name:l,value:d})}`);continue}let f=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(s,f)}return r},sr=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let c=s.startsWith("/")?s:`/${s}`,l=(t!=null?t:"")+c;e&&(l=Eo({path:e,url:l}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(l+=`?${p}`),l};function jt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var ir=(t,e)=>y(null,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 ar=(r={})=>{var o=r,{parameters:t={}}=o,e=W(o,["parameters"]);return c=>{let l=[];if(c&&typeof c=="object")for(let p in c){let d=c[p];if(d==null)continue;let f=t[p]||e;if(Array.isArray(d)){let u=ze(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"form",value:d},f.array));u&&l.push(u)}else if(typeof d=="object"){let u=je(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"deepObject",value:d},f.object));u&&l.push(u)}else{let u=$({allowReserved:f.allowReserved,name:p,value:d});u&&l.push(u)}}return l.join("&")}},nr=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"}},Ro=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},pr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=W(o,["security"]);var s;for(let c of t){if(Ro(e,c.name))continue;let l=yield ir(c,e.auth);if(!l)continue;let p=(s=c.name)!=null?s:"Authorization";switch(c.in){case"query":e.query||(e.query={}),e.query[p]=l;break;case"cookie":e.headers.append("Cookie",`${p}=${l}`);break;default:e.headers.set(p,l);break}}}),Bt=t=>sr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:ar(t.querySerializer),url:t.url}),Kt=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Be(t.headers,e.headers),r},Co=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},Be=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Co(r):Object.entries(r);for(let[s,c]of o)if(c===null)e.delete(s);else if(Array.isArray(c))for(let l of c)e.append(s,l);else c!==void 0&&e.set(s,typeof c=="object"?JSON.stringify(c):c)}return e},ee=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},lr=()=>({error:new ee,request:new ee,response:new ee}),Io=ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Do={"Content-Type":"application/json"},te=(t={})=>i(m(i({},zt),{headers:Do,parseAs:"auto",querySerializer:Io}),t);var $t=(t={})=>{let e=Kt(te(),t),r=()=>i({},e),o=f=>(e=Kt(e,f),r()),s=lr(),c=f=>y(null,null,function*(){var g,P;let u=m(i(i({},e),f),{fetch:(P=(g=f.fetch)!=null?g:e.fetch)!=null?P:globalThis.fetch,headers:Be(e.headers,f.headers),serializedBody:void 0});u.security&&(yield pr(m(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=Bt(u);return{opts:u,url:S}}),l=f=>y(null,null,function*(){var Q;let{opts:u,url:S}=yield c(f),g=m(i({redirect:"follow"},u),{body:jt(u)}),P=new Request(S,g);for(let R of s.request.fns)R&&(P=yield R(P,u));let V=u.fetch,E;try{E=yield V(P)}catch(R){let I=R;for(let C of s.error.fns)C&&(I=yield C(R,void 0,P,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:P,response:void 0}}for(let R of s.response.fns)R&&(E=yield R(E,P,u));let A={request:P,response:E};if(E.ok){let R=(Q=u.parseAs==="auto"?nr(E.headers.get("Content-Type")):u.parseAs)!=null?Q:"json";if(E.status===204||E.headers.get("Content-Length")==="0"){let C;switch(R){case"arrayBuffer":case"blob":case"text":C=yield E[R]();break;case"formData":C=new FormData;break;case"stream":C=E.body;break;default:C={};break}return u.responseStyle==="data"?C:i({data:C},A)}let I;switch(R){case"arrayBuffer":case"blob":case"formData":case"text":I=yield E[R]();break;case"json":{let C=yield E.text();I=C?JSON.parse(C):{};break}case"stream":return u.responseStyle==="data"?E.body:i({data:E.body},A)}return R==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:i({data:I},A)}let G=yield E.text(),T;try{T=JSON.parse(G)}catch(R){}let q=T!=null?T:G,M=q;for(let R of s.error.fns)R&&(M=yield R(q,E,P,u));if(M=M||{},u.throwOnError)throw M;return u.responseStyle==="data"?void 0:i({error:M},A)}),p=f=>u=>l(m(i({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:S,url:g}=yield c(u);return or(m(i({},S),{body:S.body,headers:S.headers,method:f,onRequest:(P,V)=>y(null,null,function*(){let E=new Request(P,V);for(let A of s.request.fns)A&&(E=yield A(E,S));return E}),serializedBody:jt(S),url:g}))});return{buildUrl:Bt,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:s,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:l,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:p("TRACE")}};var h=$t(te({baseUrl:"https://api.matchi.com/v1"}));var Ke={};fe(Ke,{AuthorSchema:()=>xo,ChannelsSchema:()=>Uo,CommentListResponseSchema:()=>vo,CommentSchema:()=>To,CommunityItemSchema:()=>_o,CommunityListResponseSchema:()=>ko,CommunityPayloadSchema:()=>Ao,CreateCommentRequestSchema:()=>Go,CreateMatchParticipationRequestSchema:()=>Mo,CreatePostRequestSchema:()=>Lo,CreateSportProfileLevelRequestSchema:()=>No,CreateSportProfileRequestSchema:()=>wo,ExternalServiceSchema:()=>qo,FacilityListSchema:()=>zo,FacilityMessagePayloadSchema:()=>jo,FacilityOfferConditionActivitiesSchema:()=>$o,FacilityOfferConditionCourtsSchema:()=>Vo,FacilityOfferConditionDateSchema:()=>Qo,FacilityOfferConditionHoursinadvanceSchema:()=>Ho,FacilityOfferConditionSchema:()=>Ko,FacilityOfferConditionTimeSchema:()=>Yo,FacilityOfferConditionWeekdaysSchema:()=>Wo,FacilityOfferListSchema:()=>Jo,FacilityOfferOrderSchema:()=>Xo,FacilityOfferSchema:()=>Bo,FacilityPermissionSchema:()=>Zo,FacilityPermissionsResponseSchema:()=>es,FacilityPunchCardDataSchema:()=>ts,FacilitySchema:()=>Fo,FacilityValueCardDataSchema:()=>rs,GenderSchema:()=>os,LinkTypeSchema:()=>ss,MatchBasePriceSchema:()=>as,MatchCourtSchema:()=>ns,MatchDetailSchema:()=>ps,MatchEventSchema:()=>ls,MatchListSchema:()=>cs,MatchOccasionDetailSchema:()=>ms,MatchOccasionSchema:()=>us,MatchParticipantsSchema:()=>ds,MatchPriceListEntrySchema:()=>ys,MatchSchema:()=>is,MatchStatusSchema:()=>fs,MatchUserPriceSchema:()=>hs,MemberListResponseSchema:()=>bs,MemberRelationSchema:()=>Ps,MemberSchema:()=>gs,MembershipStatusSchema:()=>Os,MetadataSchema:()=>Ss,NotificationPayloadSchema:()=>Rs,NotificationRequestBodySchema:()=>Cs,NotificationSchema:()=>Es,NotificationsFilterSchema:()=>Is,NotificationsPaginatedResponseSchema:()=>Ds,NotificationsSummarySchema:()=>xs,OffsetPaginatedResultSetSchema:()=>Us,PaginationMetaSchema:()=>Ts,ParticipantDetailSchema:()=>vs,ParticipantSummarySchema:()=>_s,PatchCommentRequestSchema:()=>ks,PatchPostRequestSchema:()=>As,PaymentCommandSchema:()=>Gs,PaymentDetailsSchema:()=>Ms,PostLinkSchema:()=>Ns,PostListResponseSchema:()=>ws,PostSchema:()=>Ls,PostingPermissionSchema:()=>qs,PreferenceSchema:()=>Fs,PreferencesResponseSchema:()=>zs,RecommendationListSchema:()=>Bs,RecommendationSchema:()=>js,RefundPolicySchema:()=>Ks,RegisterDeviceRequestSchema:()=>$s,SourceSchema:()=>Vs,SportAuthoritiesResponseSchema:()=>Qs,SportAuthoritySchema:()=>Hs,SportLevelSchema:()=>Ys,SportProfileAttributeSchema:()=>Js,SportProfileLevelSchema:()=>Xs,SportProfileSchema:()=>Ws,SportProfilesResponseSchema:()=>Zs,TopicSchema:()=>ei,UpdatePreferencesRequestBodySchema:()=>ti,UpdateSportProfileLevelRequestSchema:()=>ri,UpdateUsersProfilesRequestSchema:()=>oi,UserParticipationStatusSchema:()=>si,UserProfileSchema:()=>ii,UserRelationSchema:()=>ai,UsersProfilesPaginatedResponseSchema:()=>ni,VisibilitySchema:()=>pi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>li,pkgOpenapiSharedErrorSchema:()=>ci,pkgOpenapiSharedErrorsSchema:()=>ui,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>mi,pkgOpenapiSharedProblemDetailsSchema:()=>di});var xo={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
5
+ `);Y=(R=Yt.pop())!=null?R:"";for(let Xr of Yt){let Zr=Xr.split(`
6
+ `),me=[],Wt;for(let D of Zr)if(D.startsWith("data:"))me.push(D.replace(/^data:\s*/,""));else if(D.startsWith("event:"))Wt=D.replace(/^event:\s*/,"");else if(D.startsWith("id:"))P=D.replace(/^id:\s*/,"");else if(D.startsWith("retry:")){let Dt=Number.parseInt(D.replace(/^retry:\s*/,""),10);Number.isNaN(Dt)||(G=Dt)}let F,Jt=!1;if(me.length){let D=me.join(`
7
+ `);try{F=JSON.parse(D),Jt=!0}catch(Dt){F=D}}Jt&&(s&&(yield new N(s(F))),o&&(F=yield new N(o(F)))),r==null||r({data:F,event:Wt,id:P,retry:G}),me.length&&(yield F)}}}finally{q.removeEventListener("abort",Qt),It.releaseLock()}break}catch(C){if(e==null||e(C),l!==void 0&&T>=l)break;let ue=Math.min(G*2**(T-1),p!=null?p:3e4);yield new N(V(ue))}}})}()}};var Po=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Oo=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},So=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},je=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let p=(t?s:s.map(d=>encodeURIComponent(d))).join(Oo(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let c=Po(o),l=s.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):$({allowReserved:t,name:r,value:p})).join(c);return o==="label"||o==="matrix"?c+l:l},$=({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)}`},Be=({allowReserved:t,explode:e,name:r,style:o,value:s,valueOnly:c})=>{if(s instanceof Date)return c?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(s).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let f=d.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let l=So(o),p=Object.entries(s).map(([d,f])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(l);return o==="label"||o==="matrix"?l+p:p};var Eo=/\{[^{}]+\}/g,Ro=({path:t,url:e})=>{let r=e,o=e.match(Eo);if(o)for(let s of o){let c=!1,l=s.substring(1,s.length-1),p="simple";l.endsWith("*")&&(c=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),p="label"):l.startsWith(";")&&(l=l.substring(1),p="matrix");let d=t[l];if(d==null)continue;if(Array.isArray(d)){r=r.replace(s,je({explode:c,name:l,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(s,Be({explode:c,name:l,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(s,`;${$({name:l,value:d})}`);continue}let f=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(s,f)}return r},ir=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let c=s.startsWith("/")?s:`/${s}`,l=(t!=null?t:"")+c;e&&(l=Ro({path:e,url:l}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(l+=`?${p}`),l};function Bt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var ar=(t,e)=>y(null,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 nr=(r={})=>{var o=r,{parameters:t={}}=o,e=W(o,["parameters"]);return c=>{let l=[];if(c&&typeof c=="object")for(let p in c){let d=c[p];if(d==null)continue;let f=t[p]||e;if(Array.isArray(d)){let u=je(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"form",value:d},f.array));u&&l.push(u)}else if(typeof d=="object"){let u=Be(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"deepObject",value:d},f.object));u&&l.push(u)}else{let u=$({allowReserved:f.allowReserved,name:p,value:d});u&&l.push(u)}}return l.join("&")}},pr=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"}},Co=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},lr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=W(o,["security"]);var s;for(let c of t){if(Co(e,c.name))continue;let l=yield ar(c,e.auth);if(!l)continue;let p=(s=c.name)!=null?s:"Authorization";switch(c.in){case"query":e.query||(e.query={}),e.query[p]=l;break;case"cookie":e.headers.append("Cookie",`${p}=${l}`);break;default:e.headers.set(p,l);break}}}),Kt=t=>ir({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:nr(t.querySerializer),url:t.url}),$t=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Ke(t.headers,e.headers),r},Io=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},Ke=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Io(r):Object.entries(r);for(let[s,c]of o)if(c===null)e.delete(s);else if(Array.isArray(c))for(let l of c)e.append(s,l);else c!==void 0&&e.set(s,typeof c=="object"?JSON.stringify(c):c)}return e},ee=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},cr=()=>({error:new ee,request:new ee,response:new ee}),Do=nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),xo={"Content-Type":"application/json"},te=(t={})=>i(m(i({},jt),{headers:xo,parseAs:"auto",querySerializer:Do}),t);var Vt=(t={})=>{let e=$t(te(),t),r=()=>i({},e),o=f=>(e=$t(e,f),r()),s=cr(),c=f=>y(null,null,function*(){var g,P;let u=m(i(i({},e),f),{fetch:(P=(g=f.fetch)!=null?g:e.fetch)!=null?P:globalThis.fetch,headers:Ke(e.headers,f.headers),serializedBody:void 0});u.security&&(yield lr(m(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=Kt(u);return{opts:u,url:S}}),l=f=>y(null,null,function*(){var Q;let{opts:u,url:S}=yield c(f),g=m(i({redirect:"follow"},u),{body:Bt(u)}),P=new Request(S,g);for(let R of s.request.fns)R&&(P=yield R(P,u));let V=u.fetch,E;try{E=yield V(P)}catch(R){let I=R;for(let C of s.error.fns)C&&(I=yield C(R,void 0,P,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:P,response:void 0}}for(let R of s.response.fns)R&&(E=yield R(E,P,u));let A={request:P,response:E};if(E.ok){let R=(Q=u.parseAs==="auto"?pr(E.headers.get("Content-Type")):u.parseAs)!=null?Q:"json";if(E.status===204||E.headers.get("Content-Length")==="0"){let C;switch(R){case"arrayBuffer":case"blob":case"text":C=yield E[R]();break;case"formData":C=new FormData;break;case"stream":C=E.body;break;default:C={};break}return u.responseStyle==="data"?C:i({data:C},A)}let I;switch(R){case"arrayBuffer":case"blob":case"formData":case"text":I=yield E[R]();break;case"json":{let C=yield E.text();I=C?JSON.parse(C):{};break}case"stream":return u.responseStyle==="data"?E.body:i({data:E.body},A)}return R==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:i({data:I},A)}let G=yield E.text(),T;try{T=JSON.parse(G)}catch(R){}let q=T!=null?T:G,L=q;for(let R of s.error.fns)R&&(L=yield R(q,E,P,u));if(L=L||{},u.throwOnError)throw L;return u.responseStyle==="data"?void 0:i({error:L},A)}),p=f=>u=>l(m(i({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:S,url:g}=yield c(u);return sr(m(i({},S),{body:S.body,headers:S.headers,method:f,onRequest:(P,V)=>y(null,null,function*(){let E=new Request(P,V);for(let A of s.request.fns)A&&(E=yield A(E,S));return E}),serializedBody:Bt(S),url:g}))});return{buildUrl:Kt,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:s,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:l,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:p("TRACE")}};var h=Vt(te({baseUrl:"https://api.matchi.com/v1"}));var $e={};fe($e,{AuthorSchema:()=>Uo,ChannelsSchema:()=>To,CommentListResponseSchema:()=>_o,CommentSchema:()=>vo,CommunityItemSchema:()=>ko,CommunityListResponseSchema:()=>Ao,CommunityPayloadSchema:()=>Go,CreateCommentRequestSchema:()=>Lo,CreateMatchParticipationRequestSchema:()=>Mo,CreatePostRequestSchema:()=>No,CreateSportProfileLevelRequestSchema:()=>wo,CreateSportProfileRequestSchema:()=>qo,ExternalServiceSchema:()=>Fo,FacilityListSchema:()=>jo,FacilityMessagePayloadSchema:()=>Bo,FacilityOfferConditionActivitiesSchema:()=>Vo,FacilityOfferConditionCourtsSchema:()=>Qo,FacilityOfferConditionDateSchema:()=>Ho,FacilityOfferConditionHoursinadvanceSchema:()=>Yo,FacilityOfferConditionSchema:()=>$o,FacilityOfferConditionTimeSchema:()=>Wo,FacilityOfferConditionWeekdaysSchema:()=>Jo,FacilityOfferListSchema:()=>Xo,FacilityOfferOrderSchema:()=>Zo,FacilityOfferSchema:()=>Ko,FacilityPermissionSchema:()=>es,FacilityPermissionsResponseSchema:()=>ts,FacilityPunchCardDataSchema:()=>rs,FacilitySchema:()=>zo,FacilityValueCardDataSchema:()=>os,GenderSchema:()=>ss,LinkTypeSchema:()=>is,MatchBasePriceSchema:()=>ns,MatchCourtSchema:()=>ps,MatchDetailSchema:()=>ls,MatchEventSchema:()=>cs,MatchListSchema:()=>us,MatchOccasionDetailSchema:()=>ds,MatchOccasionSchema:()=>ms,MatchParticipantsSchema:()=>ys,MatchPriceListEntrySchema:()=>fs,MatchSchema:()=>as,MatchStatusSchema:()=>hs,MatchUserPriceSchema:()=>gs,MemberListResponseSchema:()=>Ps,MemberRelationSchema:()=>Os,MemberSchema:()=>bs,MembershipStatusSchema:()=>Ss,MetadataSchema:()=>Es,NotificationPayloadSchema:()=>Cs,NotificationRequestBodySchema:()=>Is,NotificationSchema:()=>Rs,NotificationsFilterSchema:()=>Ds,NotificationsPaginatedResponseSchema:()=>xs,NotificationsSummarySchema:()=>Us,OffsetPaginatedResultSetSchema:()=>Ts,PaginationMetaSchema:()=>vs,ParticipantDetailSchema:()=>_s,ParticipantSummarySchema:()=>ks,PatchCommentRequestSchema:()=>As,PatchPostRequestSchema:()=>Gs,PaymentCommandSchema:()=>Ls,PaymentDetailsSchema:()=>Ms,PostLinkSchema:()=>ws,PostListResponseSchema:()=>qs,PostSchema:()=>Ns,PostingPermissionSchema:()=>Fs,PreferenceSchema:()=>zs,PreferencesResponseSchema:()=>js,RecommendationListSchema:()=>Ks,RecommendationSchema:()=>Bs,RefundPolicySchema:()=>$s,RegisterDeviceRequestSchema:()=>Vs,SourceSchema:()=>Qs,SportAuthoritiesResponseSchema:()=>Hs,SportAuthoritySchema:()=>Ys,SportLevelSchema:()=>Ws,SportProfileAttributeSchema:()=>Xs,SportProfileLevelSchema:()=>Zs,SportProfileSchema:()=>Js,SportProfilesResponseSchema:()=>ei,TopicSchema:()=>ti,UpdatePreferencesRequestBodySchema:()=>ri,UpdateSportProfileLevelRequestSchema:()=>oi,UpdateUsersProfilesRequestSchema:()=>si,UserParticipationStatusSchema:()=>ii,UserProfileSchema:()=>ai,UserRelationSchema:()=>ni,UsersProfilesPaginatedResponseSchema:()=>pi,VisibilitySchema:()=>li,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ci,pkgOpenapiSharedErrorSchema:()=>ui,pkgOpenapiSharedErrorsSchema:()=>mi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>di,pkgOpenapiSharedProblemDetailsSchema:()=>yi});var Uo={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
8
8
  MEMBER \u2014 the post or comment was authored by a community member.
9
9
  UNKNOWN \u2014 the community member who authored the post or comment
10
10
  has been deleted; only the type is set, user is omitted.
11
- `,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Uo={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},To={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},vo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},_o={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},ko={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ao={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},Go={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Mo={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},No={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},wo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},qo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},Fo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},zo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},jo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Bo={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},Ko={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},$o={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Vo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Qo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Ho={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Yo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Wo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Jo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Xo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Zo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},es={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},ts={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},rs={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},os={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ss={enum:["ACTIVITY","MATCH"],type:"string"},is={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},as={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ns={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ps={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
12
- `},ls={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},cs={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},us={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
13
- `,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ms={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
11
+ `,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},To={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},vo={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},_o={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ko={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Go={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},Lo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Mo={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},No={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},wo={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},qo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Fo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},zo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Bo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ko={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},$o={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Vo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Qo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ho={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Yo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Wo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Jo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Xo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Zo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},es={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},ts={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},rs={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},os={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},ss={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},is={enum:["ACTIVITY","MATCH"],type:"string"},as={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},ns={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ps={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ls={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
12
+ `},cs={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},us={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ms={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
13
+ `,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ds={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
14
14
  `,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
15
- `},ds={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},ys={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},fs={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},hs={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},gs={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},bs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ps={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},Os={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ss={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Es={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Rs={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityPayload"}]},Cs={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Is={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Ds={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},xs={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Us={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Ts={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},vs={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},_s={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ks={properties:{is_read:{type:"boolean"}},type:"object"},As={properties:{is_read:{type:"boolean"}},type:"object"},Gs={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},Ms={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},Ls={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},Ns={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},ws={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},qs={enum:["ADMINS","MEMBERS"],type:"string"},Fs={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},zs={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},js={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
15
+ `},ys={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},fs={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},hs={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},gs={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},bs={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},Ps={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Os={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},Ss={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Es={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Rs={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Cs={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityPayload"}]},Is={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ds={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},xs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Us={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Ts={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},vs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},_s={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},ks={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},As={properties:{is_read:{type:"boolean"}},type:"object"},Gs={properties:{is_read:{type:"boolean"}},type:"object"},Ls={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},Ms={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},Ns={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ws={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},qs={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Fs={enum:["ADMINS","MEMBERS"],type:"string"},zs={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},js={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Bs={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
16
16
  `,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
17
17
  `,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
18
18
  `,nullable:!0,type:"boolean"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
19
19
  `,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
20
- `,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Bs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ks={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},$s={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Vs={enum:["FACILITY","COMMUNITY"],type:"string"},Qs={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Hs={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ys={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Ws={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Js={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Xs={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Zs={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},ei={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},ti={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ri={properties:{level:{type:"string"}},required:["level"],type:"object"},oi={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},si={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ii={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ai={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},ni={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},pi={enum:["HIDDEN"],type:"string"},li={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ci={properties:{message:{description:"The error message",type:"string"}},type:"object"},ui={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},mi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},di={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},$e=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ye=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ze=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},et=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},nt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},pt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ut=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},dt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},yt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ot=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},St=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var cr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},ur={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},mr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},dr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},yr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},fr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},hr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},gr={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},br={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Pr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Or={HIDDEN:"HIDDEN"};var Et={};fe(Et,{acceptInvitationMutation:()=>Oi,addUserSportProfileLevelMutation:()=>aa,createCommentMutation:()=>Ti,createFacilityOfferOrderMutation:()=>Gi,createMatchParticipationMutation:()=>wi,createPostMutation:()=>Ri,createUserSportProfileMutation:()=>oa,deleteCommentMutation:()=>vi,deleteMatchParticipationMutation:()=>qi,deletePostMutation:()=>Ci,deleteUserSportProfileLevelMutation:()=>na,deleteUserSportProfileMutation:()=>sa,getCommunityOptions:()=>hi,getCommunityQueryKey:()=>Rr,getMatchOptions:()=>Ni,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>Fi,getMatchUserPriceQueryKey:()=>Lr,getNotificationByIdOptions:()=>Vi,getNotificationByIdQueryKey:()=>Fr,getNotificationsInfiniteOptions:()=>ji,getNotificationsInfiniteQueryKey:()=>wr,getNotificationsOptions:()=>zi,getNotificationsPreferencesOptions:()=>Ki,getNotificationsPreferencesQueryKey:()=>qr,getNotificationsQueryKey:()=>Nr,getPostOptions:()=>Ii,getPostQueryKey:()=>Ur,getRecommendationsInfiniteOptions:()=>ta,getRecommendationsInfiniteQueryKey:()=>Vr,getRecommendationsOptions:()=>ea,getRecommendationsQueryKey:()=>$r,getSportAuthoritiesOptions:()=>Hi,getSportAuthoritiesQueryKey:()=>zr,getUserFacilityPermissionsOptions:()=>Xi,getUserFacilityPermissionsQueryKey:()=>Kr,getUserSportProfileOptions:()=>ia,getUserSportProfileQueryKey:()=>Hr,getUserSportProfilesOptions:()=>ra,getUserSportProfilesQueryKey:()=>Qr,leaveCommunityMutation:()=>Pi,listCommentsInfiniteOptions:()=>Ui,listCommentsInfiniteQueryKey:()=>vr,listCommentsOptions:()=>xi,listCommentsQueryKey:()=>Tr,listCommunitiesInfiniteOptions:()=>fi,listCommunitiesInfiniteQueryKey:()=>Er,listCommunitiesOptions:()=>yi,listCommunitiesQueryKey:()=>Sr,listFacilityOffersInfiniteOptions:()=>Ai,listFacilityOffersInfiniteQueryKey:()=>kr,listFacilityOffersOptions:()=>ki,listFacilityOffersQueryKey:()=>_r,listMatchesInfiniteOptions:()=>Li,listMatchesInfiniteQueryKey:()=>Gr,listMatchesOptions:()=>Mi,listMatchesQueryKey:()=>Ar,listMembersInfiniteOptions:()=>bi,listMembersInfiniteQueryKey:()=>Ir,listMembersOptions:()=>gi,listMembersQueryKey:()=>Cr,listPostsInfiniteOptions:()=>Ei,listPostsInfiniteQueryKey:()=>xr,listPostsOptions:()=>Si,listPostsQueryKey:()=>Dr,markCommentReadMutation:()=>_i,markPostReadMutation:()=>Di,registerDeviceMutation:()=>Ji,searchUsersInfiniteOptions:()=>Wi,searchUsersInfiniteQueryKey:()=>Br,searchUsersOptions:()=>Yi,searchUsersQueryKey:()=>jr,updateAllNotificationsMutation:()=>Bi,updateNotificationMutation:()=>Qi,updateNotificationsPreferencesMutation:()=>$i,updateUserProfileMutation:()=>Zi,updateUserSportProfileLevelMutation:()=>pa});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Sr=t=>b("listCommunities",t),yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Sr(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Er=t=>b("listCommunities",t,!0),fi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Er(t)}),Rr=t=>b("getCommunity",t),hi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield $e(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Rr(t)}),Cr=t=>b("listMembers",t),gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t,!0),bi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ir(t)}),Pi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ve(m(i(i({},t),r),{throwOnError:!0}));return o})}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Dr=t=>b("listPosts",t),Si=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Dr(t)}),xr=t=>b("listPosts",t,!0),Ei=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:xr(t)}),Ri=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ur=t=>b("getPost",t),Ii=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield We(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ur(t)}),Di=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Je(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("listComments",t),xi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),vr=t=>b("listComments",t,!0),Ui=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:vr(t)}),Ti=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(m(i(i({},t),r),{throwOnError:!0}));return o})}),_r=t=>b("ListFacilityOffers",t),ki=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_r(t)}),kr=t=>b("ListFacilityOffers",t,!0),Ai=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:kr(t)}),Gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ar=t=>b("ListMatches",t),Mi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ar(t)}),Gr=t=>b("ListMatches",t,!0),Li=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Gr(t)}),Mr=t=>b("GetMatch",t),Ni=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield rt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),wi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ot(m(i(i({},t),r),{throwOnError:!0}));return o})}),qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield st(m(i(i({},t),r),{throwOnError:!0}));return o})}),Lr=t=>b("GetMatchUserPrice",t),Fi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield it(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Lr(t)}),Nr=t=>b("GetNotifications",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t,!0),ji=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:wr(t)}),Bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(m(i(i({},t),r),{throwOnError:!0}));return o})}),qr=t=>b("GetNotificationsPreferences",t),Ki=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield nt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:qr(t)}),$i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationById",t),Vi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield lt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),Qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("getSportAuthorities",t),Hi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ut(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),jr=t=>b("searchUsers",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t,!0),Wi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Br(t)}),Ji=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield mt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Kr=t=>b("getUserFacilityPermissions",t),Xi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield dt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Kr(t)}),Zi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("GetRecommendations",t),ea=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),Vr=t=>b("GetRecommendations",t,!0),ta=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ce(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Vr(t)}),Qr=t=>b("getUserSportProfiles",t),ra=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ft(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Qr(t)}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(m(i(i({},t),r),{throwOnError:!0}));return o})}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Hr=t=>b("getUserSportProfile",t),ia=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield bt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),aa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(m(i(i({},t),r),{throwOnError:!0}));return o})}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ot(m(i(i({},t),r),{throwOnError:!0}));return o})}),pa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(m(i(i({},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,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
20
+ `,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Ks={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},$s={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Vs={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Qs={enum:["FACILITY","COMMUNITY"],type:"string"},Hs={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ys={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ws={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Js={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Xs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Zs={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},ti={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},ri={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},oi={properties:{level:{type:"string"}},required:["level"],type:"object"},si={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ii={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ai={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ni={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},pi={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},li={enum:["HIDDEN"],type:"string"},ci={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ui={properties:{message:{description:"The error message",type:"string"}},type:"object"},mi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},di={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},yi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},We=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},st=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},it=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},pt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},mt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},yt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},gt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},bt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},St=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ur={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},mr={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},dr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},fr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},hr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},gr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},br={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},Pr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Or={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Sr={HIDDEN:"HIDDEN"};var Rt={};fe(Rt,{acceptInvitationMutation:()=>Si,addUserSportProfileLevelMutation:()=>na,createCommentMutation:()=>vi,createFacilityOfferOrderMutation:()=>Li,createMatchParticipationMutation:()=>qi,createPostMutation:()=>Ci,createUserSportProfileMutation:()=>sa,deleteCommentMutation:()=>_i,deleteMatchParticipationMutation:()=>Fi,deletePostMutation:()=>Ii,deleteUserSportProfileLevelMutation:()=>pa,deleteUserSportProfileMutation:()=>ia,getCommunityOptions:()=>gi,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>wi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>zi,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Qi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>Bi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>ji,getNotificationsPreferencesOptions:()=>$i,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Di,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>ra,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>ta,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>Yi,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Zi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>aa,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>oa,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>Oi,listCommentsInfiniteOptions:()=>Ti,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ui,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>hi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>fi,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>Gi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ai,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ni,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>Mi,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>Pi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>bi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Ri,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>Ei,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>ki,markPostReadMutation:()=>xi,registerDeviceMutation:()=>Xi,searchUsersInfiniteOptions:()=>Ji,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Wi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Ki,updateNotificationMutation:()=>Hi,updateNotificationsPreferencesMutation:()=>Vi,updateUserProfileMutation:()=>ea,updateUserSportProfileLevelMutation:()=>la});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Er=t=>b("listCommunities",t),fi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Er(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Rr=t=>b("listCommunities",t,!0),hi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t),bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ir(t)}),Dr=t=>b("listMembers",t,!0),Pi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Dr(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",t),Ei=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xr(t)}),Ur=t=>b("listPosts",t,!0),Ri=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ur(t)}),Ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield We(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Di=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Je(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vr(t)}),_r=t=>b("listComments",t,!0),Ti=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:_r(t)}),vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(m(i(i({},t),r),{throwOnError:!0}));return o})}),ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ai=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),Gi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield rt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",t),Mi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Gr(t)}),Lr=t=>b("ListMatches",t,!0),Ni=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",t),wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield st(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t),ji=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wr(t)}),qr=t=>b("GetNotifications",t,!0),Bi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),Vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield lt(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Qi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ct(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Br(t)}),Kr=t=>b("searchUsers",t,!0),Ji=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield yt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),ta=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),ra=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ce(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ht(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),aa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Yr(t)}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ot(m(i(i({},t),r),{throwOnError:!0}));return o})}),pa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(m(i(i({},t),r),{throwOnError:!0}));return o})}),la=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Et(m(i(i({},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,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerRefundInfo,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});