@matchi/api 0.20260508.1 → 0.20260512.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 +82 -2
- package/dist/main/index.d.ts +82 -2
- package/dist/main/index.js +10 -9
- package/dist/main/index.mjs +10 -9
- package/package.json +1 -1
package/dist/main/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
var Ut=Object.defineProperty,Cr=Object.defineProperties;var vr=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var It=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var _r=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),xt=t=>{throw TypeError(t)};var Rt=(t,e,r)=>e in t?Ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n=(t,e)=>{for(var r in e||(e={}))It.call(e,r)&&Rt(t,r,e[r]);if(pe)for(var r of pe(e))Tt.call(e,r)&&Rt(t,r,e[r]);return t},m=(t,e)=>Cr(t,vr(e));var Q=(t,e)=>{var r={};for(var o in t)It.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&pe)for(var o of pe(t))e.indexOf(o)<0&&Tt.call(t,o)&&(r[o]=t[o]);return r};var Me=(t,e)=>{for(var r in e)Ut(t,r,{get:e[r],enumerable:!0})};var Ct=(t,e,r)=>e.has(t)||xt("Cannot "+r);var P=(t,e,r)=>(Ct(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>e.has(t)?xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(Ct(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var f=(t,e,r)=>new Promise((o,i)=>{var l=d=>{try{p(r.next(d))}catch(y){i(y)}},c=d=>{try{p(r.throw(d))}catch(y){i(y)}},p=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,c);p((r=r.apply(t,e)).next())}),w=function(t,e){this[0]=t,this[1]=e},vt=(t,e,r)=>{var o=(c,p,d,y)=>{try{var u=r[c](p),S=(p=u.value)instanceof w,g=u.done;Promise.resolve(S?p[0]:p).then(b=>S?o(c==="return"?c:"next",p[1]?{done:b.done,value:b.value}:b,d,y):d({value:b,done:g})).catch(b=>o("throw",b,d,y))}catch(b){y(b)}},i=c=>l[c]=p=>new Promise((d,y)=>o(c,p,d,y)),l={};return r=r.apply(t,e),l[_r("asyncIterator")]=()=>l,i("next"),i("throw"),i("return"),l};var z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var le=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},_,D,C,L,F,W,j,Y=class{constructor(e){N(this,_);N(this,D);N(this,C);N(this,L);N(this,F);N(this,W);N(this,j);x(this,_,!1),x(this,D,!1),x(this,C,!1),x(this,L,[]),x(this,F,new Promise((r,o)=>{x(this,W,r),x(this,j,o);let i=p=>{var d;P(this,_)||P(this,D)||P(this,C)||(x(this,_,!0),(d=P(this,W))==null||d.call(this,p))},l=p=>{var d;P(this,_)||P(this,D)||P(this,C)||(x(this,D,!0),(d=P(this,j))==null||d.call(this,p))},c=p=>{P(this,_)||P(this,D)||P(this,C)||P(this,L).push(p)};return Object.defineProperty(c,"isResolved",{get:()=>P(this,_)}),Object.defineProperty(c,"isRejected",{get:()=>P(this,D)}),Object.defineProperty(c,"isCancelled",{get:()=>P(this,C)}),e(i,l,c)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return P(this,F).then(e,r)}catch(e){return P(this,F).catch(e)}finally(e){return P(this,F).finally(e)}cancel(){var e;if(!(P(this,_)||P(this,D)||P(this,C))){if(x(this,C,!0),P(this,L).length)try{for(let r of P(this,L))r()}catch(r){console.warn("Cancellation threw an error",r);return}P(this,L).length=0,(e=P(this,j))==null||e.call(this,new le("Request aborted"))}}get isCancelled(){return P(this,C)}};_=new WeakMap,D=new WeakMap,C=new WeakMap,L=new WeakMap,F=new WeakMap,W=new WeakMap,j=new WeakMap;var s={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var _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 qe;(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={}))})(qe||(qe={}));var Dt=(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))(Dt||{});var At=(c=>(c.UNAPPROVED="UNAPPROVED",c.UNCONFIRMED="UNCONFIRMED",c.DECLINED="DECLINED",c.PARTICIPANT="PARTICIPANT",c.CO_BOOKER="CO-BOOKER",c.OWNER="OWNER",c))(At||{});var Fe;(e=>{let t;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(Fe||(Fe={}));var ze;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(ze||(ze={}));var je;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(je||(je={}));var Gt=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Gt||{});var kt=(r=>(r.WIDGET="WIDGET",r.API="API",r))(kt||{});var Nt=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Nt||{});var wt=(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))(wt||{});var Be;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Be||(Be={}));var $e;(e=>{let t;(i=>(i.GROUP="group",i.USER="user"))(t=e.entityType||(e.entityType={}))})($e||($e={}));var Ke;(e=>{let t;(c=>(c.BOOKING="BOOKING",c.ACTIVITY="ACTIVITY",c.MEMBERSHIP="MEMBERSHIP",c.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Ke||(Ke={}));var Lt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Lt||{});var Ve;(e=>{let t;(c=>(c.PAID="PAID",c.INVITED="INVITED",c.JOINED="JOINED",c.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Ve||(Ve={}));var He;(e=>{let t;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(He||(He={}));var Qe;(e=>{let t;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Qe||(Qe={}));var Mt=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(Mt||{});var qt=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(qt||{});var Ye;(e=>{let t;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(Ye||(Ye={}));var We;(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={}))})(We||(We={}));var Ft=(i=>(i.FRIENDS="FRIENDS",i.OUTGOING="OUTGOING",i.INCOMING="INCOMING",i.BLOCKED="BLOCKED",i))(Ft||{});var Xe=t=>t!=null,J=t=>typeof t=="string",Je=t=>J(t)&&t!=="",Ze=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]),zt=t=>t instanceof FormData,Dr=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Ar=t=>{let e=[],r=(i,l)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(l))}`)},o=(i,l)=>{Xe(l)&&(Array.isArray(l)?l.forEach(c=>{o(i,c)}):typeof l=="object"?Object.entries(l).forEach(([c,p])=>{o(`${i}[${c}]`,p)}):r(i,l))};return Object.entries(t).forEach(([i,l])=>{o(i,l)}),e.length>0?`?${e.join("&")}`:""},Gr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,c)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(c)?r(String(e.path[c])):l}),i=`${t.BASE}${o}`;return e.query?`${i}${Ar(e.query)}`:i},kr=t=>{if(t.formData){let e=new FormData,r=(o,i)=>{J(i)||Ze(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(t.formData).filter(([o,i])=>Xe(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(l=>r(o,l)):r(o,i)}),e}},ce=(t,e)=>f(null,null,function*(){return typeof e=="function"?e(t):e}),Nr=(t,e)=>f(null,null,function*(){let r=yield ce(e,t.TOKEN),o=yield ce(e,t.USERNAME),i=yield ce(e,t.PASSWORD),l=yield ce(e,t.HEADERS),c=Object.entries(n(n({Accept:"application/json"},l),e.headers)).filter(([p,d])=>Xe(d)).reduce((p,[d,y])=>m(n({},p),{[d]:String(y)}),{});if(Je(r)&&(c.Authorization=`Bearer ${r}`),Je(o)&&Je(i)){let p=Dr(`${o}:${i}`);c.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?c["Content-Type"]=e.mediaType:Ze(e.body)?c["Content-Type"]=e.body.type||"application/octet-stream":J(e.body)?c["Content-Type"]="text/plain":zt(e.body)||(c["Content-Type"]="application/json")),new Headers(c)}),wr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):J(t.body)||Ze(t.body)||zt(t.body)?t.body:JSON.stringify(t.body)},Lr=(t,e,r,o,i,l,c)=>f(null,null,function*(){let p=new AbortController,d={headers:l,body:o!=null?o:i,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),c(()=>p.abort()),yield fetch(r,d)}),Mr=(t,e)=>{if(e){let r=t.headers.get(e);if(J(r))return r}},qr=t=>f(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Fr=(t,e)=>{var i,l;let o=n({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new z(t,e,o);if(!e.ok){let c=(i=e.status)!=null?i:"unknown",p=(l=e.statusText)!=null?l:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new z(t,e,`Generic Error: status: ${c}; status text: ${p}; body: ${d}`)}},a=(t,e)=>new Y((r,o,i)=>f(null,null,function*(){try{let l=Gr(t,e),c=kr(e),p=wr(e),d=yield Nr(t,e);if(!i.isCancelled){let y=yield Lr(t,e,l,p,c,d,i),u=yield qr(y),S=Mr(y,e.responseHeader),g={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:S!=null?S:u};Fr(e,g),r(g.body)}}catch(l){o(l)}}));var et=class{static getAdminActivityOccasions(e,r,o,i,l,c=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,offset:l,limit: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 tt=class{static listActivities(e=!1,r=!1,o,i,l,c,p,d,y,u,S,g=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:i,locationSearch:l,categorySearch:c,querySearch:p,resourceTypes:d,startDate:y,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 a(s,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,i,l){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:i,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,i,l,c=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,offset:l,limit: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 updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,i,l,c,p,d,y=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:i,longitude:l,radius:c,resourceTypes:p,offset:d,limit:y},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return a(s,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return a(s,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return a(s,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{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 rt=class{static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ot=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,i,l,c,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,numberOfSlots:l,emails:c,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{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 a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{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 a(s,{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 a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return a(s,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return a(s,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",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 a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return a(s,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return a(s,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,i){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return a(s,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return a(s,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return a(s,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return a(s,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return a(s,{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 a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return a(s,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var it=class{static getAvailabilityWithPrice(e,r,o,i,l,c,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,numberOfSlots:l,emails:c,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var st=class{static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var at=class{static updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var nt=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var pt=class{static createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var lt=class{static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",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 a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ct=class{static getPlaySessionById(e){return a(s,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return a(s,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return a(s,{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 a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ut=class{static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return a(s,{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,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{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 a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{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 a(s,{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 a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return a(s,{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 a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return a(s,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return a(s,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var gt={};Me(gt,{Gender:()=>Yt,LinkType:()=>Wt,MatchStatus:()=>Jt,MemberRelation:()=>Xt,MembershipStatus:()=>Zt,PostingPermission:()=>er,Source:()=>tr,Topic:()=>rr,UserParticipationStatus:()=>or,UserRelation:()=>ir,Visibility:()=>sr,addUserSportProfileLevel:()=>Ae,client:()=>h,createFacilityOfferOrder:()=>fe,createMatchParticipation:()=>ge,createUserSportProfile:()=>ve,deleteUserSportProfile:()=>_e,deleteUserSportProfileLevel:()=>Ge,getMatch:()=>he,getMatchUserPrice:()=>be,getNotificationById:()=>Ee,getNotifications:()=>re,getNotificationsPreferences:()=>Se,getRecommendations:()=>ie,getSportAuthorities:()=>Ue,getUserFacilityPermissions:()=>Te,getUserSportProfile:()=>De,getUserSportProfiles:()=>Ce,listFacilityOffers:()=>ee,listMatches:()=>te,queries:()=>Ne,registerDevice:()=>Ie,schemas:()=>ye,searchUsers:()=>oe,updateAllNotifications:()=>Pe,updateNotification:()=>Re,updateNotificationsPreferences:()=>Oe,updateUserProfile:()=>xe,updateUserSportProfileLevel:()=>ke});var dt={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var zr={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},fn=Object.entries(zr);var jt=S=>{var g=S,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:i,sseDefaultRetryDelay:l,sseMaxRetryAttempts:c,sseMaxRetryDelay:p,sseSleepFn:d,url:y}=g,u=Q(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let b,$=d!=null?d:(G=>new Promise(v=>setTimeout(v,G)));return{stream:function(){return vt(this,null,function*(){var k,K,E;let G=l!=null?l:3e3,v=0,M=(k=u.signal)!=null?k:new AbortController().signal;for(;!M.aborted;){v++;let I=u.headers instanceof Headers?u.headers:new Headers(u.headers);b!==void 0&&I.set("Last-Event-ID",b);try{let U=m(n({redirect:"follow"},u),{body:u.serializedBody,headers:I,signal:M}),ae=new Request(y,U);t&&(ae=yield new w(t(y,U)));let Ur=(K=u.fetch)!=null?K:globalThis.fetch,V=yield new w(Ur(ae));if(!V.ok)throw new Error(`SSE failed: ${V.status} ${V.statusText}`);if(!V.body)throw new Error("No body in SSE response");let we=V.body.pipeThrough(new TextDecoderStream).getReader(),H="",bt=()=>{try{we.cancel()}catch(Pt){}};M.addEventListener("abort",bt);try{for(;;){let{done:Pt,value:Ir}=yield new w(we.read());if(Pt)break;H+=Ir,H=H.replace(/\r\n/g,`
|
|
1
|
+
var It=Object.defineProperty,vr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var Tt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var _r=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Ct=t=>{throw TypeError(t)};var Ut=(t,e,r)=>e in t?It(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,n=(t,e)=>{for(var r in e||(e={}))Tt.call(e,r)&&Ut(t,r,e[r]);if(pe)for(var r of pe(e))xt.call(e,r)&&Ut(t,r,e[r]);return t},m=(t,e)=>vr(t,Dr(e));var Q=(t,e)=>{var r={};for(var o in t)Tt.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&pe)for(var o of pe(t))e.indexOf(o)<0&&xt.call(t,o)&&(r[o]=t[o]);return r};var qe=(t,e)=>{for(var r in e)It(t,r,{get:e[r],enumerable:!0})};var vt=(t,e,r)=>e.has(t)||Ct("Cannot "+r);var P=(t,e,r)=>(vt(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>e.has(t)?Ct("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),x=(t,e,r,o)=>(vt(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var f=(t,e,r)=>new Promise((o,i)=>{var l=d=>{try{p(r.next(d))}catch(y){i(y)}},c=d=>{try{p(r.throw(d))}catch(y){i(y)}},p=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,c);p((r=r.apply(t,e)).next())}),w=function(t,e){this[0]=t,this[1]=e},Dt=(t,e,r)=>{var o=(c,p,d,y)=>{try{var u=r[c](p),S=(p=u.value)instanceof w,g=u.done;Promise.resolve(S?p[0]:p).then(b=>S?o(c==="return"?c:"next",p[1]?{done:b.done,value:b.value}:b,d,y):d({value:b,done:g})).catch(b=>o("throw",b,d,y))}catch(b){y(b)}},i=c=>l[c]=p=>new Promise((d,y)=>o(c,p,d,y)),l={};return r=r.apply(t,e),l[_r("asyncIterator")]=()=>l,i("next"),i("throw"),i("return"),l};var z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var le=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},D,_,C,M,F,W,j,Y=class{constructor(e){N(this,D);N(this,_);N(this,C);N(this,M);N(this,F);N(this,W);N(this,j);x(this,D,!1),x(this,_,!1),x(this,C,!1),x(this,M,[]),x(this,F,new Promise((r,o)=>{x(this,W,r),x(this,j,o);let i=p=>{var d;P(this,D)||P(this,_)||P(this,C)||(x(this,D,!0),(d=P(this,W))==null||d.call(this,p))},l=p=>{var d;P(this,D)||P(this,_)||P(this,C)||(x(this,_,!0),(d=P(this,j))==null||d.call(this,p))},c=p=>{P(this,D)||P(this,_)||P(this,C)||P(this,M).push(p)};return Object.defineProperty(c,"isResolved",{get:()=>P(this,D)}),Object.defineProperty(c,"isRejected",{get:()=>P(this,_)}),Object.defineProperty(c,"isCancelled",{get:()=>P(this,C)}),e(i,l,c)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return P(this,F).then(e,r)}catch(e){return P(this,F).catch(e)}finally(e){return P(this,F).finally(e)}cancel(){var e;if(!(P(this,D)||P(this,_)||P(this,C))){if(x(this,C,!0),P(this,M).length)try{for(let r of P(this,M))r()}catch(r){console.warn("Cancellation threw an error",r);return}P(this,M).length=0,(e=P(this,j))==null||e.call(this,new le("Request aborted"))}}get isCancelled(){return P(this,C)}};D=new WeakMap,_=new WeakMap,C=new WeakMap,M=new WeakMap,F=new WeakMap,W=new WeakMap,j=new WeakMap;var s={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var _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 Fe;(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={}))})(Fe||(Fe={}));var At=(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))(At||{});var Gt=(c=>(c.UNAPPROVED="UNAPPROVED",c.UNCONFIRMED="UNCONFIRMED",c.DECLINED="DECLINED",c.PARTICIPANT="PARTICIPANT",c.CO_BOOKER="CO-BOOKER",c.OWNER="OWNER",c))(Gt||{});var ze;(e=>{let t;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ze||(ze={}));var je;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(je||(je={}));var Be;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Be||(Be={}));var kt=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(kt||{});var Nt=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Nt||{});var wt=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(wt||{});var Mt=(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))(Mt||{});var $e;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})($e||($e={}));var Ke;(e=>{let t;(i=>(i.GROUP="group",i.USER="user"))(t=e.entityType||(e.entityType={}))})(Ke||(Ke={}));var Ve;(e=>{let t;(c=>(c.BOOKING="BOOKING",c.ACTIVITY="ACTIVITY",c.MEMBERSHIP="MEMBERSHIP",c.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Ve||(Ve={}));var Lt=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Lt||{});var He;(e=>{let t;(c=>(c.PAID="PAID",c.INVITED="INVITED",c.JOINED="JOINED",c.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(He||(He={}));var Qe;(e=>{let t;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Qe||(Qe={}));var Ye;(e=>{let t;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Ye||(Ye={}));var qt=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(qt||{});var Ft=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(Ft||{});var We;(e=>{let t;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(We||(We={}));var Je;(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={}))})(Je||(Je={}));var zt=(i=>(i.FRIENDS="FRIENDS",i.OUTGOING="OUTGOING",i.INCOMING="INCOMING",i.BLOCKED="BLOCKED",i))(zt||{});var Ze=t=>t!=null,J=t=>typeof t=="string",Xe=t=>J(t)&&t!=="",et=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]),jt=t=>t instanceof FormData,Ar=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Gr=t=>{let e=[],r=(i,l)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(l))}`)},o=(i,l)=>{Ze(l)&&(Array.isArray(l)?l.forEach(c=>{o(i,c)}):typeof l=="object"?Object.entries(l).forEach(([c,p])=>{o(`${i}[${c}]`,p)}):r(i,l))};return Object.entries(t).forEach(([i,l])=>{o(i,l)}),e.length>0?`?${e.join("&")}`:""},kr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,c)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(c)?r(String(e.path[c])):l}),i=`${t.BASE}${o}`;return e.query?`${i}${Gr(e.query)}`:i},Nr=t=>{if(t.formData){let e=new FormData,r=(o,i)=>{J(i)||et(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(t.formData).filter(([o,i])=>Ze(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(l=>r(o,l)):r(o,i)}),e}},ce=(t,e)=>f(null,null,function*(){return typeof e=="function"?e(t):e}),wr=(t,e)=>f(null,null,function*(){let r=yield ce(e,t.TOKEN),o=yield ce(e,t.USERNAME),i=yield ce(e,t.PASSWORD),l=yield ce(e,t.HEADERS),c=Object.entries(n(n({Accept:"application/json"},l),e.headers)).filter(([p,d])=>Ze(d)).reduce((p,[d,y])=>m(n({},p),{[d]:String(y)}),{});if(Xe(r)&&(c.Authorization=`Bearer ${r}`),Xe(o)&&Xe(i)){let p=Ar(`${o}:${i}`);c.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?c["Content-Type"]=e.mediaType:et(e.body)?c["Content-Type"]=e.body.type||"application/octet-stream":J(e.body)?c["Content-Type"]="text/plain":jt(e.body)||(c["Content-Type"]="application/json")),new Headers(c)}),Mr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):J(t.body)||et(t.body)||jt(t.body)?t.body:JSON.stringify(t.body)},Lr=(t,e,r,o,i,l,c)=>f(null,null,function*(){let p=new AbortController,d={headers:l,body:o!=null?o:i,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),c(()=>p.abort()),yield fetch(r,d)}),qr=(t,e)=>{if(e){let r=t.headers.get(e);if(J(r))return r}},Fr=t=>f(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?yield t.json():yield t.text()}catch(e){console.error(e)}}),zr=(t,e)=>{var i,l;let o=n({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new z(t,e,o);if(!e.ok){let c=(i=e.status)!=null?i:"unknown",p=(l=e.statusText)!=null?l:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(y){return}})();throw new z(t,e,`Generic Error: status: ${c}; status text: ${p}; body: ${d}`)}},a=(t,e)=>new Y((r,o,i)=>f(null,null,function*(){try{let l=kr(t,e),c=Nr(e),p=Mr(e),d=yield wr(t,e);if(!i.isCancelled){let y=yield Lr(t,e,l,p,c,d,i),u=yield Fr(y),S=qr(y,e.responseHeader),g={url:l,ok:y.ok,status:y.status,statusText:y.statusText,body:S!=null?S:u};zr(e,g),r(g.body)}}catch(l){o(l)}}));var tt=class{static getAdminActivityOccasions(e,r,o,i,l,c=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,offset:l,limit: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 rt=class{static listActivities(e=!1,r=!1,o,i,l,c,p,d,y,u,S,g=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:i,locationSearch:l,categorySearch:c,querySearch:p,resourceTypes:d,startDate:y,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 a(s,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,i,l){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:i,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,i,l,c=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,offset:l,limit: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 updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,i,l,c,p,d,y=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:i,longitude:l,radius:c,resourceTypes:p,offset:d,limit:y},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return a(s,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return a(s,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return a(s,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{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 ot=class{static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var it=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,i,l,c,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,numberOfSlots:l,emails:c,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{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 a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{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 a(s,{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 a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return a(s,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return a(s,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",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 a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return a(s,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return a(s,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,i){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return a(s,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return a(s,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return a(s,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return a(s,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return a(s,{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 a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return a(s,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var st=class{static getAvailabilityWithPrice(e,r,o,i,l,c,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,numberOfSlots:l,emails:c,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,i,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var at=class{static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var nt=class{static updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var pt=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var lt=class{static createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ct=class{static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",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 a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ut=class{static getPlaySessionById(e){return a(s,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return a(s,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return a(s,{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 a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,i,l){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var dt=class{static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return a(s,{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,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{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 a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{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 a(s,{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 a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return a(s,{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 a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return a(s,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return a(s,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{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 a(s,{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 a(s,{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 a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var bt={};qe(bt,{Gender:()=>Wt,LinkType:()=>Jt,MatchStatus:()=>Xt,MemberRelation:()=>Zt,MembershipStatus:()=>er,PostingPermission:()=>tr,Source:()=>rr,Topic:()=>or,UserParticipationStatus:()=>ir,UserRelation:()=>sr,Visibility:()=>ar,addUserSportProfileLevel:()=>Ge,client:()=>h,createFacilityOfferOrder:()=>fe,createMatchParticipation:()=>ge,createUserSportProfile:()=>De,deleteMatchParticipation:()=>be,deleteUserSportProfile:()=>_e,deleteUserSportProfileLevel:()=>ke,getMatch:()=>he,getMatchUserPrice:()=>Pe,getNotificationById:()=>Re,getNotifications:()=>re,getNotificationsPreferences:()=>Oe,getRecommendations:()=>ie,getSportAuthorities:()=>Ie,getUserFacilityPermissions:()=>xe,getUserSportProfile:()=>Ae,getUserSportProfiles:()=>ve,listFacilityOffers:()=>ee,listMatches:()=>te,queries:()=>we,registerDevice:()=>Te,schemas:()=>ye,searchUsers:()=>oe,updateAllNotifications:()=>Se,updateNotification:()=>Ue,updateNotificationsPreferences:()=>Ee,updateUserProfile:()=>Ce,updateUserSportProfileLevel:()=>Ne});var mt={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var jr={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},gn=Object.entries(jr);var Bt=S=>{var g=S,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:i,sseDefaultRetryDelay:l,sseMaxRetryAttempts:c,sseMaxRetryDelay:p,sseSleepFn:d,url:y}=g,u=Q(g,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let b,$=d!=null?d:(G=>new Promise(v=>setTimeout(v,G)));return{stream:function(){return Dt(this,null,function*(){var k,K,E;let G=l!=null?l:3e3,v=0,L=(k=u.signal)!=null?k:new AbortController().signal;for(;!L.aborted;){v++;let I=u.headers instanceof Headers?u.headers:new Headers(u.headers);b!==void 0&&I.set("Last-Event-ID",b);try{let U=m(n({redirect:"follow"},u),{body:u.serializedBody,headers:I,signal:L}),ae=new Request(y,U);t&&(ae=yield new w(t(y,U)));let Ir=(K=u.fetch)!=null?K:globalThis.fetch,V=yield new w(Ir(ae));if(!V.ok)throw new Error(`SSE failed: ${V.status} ${V.statusText}`);if(!V.body)throw new Error("No body in SSE response");let Me=V.body.pipeThrough(new TextDecoderStream).getReader(),H="",Pt=()=>{try{Me.cancel()}catch(St){}};L.addEventListener("abort",Pt);try{for(;;){let{done:St,value:Tr}=yield new w(Me.read());if(St)break;H+=Tr,H=H.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let
|
|
3
|
+
`);let Ot=H.split(`
|
|
4
4
|
|
|
5
|
-
`);H=(E=
|
|
6
|
-
`),ne=[],
|
|
7
|
-
`);try{q=JSON.parse(T),Et=!0}catch(Le){q=T}}Et&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Ot,id:b,retry:G}),ne.length&&(yield q)}}}finally{M.removeEventListener("abort",bt),we.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ae=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w($(ae))}}})}()}};var jr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$r=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(d=>encodeURIComponent(d))).join(Br(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=jr(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):B({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},B=({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)}`},de=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=$r(o),p=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Kr=/\{[^{}]+\}/g,Vr=({path:t,url:e})=>{let r=e,o=e.match(Kr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${B({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Vr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function mt(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 $t=(t,e)=>f(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 Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=B({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Vt=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"}},Hr=(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},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Hr(e,l.name))continue;let c=yield $t(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),yt=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),ft=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=me(t.headers,e.headers),r},Qr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Qr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},X=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}},Qt=()=>({error:new X,request:new X,response:new X}),Yr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Wr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},dt),{headers:Wr,parseAs:"auto",querySerializer:Yr}),t);var ht=(t={})=>{let e=ft(Z(),t),r=()=>n({},e),o=y=>(e=ft(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(n({},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=yt(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:mt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let $=u.fetch,O;try{O=yield $(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?Vt(O.headers.get("Content-Type")):u.parseAs)!=null?K:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,$)=>f(null,null,function*(){let O=new Request(b,$);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:mt(S),url:g}))});return{buildUrl:yt,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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=ht(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};Me(ye,{AuthorSchema:()=>Jr,ChannelsSchema:()=>Xr,CommentListResponseSchema:()=>eo,CommentSchema:()=>Zr,CommunityItemSchema:()=>to,CommunityListResponseSchema:()=>ro,CreateCommentRequestSchema:()=>oo,CreateMatchParticipationRequestSchema:()=>io,CreatePostRequestSchema:()=>so,CreateSportProfileLevelRequestSchema:()=>ao,CreateSportProfileRequestSchema:()=>no,ExternalServiceSchema:()=>po,FacilityListSchema:()=>co,FacilityMessagePayloadSchema:()=>uo,FacilityOfferConditionActivitiesSchema:()=>fo,FacilityOfferConditionCourtsSchema:()=>ho,FacilityOfferConditionDateSchema:()=>go,FacilityOfferConditionHoursinadvanceSchema:()=>bo,FacilityOfferConditionSchema:()=>yo,FacilityOfferConditionTimeSchema:()=>Po,FacilityOfferConditionWeekdaysSchema:()=>So,FacilityOfferListSchema:()=>Oo,FacilityOfferOrderSchema:()=>Eo,FacilityOfferSchema:()=>mo,FacilityPermissionSchema:()=>Ro,FacilityPermissionsResponseSchema:()=>Uo,FacilityPunchCardDataSchema:()=>Io,FacilitySchema:()=>lo,FacilityValueCardDataSchema:()=>To,GenderSchema:()=>xo,LinkTypeSchema:()=>Co,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Do,MatchDetailSchema:()=>Ao,MatchEventSchema:()=>Go,MatchListSchema:()=>ko,MatchOccasionDetailSchema:()=>wo,MatchOccasionSchema:()=>No,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>Mo,MatchSchema:()=>vo,MatchStatusSchema:()=>qo,MatchUserPriceSchema:()=>Fo,MemberListResponseSchema:()=>jo,MemberRelationSchema:()=>Bo,MemberSchema:()=>zo,MembershipStatusSchema:()=>$o,MetadataSchema:()=>Ko,NotificationPayloadSchema:()=>Ho,NotificationRequestBodySchema:()=>Qo,NotificationSchema:()=>Vo,NotificationsFilterSchema:()=>Yo,NotificationsPaginatedResponseSchema:()=>Wo,NotificationsSummarySchema:()=>Jo,OffsetPaginatedResultSetSchema:()=>Xo,PaginationMetaSchema:()=>Zo,ParticipantDetailSchema:()=>ei,ParticipantSummarySchema:()=>ti,PatchCommentRequestSchema:()=>ri,PatchPostRequestSchema:()=>oi,PaymentCommandSchema:()=>ii,PaymentDetailsSchema:()=>si,PostLinkSchema:()=>ni,PostListResponseSchema:()=>pi,PostSchema:()=>ai,PostingPermissionSchema:()=>li,PreferenceSchema:()=>ci,PreferencesResponseSchema:()=>ui,RecommendationListSchema:()=>mi,RecommendationSchema:()=>di,RefundPolicySchema:()=>yi,RegisterDeviceRequestSchema:()=>fi,SourceSchema:()=>hi,SportAuthoritiesResponseSchema:()=>gi,SportAuthoritySchema:()=>bi,SportLevelSchema:()=>Pi,SportProfileAttributeSchema:()=>Oi,SportProfileLevelSchema:()=>Ei,SportProfileSchema:()=>Si,SportProfilesResponseSchema:()=>Ri,TopicSchema:()=>Ui,UpdatePreferencesRequestBodySchema:()=>Ii,UpdateSportProfileLevelRequestSchema:()=>Ti,UpdateUsersProfilesRequestSchema:()=>xi,UserParticipationStatusSchema:()=>Ci,UserProfileSchema:()=>vi,UserRelationSchema:()=>_i,UsersProfilesPaginatedResponseSchema:()=>Di,VisibilitySchema:()=>Ai,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Gi,pkgOpenapiSharedErrorSchema:()=>ki,pkgOpenapiSharedErrorsSchema:()=>Ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>wi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Jr={properties:{type:{enum:["ADMIN","MEMBER"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type","user"],type:"object"},Xr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Zr={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"},eo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},to={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"},ro={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},oo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},io={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"},so={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},no={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"},po={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},lo={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"},co={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},uo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},mo={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"},yo={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"},fo={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"},ho={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},go={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},bo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Po={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},So={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Oo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Eo={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"},Ro={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Uo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Io={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"},To={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"},xo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Co={enum:["ACTIVITY","MATCH"],type:"string"},vo={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Do={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Ao={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.
|
|
8
|
-
`},
|
|
9
|
-
`},Lo={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"},
|
|
5
|
+
`);H=(E=Ot.pop())!=null?E:"";for(let xr of Ot){let Cr=xr.split(`
|
|
6
|
+
`),ne=[],Et;for(let T of Cr)if(T.startsWith("data:"))ne.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))Et=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let Le=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(Le)||(G=Le)}let q,Rt=!1;if(ne.length){let T=ne.join(`
|
|
7
|
+
`);try{q=JSON.parse(T),Rt=!0}catch(Le){q=T}}Rt&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Et,id:b,retry:G}),ne.length&&(yield q)}}}finally{L.removeEventListener("abort",Pt),Me.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ae=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w($(ae))}}})}()}};var Br=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},$r=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Kr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(d=>encodeURIComponent(d))).join($r(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Br(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):B({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},B=({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)}`},de=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=Kr(o),p=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Vr=/\{[^{}]+\}/g,Hr=({path:t,url:e})=>{let r=e,o=e.match(Vr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${B({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},$t=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Hr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function yt(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 Kt=(t,e)=>f(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 Vt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=B({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Ht=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"}},Qr=(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},Qt=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Qr(e,l.name))continue;let c=yield Kt(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),ft=t=>$t({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Vt(t.querySerializer),url:t.url}),ht=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=me(t.headers,e.headers),r},Yr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Yr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},X=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}},Yt=()=>({error:new X,request:new X,response:new X}),Wr=Vt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Jr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},mt),{headers:Jr,parseAs:"auto",querySerializer:Wr}),t);var gt=(t={})=>{let e=ht(Z(),t),r=()=>n({},e),o=y=>(e=ht(e,y),r()),i=Yt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Qt(m(n({},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=ft(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:yt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let $=u.fetch,O;try{O=yield $(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?Ht(O.headers.get("Content-Type")):u.parseAs)!=null?K:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let L=v!=null?v:G,k=L;for(let E of i.error.fns)E&&(k=yield E(L,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return Bt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,$)=>f(null,null,function*(){let O=new Request(b,$);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:yt(S),url:g}))});return{buildUrl:ft,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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=gt(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};qe(ye,{AuthorSchema:()=>Xr,ChannelsSchema:()=>Zr,CommentListResponseSchema:()=>to,CommentSchema:()=>eo,CommunityItemSchema:()=>ro,CommunityListResponseSchema:()=>oo,CreateCommentRequestSchema:()=>io,CreateMatchParticipationRequestSchema:()=>so,CreatePostRequestSchema:()=>ao,CreateSportProfileLevelRequestSchema:()=>no,CreateSportProfileRequestSchema:()=>po,ExternalServiceSchema:()=>lo,FacilityListSchema:()=>uo,FacilityMessagePayloadSchema:()=>mo,FacilityOfferConditionActivitiesSchema:()=>ho,FacilityOfferConditionCourtsSchema:()=>go,FacilityOfferConditionDateSchema:()=>bo,FacilityOfferConditionHoursinadvanceSchema:()=>Po,FacilityOfferConditionSchema:()=>fo,FacilityOfferConditionTimeSchema:()=>So,FacilityOfferConditionWeekdaysSchema:()=>Oo,FacilityOfferListSchema:()=>Eo,FacilityOfferOrderSchema:()=>Ro,FacilityOfferSchema:()=>yo,FacilityPermissionSchema:()=>Uo,FacilityPermissionsResponseSchema:()=>Io,FacilityPunchCardDataSchema:()=>To,FacilitySchema:()=>co,FacilityValueCardDataSchema:()=>xo,GenderSchema:()=>Co,LinkTypeSchema:()=>vo,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Ao,MatchDetailSchema:()=>Go,MatchEventSchema:()=>ko,MatchListSchema:()=>No,MatchOccasionDetailSchema:()=>Mo,MatchOccasionSchema:()=>wo,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>qo,MatchSchema:()=>Do,MatchStatusSchema:()=>Fo,MatchUserPriceSchema:()=>zo,MemberListResponseSchema:()=>Bo,MemberRelationSchema:()=>$o,MemberSchema:()=>jo,MembershipStatusSchema:()=>Ko,MetadataSchema:()=>Vo,NotificationPayloadSchema:()=>Qo,NotificationRequestBodySchema:()=>Yo,NotificationSchema:()=>Ho,NotificationsFilterSchema:()=>Wo,NotificationsPaginatedResponseSchema:()=>Jo,NotificationsSummarySchema:()=>Xo,OffsetPaginatedResultSetSchema:()=>Zo,PaginationMetaSchema:()=>ei,ParticipantDetailSchema:()=>ti,ParticipantSummarySchema:()=>ri,PatchCommentRequestSchema:()=>oi,PatchPostRequestSchema:()=>ii,PaymentCommandSchema:()=>si,PaymentDetailsSchema:()=>ai,PostLinkSchema:()=>pi,PostListResponseSchema:()=>li,PostSchema:()=>ni,PostingPermissionSchema:()=>ci,PreferenceSchema:()=>ui,PreferencesResponseSchema:()=>di,RecommendationListSchema:()=>yi,RecommendationSchema:()=>mi,RefundPolicySchema:()=>fi,RegisterDeviceRequestSchema:()=>hi,SourceSchema:()=>gi,SportAuthoritiesResponseSchema:()=>bi,SportAuthoritySchema:()=>Pi,SportLevelSchema:()=>Si,SportProfileAttributeSchema:()=>Ei,SportProfileLevelSchema:()=>Ri,SportProfileSchema:()=>Oi,SportProfilesResponseSchema:()=>Ui,TopicSchema:()=>Ii,UpdatePreferencesRequestBodySchema:()=>Ti,UpdateSportProfileLevelRequestSchema:()=>xi,UpdateUsersProfilesRequestSchema:()=>Ci,UserParticipationStatusSchema:()=>vi,UserProfileSchema:()=>Di,UserRelationSchema:()=>_i,UsersProfilesPaginatedResponseSchema:()=>Ai,VisibilitySchema:()=>Gi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ki,pkgOpenapiSharedErrorSchema:()=>Ni,pkgOpenapiSharedErrorsSchema:()=>wi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Mi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Xr={properties:{type:{enum:["ADMIN","MEMBER"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type","user"],type:"object"},Zr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},eo={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"},to={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ro={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"},oo={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},io={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},so={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"},no={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},po={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"},lo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},co={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"},uo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},mo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},yo={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"},fo={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"},ho={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"},go={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},bo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Po={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},So={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Oo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Eo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Ro={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"},Uo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Io={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},To={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"},xo={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"},Co={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},vo={enum:["ACTIVITY","MATCH"],type:"string"},Do={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Ao={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Go={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.
|
|
8
|
+
`},ko={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},No={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},wo={properties:{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:{format:"int32",nullable:!0,type:"integer"},level_min:{format:"int32",nullable:!0,type:"integer"},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"],type:"object"},Mo={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"},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.
|
|
9
|
+
`},Lo={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"},qo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Fo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},zo={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"},jo={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"},Bo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},$o={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"},Ko={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Vo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Ho={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"},Qo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Yo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Wo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Jo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Xo={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"},Zo={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"},ei={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ti={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."},ri={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"},oi={properties:{is_read:{type:"boolean"}},type:"object"},ii={properties:{is_read:{type:"boolean"}},type:"object"},si={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"},ai={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"},ni={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"},pi={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},li={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ci={enum:["ADMINS","MEMBERS"],type:"string"},ui={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"},di={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},mi={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
10
10
|
`,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.
|
|
11
|
-
`,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"},
|
|
11
|
+
`,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.
|
|
12
|
+
`,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.
|
|
12
13
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
13
|
-
`,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"},mi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},yi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},fi={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"},hi={enum:["FACILITY"],type:"string"},gi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},bi={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"},Pi={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"},Si={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"},Oi={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"},Ei={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ri={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ui={enum:["FACILITY_MESSAGE"],type:"string"},Ii={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Ti={properties:{level:{type:"string"}},required:["level"],type:"object"},xi={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"},Ci={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},vi={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"},_i={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"},Di={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ai={enum:["HIDDEN"],type:"string"},Gi={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"},ki={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"},wi={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 ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Re=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ue=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},_e=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},ke=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Yt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Wt={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},Jt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Xt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Zt={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},er={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},tr={FACILITY:"FACILITY"},rr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},or={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},ir={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},sr={HIDDEN:"HIDDEN"};var Ne={};Me(Ne,{addUserSportProfileLevelMutation:()=>us,createFacilityOfferOrderMutation:()=>Fi,createMatchParticipationMutation:()=>$i,createUserSportProfileMutation:()=>ps,deleteUserSportProfileLevelMutation:()=>ds,deleteUserSportProfileMutation:()=>ls,getMatchOptions:()=>Bi,getMatchQueryKey:()=>cr,getMatchUserPriceOptions:()=>Ki,getMatchUserPriceQueryKey:()=>ur,getNotificationByIdOptions:()=>Ji,getNotificationByIdQueryKey:()=>fr,getNotificationsInfiniteOptions:()=>Hi,getNotificationsInfiniteQueryKey:()=>mr,getNotificationsOptions:()=>Vi,getNotificationsPreferencesOptions:()=>Yi,getNotificationsPreferencesQueryKey:()=>yr,getNotificationsQueryKey:()=>dr,getRecommendationsInfiniteOptions:()=>as,getRecommendationsInfiniteQueryKey:()=>Or,getRecommendationsOptions:()=>ss,getRecommendationsQueryKey:()=>Sr,getSportAuthoritiesOptions:()=>Zi,getSportAuthoritiesQueryKey:()=>hr,getUserFacilityPermissionsOptions:()=>os,getUserFacilityPermissionsQueryKey:()=>Pr,getUserSportProfileOptions:()=>cs,getUserSportProfileQueryKey:()=>Rr,getUserSportProfilesOptions:()=>ns,getUserSportProfilesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>qi,listFacilityOffersInfiniteQueryKey:()=>nr,listFacilityOffersOptions:()=>Mi,listFacilityOffersQueryKey:()=>ar,listMatchesInfiniteOptions:()=>ji,listMatchesInfiniteQueryKey:()=>lr,listMatchesOptions:()=>zi,listMatchesQueryKey:()=>pr,registerDeviceMutation:()=>rs,searchUsersInfiniteOptions:()=>ts,searchUsersInfiniteQueryKey:()=>br,searchUsersOptions:()=>es,searchUsersQueryKey:()=>gr,updateAllNotificationsMutation:()=>Qi,updateNotificationMutation:()=>Xi,updateNotificationsPreferencesMutation:()=>Wi,updateUserProfileMutation:()=>is,updateUserSportProfileLevelMutation:()=>ms});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},ar=t=>R("ListFacilityOffers",t),Mi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),se=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},nr=t=>R("ListFacilityOffers",t,!0),qi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ee(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:nr(t)}),Fi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield fe(m(n(n({},t),r),{throwOnError:!0}));return o})}),pr=t=>R("ListMatches",t),zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),lr=t=>R("ListMatches",t,!0),ji=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield te(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:lr(t)}),cr=t=>R("GetMatch",t),Bi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield he(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),$i=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ur=t=>R("GetMatchUserPrice",t),Ki=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield be(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),dr=t=>R("GetNotifications",t),Vi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t,!0),Hi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield re(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:mr(t)}),Qi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Pe(m(n(n({},t),r),{throwOnError:!0}));return o})}),yr=t=>R("GetNotificationsPreferences",t),Yi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Se(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),Wi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Oe(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationById",t),Ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Re(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("getSportAuthorities",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ue(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),gr=t=>R("searchUsers",t),es=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t,!0),ts=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:br(t)}),rs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ie(m(n(n({},t),r),{throwOnError:!0}));return o})}),Pr=t=>R("getUserFacilityPermissions",t),os=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Pr(t)}),is=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield xe(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("GetRecommendations",t),ss=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),Or=t=>R("GetRecommendations",t,!0),as=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:Or(t)}),Er=t=>R("getUserSportProfiles",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ce(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Er(t)}),ps=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ve(m(n(n({},t),r),{throwOnError:!0}));return o})}),ls=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield _e(m(n(n({},t),r),{throwOnError:!0}));return o})}),Rr=t=>R("getUserSportProfile",t),cs=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield De(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),us=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ae(m(n(n({},t),r),{throwOnError:!0}));return o})}),ds=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ke(m(n(n({},t),r),{throwOnError:!0}));return o})});export{et as ActivityServiceV1Service,tt as AnonymousService,rt as ApiClientServiceV1Service,z as ApiError,ot as AuthorizedService,it as BookingServiceV1Service,le as CancelError,Y as CancelablePromise,st as CheckoutServiceV1Service,at as CompetitionServiceV1Service,nt as CorsService,pt as LoyaltyServiceV1Service,lt as MembershipServiceV1Service,s as OpenAPI,ct as PlaySessionServiceV1Service,ut as UserServiceV1Service,_t as bookingRestriction,Dt as bookingSubType,qe as bookingSubscription,At as bookingUserStatus,Fe as cancellationPolicy,ze as chat,je as chatCreation,Gt as chatTarget,kt as clientType,Nt as directionParam,wt as months,Be as notificationChatGroup,$e as notificationEntity,Ke as pendingPayment,He as playSessionSettings,Qe as playSessionUser,Lt as playerStatusParam,Ve as playingUserResponse,Mt as userChatStatusParam,qt as userChatTargetParam,Ye as userPunchCard,We as userRelation,Ft as userRelationStatusParam,gt as v1};
|
|
14
|
+
`,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"},yi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},fi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},hi={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"},gi={enum:["FACILITY"],type:"string"},bi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Pi={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"},Si={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"},Oi={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"},Ei={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"},Ri={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ui={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ii={enum:["FACILITY_MESSAGE"],type:"string"},Ti={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},xi={properties:{level:{type:"string"}},required:["level"],type:"object"},Ci={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"},vi={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},Di={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"},_i={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"},Ai={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Gi={enum:["HIDDEN"],type:"string"},ki={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"},wi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Mi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},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 ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/matches/{matchId}/participations/{userId}"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Se=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Ee=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Re=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Ue=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Te=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},xe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},_e=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},ke=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Ne=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Wt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Jt={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},Xt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Zt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},er={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},tr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},rr={FACILITY:"FACILITY"},or={FACILITY_MESSAGE:"FACILITY_MESSAGE"},ir={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},sr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},ar={HIDDEN:"HIDDEN"};var we={};qe(we,{addUserSportProfileLevelMutation:()=>ms,createFacilityOfferOrderMutation:()=>zi,createMatchParticipationMutation:()=>Ki,createUserSportProfileMutation:()=>cs,deleteMatchParticipationMutation:()=>Vi,deleteUserSportProfileLevelMutation:()=>ys,deleteUserSportProfileMutation:()=>us,getMatchOptions:()=>$i,getMatchQueryKey:()=>ur,getMatchUserPriceOptions:()=>Hi,getMatchUserPriceQueryKey:()=>dr,getNotificationByIdOptions:()=>Zi,getNotificationByIdQueryKey:()=>hr,getNotificationsInfiniteOptions:()=>Yi,getNotificationsInfiniteQueryKey:()=>yr,getNotificationsOptions:()=>Qi,getNotificationsPreferencesOptions:()=>Ji,getNotificationsPreferencesQueryKey:()=>fr,getNotificationsQueryKey:()=>mr,getRecommendationsInfiniteOptions:()=>ps,getRecommendationsInfiniteQueryKey:()=>Er,getRecommendationsOptions:()=>ns,getRecommendationsQueryKey:()=>Or,getSportAuthoritiesOptions:()=>ts,getSportAuthoritiesQueryKey:()=>gr,getUserFacilityPermissionsOptions:()=>ss,getUserFacilityPermissionsQueryKey:()=>Sr,getUserSportProfileOptions:()=>ds,getUserSportProfileQueryKey:()=>Ur,getUserSportProfilesOptions:()=>ls,getUserSportProfilesQueryKey:()=>Rr,listFacilityOffersInfiniteOptions:()=>Fi,listFacilityOffersInfiniteQueryKey:()=>pr,listFacilityOffersOptions:()=>qi,listFacilityOffersQueryKey:()=>nr,listMatchesInfiniteOptions:()=>Bi,listMatchesInfiniteQueryKey:()=>cr,listMatchesOptions:()=>ji,listMatchesQueryKey:()=>lr,registerDeviceMutation:()=>is,searchUsersInfiniteOptions:()=>os,searchUsersInfiniteQueryKey:()=>Pr,searchUsersOptions:()=>rs,searchUsersQueryKey:()=>br,updateAllNotificationsMutation:()=>Wi,updateNotificationMutation:()=>es,updateNotificationsPreferencesMutation:()=>Xi,updateUserProfileMutation:()=>as,updateUserSportProfileLevelMutation:()=>fs});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},nr=t=>R("ListFacilityOffers",t),qi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:nr(t)}),se=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},pr=t=>R("ListFacilityOffers",t,!0),Fi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ee(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:pr(t)}),zi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield fe(m(n(n({},t),r),{throwOnError:!0}));return o})}),lr=t=>R("ListMatches",t),ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:lr(t)}),cr=t=>R("ListMatches",t,!0),Bi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield te(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:cr(t)}),ur=t=>R("GetMatch",t),$i=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield he(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),Ki=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),Vi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield be(m(n(n({},t),r),{throwOnError:!0}));return o})}),dr=t=>R("GetMatchUserPrice",t),Hi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Pe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t),Qi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:mr(t)}),yr=t=>R("GetNotifications",t,!0),Yi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield re(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:yr(t)}),Wi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Se(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationsPreferences",t),Ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ee(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("GetNotificationById",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),es=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ue(m(n(n({},t),r),{throwOnError:!0}));return o})}),gr=t=>R("getSportAuthorities",t),ts=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t),rs=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:br(t)}),Pr=t=>R("searchUsers",t,!0),os=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:Pr(t)}),is=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Te(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("getUserFacilityPermissions",t),ss=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield xe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),as=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ce(m(n(n({},t),r),{throwOnError:!0}));return o})}),Or=t=>R("GetRecommendations",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Or(t)}),Er=t=>R("GetRecommendations",t,!0),ps=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let c=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(n(n({},t),c),{signal:o,throwOnError:!0}));return p}),queryKey:Er(t)}),Rr=t=>R("getUserSportProfiles",t),ls=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ve(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),cs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield De(m(n(n({},t),r),{throwOnError:!0}));return o})}),us=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield _e(m(n(n({},t),r),{throwOnError:!0}));return o})}),Ur=t=>R("getUserSportProfile",t),ds=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ae(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Ur(t)}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ys=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ke(m(n(n({},t),r),{throwOnError:!0}));return o})}),fs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ne(m(n(n({},t),r),{throwOnError:!0}));return o})});export{tt as ActivityServiceV1Service,rt as AnonymousService,ot as ApiClientServiceV1Service,z as ApiError,it as AuthorizedService,st as BookingServiceV1Service,le as CancelError,Y as CancelablePromise,at as CheckoutServiceV1Service,nt as CompetitionServiceV1Service,pt as CorsService,lt as LoyaltyServiceV1Service,ct as MembershipServiceV1Service,s as OpenAPI,ut as PlaySessionServiceV1Service,dt as UserServiceV1Service,_t as bookingRestriction,At as bookingSubType,Fe as bookingSubscription,Gt as bookingUserStatus,ze as cancellationPolicy,je as chat,Be as chatCreation,kt as chatTarget,Nt as clientType,wt as directionParam,Mt as months,$e as notificationChatGroup,Ke as notificationEntity,Ve as pendingPayment,Qe as playSessionSettings,Ye as playSessionUser,Lt as playerStatusParam,He as playingUserResponse,qt as userChatStatusParam,Ft as userChatTargetParam,We as userPunchCard,Je as userRelation,zt as userRelationStatusParam,bt as v1};
|