@matchi/api 0.20260324.1 → 0.20260410.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";var ne=Object.defineProperty,lt=Object.defineProperties,ct=Object.getOwnPropertyDescriptor,ut=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols;var ir=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable;var ft=(r,e)=>(e=Symbol[r])?e:Symbol.for("Symbol."+r),Gr=r=>{throw TypeError(r)};var Ar=(r,e,t)=>e in r?ne(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,c=(r,e)=>{for(var t in e||(e={}))ir.call(e,t)&&Ar(r,t,e[t]);if(ae)for(var t of ae(e))Dr.call(e,t)&&Ar(r,t,e[t]);return r},m=(r,e)=>lt(r,ut(e));var Q=(r,e)=>{var t={};for(var o in r)ir.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&ae)for(var o of ae(r))e.indexOf(o)<0&&Dr.call(r,o)&&(t[o]=r[o]);return t};var pe=(r,e)=>{for(var t in e)ne(r,t,{get:e[t],enumerable:!0})},mt=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dt(e))!ir.call(r,i)&&i!==t&&ne(r,i,{get:()=>e[i],enumerable:!(o=ct(e,i))||o.enumerable});return r};var yt=r=>mt(ne({},"__esModule",{value:!0}),r);var kr=(r,e,t)=>e.has(r)||Gr("Cannot "+t);var b=(r,e,t)=>(kr(r,e,"read from private field"),t?t.call(r):e.get(r)),_=(r,e,t)=>e.has(r)?Gr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,o)=>(kr(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t);var y=(r,e,t)=>new Promise((o,i)=>{var p=d=>{try{l(t.next(d))}catch(f){i(f)}},n=d=>{try{l(t.throw(d))}catch(f){i(f)}},l=d=>d.done?o(d.value):Promise.resolve(d.value).then(p,n);l((t=t.apply(r,e)).next())}),w=function(r,e){this[0]=r,this[1]=e},Nr=(r,e,t)=>{var o=(n,l,d,f)=>{try{var u=t[n](l),S=(l=u.value)instanceof w,h=u.done;Promise.resolve(S?l[0]:l).then(g=>S?o(n==="return"?n:"next",l[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:h})).catch(g=>o("throw",g,d,f))}catch(g){f(g)}},i=n=>p[n]=l=>new Promise((d,f)=>o(n,l,d,f)),p={};return t=t.apply(r,e),p[ft("asyncIterator")]=()=>p,i("next"),i("throw"),i("return"),p};var ei={};pe(ei,{ActivityServiceV1Service:()=>Ue,AnonymousService:()=>Ee,ApiClientServiceV1Service:()=>Re,ApiError:()=>z,AuthorizedService:()=>Ie,BookingServiceV1Service:()=>Te,CancelError:()=>Y,CancelablePromise:()=>M,CheckoutServiceV1Service:()=>Ce,CompetitionServiceV1Service:()=>xe,CorsService:()=>ve,LoyaltyServiceV1Service:()=>Ae,MembershipServiceV1Service:()=>De,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>Ge,UserServiceV1Service:()=>ke,bookingRestriction:()=>sr,bookingSubType:()=>ar,bookingSubscription:()=>le,bookingUserStatus:()=>nr,cancellationPolicy:()=>ce,chat:()=>ue,chatCreation:()=>de,chatTarget:()=>pr,clientType:()=>lr,directionParam:()=>cr,months:()=>ur,notificationChatGroup:()=>fe,notificationEntity:()=>me,pendingPayment:()=>ye,playSessionSettings:()=>ge,playSessionUser:()=>be,playerStatusParam:()=>dr,playingUserResponse:()=>he,userChatStatusParam:()=>fr,userChatTargetParam:()=>mr,userPunchCard:()=>Pe,userRelation:()=>Se,userRelationStatusParam:()=>yr,v1:()=>rr});module.exports=yt(ei);var z=class extends Error{constructor(e,t,o){super(o),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var Y=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},A,D,x,L,B,J,j,M=class{constructor(e){_(this,A);_(this,D);_(this,x);_(this,L);_(this,B);_(this,J);_(this,j);C(this,A,!1),C(this,D,!1),C(this,x,!1),C(this,L,[]),C(this,B,new Promise((t,o)=>{C(this,J,t),C(this,j,o);let i=l=>{var d;b(this,A)||b(this,D)||b(this,x)||(C(this,A,!0),(d=b(this,J))==null||d.call(this,l))},p=l=>{var d;b(this,A)||b(this,D)||b(this,x)||(C(this,D,!0),(d=b(this,j))==null||d.call(this,l))},n=l=>{b(this,A)||b(this,D)||b(this,x)||b(this,L).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>b(this,A)}),Object.defineProperty(n,"isRejected",{get:()=>b(this,D)}),Object.defineProperty(n,"isCancelled",{get:()=>b(this,x)}),e(i,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return b(this,B).then(e,t)}catch(e){return b(this,B).catch(e)}finally(e){return b(this,B).finally(e)}cancel(){var e;if(!(b(this,A)||b(this,D)||b(this,x))){if(C(this,x,!0),b(this,L).length)try{for(let t of b(this,L))t()}catch(t){console.warn("Cancellation threw an error",t);return}b(this,L).length=0,(e=b(this,j))==null||e.call(this,new Y("Request aborted"))}}get isCancelled(){return b(this,x)}};A=new WeakMap,D=new WeakMap,x=new WeakMap,L=new WeakMap,B=new WeakMap,J=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 sr=(l=>(l.LIMIT_REACHED="LIMIT_REACHED",l.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",l.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",l.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",l.COURT_GROUP="COURT_GROUP",l.TOO_SOON="TOO_SOON",l.MEMBERS_ONLY="MEMBERS_ONLY",l))(sr||{});var le;(e=>{let r;(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"))(r=e.weekday||(e.weekday={}))})(le||(le={}));var ar=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(ar||{});var nr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(nr||{});var ce;(e=>{let r;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(r=e.itemType||(e.itemType={}))})(ce||(ce={}));var ue;(e=>{let r;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(r=e.status||(e.status={}))})(ue||(ue={}));var de;(e=>{let r;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(r=e.type||(e.type={}))})(de||(de={}));var pr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(pr||{});var lr=(t=>(t.WIDGET="WIDGET",t.API="API",t))(lr||{});var cr=(t=>(t.UPCOMING="UPCOMING",t.HISTORICAL="HISTORICAL",t))(cr||{});var ur=(h=>(h.JANUARY="January",h.FEBRUARY="February",h.MARCH="March",h.APRIL="April",h.MAY="May",h.JUNE="June",h.JULY="July",h.AUGUST="August",h.SEPTEMBER="September",h.OCTOBER="October",h.NOVEMBER="November",h.DECEMBER="December",h))(ur||{});var fe;(e=>{let r;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(r=e.type||(e.type={}))})(fe||(fe={}));var me;(e=>{let r;(i=>(i.GROUP="group",i.USER="user"))(r=e.entityType||(e.entityType={}))})(me||(me={}));var ye;(e=>{let r;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(r=e.type||(e.type={}))})(ye||(ye={}));var dr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(dr||{});var he;(e=>{let r;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(r=e.status||(e.status={}))})(he||(he={}));var ge;(e=>{let r;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(r=e.joinApproval||(e.joinApproval={}))})(ge||(ge={}));var be;(e=>{let r;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(r=e.joiningMethod||(e.joiningMethod={}))})(be||(be={}));var fr=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(fr||{});var mr=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(mr||{});var Pe;(e=>{let r;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(r=e.type||(e.type={}))})(Pe||(Pe={}));var Se;(e=>{let r;(l=>(l.FRIENDS="FRIENDS",l.OUTGOING="OUTGOING",l.INCOMING="INCOMING",l.BLOCKED="BLOCKED",l.NO_RELATION="NO_RELATION"))(r=e.status||(e.status={}))})(Se||(Se={}));var yr=(i=>(i.FRIENDS="FRIENDS",i.OUTGOING="OUTGOING",i.INCOMING="INCOMING",i.BLOCKED="BLOCKED",i))(yr||{});var gr=r=>r!=null,X=r=>typeof r=="string",hr=r=>X(r)&&r!=="",br=r=>typeof r=="object"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.arrayBuffer=="function"&&typeof r.constructor=="function"&&typeof r.constructor.name=="string"&&/^(Blob|File)$/.test(r.constructor.name)&&/^(Blob|File)$/.test(r[Symbol.toStringTag]),_r=r=>r instanceof FormData,ht=r=>{try{return btoa(r)}catch(e){return Buffer.from(r).toString("base64")}},gt=r=>{let e=[],t=(i,p)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(p))}`)},o=(i,p)=>{gr(p)&&(Array.isArray(p)?p.forEach(n=>{o(i,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{o(`${i}[${n}]`,l)}):t(i,p))};return Object.entries(r).forEach(([i,p])=>{o(i,p)}),e.length>0?`?${e.join("&")}`:""},bt=(r,e)=>{let t=r.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(p,n)=>{var l;return(l=e.path)!=null&&l.hasOwnProperty(n)?t(String(e.path[n])):p}),i=`${r.BASE}${o}`;return e.query?`${i}${gt(e.query)}`:i},Pt=r=>{if(r.formData){let e=new FormData,t=(o,i)=>{X(i)||br(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(r.formData).filter(([o,i])=>gr(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(p=>t(o,p)):t(o,i)}),e}},Oe=(r,e)=>y(null,null,function*(){return typeof e=="function"?e(r):e}),St=(r,e)=>y(null,null,function*(){let t=yield Oe(e,r.TOKEN),o=yield Oe(e,r.USERNAME),i=yield Oe(e,r.PASSWORD),p=yield Oe(e,r.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,d])=>gr(d)).reduce((l,[d,f])=>m(c({},l),{[d]:String(f)}),{});if(hr(t)&&(n.Authorization=`Bearer ${t}`),hr(o)&&hr(i)){let l=ht(`${o}:${i}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:br(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":X(e.body)?n["Content-Type"]="text/plain":_r(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Ot=r=>{var e;if(r.body!==void 0)return(e=r.mediaType)!=null&&e.includes("/json")?JSON.stringify(r.body):X(r.body)||br(r.body)||_r(r.body)?r.body:JSON.stringify(r.body)},Ut=(r,e,t,o,i,p,n)=>y(null,null,function*(){let l=new AbortController,d={headers:p,body:o!=null?o:i,method:e.method,signal:l.signal};return r.WITH_CREDENTIALS&&(d.credentials=r.CREDENTIALS),n(()=>l.abort()),yield fetch(t,d)}),Et=(r,e)=>{if(e){let t=r.headers.get(e);if(X(t))return t}},Rt=r=>y(null,null,function*(){if(r.status!==204)try{let e=r.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?yield r.json():yield r.text()}catch(e){console.error(e)}}),It=(r,e)=>{var i,p;let o=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},r.errors)[e.status];if(o)throw new z(r,e,o);if(!e.ok){let n=(i=e.status)!=null?i:"unknown",l=(p=e.statusText)!=null?p:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(r,e,`Generic Error: status: ${n}; status text: ${l}; body: ${d}`)}},a=(r,e)=>new M((t,o,i)=>y(null,null,function*(){try{let p=bt(r,e),n=Pt(e),l=Ot(e),d=yield St(r,e);if(!i.isCancelled){let f=yield Ut(r,e,p,l,n,d,i),u=yield Rt(f),S=Et(f,e.responseHeader),h={url:p,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};It(e,h),t(h.body)}}catch(p){o(p)}}));var Ue=class{static getAdminActivityOccasions(e,t,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:t,startDate:o,endDate:i,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ee=class{static listActivities(e=!1,t=!1,o,i,p,n,l,d,f,u,S,h=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:t,facilityIds:o,level:i,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:d,startDate:f,endDate:u,offset:S,limit:h},errors:{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,t=!1,o,i,p){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:t,hidePastOccasions:o,startDate:i,endDate: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 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,t,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:t,startDate:o,endDate:i,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,t,o,i,p,n,l,d,f=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:t,name:o,latitude:i,longitude:p,radius:n,resourceTypes:l,offset:d,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return 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,t,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:t,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,t){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:t},errors:{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 Re=class{static getApiClientList(e,t=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:t},errors:{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,t,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:t,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,t){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ie=class{static 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,t){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:t},errors:{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,t){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:t},errors:{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,t,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:t,endTime:o,promoCode:i,numberOfSlots:p,emails:n,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 listAvailabilityEndTimesWithPrices(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 getCancellationPolicy(e,t,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:t,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",t="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:t,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,t){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:t},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,t){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t=10){return a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:t},errors:{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,t=10,o){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:t,subType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:t},errors:{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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:t,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,t,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:t,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,t=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:t},errors:{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,t,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:t,endDateTime:o,sportIds:i,availableSpots: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 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,t=10,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:t,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:t},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,t){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:t,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,t,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:t,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,t){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:t,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,t){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:t},errors:{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,t){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:t,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,t=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:t},errors:{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,t,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:t,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,t){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Te=class{static getAvailabilityWithPrice(e,t,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:t,endTime:o,promoCode:i,numberOfSlots:p,emails:n,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 listAvailabilityEndTimesWithPrices(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:t},errors:{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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:t,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,t,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:t,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 Ce=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,t,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:t,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 xe=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 ve=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Ae=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 De=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,t){return a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ge=class{static 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,t){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:t},errors:{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,t){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:t},errors:{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,t,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:t},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,t,o){return a(s,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:t},errors:{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,t){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:t,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,t=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:t},errors:{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,t,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:t,endDateTime:o,sportIds:i,availableSpots: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."}})}};var ke=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",t="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:t,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,t){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:t},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,t){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t=10,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var rr={};pe(rr,{Gender:()=>Mr,Source:()=>Kr,Topic:()=>$r,UserRelation:()=>Hr,addUserSportProfileLevel:()=>Je,client:()=>P,createFacilityOfferOrder:()=>qe,createUserSportProfile:()=>We,deleteUserSportProfile:()=>Qe,deleteUserSportProfileLevel:()=>Xe,getNotificationById:()=>je,getNotifications:()=>te,getNotificationsPreferences:()=>ze,getSportAuthorities:()=>Ke,getUserFacilityPermissions:()=>$e,getUserSportProfile:()=>Ye,getUserSportProfiles:()=>Ve,listFacilityOffers:()=>re,queries:()=>er,schemas:()=>Le,searchUsers:()=>oe,updateAllNotifications:()=>Fe,updateNotification:()=>Me,updateNotificationsPreferences:()=>Be,updateUserProfile:()=>He,updateUserSportProfileLevel:()=>Ze});var Pr={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)};var Tt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},ra=Object.entries(Tt);var wr=S=>{var h=S,{onRequest:r,onSseError:e,onSseEvent:t,responseTransformer:o,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:n,sseMaxRetryDelay:l,sseSleepFn:d,url:f}=h,u=Q(h,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,$=d!=null?d:(k=>new Promise(v=>setTimeout(v,k)));return{stream:function(){return Nr(this,null,function*(){var N,H,U;let k=p!=null?p:3e3,v=0,q=(N=u.signal)!=null?N:new AbortController().signal;for(;!q.aborted;){v++;let R=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&R.set("Last-Event-ID",g);try{let E=m(c({redirect:"follow"},u),{body:u.serializedBody,headers:R,signal:q}),ie=new Request(f,E);r&&(ie=yield new w(r(f,E)));let st=(H=u.fetch)!=null?H:globalThis.fetch,V=yield new w(st(ie));if(!V.ok)throw new Error(`SSE failed: ${V.status} ${V.statusText}`);if(!V.body)throw new Error("No body in SSE response");let tr=V.body.pipeThrough(new TextDecoderStream).getReader(),W="",Ir=()=>{try{tr.cancel()}catch(Tr){}};q.addEventListener("abort",Ir);try{for(;;){let{done:Tr,value:at}=yield new w(tr.read());if(Tr)break;W+=at,W=W.replace(/\r\n/g,`
1
+ "use strict";var ne=Object.defineProperty,mt=Object.defineProperties,yt=Object.getOwnPropertyDescriptor,ht=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols;var ir=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable;var bt=(r,e)=>(e=Symbol[r])?e:Symbol.for("Symbol."+r),_r=r=>{throw TypeError(r)};var Ar=(r,e,t)=>e in r?ne(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,c=(r,e)=>{for(var t in e||(e={}))ir.call(e,t)&&Ar(r,t,e[t]);if(ae)for(var t of ae(e))Dr.call(e,t)&&Ar(r,t,e[t]);return r},m=(r,e)=>mt(r,ht(e));var Q=(r,e)=>{var t={};for(var o in r)ir.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&ae)for(var o of ae(r))e.indexOf(o)<0&&Dr.call(r,o)&&(t[o]=r[o]);return t};var pe=(r,e)=>{for(var t in e)ne(r,t,{get:e[t],enumerable:!0})},Pt=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of gt(e))!ir.call(r,i)&&i!==t&&ne(r,i,{get:()=>e[i],enumerable:!(o=yt(e,i))||o.enumerable});return r};var St=r=>Pt(ne({},"__esModule",{value:!0}),r);var kr=(r,e,t)=>e.has(r)||_r("Cannot "+t);var b=(r,e,t)=>(kr(r,e,"read from private field"),t?t.call(r):e.get(r)),N=(r,e,t)=>e.has(r)?_r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,o)=>(kr(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t);var y=(r,e,t)=>new Promise((o,i)=>{var p=d=>{try{l(t.next(d))}catch(f){i(f)}},n=d=>{try{l(t.throw(d))}catch(f){i(f)}},l=d=>d.done?o(d.value):Promise.resolve(d.value).then(p,n);l((t=t.apply(r,e)).next())}),w=function(r,e){this[0]=r,this[1]=e},Gr=(r,e,t)=>{var o=(n,l,d,f)=>{try{var u=t[n](l),S=(l=u.value)instanceof w,h=u.done;Promise.resolve(S?l[0]:l).then(g=>S?o(n==="return"?n:"next",l[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:h})).catch(g=>o("throw",g,d,f))}catch(g){f(g)}},i=n=>p[n]=l=>new Promise((d,f)=>o(n,l,d,f)),p={};return t=t.apply(r,e),p[bt("asyncIterator")]=()=>p,i("next"),i("throw"),i("return"),p};var Ii={};pe(Ii,{ActivityServiceV1Service:()=>Ee,AnonymousService:()=>Ue,ApiClientServiceV1Service:()=>Re,ApiError:()=>z,AuthorizedService:()=>Ie,BookingServiceV1Service:()=>Te,CancelError:()=>Y,CancelablePromise:()=>j,CheckoutServiceV1Service:()=>Ce,CompetitionServiceV1Service:()=>xe,CorsService:()=>ve,LoyaltyServiceV1Service:()=>Ae,MembershipServiceV1Service:()=>De,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>_e,UserServiceV1Service:()=>ke,bookingRestriction:()=>sr,bookingSubType:()=>ar,bookingSubscription:()=>le,bookingUserStatus:()=>nr,cancellationPolicy:()=>ce,chat:()=>ue,chatCreation:()=>de,chatTarget:()=>pr,clientType:()=>lr,directionParam:()=>cr,months:()=>ur,notificationChatGroup:()=>fe,notificationEntity:()=>me,pendingPayment:()=>ye,playSessionSettings:()=>ge,playSessionUser:()=>be,playerStatusParam:()=>dr,playingUserResponse:()=>he,userChatStatusParam:()=>fr,userChatTargetParam:()=>mr,userPunchCard:()=>Pe,userRelation:()=>Se,userRelationStatusParam:()=>yr,v1:()=>rr});module.exports=St(Ii);var z=class extends Error{constructor(e,t,o){super(o),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var Y=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},A,D,x,L,M,J,B,j=class{constructor(e){N(this,A);N(this,D);N(this,x);N(this,L);N(this,M);N(this,J);N(this,B);C(this,A,!1),C(this,D,!1),C(this,x,!1),C(this,L,[]),C(this,M,new Promise((t,o)=>{C(this,J,t),C(this,B,o);let i=l=>{var d;b(this,A)||b(this,D)||b(this,x)||(C(this,A,!0),(d=b(this,J))==null||d.call(this,l))},p=l=>{var d;b(this,A)||b(this,D)||b(this,x)||(C(this,D,!0),(d=b(this,B))==null||d.call(this,l))},n=l=>{b(this,A)||b(this,D)||b(this,x)||b(this,L).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>b(this,A)}),Object.defineProperty(n,"isRejected",{get:()=>b(this,D)}),Object.defineProperty(n,"isCancelled",{get:()=>b(this,x)}),e(i,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return b(this,M).then(e,t)}catch(e){return b(this,M).catch(e)}finally(e){return b(this,M).finally(e)}cancel(){var e;if(!(b(this,A)||b(this,D)||b(this,x))){if(C(this,x,!0),b(this,L).length)try{for(let t of b(this,L))t()}catch(t){console.warn("Cancellation threw an error",t);return}b(this,L).length=0,(e=b(this,B))==null||e.call(this,new Y("Request aborted"))}}get isCancelled(){return b(this,x)}};A=new WeakMap,D=new WeakMap,x=new WeakMap,L=new WeakMap,M=new WeakMap,J=new WeakMap,B=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 sr=(l=>(l.LIMIT_REACHED="LIMIT_REACHED",l.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",l.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",l.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",l.COURT_GROUP="COURT_GROUP",l.TOO_SOON="TOO_SOON",l.MEMBERS_ONLY="MEMBERS_ONLY",l))(sr||{});var le;(e=>{let r;(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"))(r=e.weekday||(e.weekday={}))})(le||(le={}));var ar=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(ar||{});var nr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(nr||{});var ce;(e=>{let r;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(r=e.itemType||(e.itemType={}))})(ce||(ce={}));var ue;(e=>{let r;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(r=e.status||(e.status={}))})(ue||(ue={}));var de;(e=>{let r;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(r=e.type||(e.type={}))})(de||(de={}));var pr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(pr||{});var lr=(t=>(t.WIDGET="WIDGET",t.API="API",t))(lr||{});var cr=(t=>(t.UPCOMING="UPCOMING",t.HISTORICAL="HISTORICAL",t))(cr||{});var ur=(h=>(h.JANUARY="January",h.FEBRUARY="February",h.MARCH="March",h.APRIL="April",h.MAY="May",h.JUNE="June",h.JULY="July",h.AUGUST="August",h.SEPTEMBER="September",h.OCTOBER="October",h.NOVEMBER="November",h.DECEMBER="December",h))(ur||{});var fe;(e=>{let r;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(r=e.type||(e.type={}))})(fe||(fe={}));var me;(e=>{let r;(i=>(i.GROUP="group",i.USER="user"))(r=e.entityType||(e.entityType={}))})(me||(me={}));var ye;(e=>{let r;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(r=e.type||(e.type={}))})(ye||(ye={}));var dr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(dr||{});var he;(e=>{let r;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(r=e.status||(e.status={}))})(he||(he={}));var ge;(e=>{let r;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(r=e.joinApproval||(e.joinApproval={}))})(ge||(ge={}));var be;(e=>{let r;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(r=e.joiningMethod||(e.joiningMethod={}))})(be||(be={}));var fr=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(fr||{});var mr=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(mr||{});var Pe;(e=>{let r;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(r=e.type||(e.type={}))})(Pe||(Pe={}));var Se;(e=>{let r;(l=>(l.FRIENDS="FRIENDS",l.OUTGOING="OUTGOING",l.INCOMING="INCOMING",l.BLOCKED="BLOCKED",l.NO_RELATION="NO_RELATION"))(r=e.status||(e.status={}))})(Se||(Se={}));var yr=(i=>(i.FRIENDS="FRIENDS",i.OUTGOING="OUTGOING",i.INCOMING="INCOMING",i.BLOCKED="BLOCKED",i))(yr||{});var gr=r=>r!=null,X=r=>typeof r=="string",hr=r=>X(r)&&r!=="",br=r=>typeof r=="object"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.arrayBuffer=="function"&&typeof r.constructor=="function"&&typeof r.constructor.name=="string"&&/^(Blob|File)$/.test(r.constructor.name)&&/^(Blob|File)$/.test(r[Symbol.toStringTag]),Nr=r=>r instanceof FormData,Ot=r=>{try{return btoa(r)}catch(e){return Buffer.from(r).toString("base64")}},Et=r=>{let e=[],t=(i,p)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(p))}`)},o=(i,p)=>{gr(p)&&(Array.isArray(p)?p.forEach(n=>{o(i,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{o(`${i}[${n}]`,l)}):t(i,p))};return Object.entries(r).forEach(([i,p])=>{o(i,p)}),e.length>0?`?${e.join("&")}`:""},Ut=(r,e)=>{let t=r.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(p,n)=>{var l;return(l=e.path)!=null&&l.hasOwnProperty(n)?t(String(e.path[n])):p}),i=`${r.BASE}${o}`;return e.query?`${i}${Et(e.query)}`:i},Rt=r=>{if(r.formData){let e=new FormData,t=(o,i)=>{X(i)||br(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(r.formData).filter(([o,i])=>gr(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(p=>t(o,p)):t(o,i)}),e}},Oe=(r,e)=>y(null,null,function*(){return typeof e=="function"?e(r):e}),It=(r,e)=>y(null,null,function*(){let t=yield Oe(e,r.TOKEN),o=yield Oe(e,r.USERNAME),i=yield Oe(e,r.PASSWORD),p=yield Oe(e,r.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,d])=>gr(d)).reduce((l,[d,f])=>m(c({},l),{[d]:String(f)}),{});if(hr(t)&&(n.Authorization=`Bearer ${t}`),hr(o)&&hr(i)){let l=Ot(`${o}:${i}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:br(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":X(e.body)?n["Content-Type"]="text/plain":Nr(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Tt=r=>{var e;if(r.body!==void 0)return(e=r.mediaType)!=null&&e.includes("/json")?JSON.stringify(r.body):X(r.body)||br(r.body)||Nr(r.body)?r.body:JSON.stringify(r.body)},Ct=(r,e,t,o,i,p,n)=>y(null,null,function*(){let l=new AbortController,d={headers:p,body:o!=null?o:i,method:e.method,signal:l.signal};return r.WITH_CREDENTIALS&&(d.credentials=r.CREDENTIALS),n(()=>l.abort()),yield fetch(t,d)}),xt=(r,e)=>{if(e){let t=r.headers.get(e);if(X(t))return t}},vt=r=>y(null,null,function*(){if(r.status!==204)try{let e=r.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?yield r.json():yield r.text()}catch(e){console.error(e)}}),At=(r,e)=>{var i,p;let o=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},r.errors)[e.status];if(o)throw new z(r,e,o);if(!e.ok){let n=(i=e.status)!=null?i:"unknown",l=(p=e.statusText)!=null?p:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(r,e,`Generic Error: status: ${n}; status text: ${l}; body: ${d}`)}},a=(r,e)=>new j((t,o,i)=>y(null,null,function*(){try{let p=Ut(r,e),n=Rt(e),l=Tt(e),d=yield It(r,e);if(!i.isCancelled){let f=yield Ct(r,e,p,l,n,d,i),u=yield vt(f),S=xt(f,e.responseHeader),h={url:p,ok:f.ok,status:f.status,statusText:f.statusText,body:S!=null?S:u};At(e,h),t(h.body)}}catch(p){o(p)}}));var Ee=class{static getAdminActivityOccasions(e,t,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:t,startDate:o,endDate:i,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ue=class{static listActivities(e=!1,t=!1,o,i,p,n,l,d,f,u,S,h=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:t,facilityIds:o,level:i,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:d,startDate:f,endDate:u,offset:S,limit:h},errors:{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,t=!1,o,i,p){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:t,hidePastOccasions:o,startDate:i,endDate: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 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,t,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:t,startDate:o,endDate:i,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return a(s,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,t,o,i,p,n,l,d,f=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:t,name:o,latitude:i,longitude:p,radius:n,resourceTypes:l,offset:d,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return 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,t,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:t,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,t){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:t},errors:{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 Re=class{static getApiClientList(e,t=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:t},errors:{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,t,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:t,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,t){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ie=class{static 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,t){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:t},errors:{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,t){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:t},errors:{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,t,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:t,endTime:o,promoCode:i,numberOfSlots:p,emails:n,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 listAvailabilityEndTimesWithPrices(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 getCancellationPolicy(e,t,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:t,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",t="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:t,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,t){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:t},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,t){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t=10){return a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:t},errors:{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,t=10,o){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:t,subType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:t},errors:{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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:t,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,t,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:t,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,t=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:t},errors:{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,t,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:t,endDateTime:o,sportIds:i,availableSpots: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 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,t=10,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:t,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:t},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,t){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:t,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,t,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:t,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,t){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:t,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,t){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:t},errors:{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,t){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:t,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,t=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:t},errors:{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,t,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:t,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,t){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Te=class{static getAvailabilityWithPrice(e,t,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:t,endTime:o,promoCode:i,numberOfSlots:p,emails:n,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 listAvailabilityEndTimesWithPrices(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 listAvailabilityEndTimesWithRestrictions(e,t,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:t,numberOfSlots:o,emails:i,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 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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:t},errors:{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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:t},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,t){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:t,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,t,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:t,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 Ce=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,t,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:t,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 xe=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 ve=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Ae=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 De=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,t){return a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var _e=class{static 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,t){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:t},errors:{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,t){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:t},errors:{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,t,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:t},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,t,o){return a(s,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:t},errors:{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,t){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:t,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,t=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:t},errors:{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,t,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:t,endDateTime:o,sportIds:i,availableSpots: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."}})}};var ke=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",t="ALL",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:t,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,t){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:t},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,t){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:t},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,t=10,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:t,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,t=10){return a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:t},errors:{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,t=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,t=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:t},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var rr={};pe(rr,{Gender:()=>jr,LinkType:()=>$r,MemberRelation:()=>Vr,MembershipStatus:()=>Kr,PostingPermission:()=>Hr,Source:()=>Wr,Topic:()=>Qr,UserRelation:()=>Yr,Visibility:()=>Jr,addUserSportProfileLevel:()=>Je,client:()=>P,createFacilityOfferOrder:()=>qe,createUserSportProfile:()=>We,deleteUserSportProfile:()=>Qe,deleteUserSportProfileLevel:()=>Xe,getNotificationById:()=>Be,getNotifications:()=>te,getNotificationsPreferences:()=>ze,getSportAuthorities:()=>$e,getUserFacilityPermissions:()=>Ve,getUserSportProfile:()=>Ye,getUserSportProfiles:()=>He,listFacilityOffers:()=>re,queries:()=>er,schemas:()=>Le,searchUsers:()=>oe,updateAllNotifications:()=>Fe,updateNotification:()=>je,updateNotificationsPreferences:()=>Me,updateUserProfile:()=>Ke,updateUserSportProfileLevel:()=>Ze});var Pr={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)};var Dt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Ta=Object.entries(Dt);var wr=S=>{var h=S,{onRequest:r,onSseError:e,onSseEvent:t,responseTransformer:o,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:n,sseMaxRetryDelay:l,sseSleepFn:d,url:f}=h,u=Q(h,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,V=d!=null?d:(k=>new Promise(v=>setTimeout(v,k)));return{stream:function(){return Gr(this,null,function*(){var G,K,E;let k=p!=null?p:3e3,v=0,q=(G=u.signal)!=null?G:new AbortController().signal;for(;!q.aborted;){v++;let R=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&R.set("Last-Event-ID",g);try{let U=m(c({redirect:"follow"},u),{body:u.serializedBody,headers:R,signal:q}),ie=new Request(f,U);r&&(ie=yield new w(r(f,U)));let ct=(K=u.fetch)!=null?K:globalThis.fetch,H=yield new w(ct(ie));if(!H.ok)throw new Error(`SSE failed: ${H.status} ${H.statusText}`);if(!H.body)throw new Error("No body in SSE response");let tr=H.body.pipeThrough(new TextDecoderStream).getReader(),W="",Ir=()=>{try{tr.cancel()}catch(Tr){}};q.addEventListener("abort",Ir);try{for(;;){let{done:Tr,value:ut}=yield new w(tr.read());if(Tr)break;W+=ut,W=W.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let Cr=W.split(`
4
4
 
5
- `);W=(U=Cr.pop())!=null?U:"";for(let nt of Cr){let pt=nt.split(`
6
- `),se=[],xr;for(let T of pt)if(T.startsWith("data:"))se.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))xr=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))g=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let or=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(or)||(k=or)}let F,vr=!1;if(se.length){let T=se.join(`
7
- `);try{F=JSON.parse(T),vr=!0}catch(or){F=T}}vr&&(i&&(yield new w(i(F))),o&&(F=yield new w(o(F)))),t==null||t({data:F,event:xr,id:g,retry:k}),se.length&&(yield F)}}}finally{q.removeEventListener("abort",Ir),tr.releaseLock()}break}catch(E){if(e==null||e(E),n!==void 0&&v>=n)break;let ie=Math.min(k*2**(v-1),l!=null?l:3e4);yield new w($(ie))}}})}()}};var Ct=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},xt=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},vt=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ne=({allowReserved:r,explode:e,name:t,style:o,value:i})=>{if(!e){let l=(r?i:i.map(d=>encodeURIComponent(d))).join(xt(o));switch(o){case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;case"simple":return l;default:return`${t}=${l}`}}let p=Ct(o),n=i.map(l=>o==="label"||o==="simple"?r?l:encodeURIComponent(l):K({allowReserved:r,name:t,value:l})).join(p);return o==="label"||o==="matrix"?p+n:n},K=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},_e=({allowReserved:r,explode:e,name:t,style:o,value:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${t}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,r?S:encodeURIComponent(S)]});let f=d.join(",");switch(o){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}let n=vt(o),l=Object.entries(i).map(([d,f])=>K({allowReserved:r,name:o==="deepObject"?`${t}[${d}]`:d,value:f})).join(n);return o==="label"||o==="matrix"?n+l:l};var At=/\{[^{}]+\}/g,Dt=({path:r,url:e})=>{let t=e,o=e.match(At);if(o)for(let i of o){let p=!1,n=i.substring(1,i.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=r[n];if(d==null)continue;if(Array.isArray(d)){t=t.replace(i,Ne({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){t=t.replace(i,_e({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){t=t.replace(i,`;${K({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);t=t.replace(i,f)}return t},Lr=({baseUrl:r,path:e,query:t,querySerializer:o,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,n=(r!=null?r:"")+p;e&&(n=Dt({path:e,url:n}));let l=t?o(t):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Sr(r){let e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}var qr=(r,e)=>y(null,null,function*(){let t=typeof e=="function"?yield e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t});var Fr=(t={})=>{var o=t,{parameters:r={}}=o,e=Q(o,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=r[l]||e;if(Array.isArray(d)){let u=Ne(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=_e(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=K({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},zr=r=>{var t;if(!r)return"stream";let e=(t=r.split(";")[0])==null?void 0:t.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"}},Gt=(r,e)=>{var t,o;return e?!!(r.headers.has(e)||(t=r.query)!=null&&t[e]||(o=r.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Br=t=>y(null,null,function*(){var o=t,{security:r}=o,e=Q(o,["security"]);var i;for(let p of r){if(Gt(e,p.name))continue;let n=yield qr(p,e.auth);if(!n)continue;let l=(i=p.name)!=null?i:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),Or=r=>Lr({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:Fr(r.querySerializer),url:r.url}),Ur=(r,e)=>{var o;let t=c(c({},r),e);return(o=t.baseUrl)!=null&&o.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=we(r.headers,e.headers),t},kt=r=>{let e=[];return r.forEach((t,o)=>{e.push([o,t])}),e},we=(...r)=>{let e=new Headers;for(let t of r){if(!t)continue;let o=t instanceof Headers?kt(t):Object.entries(t);for(let[i,p]of o)if(p===null)e.delete(i);else if(Array.isArray(p))for(let n of p)e.append(i,n);else p!==void 0&&e.set(i,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},jr=()=>({error:new Z,request:new Z,response:new Z}),Nt=Fr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),_t={"Content-Type":"application/json"},ee=(r={})=>c(m(c({},Pr),{headers:_t,parseAs:"auto",querySerializer:Nt}),r);var Er=(r={})=>{let e=Ur(ee(),r),t=()=>c({},e),o=f=>(e=Ur(e,f),t()),i=jr(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:we(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Br(m(c({},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=Or(u);return{opts:u,url:S}}),n=f=>y(null,null,function*(){var H;let{opts:u,url:S}=yield p(f),h=m(c({redirect:"follow"},u),{body:Sr(u)}),g=new Request(S,h);for(let U of i.request.fns)U&&(g=yield U(g,u));let $=u.fetch,O;try{O=yield $(g)}catch(U){let R=U;for(let E of i.error.fns)E&&(R=yield E(U,void 0,g,u));if(R=R||{},u.throwOnError)throw R;return u.responseStyle==="data"?void 0:{error:R,request:g,response:void 0}}for(let U of i.response.fns)U&&(O=yield U(O,g,u));let G={request:g,response:O};if(O.ok){let U=(H=u.parseAs==="auto"?zr(O.headers.get("Content-Type")):u.parseAs)!=null?H:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let E;switch(U){case"arrayBuffer":case"blob":case"text":E=yield O[U]();break;case"formData":E=new FormData;break;case"stream":E=O.body;break;default:E={};break}return u.responseStyle==="data"?E:c({data:E},G)}let R;switch(U){case"arrayBuffer":case"blob":case"formData":case"text":R=yield O[U]();break;case"json":{let E=yield O.text();R=E?JSON.parse(E):{};break}case"stream":return u.responseStyle==="data"?O.body:c({data:O.body},G)}return U==="json"&&(u.responseValidator&&(yield u.responseValidator(R)),u.responseTransformer&&(R=yield u.responseTransformer(R))),u.responseStyle==="data"?R:c({data:R},G)}let k=yield O.text(),v;try{v=JSON.parse(k)}catch(U){}let q=v!=null?v:k,N=q;for(let U of i.error.fns)U&&(N=yield U(q,O,g,u));if(N=N||{},u.throwOnError)throw N;return u.responseStyle==="data"?void 0:c({error:N},G)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:S,url:h}=yield p(u);return wr(m(c({},S),{body:S.body,headers:S.headers,method:f,onRequest:(g,$)=>y(null,null,function*(){let O=new Request(g,$);for(let G of i.request.fns)G&&(O=yield G(O,S));return O}),serializedBody:Sr(S),url:h}))});return{buildUrl:Or,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:t,head:l("HEAD"),interceptors:i,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,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:l("TRACE")}};var P=Er(ee({baseUrl:"https://api.matchi.com/v1"}));var Le={};pe(Le,{ChannelsSchema:()=>wt,CreateSportProfileLevelRequestSchema:()=>Lt,CreateSportProfileRequestSchema:()=>qt,FacilityMessagePayloadSchema:()=>Ft,FacilityOfferConditionActivitiesSchema:()=>jt,FacilityOfferConditionCourtsSchema:()=>Mt,FacilityOfferConditionDateSchema:()=>Kt,FacilityOfferConditionHoursinadvanceSchema:()=>$t,FacilityOfferConditionSchema:()=>Bt,FacilityOfferConditionTimeSchema:()=>Ht,FacilityOfferConditionWeekdaysSchema:()=>Vt,FacilityOfferListSchema:()=>Wt,FacilityOfferOrderSchema:()=>Qt,FacilityOfferSchema:()=>zt,FacilityPermissionSchema:()=>Yt,FacilityPermissionsResponseSchema:()=>Jt,FacilityPunchCardDataSchema:()=>Xt,FacilityValueCardDataSchema:()=>Zt,GenderSchema:()=>eo,MetadataSchema:()=>ro,NotificationPayloadSchema:()=>oo,NotificationRequestBodySchema:()=>io,NotificationSchema:()=>to,NotificationsFilterSchema:()=>so,NotificationsPaginatedResponseSchema:()=>ao,NotificationsSummarySchema:()=>no,PreferenceSchema:()=>po,PreferencesResponseSchema:()=>lo,RegisterDeviceRequestSchema:()=>co,SourceSchema:()=>uo,SportAuthoritiesResponseSchema:()=>fo,SportAuthoritySchema:()=>mo,SportLevelSchema:()=>yo,SportProfileAttributeSchema:()=>go,SportProfileLevelSchema:()=>bo,SportProfileSchema:()=>ho,SportProfilesResponseSchema:()=>Po,TopicSchema:()=>So,UpdatePreferencesRequestBodySchema:()=>Oo,UpdateSportProfileLevelRequestSchema:()=>Uo,UpdateUsersProfilesRequestSchema:()=>Eo,UserProfileSchema:()=>Ro,UserRelationSchema:()=>Io,UsersProfilesPaginatedResponseSchema:()=>To,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Co,pkgOpenapiSharedErrorSchema:()=>xo,pkgOpenapiSharedErrorsSchema:()=>vo,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Ao,pkgOpenapiSharedProblemDetailsSchema:()=>Do});var wt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Lt={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},qt={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"},Ft={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},zt={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"},Bt={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"},jt={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"},Mt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Kt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},$t={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ht={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Vt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Wt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Qt={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"},Yt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Jt={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Xt={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"},Zt={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"},eo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ro={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},to={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"},oo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},io={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},so={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},ao={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},no={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"},po={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"},lo={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},co={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"},uo={enum:["FACILITY"],type:"string"},fo={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},mo={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"},yo={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"},ho={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"},go={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"},bo={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Po={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},So={enum:["FACILITY_MESSAGE"],type:"string"},Oo={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Uo={properties:{level:{type:"string"}},required:["level"],type:"object"},Eo={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"},Ro={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"},Io={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",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},To={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Co={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"},xo={properties:{message:{description:"The error message",type:"string"}},type:"object"},vo={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Ao={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"},Do={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/facilities/{facility_id}/offers"},r))},qe=r=>{var e;return((e=r.client)!=null?e:P).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},r))},te=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/notifications"},r))},Fe=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},ze=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},r))},Be=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications/preferences"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},je=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/notifications/{id}"},r))},Me=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications/{id}"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Ke=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/sport-authorities"},r))},oe=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/users/profiles"},r))},$e=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/facility-permissions"},r))},He=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/users/{user_id}/profiles"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Ve=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/sport-profiles"},r))},We=r=>{var e;return((e=r.client)!=null?e:P).post(m(c({url:"/users/{user_id}/sport-profiles"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Qe=r=>{var e;return((e=r.client)!=null?e:P).delete(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},r))},Ye=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},r))},Je=r=>{var e;return((e=r.client)!=null?e:P).post(m(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Xe=r=>{var e;return((e=r.client)!=null?e:P).delete(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},r))},Ze=r=>{var e;return((e=r.client)!=null?e:P).put(m(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))};var Mr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Kr={FACILITY:"FACILITY"},$r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Hr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var er={};pe(er,{addUserSportProfileLevelMutation:()=>Jo,createFacilityOfferOrderMutation:()=>No,createUserSportProfileMutation:()=>Wo,deleteUserSportProfileLevelMutation:()=>Xo,deleteUserSportProfileMutation:()=>Qo,getNotificationByIdOptions:()=>zo,getNotificationByIdQueryKey:()=>Xr,getNotificationsInfiniteOptions:()=>wo,getNotificationsInfiniteQueryKey:()=>Yr,getNotificationsOptions:()=>_o,getNotificationsPreferencesOptions:()=>qo,getNotificationsPreferencesQueryKey:()=>Jr,getNotificationsQueryKey:()=>Qr,getSportAuthoritiesOptions:()=>jo,getSportAuthoritiesQueryKey:()=>Zr,getUserFacilityPermissionsOptions:()=>$o,getUserFacilityPermissionsQueryKey:()=>tt,getUserSportProfileOptions:()=>Yo,getUserSportProfileQueryKey:()=>it,getUserSportProfilesOptions:()=>Vo,getUserSportProfilesQueryKey:()=>ot,listFacilityOffersInfiniteOptions:()=>ko,listFacilityOffersInfiniteQueryKey:()=>Wr,listFacilityOffersOptions:()=>Go,listFacilityOffersQueryKey:()=>Vr,searchUsersInfiniteOptions:()=>Ko,searchUsersInfiniteQueryKey:()=>rt,searchUsersOptions:()=>Mo,searchUsersQueryKey:()=>et,updateAllNotificationsMutation:()=>Lo,updateNotificationMutation:()=>Bo,updateNotificationsPreferencesMutation:()=>Fo,updateUserProfileMutation:()=>Ho,updateUserSportProfileLevelMutation:()=>Zo});var I=(r,e,t,o)=>{var p;let i={_id:r,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:P).getConfig().baseUrl};return t&&(i._infinite=t),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]},Vr=r=>I("ListFacilityOffers",r),Go=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield re(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Vr(r)}),Rr=(r,e)=>{let t=c({},r[0]);return e.body&&(t.body=c(c({},r[0].body),e.body)),e.headers&&(t.headers=c(c({},r[0].headers),e.headers)),e.path&&(t.path=c(c({},r[0].path),e.path)),e.query&&(t.query=c(c({},r[0].query),e.query)),t},Wr=r=>I("ListFacilityOffers",r,!0),ko=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:Wr(r)}),No=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield qe(m(c(c({},r),t),{throwOnError:!0}));return o})}),Qr=r=>I("GetNotifications",r),_o=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield te(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Qr(r)}),Yr=r=>I("GetNotifications",r,!0),wo=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:Yr(r)}),Lo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Fe(m(c(c({},r),t),{throwOnError:!0}));return o})}),Jr=r=>I("GetNotificationsPreferences",r),qo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield ze(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Jr(r)}),Fo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Be(m(c(c({},r),t),{throwOnError:!0}));return o})}),Xr=r=>I("GetNotificationById",r),zo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield je(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Xr(r)}),Bo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Me(m(c(c({},r),t),{throwOnError:!0}));return o})}),Zr=r=>I("getSportAuthorities",r),jo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Ke(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Zr(r)}),et=r=>I("searchUsers",r),Mo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield oe(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:et(r)}),rt=r=>I("searchUsers",r,!0),Ko=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield oe(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:rt(r)}),tt=r=>I("getUserFacilityPermissions",r),$o=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield $e(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:tt(r)}),Ho=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield He(m(c(c({},r),t),{throwOnError:!0}));return o})}),ot=r=>I("getUserSportProfiles",r),Vo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Ve(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:ot(r)}),Wo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield We(m(c(c({},r),t),{throwOnError:!0}));return o})}),Qo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Qe(m(c(c({},r),t),{throwOnError:!0}));return o})}),it=r=>I("getUserSportProfile",r),Yo=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Ye(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:it(r)}),Jo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Je(m(c(c({},r),t),{throwOnError:!0}));return o})}),Xo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Xe(m(c(c({},r),t),{throwOnError:!0}));return o})}),Zo=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Ze(m(c(c({},r),t),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
5
+ `);W=(E=Cr.pop())!=null?E:"";for(let dt of Cr){let ft=dt.split(`
6
+ `),se=[],xr;for(let T of ft)if(T.startsWith("data:"))se.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))xr=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))g=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let or=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(or)||(k=or)}let F,vr=!1;if(se.length){let T=se.join(`
7
+ `);try{F=JSON.parse(T),vr=!0}catch(or){F=T}}vr&&(i&&(yield new w(i(F))),o&&(F=yield new w(o(F)))),t==null||t({data:F,event:xr,id:g,retry:k}),se.length&&(yield F)}}}finally{q.removeEventListener("abort",Ir),tr.releaseLock()}break}catch(U){if(e==null||e(U),n!==void 0&&v>=n)break;let ie=Math.min(k*2**(v-1),l!=null?l:3e4);yield new w(V(ie))}}})}()}};var _t=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},kt=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Gt=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ge=({allowReserved:r,explode:e,name:t,style:o,value:i})=>{if(!e){let l=(r?i:i.map(d=>encodeURIComponent(d))).join(kt(o));switch(o){case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;case"simple":return l;default:return`${t}=${l}`}}let p=_t(o),n=i.map(l=>o==="label"||o==="simple"?r?l:encodeURIComponent(l):$({allowReserved:r,name:t,value:l})).join(p);return o==="label"||o==="matrix"?p+n:n},$=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},Ne=({allowReserved:r,explode:e,name:t,style:o,value:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${t}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,r?S:encodeURIComponent(S)]});let f=d.join(",");switch(o){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}let n=Gt(o),l=Object.entries(i).map(([d,f])=>$({allowReserved:r,name:o==="deepObject"?`${t}[${d}]`:d,value:f})).join(n);return o==="label"||o==="matrix"?n+l:l};var Nt=/\{[^{}]+\}/g,wt=({path:r,url:e})=>{let t=e,o=e.match(Nt);if(o)for(let i of o){let p=!1,n=i.substring(1,i.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=r[n];if(d==null)continue;if(Array.isArray(d)){t=t.replace(i,Ge({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){t=t.replace(i,Ne({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){t=t.replace(i,`;${$({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);t=t.replace(i,f)}return t},Lr=({baseUrl:r,path:e,query:t,querySerializer:o,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,n=(r!=null?r:"")+p;e&&(n=wt({path:e,url:n}));let l=t?o(t):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Sr(r){let e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}var qr=(r,e)=>y(null,null,function*(){let t=typeof e=="function"?yield e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t});var Fr=(t={})=>{var o=t,{parameters:r={}}=o,e=Q(o,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=r[l]||e;if(Array.isArray(d)){let u=Ge(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=Ne(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=$({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},zr=r=>{var t;if(!r)return"stream";let e=(t=r.split(";")[0])==null?void 0:t.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"}},Lt=(r,e)=>{var t,o;return e?!!(r.headers.has(e)||(t=r.query)!=null&&t[e]||(o=r.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Mr=t=>y(null,null,function*(){var o=t,{security:r}=o,e=Q(o,["security"]);var i;for(let p of r){if(Lt(e,p.name))continue;let n=yield qr(p,e.auth);if(!n)continue;let l=(i=p.name)!=null?i:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),Or=r=>Lr({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:Fr(r.querySerializer),url:r.url}),Er=(r,e)=>{var o;let t=c(c({},r),e);return(o=t.baseUrl)!=null&&o.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=we(r.headers,e.headers),t},qt=r=>{let e=[];return r.forEach((t,o)=>{e.push([o,t])}),e},we=(...r)=>{let e=new Headers;for(let t of r){if(!t)continue;let o=t instanceof Headers?qt(t):Object.entries(t);for(let[i,p]of o)if(p===null)e.delete(i);else if(Array.isArray(p))for(let n of p)e.append(i,n);else p!==void 0&&e.set(i,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Br=()=>({error:new Z,request:new Z,response:new Z}),Ft=Fr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),zt={"Content-Type":"application/json"},ee=(r={})=>c(m(c({},Pr),{headers:zt,parseAs:"auto",querySerializer:Ft}),r);var Ur=(r={})=>{let e=Er(ee(),r),t=()=>c({},e),o=f=>(e=Er(e,f),t()),i=Br(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:we(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Mr(m(c({},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=Or(u);return{opts:u,url:S}}),n=f=>y(null,null,function*(){var K;let{opts:u,url:S}=yield p(f),h=m(c({redirect:"follow"},u),{body:Sr(u)}),g=new Request(S,h);for(let E of i.request.fns)E&&(g=yield E(g,u));let V=u.fetch,O;try{O=yield V(g)}catch(E){let R=E;for(let U of i.error.fns)U&&(R=yield U(E,void 0,g,u));if(R=R||{},u.throwOnError)throw R;return u.responseStyle==="data"?void 0:{error:R,request:g,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,g,u));let _={request:g,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?zr(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:c({data:U},_)}let R;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":R=yield O[E]();break;case"json":{let U=yield O.text();R=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:c({data:O.body},_)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(R)),u.responseTransformer&&(R=yield u.responseTransformer(R))),u.responseStyle==="data"?R:c({data:R},_)}let k=yield O.text(),v;try{v=JSON.parse(k)}catch(E){}let q=v!=null?v:k,G=q;for(let E of i.error.fns)E&&(G=yield E(q,O,g,u));if(G=G||{},u.throwOnError)throw G;return u.responseStyle==="data"?void 0:c({error:G},_)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:S,url:h}=yield p(u);return wr(m(c({},S),{body:S.body,headers:S.headers,method:f,onRequest:(g,V)=>y(null,null,function*(){let O=new Request(g,V);for(let _ of i.request.fns)_&&(O=yield _(O,S));return O}),serializedBody:Sr(S),url:h}))});return{buildUrl:Or,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:t,head:l("HEAD"),interceptors:i,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,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:l("TRACE")}};var P=Ur(ee({baseUrl:"https://api.matchi.com/v1"}));var Le={};pe(Le,{AuthorSchema:()=>Mt,ChannelsSchema:()=>Bt,CommentListResponseSchema:()=>$t,CommentSchema:()=>jt,CommunityItemSchema:()=>Vt,CommunityListResponseSchema:()=>Kt,CreateCommentRequestSchema:()=>Ht,CreatePostRequestSchema:()=>Wt,CreateSportProfileLevelRequestSchema:()=>Qt,CreateSportProfileRequestSchema:()=>Yt,FacilityMessagePayloadSchema:()=>Jt,FacilityOfferConditionActivitiesSchema:()=>eo,FacilityOfferConditionCourtsSchema:()=>ro,FacilityOfferConditionDateSchema:()=>to,FacilityOfferConditionHoursinadvanceSchema:()=>oo,FacilityOfferConditionSchema:()=>Zt,FacilityOfferConditionTimeSchema:()=>io,FacilityOfferConditionWeekdaysSchema:()=>so,FacilityOfferListSchema:()=>ao,FacilityOfferOrderSchema:()=>no,FacilityOfferSchema:()=>Xt,FacilityPermissionSchema:()=>po,FacilityPermissionsResponseSchema:()=>lo,FacilityPunchCardDataSchema:()=>co,FacilityValueCardDataSchema:()=>uo,GenderSchema:()=>fo,LinkTypeSchema:()=>mo,MemberListResponseSchema:()=>ho,MemberRelationSchema:()=>go,MemberSchema:()=>yo,MembershipStatusSchema:()=>bo,MetadataSchema:()=>Po,NotificationPayloadSchema:()=>Oo,NotificationRequestBodySchema:()=>Eo,NotificationSchema:()=>So,NotificationsFilterSchema:()=>Uo,NotificationsPaginatedResponseSchema:()=>Ro,NotificationsSummarySchema:()=>Io,PaginationMetaSchema:()=>To,PatchCommentRequestSchema:()=>Co,PatchPostRequestSchema:()=>xo,PostLinkSchema:()=>Ao,PostListResponseSchema:()=>Do,PostSchema:()=>vo,PostingPermissionSchema:()=>_o,PreferenceSchema:()=>ko,PreferencesResponseSchema:()=>Go,RegisterDeviceRequestSchema:()=>No,SourceSchema:()=>wo,SportAuthoritiesResponseSchema:()=>Lo,SportAuthoritySchema:()=>qo,SportLevelSchema:()=>Fo,SportProfileAttributeSchema:()=>Mo,SportProfileLevelSchema:()=>Bo,SportProfileSchema:()=>zo,SportProfilesResponseSchema:()=>jo,TopicSchema:()=>$o,UpdatePreferencesRequestBodySchema:()=>Vo,UpdateSportProfileLevelRequestSchema:()=>Ko,UpdateUsersProfilesRequestSchema:()=>Ho,UserProfileSchema:()=>Wo,UserRelationSchema:()=>Qo,UsersProfilesPaginatedResponseSchema:()=>Yo,VisibilitySchema:()=>Jo,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Xo,pkgOpenapiSharedErrorSchema:()=>Zo,pkgOpenapiSharedErrorsSchema:()=>ei,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ri,pkgOpenapiSharedProblemDetailsSchema:()=>ti});var Mt={properties:{display_name:{type:"string"},facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["admin","member"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},Bt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},jt={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"},$t={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Vt={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"},Kt={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ht={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Wt={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},Qt={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Yt={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"},Jt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Xt={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"},Zt={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"},eo={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"},ro={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},to={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},oo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},io={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"},ao={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},no={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"},po={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},lo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},co={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"},uo={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"},fo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},mo={enum:["activity","match"],type:"string"},yo={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","relation_status"],type:"object"},ho={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},go={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"},bo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Po={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},So={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"},Oo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Eo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Uo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Ro={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Io={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"},To={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Co={properties:{is_read:{type:"boolean"}},required:["is_read"],type:"object"},xo={properties:{is_read:{type:"boolean"}},required:["is_read"],type:"object"},vo={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"},Ao={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},Do={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},_o={enum:["admins","members"],type:"string"},ko={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"},Go={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},No={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"},wo={enum:["FACILITY"],type:"string"},Lo={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},qo={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"},Fo={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"},zo={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"},Mo={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"},Bo={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},$o={enum:["FACILITY_MESSAGE"],type:"string"},Vo={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Ko={properties:{level:{type:"string"}},required:["level"],type:"object"},Ho={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"},Wo={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"},Qo={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"},Yo={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Jo={enum:["hidden"],type:"string"},Xo={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"},Zo={properties:{message:{description:"The error message",type:"string"}},type:"object"},ei={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ri={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"},ti={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/facilities/{facility_id}/offers"},r))},qe=r=>{var e;return((e=r.client)!=null?e:P).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},r))},te=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/notifications"},r))},Fe=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},ze=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},r))},Me=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications/preferences"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Be=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/notifications/{id}"},r))},je=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/notifications/{id}"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},$e=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/sport-authorities"},r))},oe=r=>{var e;return((e=r==null?void 0:r.client)!=null?e:P).get(c({url:"/users/profiles"},r))},Ve=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/facility-permissions"},r))},Ke=r=>{var e;return((e=r.client)!=null?e:P).patch(m(c({url:"/users/{user_id}/profiles"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},He=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/sport-profiles"},r))},We=r=>{var e;return((e=r.client)!=null?e:P).post(m(c({url:"/users/{user_id}/sport-profiles"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Qe=r=>{var e;return((e=r.client)!=null?e:P).delete(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},r))},Ye=r=>{var e;return((e=r.client)!=null?e:P).get(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},r))},Je=r=>{var e;return((e=r.client)!=null?e:P).post(m(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))},Xe=r=>{var e;return((e=r.client)!=null?e:P).delete(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},r))},Ze=r=>{var e;return((e=r.client)!=null?e:P).put(m(c({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},r),{headers:c({"Content-Type":"application/json"},r.headers)}))};var jr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},$r={ACTIVITY:"activity",MATCH:"match"},Vr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Kr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Hr={ADMINS:"admins",MEMBERS:"members"},Wr={FACILITY:"FACILITY"},Qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Jr={HIDDEN:"hidden"};var er={};pe(er,{addUserSportProfileLevelMutation:()=>Ei,createFacilityOfferOrderMutation:()=>si,createUserSportProfileMutation:()=>Pi,deleteUserSportProfileLevelMutation:()=>Ui,deleteUserSportProfileMutation:()=>Si,getNotificationByIdOptions:()=>ui,getNotificationByIdQueryKey:()=>ot,getNotificationsInfiniteOptions:()=>ni,getNotificationsInfiniteQueryKey:()=>rt,getNotificationsOptions:()=>ai,getNotificationsPreferencesOptions:()=>li,getNotificationsPreferencesQueryKey:()=>tt,getNotificationsQueryKey:()=>et,getSportAuthoritiesOptions:()=>fi,getSportAuthoritiesQueryKey:()=>it,getUserFacilityPermissionsOptions:()=>hi,getUserFacilityPermissionsQueryKey:()=>nt,getUserSportProfileOptions:()=>Oi,getUserSportProfileQueryKey:()=>lt,getUserSportProfilesOptions:()=>bi,getUserSportProfilesQueryKey:()=>pt,listFacilityOffersInfiniteOptions:()=>ii,listFacilityOffersInfiniteQueryKey:()=>Zr,listFacilityOffersOptions:()=>oi,listFacilityOffersQueryKey:()=>Xr,searchUsersInfiniteOptions:()=>yi,searchUsersInfiniteQueryKey:()=>at,searchUsersOptions:()=>mi,searchUsersQueryKey:()=>st,updateAllNotificationsMutation:()=>pi,updateNotificationMutation:()=>di,updateNotificationsPreferencesMutation:()=>ci,updateUserProfileMutation:()=>gi,updateUserSportProfileLevelMutation:()=>Ri});var I=(r,e,t,o)=>{var p;let i={_id:r,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:P).getConfig().baseUrl};return t&&(i._infinite=t),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]},Xr=r=>I("ListFacilityOffers",r),oi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield re(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:Xr(r)}),Rr=(r,e)=>{let t=c({},r[0]);return e.body&&(t.body=c(c({},r[0].body),e.body)),e.headers&&(t.headers=c(c({},r[0].headers),e.headers)),e.path&&(t.path=c(c({},r[0].path),e.path)),e.query&&(t.query=c(c({},r[0].query),e.query)),t},Zr=r=>I("ListFacilityOffers",r,!0),ii=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:Zr(r)}),si=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield qe(m(c(c({},r),t),{throwOnError:!0}));return o})}),et=r=>I("GetNotifications",r),ai=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield te(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:et(r)}),rt=r=>I("GetNotifications",r,!0),ni=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:rt(r)}),pi=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Fe(m(c(c({},r),t),{throwOnError:!0}));return o})}),tt=r=>I("GetNotificationsPreferences",r),li=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield ze(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:tt(r)}),ci=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Me(m(c(c({},r),t),{throwOnError:!0}));return o})}),ot=r=>I("GetNotificationById",r),ui=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Be(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:ot(r)}),di=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield je(m(c(c({},r),t),{throwOnError:!0}));return o})}),it=r=>I("getSportAuthorities",r),fi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield $e(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:it(r)}),st=r=>I("searchUsers",r),mi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield oe(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:st(r)}),at=r=>I("searchUsers",r,!0),yi=r=>({queryFn:i=>y(null,[i],function*({pageParam:e,queryKey:t,signal:o}){let n=Rr(t,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield oe(m(c(c({},r),n),{signal:o,throwOnError:!0}));return l}),queryKey:at(r)}),nt=r=>I("getUserFacilityPermissions",r),hi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Ve(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:nt(r)}),gi=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Ke(m(c(c({},r),t),{throwOnError:!0}));return o})}),pt=r=>I("getUserSportProfiles",r),bi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield He(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:pt(r)}),Pi=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield We(m(c(c({},r),t),{throwOnError:!0}));return o})}),Si=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Qe(m(c(c({},r),t),{throwOnError:!0}));return o})}),lt=r=>I("getUserSportProfile",r),Oi=r=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:t}){let{data:i}=yield Ye(m(c(c({},r),e[0]),{signal:t,throwOnError:!0}));return i}),queryKey:lt(r)}),Ei=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Je(m(c(c({},r),t),{throwOnError:!0}));return o})}),Ui=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Xe(m(c(c({},r),t),{throwOnError:!0}));return o})}),Ri=r=>({mutationFn:t=>y(null,null,function*(){let{data:o}=yield Ze(m(c(c({},r),t),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});