@matchi/api 0.20260210.1 → 0.20260227.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,Xr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var tt=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Tr=t=>{throw TypeError(t)};var Ir=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))Ye.call(e,r)&&Ir(t,r,e[r]);if(ae)for(var r of ae(e))Er.call(e,r)&&Ir(t,r,e[r]);return t},m=(t,e)=>Xr(t,et(e));var Q=(t,e)=>{var r={};for(var i in t)Ye.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&ae)for(var i of ae(t))e.indexOf(i)<0&&Er.call(t,i)&&(r[i]=t[i]);return r};var pe=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})},it=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of rt(e))!Ye.call(t,o)&&o!==r&&ne(t,o,{get:()=>e[o],enumerable:!(i=Zr(e,o))||i.enumerable});return t};var ot=t=>it(ne({},"__esModule",{value:!0}),t);var Cr=(t,e,r)=>e.has(t)||Tr("Cannot "+r);var b=(t,e,r)=>(Cr(t,e,"read from private field"),r?r.call(t):e.get(t)),w=(t,e,r)=>e.has(t)?Tr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),R=(t,e,r,i)=>(Cr(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((i,o)=>{var p=d=>{try{l(r.next(d))}catch(f){o(f)}},n=d=>{try{l(r.throw(d))}catch(f){o(f)}},l=d=>d.done?i(d.value):Promise.resolve(d.value).then(p,n);l((r=r.apply(t,e)).next())}),_=function(t,e){this[0]=t,this[1]=e},Rr=(t,e,r)=>{var i=(n,l,d,f)=>{try{var u=r[n](l),O=(l=u.value)instanceof _,h=u.done;Promise.resolve(O?l[0]:l).then(g=>O?i(n==="return"?n:"next",l[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:h})).catch(g=>i("throw",g,d,f))}catch(g){f(g)}},o=n=>p[n]=l=>new Promise((d,f)=>i(n,l,d,f)),p={};return r=r.apply(t,e),p[tt("asyncIterator")]=()=>p,o("next"),o("throw"),o("return"),p};var Ti={};pe(Ti,{ActivityServiceV1Service:()=>Ie,AnonymousService:()=>Ee,ApiClientServiceV1Service:()=>Te,ApiError:()=>z,AuthorizedService:()=>Ce,BookingServiceV1Service:()=>Re,CancelError:()=>Y,CancelablePromise:()=>M,CheckoutServiceV1Service:()=>Ue,CompetitionServiceV1Service:()=>xe,CorsService:()=>ve,LoyaltyServiceV1Service:()=>Ae,MembershipServiceV1Service:()=>Ne,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>ke,UserServiceV1Service:()=>Ge,bookingRestriction:()=>Je,bookingSubType:()=>Xe,bookingSubscription:()=>le,bookingUserStatus:()=>Ze,cancellationPolicy:()=>ce,chat:()=>ue,chatCreation:()=>de,chatTarget:()=>er,clientType:()=>rr,directionParam:()=>tr,months:()=>ir,notificationChatGroup:()=>fe,notificationEntity:()=>me,pendingPayment:()=>ye,playSessionSettings:()=>ge,playSessionUser:()=>be,playerStatusParam:()=>or,playingUserResponse:()=>he,userChatStatusParam:()=>sr,userChatTargetParam:()=>ar,userPunchCard:()=>Oe,userRelation:()=>Pe,userRelationStatusParam:()=>nr,v1:()=>Ke});module.exports=ot(Ti);var z=class extends Error{constructor(e,r,i){super(i),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Y=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,A,U,q,B,J,j,M=class{constructor(e){w(this,v);w(this,A);w(this,U);w(this,q);w(this,B);w(this,J);w(this,j);R(this,v,!1),R(this,A,!1),R(this,U,!1),R(this,q,[]),R(this,B,new Promise((r,i)=>{R(this,J,r),R(this,j,i);let o=l=>{var d;b(this,v)||b(this,A)||b(this,U)||(R(this,v,!0),(d=b(this,J))==null||d.call(this,l))},p=l=>{var d;b(this,v)||b(this,A)||b(this,U)||(R(this,A,!0),(d=b(this,j))==null||d.call(this,l))},n=l=>{b(this,v)||b(this,A)||b(this,U)||b(this,q).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>b(this,v)}),Object.defineProperty(n,"isRejected",{get:()=>b(this,A)}),Object.defineProperty(n,"isCancelled",{get:()=>b(this,U)}),e(o,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return b(this,B).then(e,r)}catch(e){return b(this,B).catch(e)}finally(e){return b(this,B).finally(e)}cancel(){var e;if(!(b(this,v)||b(this,A)||b(this,U))){if(R(this,U,!0),b(this,q).length)try{for(let r of b(this,q))r()}catch(r){console.warn("Cancellation threw an error",r);return}b(this,q).length=0,(e=b(this,j))==null||e.call(this,new Y("Request aborted"))}}get isCancelled(){return b(this,U)}};v=new WeakMap,A=new WeakMap,U=new WeakMap,q=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 Je=(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))(Je||{});var le;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(le||(le={}));var Xe=(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))(Xe||{});var Ze=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Ze||{});var ce;(e=>{let t;(o=>(o.AVAILABILITY="AVAILABILITY",o.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ce||(ce={}));var ue;(e=>{let t;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(ue||(ue={}));var de;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(de||(de={}));var er=(i=>(i.PLAYSESSION="playsession",i.USERGROUP="usergroup",i.AICOACH="aicoach",i))(er||{});var rr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(rr||{});var tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(tr||{});var ir=(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))(ir||{});var fe;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(fe||(fe={}));var me;(e=>{let t;(o=>(o.GROUP="group",o.USER="user"))(t=e.entityType||(e.entityType={}))})(me||(me={}));var ye;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(ye||(ye={}));var or=(i=>(i.ALL="ALL",i.PENDING_APPROVAL="PENDING_APPROVAL",i.PENDING_ACTION="PENDING_ACTION",i))(or||{});var he;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(he||(he={}));var ge;(e=>{let t;(o=>(o.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",o.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(ge||(ge={}));var be;(e=>{let t;(o=>(o.APPLIED="APPLIED",o.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(be||(be={}));var sr=(o=>(o.ALL="ALL",o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o.NOT_CONNECTED="NOT_CONNECTED",o))(sr||{});var ar=(i=>(i.ALL="ALL",i.PLAYSESSION="PLAYSESSION",i.USERGROUP="USERGROUP",i))(ar||{});var Oe;(e=>{let t;(o=>(o.UNLIMITED="UNLIMITED",o.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(Oe||(Oe={}));var Pe;(e=>{let t;(l=>(l.FRIENDS="FRIENDS",l.OUTGOING="OUTGOING",l.INCOMING="INCOMING",l.BLOCKED="BLOCKED",l.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Pe||(Pe={}));var nr=(o=>(o.FRIENDS="FRIENDS",o.OUTGOING="OUTGOING",o.INCOMING="INCOMING",o.BLOCKED="BLOCKED",o))(nr||{});var lr=t=>t!=null,X=t=>typeof t=="string",pr=t=>X(t)&&t!=="",cr=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ur=t=>t instanceof FormData,st=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},at=t=>{let e=[],r=(o,p)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(p))}`)},i=(o,p)=>{lr(p)&&(Array.isArray(p)?p.forEach(n=>{i(o,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{i(`${o}[${n}]`,l)}):r(o,p))};return Object.entries(t).forEach(([o,p])=>{i(o,p)}),e.length>0?`?${e.join("&")}`:""},nt=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(p,n)=>{var l;return(l=e.path)!=null&&l.hasOwnProperty(n)?r(String(e.path[n])):p}),o=`${t.BASE}${i}`;return e.query?`${o}${at(e.query)}`:o},pt=t=>{if(t.formData){let e=new FormData,r=(i,o)=>{X(o)||cr(o)?e.append(i,o):e.append(i,JSON.stringify(o))};return Object.entries(t.formData).filter(([i,o])=>lr(o)).forEach(([i,o])=>{Array.isArray(o)?o.forEach(p=>r(i,p)):r(i,o)}),e}},Se=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),lt=(t,e)=>y(null,null,function*(){let r=yield Se(e,t.TOKEN),i=yield Se(e,t.USERNAME),o=yield Se(e,t.PASSWORD),p=yield Se(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,d])=>lr(d)).reduce((l,[d,f])=>m(c({},l),{[d]:String(f)}),{});if(pr(r)&&(n.Authorization=`Bearer ${r}`),pr(i)&&pr(o)){let l=st(`${i}:${o}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:cr(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":X(e.body)?n["Content-Type"]="text/plain":Ur(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ct=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):X(t.body)||cr(t.body)||Ur(t.body)?t.body:JSON.stringify(t.body)},ut=(t,e,r,i,o,p,n)=>y(null,null,function*(){let l=new AbortController,d={headers:p,body:i!=null?i:o,method:e.method,signal:l.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),n(()=>l.abort()),yield fetch(r,d)}),dt=(t,e)=>{if(e){let r=t.headers.get(e);if(X(r))return r}},ft=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(o=>e.toLowerCase().startsWith(o))?yield t.json():yield t.text()}catch(e){console.error(e)}}),mt=(t,e)=>{var o,p;let i=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(i)throw new z(t,e,i);if(!e.ok){let n=(o=e.status)!=null?o:"unknown",l=(p=e.statusText)!=null?p:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(t,e,`Generic Error: status: ${n}; status text: ${l}; body: ${d}`)}},a=(t,e)=>new M((r,i,o)=>y(null,null,function*(){try{let p=nt(t,e),n=pt(e),l=ct(e),d=yield lt(t,e);if(!o.isCancelled){let f=yield ut(t,e,p,l,n,d,o),u=yield ft(f),O=dt(f,e.responseHeader),h={url:p,ok:f.ok,status:f.status,statusText:f.statusText,body:O!=null?O:u};mt(e,h),r(h.body)}}catch(p){i(p)}}));var Ie=class{static getAdminActivityOccasions(e,r,i,o,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:o,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,r=!1,i,o,p,n,l,d,f,u,O,h=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:i,level:o,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:d,startDate:f,endDate:u,offset:O,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,r=!1,i,o,p){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:i,startDate:o,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,r,i,o,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:o,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,r,i,o,p,n,l,d,f=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:i,latitude:o,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,r,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime: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 listAvailabilityEndTimes(e,r){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return a(s,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Te=class{static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ce=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,i,o,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:i,locale: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 createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(s,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return a(s,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return a(s,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return a(s,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return a(s,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,i){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return a(s,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return a(s,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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 getUserPlaySessions(e,r=10,i="UPCOMING",o="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,o,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:o,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,r=10,i="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return a(s,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Re=class{static getAvailabilityWithPrice(e,r,i,o,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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."}})}};var Ue=class{static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},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 Ne=class{static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ke=class{static getPlaySessionById(e){return a(s,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return a(s,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,i){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,i){return a(s,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",o="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,o,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:o,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 Ge=class{static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(s,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return a(s,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return a(s,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return a(s,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return a(s,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ke={};pe(Ke,{Gender:()=>wr,Source:()=>_r,Topic:()=>qr,UserRelation:()=>Fr,client:()=>T,createFacilityOfferOrder:()=>Fe,getNotificationById:()=>je,getNotifications:()=>te,getNotificationsPreferences:()=>ze,getUserFacilityPermissions:()=>He,listFacilityOffers:()=>re,queries:()=>Ve,schemas:()=>qe,searchUsers:()=>ie,updateAllNotifications:()=>Le,updateNotification:()=>Me,updateNotificationsPreferences:()=>Be,updateUserProfile:()=>$e});var ur={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var yt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Rs=Object.entries(yt);var xr=O=>{var h=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:i,responseValidator:o,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,H=d!=null?d:(G=>new Promise(x=>setTimeout(x,G)));return{stream:function(){return Rr(this,null,function*(){var D,V,S;let G=p!=null?p:3e3,x=0,F=(D=u.signal)!=null?D:new AbortController().signal;for(;!F.aborted;){x++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let I=m(c({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:F}),oe=new Request(f,I);t&&(oe=yield new _(t(f,I)));let Wr=(V=u.fetch)!=null?V:globalThis.fetch,K=yield new _(Wr(oe));if(!K.ok)throw new Error(`SSE failed: ${K.status} ${K.statusText}`);if(!K.body)throw new Error("No body in SSE response");let We=K.body.pipeThrough(new TextDecoderStream).getReader(),W="",gr=()=>{try{We.cancel()}catch(br){}};F.addEventListener("abort",gr);try{for(;;){let{done:br,value:Qr}=yield new _(We.read());if(br)break;W+=Qr,W=W.replace(/\r\n/g,`
1
+ "use strict";var ne=Object.defineProperty,Xr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var tt=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Tr=t=>{throw TypeError(t)};var Ir=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))Ye.call(e,r)&&Ir(t,r,e[r]);if(ae)for(var r of ae(e))Er.call(e,r)&&Ir(t,r,e[r]);return t},m=(t,e)=>Xr(t,et(e));var Q=(t,e)=>{var r={};for(var i in t)Ye.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&ae)for(var i of ae(t))e.indexOf(i)<0&&Er.call(t,i)&&(r[i]=t[i]);return r};var pe=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})},it=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of rt(e))!Ye.call(t,o)&&o!==r&&ne(t,o,{get:()=>e[o],enumerable:!(i=Zr(e,o))||i.enumerable});return t};var ot=t=>it(ne({},"__esModule",{value:!0}),t);var Cr=(t,e,r)=>e.has(t)||Tr("Cannot "+r);var b=(t,e,r)=>(Cr(t,e,"read from private field"),r?r.call(t):e.get(t)),w=(t,e,r)=>e.has(t)?Tr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),R=(t,e,r,i)=>(Cr(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((i,o)=>{var p=d=>{try{l(r.next(d))}catch(f){o(f)}},n=d=>{try{l(r.throw(d))}catch(f){o(f)}},l=d=>d.done?i(d.value):Promise.resolve(d.value).then(p,n);l((r=r.apply(t,e)).next())}),_=function(t,e){this[0]=t,this[1]=e},Rr=(t,e,r)=>{var i=(n,l,d,f)=>{try{var u=r[n](l),O=(l=u.value)instanceof _,h=u.done;Promise.resolve(O?l[0]:l).then(g=>O?i(n==="return"?n:"next",l[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:h})).catch(g=>i("throw",g,d,f))}catch(g){f(g)}},o=n=>p[n]=l=>new Promise((d,f)=>i(n,l,d,f)),p={};return r=r.apply(t,e),p[tt("asyncIterator")]=()=>p,o("next"),o("throw"),o("return"),p};var Ei={};pe(Ei,{ActivityServiceV1Service:()=>Ie,AnonymousService:()=>Ee,ApiClientServiceV1Service:()=>Te,ApiError:()=>z,AuthorizedService:()=>Ce,BookingServiceV1Service:()=>Re,CancelError:()=>Y,CancelablePromise:()=>M,CheckoutServiceV1Service:()=>Ue,CompetitionServiceV1Service:()=>xe,CorsService:()=>ve,LoyaltyServiceV1Service:()=>Ae,MembershipServiceV1Service:()=>Ne,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>ke,UserServiceV1Service:()=>Ge,bookingRestriction:()=>Je,bookingSubType:()=>Xe,bookingSubscription:()=>le,bookingUserStatus:()=>Ze,cancellationPolicy:()=>ce,chat:()=>ue,chatCreation:()=>de,chatTarget:()=>er,clientType:()=>rr,directionParam:()=>tr,months:()=>ir,notificationChatGroup:()=>fe,notificationEntity:()=>me,pendingPayment:()=>ye,playSessionSettings:()=>ge,playSessionUser:()=>be,playerStatusParam:()=>or,playingUserResponse:()=>he,userChatStatusParam:()=>sr,userChatTargetParam:()=>ar,userPunchCard:()=>Oe,userRelation:()=>Pe,userRelationStatusParam:()=>nr,v1:()=>Ke});module.exports=ot(Ei);var z=class extends Error{constructor(e,r,i){super(i),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Y=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,A,U,q,B,J,j,M=class{constructor(e){w(this,v);w(this,A);w(this,U);w(this,q);w(this,B);w(this,J);w(this,j);R(this,v,!1),R(this,A,!1),R(this,U,!1),R(this,q,[]),R(this,B,new Promise((r,i)=>{R(this,J,r),R(this,j,i);let o=l=>{var d;b(this,v)||b(this,A)||b(this,U)||(R(this,v,!0),(d=b(this,J))==null||d.call(this,l))},p=l=>{var d;b(this,v)||b(this,A)||b(this,U)||(R(this,A,!0),(d=b(this,j))==null||d.call(this,l))},n=l=>{b(this,v)||b(this,A)||b(this,U)||b(this,q).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>b(this,v)}),Object.defineProperty(n,"isRejected",{get:()=>b(this,A)}),Object.defineProperty(n,"isCancelled",{get:()=>b(this,U)}),e(o,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return b(this,B).then(e,r)}catch(e){return b(this,B).catch(e)}finally(e){return b(this,B).finally(e)}cancel(){var e;if(!(b(this,v)||b(this,A)||b(this,U))){if(R(this,U,!0),b(this,q).length)try{for(let r of b(this,q))r()}catch(r){console.warn("Cancellation threw an error",r);return}b(this,q).length=0,(e=b(this,j))==null||e.call(this,new Y("Request aborted"))}}get isCancelled(){return b(this,U)}};v=new WeakMap,A=new WeakMap,U=new WeakMap,q=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 Je=(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))(Je||{});var le;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(le||(le={}));var Xe=(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))(Xe||{});var Ze=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Ze||{});var ce;(e=>{let t;(o=>(o.AVAILABILITY="AVAILABILITY",o.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ce||(ce={}));var ue;(e=>{let t;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(ue||(ue={}));var de;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(de||(de={}));var er=(i=>(i.PLAYSESSION="playsession",i.USERGROUP="usergroup",i.AICOACH="aicoach",i))(er||{});var rr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(rr||{});var tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(tr||{});var ir=(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))(ir||{});var fe;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(fe||(fe={}));var me;(e=>{let t;(o=>(o.GROUP="group",o.USER="user"))(t=e.entityType||(e.entityType={}))})(me||(me={}));var ye;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(ye||(ye={}));var or=(i=>(i.ALL="ALL",i.PENDING_APPROVAL="PENDING_APPROVAL",i.PENDING_ACTION="PENDING_ACTION",i))(or||{});var he;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(he||(he={}));var ge;(e=>{let t;(o=>(o.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",o.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(ge||(ge={}));var be;(e=>{let t;(o=>(o.APPLIED="APPLIED",o.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(be||(be={}));var sr=(o=>(o.ALL="ALL",o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o.NOT_CONNECTED="NOT_CONNECTED",o))(sr||{});var ar=(i=>(i.ALL="ALL",i.PLAYSESSION="PLAYSESSION",i.USERGROUP="USERGROUP",i))(ar||{});var Oe;(e=>{let t;(o=>(o.UNLIMITED="UNLIMITED",o.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(Oe||(Oe={}));var Pe;(e=>{let t;(l=>(l.FRIENDS="FRIENDS",l.OUTGOING="OUTGOING",l.INCOMING="INCOMING",l.BLOCKED="BLOCKED",l.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Pe||(Pe={}));var nr=(o=>(o.FRIENDS="FRIENDS",o.OUTGOING="OUTGOING",o.INCOMING="INCOMING",o.BLOCKED="BLOCKED",o))(nr||{});var lr=t=>t!=null,X=t=>typeof t=="string",pr=t=>X(t)&&t!=="",cr=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ur=t=>t instanceof FormData,st=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},at=t=>{let e=[],r=(o,p)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(p))}`)},i=(o,p)=>{lr(p)&&(Array.isArray(p)?p.forEach(n=>{i(o,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{i(`${o}[${n}]`,l)}):r(o,p))};return Object.entries(t).forEach(([o,p])=>{i(o,p)}),e.length>0?`?${e.join("&")}`:""},nt=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(p,n)=>{var l;return(l=e.path)!=null&&l.hasOwnProperty(n)?r(String(e.path[n])):p}),o=`${t.BASE}${i}`;return e.query?`${o}${at(e.query)}`:o},pt=t=>{if(t.formData){let e=new FormData,r=(i,o)=>{X(o)||cr(o)?e.append(i,o):e.append(i,JSON.stringify(o))};return Object.entries(t.formData).filter(([i,o])=>lr(o)).forEach(([i,o])=>{Array.isArray(o)?o.forEach(p=>r(i,p)):r(i,o)}),e}},Se=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),lt=(t,e)=>y(null,null,function*(){let r=yield Se(e,t.TOKEN),i=yield Se(e,t.USERNAME),o=yield Se(e,t.PASSWORD),p=yield Se(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,d])=>lr(d)).reduce((l,[d,f])=>m(c({},l),{[d]:String(f)}),{});if(pr(r)&&(n.Authorization=`Bearer ${r}`),pr(i)&&pr(o)){let l=st(`${i}:${o}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:cr(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":X(e.body)?n["Content-Type"]="text/plain":Ur(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ct=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):X(t.body)||cr(t.body)||Ur(t.body)?t.body:JSON.stringify(t.body)},ut=(t,e,r,i,o,p,n)=>y(null,null,function*(){let l=new AbortController,d={headers:p,body:i!=null?i:o,method:e.method,signal:l.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),n(()=>l.abort()),yield fetch(r,d)}),dt=(t,e)=>{if(e){let r=t.headers.get(e);if(X(r))return r}},ft=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(o=>e.toLowerCase().startsWith(o))?yield t.json():yield t.text()}catch(e){console.error(e)}}),mt=(t,e)=>{var o,p;let i=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(i)throw new z(t,e,i);if(!e.ok){let n=(o=e.status)!=null?o:"unknown",l=(p=e.statusText)!=null?p:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new z(t,e,`Generic Error: status: ${n}; status text: ${l}; body: ${d}`)}},a=(t,e)=>new M((r,i,o)=>y(null,null,function*(){try{let p=nt(t,e),n=pt(e),l=ct(e),d=yield lt(t,e);if(!o.isCancelled){let f=yield ut(t,e,p,l,n,d,o),u=yield ft(f),O=dt(f,e.responseHeader),h={url:p,ok:f.ok,status:f.status,statusText:f.statusText,body:O!=null?O:u};mt(e,h),r(h.body)}}catch(p){i(p)}}));var Ie=class{static getAdminActivityOccasions(e,r,i,o,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:o,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,r=!1,i,o,p,n,l,d,f,u,O,h=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:i,level:o,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:d,startDate:f,endDate:u,offset:O,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,r=!1,i,o,p){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:i,startDate:o,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,r,i,o,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:o,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,r,i,o,p,n,l,d,f=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:i,latitude:o,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,r,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime: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 listAvailabilityEndTimes(e,r){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return a(s,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Te=class{static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ce=class{static getActivityOccasionForUser(e){return a(s,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return a(s,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,i,o,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:i,locale: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 createPromoCode(e){return a(s,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(s,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(s,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(s,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return a(s,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return a(s,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return a(s,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return a(s,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return a(s,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,i){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(s,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(s,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return a(s,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return a(s,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return a(s,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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 getUserPlaySessions(e,r=10,i="UPCOMING",o="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,o,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:o,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,r=10,i="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return a(s,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return a(s,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return a(s,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return a(s,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return a(s,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return a(s,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(s,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(s,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(s,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Re=class{static getAvailabilityWithPrice(e,r,i,o,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r,i,o,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:o,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,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(s,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(s,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(s,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(s,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(s,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(s,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(s,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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."}})}};var Ue=class{static getCheckout(e){return a(s,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},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 Ne=class{static createMembership(e){return a(s,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return a(s,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ke=class{static getPlaySessionById(e){return a(s,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return a(s,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return a(s,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,i){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,i){return a(s,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return a(s,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return a(s,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(s,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",o="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return a(s,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(s,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,o,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:o,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 Ge=class{static getUserProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return a(s,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,o=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:o},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(s,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(s,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(s,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(s,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(s,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(s,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(s,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(s,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(s,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(s,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(s,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(s,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return a(s,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return a(s,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(s,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return a(s,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return a(s,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return a(s,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(s,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ke={};pe(Ke,{Gender:()=>wr,Source:()=>_r,Topic:()=>qr,UserRelation:()=>Fr,client:()=>T,createFacilityOfferOrder:()=>Fe,getNotificationById:()=>je,getNotifications:()=>te,getNotificationsPreferences:()=>ze,getUserFacilityPermissions:()=>$e,listFacilityOffers:()=>re,queries:()=>Ve,schemas:()=>qe,searchUsers:()=>ie,updateAllNotifications:()=>Le,updateNotification:()=>Me,updateNotificationsPreferences:()=>Be,updateUserProfile:()=>He});var ur={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var yt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Cs=Object.entries(yt);var xr=O=>{var h=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:i,responseValidator:o,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,H=d!=null?d:(G=>new Promise(x=>setTimeout(x,G)));return{stream:function(){return Rr(this,null,function*(){var D,V,S;let G=p!=null?p:3e3,x=0,F=(D=u.signal)!=null?D:new AbortController().signal;for(;!F.aborted;){x++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let I=m(c({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:F}),oe=new Request(f,I);t&&(oe=yield new _(t(f,I)));let Wr=(V=u.fetch)!=null?V:globalThis.fetch,K=yield new _(Wr(oe));if(!K.ok)throw new Error(`SSE failed: ${K.status} ${K.statusText}`);if(!K.body)throw new Error("No body in SSE response");let We=K.body.pipeThrough(new TextDecoderStream).getReader(),W="",gr=()=>{try{We.cancel()}catch(br){}};F.addEventListener("abort",gr);try{for(;;){let{done:br,value:Qr}=yield new _(We.read());if(br)break;W+=Qr,W=W.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let Or=W.split(`
4
4
 
5
5
  `);W=(S=Or.pop())!=null?S:"";for(let Yr of Or){let Jr=Yr.split(`
6
6
  `),se=[],Pr;for(let C of Jr)if(C.startsWith("data:"))se.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))Pr=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let Qe=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(Qe)||(G=Qe)}let L,Sr=!1;if(se.length){let C=se.join(`
7
- `);try{L=JSON.parse(C),Sr=!0}catch(Qe){L=C}}Sr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:Pr,id:g,retry:G}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",gr),We.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let oe=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _(H(oe))}}})}()}};var ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},bt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},De=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(gt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ht(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):$({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},$=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},we=({allowReserved:t,explode:e,name:r,style:i,value:o,valueOnly:p})=>{if(o instanceof Date)return p?o.toISOString():`${r}=${o.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(o).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=bt(i),l=Object.entries(o).map(([d,f])=>$({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var Ot=/\{[^{}]+\}/g,Pt=({path:t,url:e})=>{let r=e,i=e.match(Ot);if(i)for(let o of i){let p=!1,n=o.substring(1,o.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=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(o,De({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,we({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${$({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=Pt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function dr(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var Ar=(t,e)=>y(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Nr=(r={})=>{var i=r,{parameters:t={}}=i,e=Q(i,["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=t[l]||e;if(Array.isArray(d)){let u=De(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=we(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("&")}},kr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},St=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(St(e,p.name))continue;let n=yield Ar(p,e.auth);if(!n)continue;let l=(o=p.name)!=null?o:"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}}}),fr=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),mr=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},It=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},_e=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?It(r):Object.entries(r);for(let[o,p]of i)if(p===null)e.delete(o);else if(Array.isArray(p))for(let n of p)e.append(o,n);else p!==void 0&&e.set(o,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new Z,request:new Z,response:new Z}),Et=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Tt={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},ur),{headers:Tt,parseAs:"auto",querySerializer:Et}),t);var yr=(t={})=>{let e=mr(ee(),t),r=()=>c({},e),i=f=>(e=mr(e,f),r()),o=Dr(),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:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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 O=fr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:dr(u)}),g=new Request(O,h);for(let S of o.request.fns)S&&(g=yield S(g,u));let H=u.fetch,P;try{P=yield H(g)}catch(S){let E=S;for(let I of o.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of o.response.fns)S&&(P=yield S(P,g,u));let k={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?kr(P.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},k)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,D=F;for(let S of o.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>y(null,null,function*(){let P=new Request(g,H);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:dr(O),url:h}))});return{buildUrl:fr,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:o,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,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 T=yr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Ct,FacilityMessagePayloadSchema:()=>Rt,FacilityOfferConditionActivitiesSchema:()=>vt,FacilityOfferConditionCourtsSchema:()=>At,FacilityOfferConditionDateSchema:()=>Nt,FacilityOfferConditionHoursinadvanceSchema:()=>kt,FacilityOfferConditionSchema:()=>xt,FacilityOfferConditionTimeSchema:()=>Gt,FacilityOfferConditionWeekdaysSchema:()=>Dt,FacilityOfferListSchema:()=>wt,FacilityOfferOrderSchema:()=>_t,FacilityOfferSchema:()=>Ut,FacilityPermissionSchema:()=>qt,FacilityPermissionsResponseSchema:()=>Ft,FacilityPunchCardDataSchema:()=>Lt,FacilityValueCardDataSchema:()=>zt,GenderSchema:()=>Bt,MetadataSchema:()=>jt,NotificationPayloadSchema:()=>$t,NotificationRequestBodySchema:()=>Ht,NotificationSchema:()=>Mt,NotificationsFilterSchema:()=>Vt,NotificationsPaginatedResponseSchema:()=>Kt,NotificationsSummarySchema:()=>Wt,PreferenceSchema:()=>Qt,PreferencesResponseSchema:()=>Yt,SourceSchema:()=>Jt,TopicSchema:()=>Xt,UpdatePreferencesRequestBodySchema:()=>Zt,UpdateUserProfileRequestSchema:()=>ei,UserProfileSchema:()=>ti,UserRelationSchema:()=>ii,UserSchema:()=>ri,UsersPaginatedResponseSchema:()=>oi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>si,pkgOpenapiSharedErrorSchema:()=>ai,pkgOpenapiSharedErrorsSchema:()=>ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>pi,pkgOpenapiSharedProblemDetailsSchema:()=>li});var Ct={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Rt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ut={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"},xt={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"},vt={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"},At={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Nt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},kt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Gt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Dt={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"},_t={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"},qt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Ft={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Lt={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"},Bt={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},jt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Mt={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"},$t={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Ht={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Vt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Kt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Wt={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"},Qt={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"},Yt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Jt={enum:["FACILITY"],type:"string"},Xt={enum:["FACILITY_MESSAGE"],type:"string"},Zt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ei={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ri={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ti={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},ii={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"},oi={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},si={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ai={properties:{message:{description:"The error message",type:"string"}},type:"object"},ni={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},pi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},li={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/facilities/{facility_id}/offers"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},Le=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},je=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},Me=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},$e=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},He=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/users/{user_id}/facility-permissions"},t))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Ve={};pe(Ve,{createFacilityOfferOrderMutation:()=>di,getNotificationByIdOptions:()=>bi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>mi,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>fi,getNotificationsPreferencesOptions:()=>hi,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>Ei,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ui,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>ci,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>Si,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>Pi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>yi,updateNotificationMutation:()=>Oi,updateNotificationsPreferencesMutation:()=>gi,updateUserProfileMutation:()=>Ii});var N=(t,e,r,i)=>{var p;let o={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(o._infinite=r),i&&(o.tags=i),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},Lr=t=>N("ListFacilityOffers",t),ci=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Lr(t)}),hr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},zr=t=>N("ListFacilityOffers",t,!0),ui=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),di=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),fi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Br(t)}),jr=t=>N("GetNotifications",t,!0),mi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),yi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),hi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ze(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),bi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield je(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:$r(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),Pi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ie(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Hr(t)}),Vr=t=>N("searchUsers",t,!0),Si=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield $e(m(c(c({},t),r),{throwOnError:!0}));return i})}),Kr=t=>N("getUserFacilityPermissions",t),Ei=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield He(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)});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});
7
+ `);try{L=JSON.parse(C),Sr=!0}catch(Qe){L=C}}Sr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:Pr,id:g,retry:G}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",gr),We.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let oe=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _(H(oe))}}})}()}};var ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},bt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},De=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(gt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ht(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):$({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},$=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},we=({allowReserved:t,explode:e,name:r,style:i,value:o,valueOnly:p})=>{if(o instanceof Date)return p?o.toISOString():`${r}=${o.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(o).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=bt(i),l=Object.entries(o).map(([d,f])=>$({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var Ot=/\{[^{}]+\}/g,Pt=({path:t,url:e})=>{let r=e,i=e.match(Ot);if(i)for(let o of i){let p=!1,n=o.substring(1,o.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=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(o,De({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,we({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${$({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=Pt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function dr(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var Ar=(t,e)=>y(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Nr=(r={})=>{var i=r,{parameters:t={}}=i,e=Q(i,["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=t[l]||e;if(Array.isArray(d)){let u=De(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=we(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("&")}},kr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},St=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(St(e,p.name))continue;let n=yield Ar(p,e.auth);if(!n)continue;let l=(o=p.name)!=null?o:"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}}}),fr=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),mr=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},It=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},_e=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?It(r):Object.entries(r);for(let[o,p]of i)if(p===null)e.delete(o);else if(Array.isArray(p))for(let n of p)e.append(o,n);else p!==void 0&&e.set(o,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new Z,request:new Z,response:new Z}),Et=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Tt={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},ur),{headers:Tt,parseAs:"auto",querySerializer:Et}),t);var yr=(t={})=>{let e=mr(ee(),t),r=()=>c({},e),i=f=>(e=mr(e,f),r()),o=Dr(),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:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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 O=fr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:dr(u)}),g=new Request(O,h);for(let S of o.request.fns)S&&(g=yield S(g,u));let H=u.fetch,P;try{P=yield H(g)}catch(S){let E=S;for(let I of o.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of o.response.fns)S&&(P=yield S(P,g,u));let k={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?kr(P.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},k)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,D=F;for(let S of o.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>y(null,null,function*(){let P=new Request(g,H);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:dr(O),url:h}))});return{buildUrl:fr,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:o,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,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 T=yr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Ct,FacilityMessagePayloadSchema:()=>Rt,FacilityOfferConditionActivitiesSchema:()=>vt,FacilityOfferConditionCourtsSchema:()=>At,FacilityOfferConditionDateSchema:()=>Nt,FacilityOfferConditionHoursinadvanceSchema:()=>kt,FacilityOfferConditionSchema:()=>xt,FacilityOfferConditionTimeSchema:()=>Gt,FacilityOfferConditionWeekdaysSchema:()=>Dt,FacilityOfferListSchema:()=>wt,FacilityOfferOrderSchema:()=>_t,FacilityOfferSchema:()=>Ut,FacilityPermissionSchema:()=>qt,FacilityPermissionsResponseSchema:()=>Ft,FacilityPunchCardDataSchema:()=>Lt,FacilityValueCardDataSchema:()=>zt,GenderSchema:()=>Bt,MetadataSchema:()=>jt,NotificationPayloadSchema:()=>$t,NotificationRequestBodySchema:()=>Ht,NotificationSchema:()=>Mt,NotificationsFilterSchema:()=>Vt,NotificationsPaginatedResponseSchema:()=>Kt,NotificationsSummarySchema:()=>Wt,PreferenceSchema:()=>Qt,PreferencesResponseSchema:()=>Yt,SourceSchema:()=>Jt,TopicSchema:()=>Xt,UpdatePreferencesRequestBodySchema:()=>Zt,UpdateUsersProfilesRequestSchema:()=>ei,UserProfileSchema:()=>ri,UserRelationSchema:()=>ti,UsersProfilesPaginatedResponseSchema:()=>ii,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>oi,pkgOpenapiSharedErrorSchema:()=>si,pkgOpenapiSharedErrorsSchema:()=>ai,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ni,pkgOpenapiSharedProblemDetailsSchema:()=>pi});var Ct={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Rt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ut={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"},xt={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"},vt={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"},At={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Nt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},kt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Gt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Dt={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"},_t={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"},qt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Ft={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Lt={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"},Bt={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},jt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Mt={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"},$t={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Ht={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Vt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Kt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Wt={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"},Qt={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"},Yt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Jt={enum:["FACILITY"],type:"string"},Xt={enum:["FACILITY_MESSAGE"],type:"string"},Zt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ei={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},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"},ri={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ti={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"},ii={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},oi={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"},si={properties:{message:{description:"The error message",type:"string"}},type:"object"},ai={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ni={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"},pi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/facilities/{facility_id}/offers"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},Le=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},je=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},Me=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},$e=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/users/{user_id}/facility-permissions"},t))},He=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/{user_id}/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Ve={};pe(Ve,{createFacilityOfferOrderMutation:()=>ui,getNotificationByIdOptions:()=>gi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>fi,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>di,getNotificationsPreferencesOptions:()=>yi,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>Si,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ci,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>li,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>Pi,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>Oi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>mi,updateNotificationMutation:()=>bi,updateNotificationsPreferencesMutation:()=>hi,updateUserProfileMutation:()=>Ii});var N=(t,e,r,i)=>{var p;let o={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(o._infinite=r),i&&(o.tags=i),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},Lr=t=>N("ListFacilityOffers",t),li=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Lr(t)}),hr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},zr=t=>N("ListFacilityOffers",t,!0),ci=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),di=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Br(t)}),jr=t=>N("GetNotifications",t,!0),fi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),yi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ze(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),gi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield je(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:$r(t)}),bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),Oi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ie(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Hr(t)}),Vr=t=>N("searchUsers",t,!0),Pi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Kr=t=>N("getUserFacilityPermissions",t),Si=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield $e(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield He(m(c(c({},t),r),{throwOnError:!0}));return i})});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});