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