@matchi/api 0.20260519.1 → 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.
- package/dist/main/index.d.mts +37 -1
- package/dist/main/index.d.ts +37 -1
- package/dist/main/index.js +10 -10
- package/dist/main/index.mjs +9 -9
- package/package.json +1 -1
package/dist/main/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var qt=Object.defineProperty,Zr=Object.defineProperties;var eo=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Ft=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var to=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),jt=t=>{throw TypeError(t)};var wt=(t,e,r)=>e in t?qt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Ft.call(e,r)&&wt(t,r,e[r]);if(me)for(var r of me(e))zt.call(e,r)&&wt(t,r,e[r]);return t},m=(t,e)=>Zr(t,eo(e));var Y=(t,e)=>{var r={};for(var o in t)Ft.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&me)for(var o of me(t))e.indexOf(o)<0&&zt.call(t,o)&&(r[o]=t[o]);return r};var Ze=(t,e)=>{for(var r in e)qt(t,r,{get:e[r],enumerable:!0})};var Bt=(t,e,r)=>e.has(t)||jt("Cannot "+r);var O=(t,e,r)=>(Bt(t,e,"read from private field"),r?r.call(t):e.get(t)),L=(t,e,r)=>e.has(t)?jt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(Bt(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},Kt=(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[to("asyncIterator")]=()=>c,s("next"),s("throw"),s("return"),c};var j=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 de=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,_,U,w,z,J,B,W=class{constructor(e){L(this,v);L(this,_);L(this,U);L(this,w);L(this,z);L(this,J);L(this,B);x(this,v,!1),x(this,_,!1),x(this,U,!1),x(this,w,[]),x(this,z,new Promise((r,o)=>{x(this,J,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,J))==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,z).then(e,r)}catch(e){return O(this,z).catch(e)}finally(e){return O(this,z).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 de("Request aborted"))}}get isCancelled(){return O(this,U)}};v=new WeakMap,_=new WeakMap,U=new WeakMap,w=new WeakMap,z=new WeakMap,J=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 $t=(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))($t||{});var et;(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={}))})(et||(et={}));var Vt=(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))(Vt||{});var Qt=(l=>(l.UNAPPROVED="UNAPPROVED",l.UNCONFIRMED="UNCONFIRMED",l.DECLINED="DECLINED",l.PARTICIPANT="PARTICIPANT",l.CO_BOOKER="CO-BOOKER",l.OWNER="OWNER",l))(Qt||{});var tt;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(tt||(tt={}));var rt;(e=>{let t;(c=>(c.ACTIVE="active",c.INACTIVE="inactive",c.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(rt||(rt={}));var ot;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(ot||(ot={}));var Ht=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Ht||{});var Yt=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Yt||{});var Wt=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Wt||{});var Jt=(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))(Jt||{});var st;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(st||(st={}));var it;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(it||(it={}));var at;(e=>{let t;(l=>(l.BOOKING="BOOKING",l.ACTIVITY="ACTIVITY",l.MEMBERSHIP="MEMBERSHIP",l.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(at||(at={}));var Xt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Xt||{});var nt;(e=>{let t;(l=>(l.PAID="PAID",l.INVITED="INVITED",l.JOINED="JOINED",l.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(nt||(nt={}));var pt;(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={}))})(pt||(pt={}));var lt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(lt||(lt={}));var Zt=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(Zt||{});var er=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(er||{});var ct;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ct||(ct={}));var ut;(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={}))})(ut||(ut={}));var tr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(tr||{});var dt=t=>t!=null,X=t=>typeof t=="string",mt=t=>X(t)&&t!=="",yt=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,ro=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},oo=t=>{let e=[],r=(s,c)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(c))}`)},o=(s,c)=>{dt(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("&")}`:""},so=(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}${oo(e.query)}`:s},io=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{X(s)||yt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>dt(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(c=>r(o,c)):r(o,s)}),e}},ye=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ao=(t,e)=>y(null,null,function*(){let r=yield ye(e,t.TOKEN),o=yield ye(e,t.USERNAME),s=yield ye(e,t.PASSWORD),c=yield ye(e,t.HEADERS),l=Object.entries(i(i({Accept:"application/json"},c),e.headers)).filter(([p,d])=>dt(d)).reduce((p,[d,f])=>m(i({},p),{[d]:String(f)}),{});if(mt(r)&&(l.Authorization=`Bearer ${r}`),mt(o)&&mt(s)){let p=ro(`${o}:${s}`);l.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?l["Content-Type"]=e.mediaType:yt(e.body)?l["Content-Type"]=e.body.type||"application/octet-stream":X(e.body)?l["Content-Type"]="text/plain":rr(e.body)||(l["Content-Type"]="application/json")),new Headers(l)}),no=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):X(t.body)||yt(t.body)||rr(t.body)?t.body:JSON.stringify(t.body)},po=(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)}),lo=(t,e)=>{if(e){let r=t.headers.get(e);if(X(r))return r}},co=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)}}),uo=(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 j(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 j(t,e,`Generic Error: status: ${l}; status text: ${p}; body: ${d}`)}},n=(t,e)=>new W((r,o,s)=>y(null,null,function*(){try{let c=so(t,e),l=io(e),p=no(e),d=yield ao(t,e);if(!s.isCancelled){let f=yield po(t,e,c,p,l,d,s),u=yield co(f),S=lo(f,e.responseHeader),g={url:c,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};uo(e,g),r(g.body)}}catch(c){o(c)}}));var ft=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 ht=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 gt=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 bt=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 Pt=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 Ot=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 St=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 Et=class{static options(e){return n(a,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Rt=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 Ct=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 It=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 Dt=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 kt={};Ze(kt,{Gender:()=>cr,LinkType:()=>ur,MatchStatus:()=>mr,MemberRelation:()=>dr,MembershipStatus:()=>yr,PostingPermission:()=>fr,Source:()=>hr,Topic:()=>gr,UserParticipationStatus:()=>br,UserRelation:()=>Pr,Visibility:()=>Or,acceptInvitation:()=>Se,addUserSportProfileLevel:()=>Qe,client:()=>h,createComment:()=>De,createFacilityOfferOrder:()=>Te,createMatchParticipation:()=>_e,createPost:()=>Ee,createUserSportProfile:()=>Ke,deleteComment:()=>xe,deleteMatchParticipation:()=>ke,deletePost:()=>Re,deleteUserSportProfile:()=>$e,deleteUserSportProfileLevel:()=>He,getCommunity:()=>Pe,getMatch:()=>ve,getMatchUserPrice:()=>Ae,getNotificationById:()=>Ne,getNotifications:()=>ne,getNotificationsPreferences:()=>Me,getPost:()=>Ce,getRecommendations:()=>le,getSportAuthorities:()=>qe,getUserFacilityPermissions:()=>ze,getUserSportProfile:()=>Ve,getUserSportProfiles:()=>Be,leaveCommunity:()=>Oe,listComments:()=>se,listCommunities:()=>te,listFacilityOffers:()=>ie,listMatches:()=>ae,listMembers:()=>re,listPosts:()=>oe,markCommentRead:()=>Ue,markPostRead:()=>Ie,queries:()=>We,registerDevice:()=>Fe,schemas:()=>be,searchUsers:()=>pe,updateAllNotifications:()=>Ge,updateNotification:()=>we,updateNotificationsPreferences:()=>Le,updateUserProfile:()=>je,updateUserSportProfileLevel:()=>Ye});var xt={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var mo={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},ap=Object.entries(mo);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=Y(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let P,$=d!=null?d:(G=>new Promise(T=>setTimeout(T,G)));return{stream:function(){return Kt(this,null,function*(){var M,V,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}),ce=new Request(f,C);t&&(ce=yield new N(t(f,C)));let Yr=(V=u.fetch)!=null?V:globalThis.fetch,Q=yield new N(Yr(ce));if(!Q.ok)throw new Error(`SSE failed: ${Q.status} ${Q.statusText}`);if(!Q.body)throw new Error("No body in SSE response");let Je=Q.body.pipeThrough(new TextDecoderStream).getReader(),H="",At=()=>{try{Je.cancel()}catch(Gt){}};q.addEventListener("abort",At);try{for(;;){let{done:Gt,value:Wr}=yield new N(Je.read());if(Gt)break;H+=Wr,H=H.replace(/\r\n/g,`
|
|
1
|
+
var Ft=Object.defineProperty,eo=Object.defineProperties;var to=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var zt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable;var ro=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Bt=t=>{throw TypeError(t)};var qt=(t,e,r)=>e in t?Ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))zt.call(e,r)&&qt(t,r,e[r]);if(me)for(var r of me(e))jt.call(e,r)&&qt(t,r,e[r]);return t},m=(t,e)=>eo(t,to(e));var Y=(t,e)=>{var r={};for(var o in t)zt.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&me)for(var o of me(t))e.indexOf(o)<0&&jt.call(t,o)&&(r[o]=t[o]);return r};var Ze=(t,e)=>{for(var r in e)Ft(t,r,{get:e[r],enumerable:!0})};var Kt=(t,e,r)=>e.has(t)||Bt("Cannot "+r);var O=(t,e,r)=>(Kt(t,e,"read from private field"),r?r.call(t):e.get(t)),M=(t,e,r)=>e.has(t)?Bt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(Kt(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},$t=(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[ro("asyncIterator")]=()=>c,s("next"),s("throw"),s("return"),c};var j=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 de=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,_,U,w,z,J,B,W=class{constructor(e){M(this,v);M(this,_);M(this,U);M(this,w);M(this,z);M(this,J);M(this,B);x(this,v,!1),x(this,_,!1),x(this,U,!1),x(this,w,[]),x(this,z,new Promise((r,o)=>{x(this,J,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,J))==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,z).then(e,r)}catch(e){return O(this,z).catch(e)}finally(e){return O(this,z).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 de("Request aborted"))}}get isCancelled(){return O(this,U)}};v=new WeakMap,_=new WeakMap,U=new WeakMap,w=new WeakMap,z=new WeakMap,J=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 Vt=(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))(Vt||{});var et;(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={}))})(et||(et={}));var Qt=(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))(Qt||{});var Ht=(l=>(l.UNAPPROVED="UNAPPROVED",l.UNCONFIRMED="UNCONFIRMED",l.DECLINED="DECLINED",l.PARTICIPANT="PARTICIPANT",l.CO_BOOKER="CO-BOOKER",l.OWNER="OWNER",l))(Ht||{});var tt;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(tt||(tt={}));var rt;(e=>{let t;(c=>(c.ACTIVE="active",c.INACTIVE="inactive",c.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(rt||(rt={}));var ot;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(ot||(ot={}));var Yt=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Yt||{});var Wt=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Wt||{});var Jt=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Jt||{});var Xt=(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))(Xt||{});var st;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(st||(st={}));var it;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(it||(it={}));var at;(e=>{let t;(l=>(l.BOOKING="BOOKING",l.ACTIVITY="ACTIVITY",l.MEMBERSHIP="MEMBERSHIP",l.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(at||(at={}));var nt;(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={}))})(nt||(nt={}));var Zt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Zt||{});var pt;(e=>{let t;(l=>(l.PAID="PAID",l.INVITED="INVITED",l.JOINED="JOINED",l.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(pt||(pt={}));var lt;(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={}))})(lt||(lt={}));var ct;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(ct||(ct={}));var er=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(er||{});var tr=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(tr||{});var ut;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ut||(ut={}));var mt;(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={}))})(mt||(mt={}));var rr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(rr||{});var yt=t=>t!=null,X=t=>typeof t=="string",dt=t=>X(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]),or=t=>t instanceof FormData,oo=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},so=t=>{let e=[],r=(s,c)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(c))}`)},o=(s,c)=>{yt(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("&")}`:""},io=(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}${so(e.query)}`:s},ao=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{X(s)||ft(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>yt(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(c=>r(o,c)):r(o,s)}),e}},ye=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),no=(t,e)=>y(null,null,function*(){let r=yield ye(e,t.TOKEN),o=yield ye(e,t.USERNAME),s=yield ye(e,t.PASSWORD),c=yield ye(e,t.HEADERS),l=Object.entries(i(i({Accept:"application/json"},c),e.headers)).filter(([p,d])=>yt(d)).reduce((p,[d,f])=>m(i({},p),{[d]:String(f)}),{});if(dt(r)&&(l.Authorization=`Bearer ${r}`),dt(o)&&dt(s)){let p=oo(`${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":X(e.body)?l["Content-Type"]="text/plain":or(e.body)||(l["Content-Type"]="application/json")),new Headers(l)}),po=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):X(t.body)||ft(t.body)||or(t.body)?t.body:JSON.stringify(t.body)},lo=(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)}),co=(t,e)=>{if(e){let r=t.headers.get(e);if(X(r))return r}},uo=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)}}),mo=(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 j(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 j(t,e,`Generic Error: status: ${l}; status text: ${p}; body: ${d}`)}},n=(t,e)=>new W((r,o,s)=>y(null,null,function*(){try{let c=io(t,e),l=ao(e),p=po(e),d=yield no(t,e);if(!s.isCancelled){let f=yield lo(t,e,c,p,l,d,s),u=yield uo(f),S=co(f,e.responseHeader),g={url:c,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};mo(e,g),r(g.body)}}catch(c){o(c)}}));var ht=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 gt=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 bt=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 Pt=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 Ot=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 St=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 Et=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 Rt=class{static options(e){return n(a,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Ct=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 It=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 Dt=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 xt=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 At={};Ze(At,{Gender:()=>ur,LinkType:()=>mr,MatchStatus:()=>dr,MemberRelation:()=>yr,MembershipStatus:()=>fr,PostingPermission:()=>hr,Source:()=>gr,Topic:()=>br,UserParticipationStatus:()=>Pr,UserRelation:()=>Or,Visibility:()=>Sr,acceptInvitation:()=>Se,addUserSportProfileLevel:()=>Qe,client:()=>h,createComment:()=>De,createFacilityOfferOrder:()=>Te,createMatchParticipation:()=>_e,createPost:()=>Ee,createUserSportProfile:()=>Ke,deleteComment:()=>xe,deleteMatchParticipation:()=>ke,deletePost:()=>Re,deleteUserSportProfile:()=>$e,deleteUserSportProfileLevel:()=>He,getCommunity:()=>Pe,getMatch:()=>ve,getMatchUserPrice:()=>Ae,getNotificationById:()=>Ne,getNotifications:()=>ne,getNotificationsPreferences:()=>Le,getPost:()=>Ce,getRecommendations:()=>le,getSportAuthorities:()=>qe,getUserFacilityPermissions:()=>ze,getUserSportProfile:()=>Ve,getUserSportProfiles:()=>Be,leaveCommunity:()=>Oe,listComments:()=>se,listCommunities:()=>te,listFacilityOffers:()=>ie,listMatches:()=>ae,listMembers:()=>re,listPosts:()=>oe,markCommentRead:()=>Ue,markPostRead:()=>Ie,queries:()=>We,registerDevice:()=>Fe,schemas:()=>be,searchUsers:()=>pe,updateAllNotifications:()=>Ge,updateNotification:()=>we,updateNotificationsPreferences:()=>Me,updateUserProfile:()=>je,updateUserSportProfileLevel:()=>Ye});var Ut={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var yo={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},lp=Object.entries(yo);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=Y(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let P,$=d!=null?d:(G=>new Promise(T=>setTimeout(T,G)));return{stream:function(){return $t(this,null,function*(){var L,V,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}),ce=new Request(f,C);t&&(ce=yield new N(t(f,C)));let Wr=(V=u.fetch)!=null?V:globalThis.fetch,Q=yield new N(Wr(ce));if(!Q.ok)throw new Error(`SSE failed: ${Q.status} ${Q.statusText}`);if(!Q.body)throw new Error("No body in SSE response");let Je=Q.body.pipeThrough(new TextDecoderStream).getReader(),H="",Gt=()=>{try{Je.cancel()}catch(Lt){}};q.addEventListener("abort",Gt);try{for(;;){let{done:Lt,value:Jr}=yield new N(Je.read());if(Lt)break;H+=Jr,H=H.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);let Mt=H.split(`
|
|
4
4
|
|
|
5
|
-
`);H=(R=Mt.pop())!=null?R:"";for(let
|
|
6
|
-
`),ue=[],
|
|
7
|
-
`);try{F=JSON.parse(D),Nt=!0}catch(Xe){F=D}}Nt&&(s&&(yield new N(s(F))),o&&(F=yield new N(o(F)))),r==null||r({data:F,event:Lt,id:P,retry:G}),ue.length&&(yield F)}}}finally{q.removeEventListener("abort",At),Je.releaseLock()}break}catch(C){if(e==null||e(C),l!==void 0&&T>=l)break;let ce=Math.min(G*2**(T-1),p!=null?p:3e4);yield new N($(ce))}}})}()}};var yo=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fo=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ho=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fe=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let p=(t?s:s.map(d=>encodeURIComponent(d))).join(fo(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let c=yo(o),l=s.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):K({allowReserved:t,name:r,value:p})).join(c);return o==="label"||o==="matrix"?c+l:l},K=({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)}`},he=({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=ho(o),p=Object.entries(s).map(([d,f])=>K({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(l);return o==="label"||o==="matrix"?l+p:p};var go=/\{[^{}]+\}/g,bo=({path:t,url:e})=>{let r=e,o=e.match(go);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,fe({explode:c,name:l,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(s,he({explode:c,name:l,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(s,`;${K({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=bo({path:e,url:l}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(l+=`?${p}`),l};function Ut(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=Y(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=fe(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=he(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"deepObject",value:d},f.object));u&&l.push(u)}else{let u=K({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"}},Po=(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=Y(o,["security"]);var s;for(let c of t){if(Po(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}}}),Tt=t=>sr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:ar(t.querySerializer),url:t.url}),vt=(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=ge(t.headers,e.headers),r},Oo=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},ge=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Oo(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},Z=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 Z,request:new Z,response:new Z}),So=ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Eo={"Content-Type":"application/json"},ee=(t={})=>i(m(i({},xt),{headers:Eo,parseAs:"auto",querySerializer:So}),t);var _t=(t={})=>{let e=vt(ee(),t),r=()=>i({},e),o=f=>(e=vt(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:ge(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=Tt(u);return{opts:u,url:S}}),l=f=>y(null,null,function*(){var V;let{opts:u,url:S}=yield c(f),g=m(i({redirect:"follow"},u),{body:Ut(u)}),P=new Request(S,g);for(let R of s.request.fns)R&&(P=yield R(P,u));let $=u.fetch,E;try{E=yield $(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=(V=u.parseAs==="auto"?nr(E.headers.get("Content-Type")):u.parseAs)!=null?V:"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,$)=>y(null,null,function*(){let E=new Request(P,$);for(let A of s.request.fns)A&&(E=yield A(E,S));return E}),serializedBody:Ut(S),url:g}))});return{buildUrl:Tt,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(ee({baseUrl:"https://api.matchi.com/v1"}));var be={};Ze(be,{AuthorSchema:()=>Ro,ChannelsSchema:()=>Co,CommentListResponseSchema:()=>Do,CommentSchema:()=>Io,CommunityItemSchema:()=>xo,CommunityListResponseSchema:()=>Uo,CommunityPayloadSchema:()=>To,CreateCommentRequestSchema:()=>vo,CreateMatchParticipationRequestSchema:()=>_o,CreatePostRequestSchema:()=>ko,CreateSportProfileLevelRequestSchema:()=>Ao,CreateSportProfileRequestSchema:()=>Go,ExternalServiceSchema:()=>Mo,FacilityListSchema:()=>No,FacilityMessagePayloadSchema:()=>wo,FacilityOfferConditionActivitiesSchema:()=>zo,FacilityOfferConditionCourtsSchema:()=>jo,FacilityOfferConditionDateSchema:()=>Bo,FacilityOfferConditionHoursinadvanceSchema:()=>Ko,FacilityOfferConditionSchema:()=>Fo,FacilityOfferConditionTimeSchema:()=>$o,FacilityOfferConditionWeekdaysSchema:()=>Vo,FacilityOfferListSchema:()=>Qo,FacilityOfferOrderSchema:()=>Ho,FacilityOfferSchema:()=>qo,FacilityPermissionSchema:()=>Yo,FacilityPermissionsResponseSchema:()=>Wo,FacilityPunchCardDataSchema:()=>Jo,FacilitySchema:()=>Lo,FacilityValueCardDataSchema:()=>Xo,GenderSchema:()=>Zo,LinkTypeSchema:()=>es,MatchBasePriceSchema:()=>rs,MatchCourtSchema:()=>os,MatchDetailSchema:()=>ss,MatchEventSchema:()=>is,MatchListSchema:()=>as,MatchOccasionDetailSchema:()=>ps,MatchOccasionSchema:()=>ns,MatchParticipantsSchema:()=>ls,MatchPriceListEntrySchema:()=>cs,MatchSchema:()=>ts,MatchStatusSchema:()=>us,MatchUserPriceSchema:()=>ms,MemberListResponseSchema:()=>ys,MemberRelationSchema:()=>fs,MemberSchema:()=>ds,MembershipStatusSchema:()=>hs,MetadataSchema:()=>gs,NotificationPayloadSchema:()=>Ps,NotificationRequestBodySchema:()=>Os,NotificationSchema:()=>bs,NotificationsFilterSchema:()=>Ss,NotificationsPaginatedResponseSchema:()=>Es,NotificationsSummarySchema:()=>Rs,OffsetPaginatedResultSetSchema:()=>Cs,PaginationMetaSchema:()=>Is,ParticipantDetailSchema:()=>Ds,ParticipantSummarySchema:()=>xs,PatchCommentRequestSchema:()=>Us,PatchPostRequestSchema:()=>Ts,PaymentCommandSchema:()=>vs,PaymentDetailsSchema:()=>_s,PostLinkSchema:()=>As,PostListResponseSchema:()=>Gs,PostSchema:()=>ks,PostingPermissionSchema:()=>Ms,PreferenceSchema:()=>Ls,PreferencesResponseSchema:()=>Ns,RecommendationListSchema:()=>qs,RecommendationSchema:()=>ws,RefundPolicySchema:()=>Fs,RegisterDeviceRequestSchema:()=>zs,SourceSchema:()=>js,SportAuthoritiesResponseSchema:()=>Bs,SportAuthoritySchema:()=>Ks,SportLevelSchema:()=>$s,SportProfileAttributeSchema:()=>Qs,SportProfileLevelSchema:()=>Hs,SportProfileSchema:()=>Vs,SportProfilesResponseSchema:()=>Ys,TopicSchema:()=>Ws,UpdatePreferencesRequestBodySchema:()=>Js,UpdateSportProfileLevelRequestSchema:()=>Xs,UpdateUsersProfilesRequestSchema:()=>Zs,UserParticipationStatusSchema:()=>ei,UserProfileSchema:()=>ti,UserRelationSchema:()=>ri,UsersProfilesPaginatedResponseSchema:()=>oi,VisibilitySchema:()=>si,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ii,pkgOpenapiSharedErrorSchema:()=>ai,pkgOpenapiSharedErrorsSchema:()=>ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>pi,pkgOpenapiSharedProblemDetailsSchema:()=>li});var Ro={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
|
|
5
|
+
`);H=(R=Mt.pop())!=null?R:"";for(let Xr of Mt){let Zr=Xr.split(`
|
|
6
|
+
`),ue=[],Nt;for(let D of Zr)if(D.startsWith("data:"))ue.push(D.replace(/^data:\s*/,""));else if(D.startsWith("event:"))Nt=D.replace(/^event:\s*/,"");else if(D.startsWith("id:"))P=D.replace(/^id:\s*/,"");else if(D.startsWith("retry:")){let Xe=Number.parseInt(D.replace(/^retry:\s*/,""),10);Number.isNaN(Xe)||(G=Xe)}let F,wt=!1;if(ue.length){let D=ue.join(`
|
|
7
|
+
`);try{F=JSON.parse(D),wt=!0}catch(Xe){F=D}}wt&&(s&&(yield new N(s(F))),o&&(F=yield new N(o(F)))),r==null||r({data:F,event:Nt,id:P,retry:G}),ue.length&&(yield F)}}}finally{q.removeEventListener("abort",Gt),Je.releaseLock()}break}catch(C){if(e==null||e(C),l!==void 0&&T>=l)break;let ce=Math.min(G*2**(T-1),p!=null?p:3e4);yield new N($(ce))}}})}()}};var fo=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ho=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},go=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fe=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let p=(t?s:s.map(d=>encodeURIComponent(d))).join(ho(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let c=fo(o),l=s.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):K({allowReserved:t,name:r,value:p})).join(c);return o==="label"||o==="matrix"?c+l:l},K=({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)}`},he=({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=go(o),p=Object.entries(s).map(([d,f])=>K({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(l);return o==="label"||o==="matrix"?l+p:p};var bo=/\{[^{}]+\}/g,Po=({path:t,url:e})=>{let r=e,o=e.match(bo);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,fe({explode:c,name:l,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(s,he({explode:c,name:l,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(s,`;${K({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=Po({path:e,url:l}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(l+=`?${p}`),l};function Tt(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=Y(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=fe(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=he(i({allowReserved:f.allowReserved,explode:!0,name:p,style:"deepObject",value:d},f.object));u&&l.push(u)}else{let u=K({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"}},Oo=(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=Y(o,["security"]);var s;for(let c of t){if(Oo(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}}}),vt=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=ge(t.headers,e.headers),r},So=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},ge=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?So(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},Z=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 Z,request:new Z,response:new Z}),Eo=nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ro={"Content-Type":"application/json"},ee=(t={})=>i(m(i({},Ut),{headers:Ro,parseAs:"auto",querySerializer:Eo}),t);var kt=(t={})=>{let e=_t(ee(),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:ge(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=vt(u);return{opts:u,url:S}}),l=f=>y(null,null,function*(){var V;let{opts:u,url:S}=yield c(f),g=m(i({redirect:"follow"},u),{body:Tt(u)}),P=new Request(S,g);for(let R of s.request.fns)R&&(P=yield R(P,u));let $=u.fetch,E;try{E=yield $(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=(V=u.parseAs==="auto"?pr(E.headers.get("Content-Type")):u.parseAs)!=null?V:"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,$)=>y(null,null,function*(){let E=new Request(P,$);for(let A of s.request.fns)A&&(E=yield A(E,S));return E}),serializedBody:Tt(S),url:g}))});return{buildUrl:vt,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=kt(ee({baseUrl:"https://api.matchi.com/v1"}));var be={};Ze(be,{AuthorSchema:()=>Co,ChannelsSchema:()=>Io,CommentListResponseSchema:()=>xo,CommentSchema:()=>Do,CommunityItemSchema:()=>Uo,CommunityListResponseSchema:()=>To,CommunityPayloadSchema:()=>vo,CreateCommentRequestSchema:()=>_o,CreateMatchParticipationRequestSchema:()=>ko,CreatePostRequestSchema:()=>Ao,CreateSportProfileLevelRequestSchema:()=>Go,CreateSportProfileRequestSchema:()=>Lo,ExternalServiceSchema:()=>Mo,FacilityListSchema:()=>wo,FacilityMessagePayloadSchema:()=>qo,FacilityOfferConditionActivitiesSchema:()=>jo,FacilityOfferConditionCourtsSchema:()=>Bo,FacilityOfferConditionDateSchema:()=>Ko,FacilityOfferConditionHoursinadvanceSchema:()=>$o,FacilityOfferConditionSchema:()=>zo,FacilityOfferConditionTimeSchema:()=>Vo,FacilityOfferConditionWeekdaysSchema:()=>Qo,FacilityOfferListSchema:()=>Ho,FacilityOfferOrderSchema:()=>Yo,FacilityOfferSchema:()=>Fo,FacilityPermissionSchema:()=>Wo,FacilityPermissionsResponseSchema:()=>Jo,FacilityPunchCardDataSchema:()=>Xo,FacilitySchema:()=>No,FacilityValueCardDataSchema:()=>Zo,GenderSchema:()=>es,LinkTypeSchema:()=>ts,MatchBasePriceSchema:()=>os,MatchCourtSchema:()=>ss,MatchDetailSchema:()=>is,MatchEventSchema:()=>as,MatchListSchema:()=>ns,MatchOccasionDetailSchema:()=>ls,MatchOccasionSchema:()=>ps,MatchParticipantsSchema:()=>cs,MatchPriceListEntrySchema:()=>us,MatchSchema:()=>rs,MatchStatusSchema:()=>ms,MatchUserPriceSchema:()=>ds,MemberListResponseSchema:()=>fs,MemberRelationSchema:()=>hs,MemberSchema:()=>ys,MembershipStatusSchema:()=>gs,MetadataSchema:()=>bs,NotificationPayloadSchema:()=>Os,NotificationRequestBodySchema:()=>Ss,NotificationSchema:()=>Ps,NotificationsFilterSchema:()=>Es,NotificationsPaginatedResponseSchema:()=>Rs,NotificationsSummarySchema:()=>Cs,OffsetPaginatedResultSetSchema:()=>Is,PaginationMetaSchema:()=>Ds,ParticipantDetailSchema:()=>xs,ParticipantSummarySchema:()=>Us,PatchCommentRequestSchema:()=>Ts,PatchPostRequestSchema:()=>vs,PaymentCommandSchema:()=>_s,PaymentDetailsSchema:()=>ks,PostLinkSchema:()=>Gs,PostListResponseSchema:()=>Ls,PostSchema:()=>As,PostingPermissionSchema:()=>Ms,PreferenceSchema:()=>Ns,PreferencesResponseSchema:()=>ws,RecommendationListSchema:()=>Fs,RecommendationSchema:()=>qs,RefundPolicySchema:()=>zs,RegisterDeviceRequestSchema:()=>js,SourceSchema:()=>Bs,SportAuthoritiesResponseSchema:()=>Ks,SportAuthoritySchema:()=>$s,SportLevelSchema:()=>Vs,SportProfileAttributeSchema:()=>Hs,SportProfileLevelSchema:()=>Ys,SportProfileSchema:()=>Qs,SportProfilesResponseSchema:()=>Ws,TopicSchema:()=>Js,UpdatePreferencesRequestBodySchema:()=>Xs,UpdateSportProfileLevelRequestSchema:()=>Zs,UpdateUsersProfilesRequestSchema:()=>ei,UserParticipationStatusSchema:()=>ti,UserProfileSchema:()=>ri,UserRelationSchema:()=>oi,UsersProfilesPaginatedResponseSchema:()=>si,VisibilitySchema:()=>ii,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ai,pkgOpenapiSharedErrorSchema:()=>ni,pkgOpenapiSharedErrorsSchema:()=>pi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>li,pkgOpenapiSharedProblemDetailsSchema:()=>ci});var Co={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"},
|
|
12
|
-
`},
|
|
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"},
|
|
11
|
+
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Io={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Do={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"},xo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Uo={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"},To={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},vo={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"},_o={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},ko={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"},Ao={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},Go={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Lo={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"},Mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},No={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"},wo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},qo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Fo={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"},zo={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"},jo={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"},Bo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ko={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},$o={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Vo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Qo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Ho={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Yo={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"},Wo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Jo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Xo={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"},Zo={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"},es={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ts={enum:["ACTIVITY","MATCH"],type:"string"},rs={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"},os={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ss={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},is={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
|
+
`},as={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ns={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ps={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"},ls={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
|
-
`},
|
|
15
|
+
`},cs={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"},us={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},ms={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},ds={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"},ys={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"},fs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},hs={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"},gs={enum:["ACTIVE","INVITED","LEFT"],type:"string"},bs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Ps={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"},Os={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityPayload"}]},Ss={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Es={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Rs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Cs={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"},Is={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"},Ds={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},xs={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."},Us={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"},Ts={properties:{is_read:{type:"boolean"}},type:"object"},vs={properties:{is_read:{type:"boolean"}},type:"object"},_s={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"},ks={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"},As={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"},Gs={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},Ls={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ms={enum:["ADMINS","MEMBERS"],type:"string"},Ns={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"},ws={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},qs={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"},qs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Fs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},zs={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"},js={enum:["FACILITY","COMMUNITY"],type:"string"},Bs={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ks={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"},$s={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"},Vs={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"},Qs={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"},Hs={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ys={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ws={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Js={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Xs={properties:{level:{type:"string"}},required:["level"],type:"object"},Zs={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"},ei={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ti={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"},ri={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"},oi={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},si={enum:["HIDDEN"],type:"string"},ii={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"},ai={properties:{message:{description:"The error message",type:"string"}},type:"object"},ni={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},pi={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"},li={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 te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Se=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ee=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)}))},Re=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ie=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)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},De=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)}))},xe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ue=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)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Te=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},_e=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)}))},ke=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},ne=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Me=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))},Le=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)}))},Ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},we=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)}))},qe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Fe=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)}))},ze=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},je=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)}))},le=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))},Be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},Ke=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)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Qe=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)}))},He=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))},Ye=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 We={};Ze(We,{acceptInvitationMutation:()=>hi,addUserSportProfileLevelMutation:()=>ra,createCommentMutation:()=>Ii,createFacilityOfferOrderMutation:()=>vi,createMatchParticipationMutation:()=>Gi,createPostMutation:()=>Pi,createUserSportProfileMutation:()=>Zi,deleteCommentMutation:()=>Di,deleteMatchParticipationMutation:()=>Mi,deletePostMutation:()=>Oi,deleteUserSportProfileLevelMutation:()=>oa,deleteUserSportProfileMutation:()=>ea,getCommunityOptions:()=>mi,getCommunityQueryKey:()=>Rr,getMatchOptions:()=>Ai,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>Li,getMatchUserPriceQueryKey:()=>Lr,getNotificationByIdOptions:()=>ji,getNotificationByIdQueryKey:()=>Fr,getNotificationsInfiniteOptions:()=>wi,getNotificationsInfiniteQueryKey:()=>wr,getNotificationsOptions:()=>Ni,getNotificationsPreferencesOptions:()=>Fi,getNotificationsPreferencesQueryKey:()=>qr,getNotificationsQueryKey:()=>Nr,getPostOptions:()=>Si,getPostQueryKey:()=>Ur,getRecommendationsInfiniteOptions:()=>Ji,getRecommendationsInfiniteQueryKey:()=>Vr,getRecommendationsOptions:()=>Wi,getRecommendationsQueryKey:()=>$r,getSportAuthoritiesOptions:()=>Ki,getSportAuthoritiesQueryKey:()=>zr,getUserFacilityPermissionsOptions:()=>Hi,getUserFacilityPermissionsQueryKey:()=>Kr,getUserSportProfileOptions:()=>ta,getUserSportProfileQueryKey:()=>Hr,getUserSportProfilesOptions:()=>Xi,getUserSportProfilesQueryKey:()=>Qr,leaveCommunityMutation:()=>fi,listCommentsInfiniteOptions:()=>Ci,listCommentsInfiniteQueryKey:()=>vr,listCommentsOptions:()=>Ri,listCommentsQueryKey:()=>Tr,listCommunitiesInfiniteOptions:()=>ui,listCommunitiesInfiniteQueryKey:()=>Er,listCommunitiesOptions:()=>ci,listCommunitiesQueryKey:()=>Sr,listFacilityOffersInfiniteOptions:()=>Ti,listFacilityOffersInfiniteQueryKey:()=>kr,listFacilityOffersOptions:()=>Ui,listFacilityOffersQueryKey:()=>_r,listMatchesInfiniteOptions:()=>ki,listMatchesInfiniteQueryKey:()=>Gr,listMatchesOptions:()=>_i,listMatchesQueryKey:()=>Ar,listMembersInfiniteOptions:()=>yi,listMembersInfiniteQueryKey:()=>Ir,listMembersOptions:()=>di,listMembersQueryKey:()=>Cr,listPostsInfiniteOptions:()=>bi,listPostsInfiniteQueryKey:()=>xr,listPostsOptions:()=>gi,listPostsQueryKey:()=>Dr,markCommentReadMutation:()=>xi,markPostReadMutation:()=>Ei,registerDeviceMutation:()=>Qi,searchUsersInfiniteOptions:()=>Vi,searchUsersInfiniteQueryKey:()=>Br,searchUsersOptions:()=>$i,searchUsersQueryKey:()=>jr,updateAllNotificationsMutation:()=>qi,updateNotificationMutation:()=>Bi,updateNotificationsPreferencesMutation:()=>zi,updateUserProfileMutation:()=>Yi,updateUserSportProfileLevelMutation:()=>sa});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),ci=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield te(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),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 te(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Er(t)}),Rr=t=>b("getCommunity",t),mi=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:Rr(t)}),Cr=t=>b("listMembers",t),di=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:Cr(t)}),Ir=t=>b("listMembers",t,!0),yi=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:Ir(t)}),fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Oe(m(i(i({},t),r),{throwOnError:!0}));return o})}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Se(m(i(i({},t),r),{throwOnError:!0}));return o})}),Dr=t=>b("listPosts",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:Dr(t)}),xr=t=>b("listPosts",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:xr(t)}),Pi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ee(m(i(i({},t),r),{throwOnError:!0}));return o})}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Re(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ur=t=>b("getPost",t),Si=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:Ur(t)}),Ei=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ie(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("listComments",t),Ri=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:Tr(t)}),vr=t=>b("listComments",t,!0),Ci=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:vr(t)}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield De(m(i(i({},t),r),{throwOnError:!0}));return o})}),Di=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ue(m(i(i({},t),r),{throwOnError:!0}));return o})}),_r=t=>b("ListFacilityOffers",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:_r(t)}),kr=t=>b("ListFacilityOffers",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:{cursor:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:kr(t)}),vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Te(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ar=t=>b("ListMatches",t),_i=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:Ar(t)}),Gr=t=>b("ListMatches",t,!0),ki=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 ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Gr(t)}),Mr=t=>b("GetMatch",t),Ai=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:Mr(t)}),Gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),Lr=t=>b("GetMatchUserPrice",t),Li=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:Lr(t)}),Nr=t=>b("GetNotifications",t),Ni=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:Nr(t)}),wr=t=>b("GetNotifications",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:{cursor:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:wr(t)}),qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(m(i(i({},t),r),{throwOnError:!0}));return o})}),qr=t=>b("GetNotificationsPreferences",t),Fi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Me(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:qr(t)}),zi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationById",t),ji=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:Fr(t)}),Bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("getSportAuthorities",t),Ki=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),jr=t=>b("searchUsers",t),$i=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:jr(t)}),Br=t=>b("searchUsers",t,!0),Vi=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 pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Br(t)}),Qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Kr=t=>b("getUserFacilityPermissions",t),Hi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ze(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Kr(t)}),Yi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("GetRecommendations",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:$r(t)}),Vr=t=>b("GetRecommendations",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:Vr(t)}),Qr=t=>b("getUserSportProfiles",t),Xi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Be(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Qr(t)}),Zi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Hr=t=>b("getUserSportProfile",t),ta=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:Hr(t)}),ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})});export{ft as ActivityServiceV1Service,ht as AnonymousService,gt as ApiClientServiceV1Service,j as ApiError,bt as AuthorizedService,Pt as BookingServiceV1Service,de as CancelError,W as CancelablePromise,Ot as CheckoutServiceV1Service,St as CompetitionServiceV1Service,Et as CorsService,Rt as LoyaltyServiceV1Service,Ct as MembershipServiceV1Service,a as OpenAPI,It as PlaySessionServiceV1Service,Dt as UserServiceV1Service,$t as bookingRestriction,Vt as bookingSubType,et as bookingSubscription,Qt as bookingUserStatus,tt as cancellationPolicy,rt as chat,ot as chatCreation,Ht as chatTarget,Yt as clientType,Wt as directionParam,Jt as months,st as notificationChatGroup,it as notificationEntity,at as pendingPayment,pt as playSessionSettings,lt as playSessionUser,Xt as playerStatusParam,nt as playingUserResponse,Zt as userChatStatusParam,er as userChatTargetParam,ct as userPunchCard,ut as userRelation,tr as userRelationStatusParam,kt as 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"},Fs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},zs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},js={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"},Bs={enum:["FACILITY","COMMUNITY"],type:"string"},Ks={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},$s={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"},Vs={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"},Qs={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"},Hs={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"},Ys={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ws={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Js={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Xs={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Zs={properties:{level:{type:"string"}},required:["level"],type:"object"},ei={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"},ti={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ri={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"},oi={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"},si={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ii={enum:["HIDDEN"],type:"string"},ai={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"},ni={properties:{message:{description:"The error message",type:"string"}},type:"object"},pi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},li={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"},ci={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 te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Se=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ee=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)}))},Re=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ie=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)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},De=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)}))},xe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ue=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)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Te=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},_e=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)}))},ke=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},ne=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Le=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))},Me=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)}))},Ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},we=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)}))},qe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Fe=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)}))},ze=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},je=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)}))},le=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))},Be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},Ke=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)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Qe=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)}))},He=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))},Ye=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 We={};Ze(We,{acceptInvitationMutation:()=>gi,addUserSportProfileLevelMutation:()=>oa,createCommentMutation:()=>Di,createFacilityOfferOrderMutation:()=>_i,createMatchParticipationMutation:()=>Li,createPostMutation:()=>Oi,createUserSportProfileMutation:()=>ea,deleteCommentMutation:()=>xi,deleteMatchParticipationMutation:()=>Mi,deletePostMutation:()=>Si,deleteUserSportProfileLevelMutation:()=>sa,deleteUserSportProfileMutation:()=>ta,getCommunityOptions:()=>di,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>Gi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>Ni,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Bi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>qi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>wi,getNotificationsPreferencesOptions:()=>zi,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Ei,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>Xi,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>Ji,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>$i,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Yi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>ra,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>Zi,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>hi,listCommentsInfiniteOptions:()=>Ii,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ci,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>mi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>ui,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>vi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ti,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ai,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>ki,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>fi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>yi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Pi,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>bi,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>Ui,markPostReadMutation:()=>Ri,registerDeviceMutation:()=>Hi,searchUsersInfiniteOptions:()=>Qi,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Vi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Fi,updateNotificationMutation:()=>Ki,updateNotificationsPreferencesMutation:()=>ji,updateUserProfileMutation:()=>Wi,updateUserSportProfileLevelMutation:()=>ia});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),ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield te(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),mi=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 te(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),di=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:Cr(t)}),Ir=t=>b("listMembers",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:Ir(t)}),Dr=t=>b("listMembers",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:Dr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Oe(m(i(i({},t),r),{throwOnError:!0}));return o})}),gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Se(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",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:xr(t)}),Ur=t=>b("listPosts",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:Ur(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ee(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Re(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Ei=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:Tr(t)}),Ri=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ie(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ci=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:vr(t)}),_r=t=>b("listComments",t,!0),Ii=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:_r(t)}),Di=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield De(m(i(i({},t),r),{throwOnError:!0}));return o})}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ue(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ti=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:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),vi=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 ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Te(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",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:Gr(t)}),Lr=t=>b("ListMatches",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:{offset:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",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:Mr(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),Ni=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:Nr(t)}),wr=t=>b("GetNotifications",t),wi=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:wr(t)}),qr=t=>b("GetNotifications",t,!0),qi=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 ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),zi=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:Fr(t)}),ji=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Bi=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:zr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Vi=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:Br(t)}),Kr=t=>b("searchUsers",t,!0),Qi=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 pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ze(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),Wi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),Ji=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:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),Xi=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:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Be(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),ra=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:Yr(t)}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})});export{ht as ActivityServiceV1Service,gt as AnonymousService,bt as ApiClientServiceV1Service,j as ApiError,Pt as AuthorizedService,Ot as BookingServiceV1Service,de as CancelError,W as CancelablePromise,St as CheckoutServiceV1Service,Et as CompetitionServiceV1Service,Rt as CorsService,Ct as LoyaltyServiceV1Service,It as MembershipServiceV1Service,a as OpenAPI,Dt as PlaySessionServiceV1Service,xt as UserServiceV1Service,Vt as bookingRestriction,Qt as bookingSubType,et as bookingSubscription,Ht as bookingUserStatus,tt as cancellationPolicy,rt as chat,ot as chatCreation,Yt as chatTarget,Wt as clientType,Jt as directionParam,Xt as months,st as notificationChatGroup,it as notificationEntity,at as pendingPayment,lt as playSessionSettings,ct as playSessionUser,nt as playerRefundInfo,Zt as playerStatusParam,pt as playingUserResponse,er as userChatStatusParam,tr as userChatTargetParam,ut as userPunchCard,mt as userRelation,rr as userRelationStatusParam,At as v1};
|