@matchi/api 0.20260828.1 → 0.20260902.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.d.mts +152 -6
- package/dist/main/index.d.ts +152 -6
- package/dist/main/index.js +29 -26
- package/dist/main/index.mjs +29 -26
- package/package.json +1 -1
package/dist/main/index.mjs
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
var Dr=Object.defineProperty,pi=Object.defineProperties;var ci=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable;var li=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Ir=t=>{throw TypeError(t)};var Cr=(t,e,r)=>e in t?Dr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))xr.call(e,r)&&Cr(t,r,e[r]);if(xe)for(var r of xe(e))Tr.call(e,r)&&Cr(t,r,e[r]);return t},d=(t,e)=>pi(t,ci(e));var j=(t,e)=>{var r={};for(var o in t)xr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xe)for(var o of xe(t))e.indexOf(o)<0&&Tr.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)Dr(t,r,{get:e[r],enumerable:!0})};var Ur=(t,e,r)=>e.has(t)||Ir("Cannot "+r);var D=(t,e,r)=>(Ur(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(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),q=(t,e,r,o)=>(Ur(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=m=>{try{a(r.next(m))}catch(f){s(f)}},n=m=>{try{a(r.throw(m))}catch(f){s(f)}},a=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,n);a((r=r.apply(t,e)).next())}),A=function(t,e){this[0]=t,this[1]=e},Te=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),O=(a=u.value)instanceof A,R=u.done;Promise.resolve(O?a[0]:a).then(g=>O?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:R})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((m,f)=>o(n,a,m,f)),l={};return r=r.apply(t,e),l[li("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var Z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Ie=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},z,B,F,Q,J,ce,ee,pe=class{constructor(e){V(this,z);V(this,B);V(this,F);V(this,Q);V(this,J);V(this,ce);V(this,ee);q(this,z,!1),q(this,B,!1),q(this,F,!1),q(this,Q,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var m;D(this,z)||D(this,B)||D(this,F)||(q(this,z,!0),(m=D(this,ce))==null||m.call(this,a))},l=a=>{var m;D(this,z)||D(this,B)||D(this,F)||(q(this,B,!0),(m=D(this,ee))==null||m.call(this,a))},n=a=>{D(this,z)||D(this,B)||D(this,F)||D(this,Q).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>D(this,z)}),Object.defineProperty(n,"isRejected",{get:()=>D(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>D(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return D(this,J).then(e,r)}catch(e){return D(this,J).catch(e)}finally(e){return D(this,J).finally(e)}cancel(){var e;if(!(D(this,z)||D(this,B)||D(this,F))){if(q(this,F,!0),D(this,Q).length)try{for(let r of D(this,Q))r()}catch(r){console.warn("Cancellation threw an error",r);return}D(this,Q).length=0,(e=D(this,ee))==null||e.call(this,new Ie("Request aborted"))}}get isCancelled(){return D(this,F)}};z=new WeakMap,B=new WeakMap,F=new WeakMap,Q=new WeakMap,J=new WeakMap,ce=new WeakMap,ee=new WeakMap;var p={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 vr=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(vr||{});var Lt;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(Lt||(Lt={}));var kr=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(kr||{});var _r=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(_r||{});var qt;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(qt||(qt={}));var Ft;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Ft||(Ft={}));var jt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(jt||(jt={}));var Ar=(s=>(s.PLAYSESSION="playsession",s.USERGROUP="usergroup",s.AICOACH="aicoach",s.ADMINMATCH="adminmatch",s))(Ar||{});var Nr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Nr||{});var Gr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Gr||{});var Mr=(R=>(R.JANUARY="January",R.FEBRUARY="February",R.MARCH="March",R.APRIL="April",R.MAY="May",R.JUNE="June",R.JULY="July",R.AUGUST="August",R.SEPTEMBER="September",R.OCTOBER="October",R.NOVEMBER="November",R.DECEMBER="December",R))(Mr||{});var zt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(zt||(zt={}));var Bt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Bt||(Bt={}));var Kt;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Kt||(Kt={}));var $t;(e=>{let t;(f=>(f.REFUNDABLE="REFUNDABLE",f.NON_EU_VENUE="NON_EU_VENUE",f.ALREADY_REFUNDED="ALREADY_REFUNDED",f.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",f.PAID_AT_VENUE="PAID_AT_VENUE",f.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS",f.MEMBERSHIP_RENEWAL="MEMBERSHIP_RENEWAL"))(t=e.reason||(e.reason={}))})($t||($t={}));var wr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(wr||{});var Ht;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Ht||(Ht={}));var Vt;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Vt||(Vt={}));var Qt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Qt||(Qt={}));var Lr=(o=>(o.SINGLE="SINGLE",o.LEFT="LEFT",o.RIGHT="RIGHT",o))(Lr||{});var qr=(r=>(r.HOME="HOME",r.AWAY="AWAY",r))(qr||{});var Fr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(Fr||{});var jr=(s=>(s.ALL="ALL",s.PLAYSESSION="PLAYSESSION",s.USERGROUP="USERGROUP",s.ADMINMATCH="ADMINMATCH",s))(jr||{});var Yt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(Yt||(Yt={}));var Wt;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Wt||(Wt={}));var zr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(zr||{});var Xt=t=>t!=null,le=t=>typeof t=="string",Jt=t=>le(t)&&t!=="",Zt=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]),Br=t=>t instanceof FormData,ui=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},mi=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{Xt(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},di=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${mi(e.query)}`:s},yi=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||Zt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>Xt(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),fi=(t,e)=>y(null,null,function*(){let r=yield Ue(e,t.TOKEN),o=yield Ue(e,t.USERNAME),s=yield Ue(e,t.PASSWORD),l=yield Ue(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,m])=>Xt(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(Jt(r)&&(n.Authorization=`Bearer ${r}`),Jt(o)&&Jt(s)){let a=ui(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Zt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Br(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),hi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||Zt(t.body)||Br(t.body)?t.body:JSON.stringify(t.body)},gi=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,m={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(m.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,m)}),bi=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},Pi=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Ri=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new Z(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",m=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new Z(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${m}`)}},c=(t,e)=>new pe((r,o,s)=>y(null,null,function*(){try{let l=di(t,e),n=yi(e),a=hi(e),m=yield fi(t,e);if(!s.isCancelled){let f=yield gi(t,e,l,a,n,m,s),u=yield Pi(f),O=bi(f,e.responseHeader),R={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:O!=null?O:u};Ri(e,R),r(R.body)}}catch(l){o(l)}}));var er=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var tr=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,O,R=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:O,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 getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,m,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,offset:m,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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 rr=class{static getApiClientList(e,r=10){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 or=class{static getActivityOccasionForUser(e){return c(p,{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 c(p,{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 c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{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 c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{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 c(p,{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 adminAddChatUser(e,r,o){return c(p,{method:"PUT",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static adminRemoveChatUser(e,r,o){return c(p,{method:"DELETE",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType: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 setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{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 c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 ir=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 sr=class{static getCheckout(e){return c(p,{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 c(p,{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 ar=class{static updateCompetitionAccount(e){return c(p,{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 nr=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var pr=class{static createPromoCode(e){return c(p,{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 cr=class{static createMembership(e){return c(p,{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 c(p,{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 lr=class{static getPlaySessionById(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{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 c(p,{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 c(p,{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 rearrangePlaySessionTeams(e,r){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/teams",path:{sessionId:e},body:r,mediaType:"application/json",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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static lockPlaySessionPosition(e,r,o){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/teams/{teamId}/positions/{position}/lock",path:{sessionId:e,teamId:r,position:o},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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static unlockPlaySessionPosition(e,r,o){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/teams/{teamId}/positions/{position}/lock",path:{sessionId:e,teamId:r,position:o},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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{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 c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ur=class{static getUserProfile(e){return c(p,{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 c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{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 c(p,{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 adminAddChatUser(e,r,o){return c(p,{method:"PUT",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static adminRemoveChatUser(e,r,o){return c(p,{method:"DELETE",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 gr={};X(gr,{Gender:()=>Jr,LinkType:()=>Xr,MatchStatus:()=>Zr,MatchType:()=>eo,MemberRelation:()=>to,MembershipStatus:()=>ro,PostingPermission:()=>oo,ReactionType:()=>io,Source:()=>so,SpotPosition:()=>ao,Topic:()=>no,UserParticipationStatus:()=>po,UserRelation:()=>co,Visibility:()=>lo,acceptInvitation:()=>we,addUserSportProfileLevel:()=>bt,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>We,createMatchParticipation:()=>Ze,createPost:()=>Le,createUserSportProfile:()=>ft,deleteComment:()=>Be,deleteCommentReaction:()=>$e,deleteMatchParticipation:()=>et,deletePost:()=>qe,deletePostReaction:()=>Ve,deleteUserSportProfile:()=>ht,deleteUserSportProfileLevel:()=>Pt,getCommunity:()=>Ne,getFacility:()=>Ye,getMatch:()=>Xe,getMatchTeams:()=>rt,getMatchUserPrice:()=>tt,getNotificationById:()=>nt,getNotifications:()=>Re,getNotificationsPreferences:()=>st,getPost:()=>Fe,getRecommendations:()=>Se,getResource:()=>ct,getSportAuthorities:()=>lt,getUserFacilityPermissions:()=>mt,getUserSportProfile:()=>gt,getUserSportProfiles:()=>yt,joinCommunity:()=>Ge,leaveCommunity:()=>Me,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Je,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Ke,markPostRead:()=>je,queries:()=>Ot,rearrangeMatchTeams:()=>ot,registerDevice:()=>ut,schemas:()=>Ae,searchUsers:()=>Oe,updateAllNotifications:()=>it,updateNotification:()=>pt,updateNotificationsPreferences:()=>at,updateUserProfile:()=>dt,updateUserSportProfileLevel:()=>Rt,upsertCommentReaction:()=>He,upsertPostReaction:()=>Qe});var mr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Oi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},jl=Object.entries(Oi);var Kr=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(T=>setTimeout(T,U)));return{stream:function(){return Te(this,null,function*(){var v,M,P;let U=l!=null?l:3e3,T=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){T++;let C=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&C.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:C,signal:k}),$=new Request(f,S);t&&($=yield new A(t(f,S)));let Nt=(M=u.fetch)!=null?M:globalThis.fetch,w=yield new A(Nt($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),L="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Gt}=yield new A(Y.read());if(ie)break;L+=Gt,L=L.replace(/\r\n/g,`
|
|
1
|
+
var xr=Object.defineProperty,li=Object.defineProperties;var ui=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var Tr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable;var mi=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Ur=t=>{throw TypeError(t)};var Dr=(t,e,r)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Tr.call(e,r)&&Dr(t,r,e[r]);if(xe)for(var r of xe(e))Ir.call(e,r)&&Dr(t,r,e[r]);return t},m=(t,e)=>li(t,ui(e));var j=(t,e)=>{var r={};for(var o in t)Tr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xe)for(var o of xe(t))e.indexOf(o)<0&&Ir.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)xr(t,r,{get:e[r],enumerable:!0})};var vr=(t,e,r)=>e.has(t)||Ur("Cannot "+r);var D=(t,e,r)=>(vr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?Ur("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(vr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=d=>{try{a(r.next(d))}catch(f){s(f)}},n=d=>{try{a(r.throw(d))}catch(f){s(f)}},a=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Te=(t,e,r)=>{var o=(n,a,d,f)=>{try{var u=r[n](a),O=(a=u.value)instanceof N,R=u.done;Promise.resolve(O?a[0]:a).then(g=>O?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:R})).catch(g=>o("throw",g,d,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((d,f)=>o(n,a,d,f)),l={};return r=r.apply(t,e),l[mi("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var Z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Ie=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},z,B,F,Q,J,ce,ee,pe=class{constructor(e){V(this,z);V(this,B);V(this,F);V(this,Q);V(this,J);V(this,ce);V(this,ee);q(this,z,!1),q(this,B,!1),q(this,F,!1),q(this,Q,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var d;D(this,z)||D(this,B)||D(this,F)||(q(this,z,!0),(d=D(this,ce))==null||d.call(this,a))},l=a=>{var d;D(this,z)||D(this,B)||D(this,F)||(q(this,B,!0),(d=D(this,ee))==null||d.call(this,a))},n=a=>{D(this,z)||D(this,B)||D(this,F)||D(this,Q).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>D(this,z)}),Object.defineProperty(n,"isRejected",{get:()=>D(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>D(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return D(this,J).then(e,r)}catch(e){return D(this,J).catch(e)}finally(e){return D(this,J).finally(e)}cancel(){var e;if(!(D(this,z)||D(this,B)||D(this,F))){if(q(this,F,!0),D(this,Q).length)try{for(let r of D(this,Q))r()}catch(r){console.warn("Cancellation threw an error",r);return}D(this,Q).length=0,(e=D(this,ee))==null||e.call(this,new Ie("Request aborted"))}}get isCancelled(){return D(this,F)}};z=new WeakMap,B=new WeakMap,F=new WeakMap,Q=new WeakMap,J=new WeakMap,ce=new WeakMap,ee=new WeakMap;var p={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 kr=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(kr||{});var qt;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(qt||(qt={}));var _r=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(_r||{});var Nr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Nr||{});var Ft;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(Ft||(Ft={}));var jt;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(jt||(jt={}));var zt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(zt||(zt={}));var Ar=(s=>(s.PLAYSESSION="playsession",s.USERGROUP="usergroup",s.AICOACH="aicoach",s.ADMINMATCH="adminmatch",s))(Ar||{});var Mr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Mr||{});var Gr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Gr||{});var wr=(r=>(r.FRIENDLY="FRIENDLY",r.COMPETITIVE="COMPETITIVE",r))(wr||{});var Lr=(R=>(R.JANUARY="January",R.FEBRUARY="February",R.MARCH="March",R.APRIL="April",R.MAY="May",R.JUNE="June",R.JULY="July",R.AUGUST="August",R.SEPTEMBER="September",R.OCTOBER="October",R.NOVEMBER="November",R.DECEMBER="December",R))(Lr||{});var Bt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Bt||(Bt={}));var Kt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Kt||(Kt={}));var $t;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})($t||($t={}));var Ht;(e=>{let t;(f=>(f.REFUNDABLE="REFUNDABLE",f.NON_EU_VENUE="NON_EU_VENUE",f.ALREADY_REFUNDED="ALREADY_REFUNDED",f.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",f.PAID_AT_VENUE="PAID_AT_VENUE",f.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS",f.MEMBERSHIP_RENEWAL="MEMBERSHIP_RENEWAL"))(t=e.reason||(e.reason={}))})(Ht||(Ht={}));var qr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(qr||{});var Vt;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Vt||(Vt={}));var Qt;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Qt||(Qt={}));var Yt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Yt||(Yt={}));var Fr=(o=>(o.SINGLE="SINGLE",o.LEFT="LEFT",o.RIGHT="RIGHT",o))(Fr||{});var jr=(r=>(r.HOME="HOME",r.AWAY="AWAY",r))(jr||{});var zr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(zr||{});var Br=(s=>(s.ALL="ALL",s.PLAYSESSION="PLAYSESSION",s.USERGROUP="USERGROUP",s.ADMINMATCH="ADMINMATCH",s))(Br||{});var Wt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(Wt||(Wt={}));var Jt;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Jt||(Jt={}));var Kr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Kr||{});var Zt=t=>t!=null,le=t=>typeof t=="string",Xt=t=>le(t)&&t!=="",er=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]),$r=t=>t instanceof FormData,di=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},yi=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{Zt(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},fi=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${yi(e.query)}`:s},hi=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||er(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>Zt(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),gi=(t,e)=>y(null,null,function*(){let r=yield Ue(e,t.TOKEN),o=yield Ue(e,t.USERNAME),s=yield Ue(e,t.PASSWORD),l=yield Ue(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,d])=>Zt(d)).reduce((a,[d,f])=>m(i({},a),{[d]:String(f)}),{});if(Xt(r)&&(n.Authorization=`Bearer ${r}`),Xt(o)&&Xt(s)){let a=di(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:er(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":$r(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),bi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||er(t.body)||$r(t.body)?t.body:JSON.stringify(t.body)},Pi=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,d={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,d)}),Ri=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},Oi=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Si=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new Z(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new Z(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${d}`)}},c=(t,e)=>new pe((r,o,s)=>y(null,null,function*(){try{let l=fi(t,e),n=hi(e),a=bi(e),d=yield gi(t,e);if(!s.isCancelled){let f=yield Pi(t,e,l,a,n,d,s),u=yield Oi(f),O=Ri(f,e.responseHeader),R={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:O!=null?O:u};Si(e,R),r(R.body)}}catch(l){o(l)}}));var tr=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var rr=class{static listActivities(e=!1,r=!1,o,s,l,n,a,d,f,u,O,R=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:d,startDate:f,endDate:u,offset:O,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 getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,d,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 or=class{static getApiClientList(e,r=10){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 ir=class{static getActivityOccasionForUser(e){return c(p,{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 c(p,{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 c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{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 c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{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 c(p,{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 adminAddChatUser(e,r,o){return c(p,{method:"PUT",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static adminRemoveChatUser(e,r,o){return c(p,{method:"DELETE",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType: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 setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{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 c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 sr=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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,o){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},body:o,mediaType:"application/json",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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 ar=class{static getCheckout(e){return c(p,{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 c(p,{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 nr=class{static updateCompetitionAccount(e){return c(p,{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 pr=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var cr=class{static createPromoCode(e){return c(p,{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 lr=class{static createMembership(e){return c(p,{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 c(p,{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 ur=class{static getPlaySessionById(e){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{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 c(p,{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 c(p,{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 updatePlaySessionMatchType(e,r){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/match-type",path:{sessionId:e},body:r,mediaType:"application/json",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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static rearrangePlaySessionTeams(e,r){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/teams",path:{sessionId:e},body:r,mediaType:"application/json",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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static lockPlaySessionPosition(e,r,o){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/teams/{teamId}/positions/{position}/lock",path:{sessionId:e,teamId:r,position:o},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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static unlockPlaySessionPosition(e,r,o){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/teams/{teamId}/positions/{position}/lock",path:{sessionId:e,teamId:r,position:o},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.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{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 c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var mr=class{static getUserProfile(e){return c(p,{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 c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{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 c(p,{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 adminAddChatUser(e,r,o){return c(p,{method:"PUT",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static adminRemoveChatUser(e,r,o){return c(p,{method:"DELETE",url:"/admin/chats/by-targetid/{target}/{targetId}/users/{userId}",path:{target:e,targetId:r,userId:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 c(p,{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 br={};X(br,{Gender:()=>Zr,LinkType:()=>eo,MatchStatus:()=>to,MatchType:()=>ro,MemberRelation:()=>oo,MembershipStatus:()=>io,PostingPermission:()=>so,ReactionType:()=>ao,Source:()=>no,SpotPosition:()=>po,Topic:()=>co,UserParticipationStatus:()=>lo,UserRelation:()=>uo,Visibility:()=>mo,acceptInvitation:()=>we,addUserSportProfileLevel:()=>Pt,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>We,createMatchParticipation:()=>et,createPost:()=>Le,createUserSportProfile:()=>ht,deleteComment:()=>Be,deleteCommentReaction:()=>$e,deleteMatchParticipation:()=>tt,deletePost:()=>qe,deletePostReaction:()=>Ve,deleteUserSportProfile:()=>gt,deleteUserSportProfileLevel:()=>Rt,getCommunity:()=>Ae,getFacility:()=>Ye,getMatch:()=>Xe,getMatchTeams:()=>ot,getMatchUserPrice:()=>rt,getNotificationById:()=>pt,getNotifications:()=>Re,getNotificationsPreferences:()=>at,getPost:()=>Fe,getRecommendations:()=>Se,getResource:()=>lt,getSportAuthorities:()=>ut,getUserFacilityPermissions:()=>dt,getUserSportProfile:()=>bt,getUserSportProfiles:()=>ft,joinCommunity:()=>Me,leaveCommunity:()=>Ge,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Je,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Ke,markPostRead:()=>je,queries:()=>St,rearrangeMatchTeams:()=>it,registerDevice:()=>mt,schemas:()=>Ne,searchUsers:()=>Oe,updateAllNotifications:()=>st,updateMatch:()=>Ze,updateNotification:()=>ct,updateNotificationsPreferences:()=>nt,updateUserProfile:()=>yt,updateUserSportProfileLevel:()=>Ot,upsertCommentReaction:()=>He,upsertPostReaction:()=>Qe});var dr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Ei={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Vl=Object.entries(Ei);var Hr=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:d,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,M=d!=null?d:(U=>new Promise(T=>setTimeout(T,U)));return{stream:function(){return Te(this,null,function*(){var v,G,P;let U=l!=null?l:3e3,T=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){T++;let C=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&C.set("Last-Event-ID",g);try{let S=m(i({redirect:"follow"},u),{body:u.serializedBody,headers:C,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let Mt=(G=u.fetch)!=null?G:globalThis.fetch,w=yield new N(Mt($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),L="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Gt}=yield new N(Y.read());if(ie)break;L+=Gt,L=L.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);let se=L.split(`
|
|
4
4
|
|
|
5
|
-
`);L=(P=se.pop())!=null?P:"";for(let
|
|
6
|
-
`),H=[],ae;for(let x of
|
|
7
|
-
`);try{_=JSON.parse(x),ne=!0}catch(W){_=x}}ne&&(s&&(yield new A(s(_))),o&&(_=yield new A(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),H.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&T>=n)break;let $=Math.min(U*2**(T-1),a!=null?a:3e4);yield new A(G($))}}})}()}};var Si=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ei=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Ci=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ve=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(m=>encodeURIComponent(m))).join(Ei(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let l=Si(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):te({allowReserved:t,name:r,value:a})).join(l);return o==="label"||o==="matrix"?l+n:n},te=({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:s,valueOnly:l})=>{if(s instanceof Date)return l?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let m=[];Object.entries(s).forEach(([u,O])=>{m=[...m,u,t?O:encodeURIComponent(O)]});let f=m.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=Ci(o),a=Object.entries(s).map(([m,f])=>te({allowReserved:t,name:o==="deepObject"?`${r}[${m}]`:m,value:f})).join(n);return o==="label"||o==="matrix"?n+a:a};var Di=/\{[^{}]+\}/g,xi=({path:t,url:e})=>{let r=e,o=e.match(Di);if(o)for(let s of o){let l=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),a="label"):n.startsWith(";")&&(n=n.substring(1),a="matrix");let m=t[n];if(m==null)continue;if(Array.isArray(m)){r=r.replace(s,ve({explode:l,name:n,style:a,value:m}));continue}if(typeof m=="object"){r=r.replace(s,ke({explode:l,name:n,style:a,value:m,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(s,`;${te({name:n,value:m})}`);continue}let f=encodeURIComponent(a==="label"?`.${m}`:m);r=r.replace(s,f)}return r},$r=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=xi({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function dr(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var Hr=(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 Vr=(r={})=>{var o=r,{parameters:t={}}=o,e=j(o,["parameters"]);return l=>{let n=[];if(l&&typeof l=="object")for(let a in l){let m=l[a];if(m==null)continue;let f=t[a]||e;if(Array.isArray(m)){let u=ve(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"form",value:m},f.array));u&&n.push(u)}else if(typeof m=="object"){let u=ke(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"deepObject",value:m},f.object));u&&n.push(u)}else{let u=te({allowReserved:f.allowReserved,name:a,value:m});u&&n.push(u)}}return n.join("&")}},Qr=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"}},Ti=(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},Yr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=j(o,["security"]);var s;for(let l of t){if(Ti(e,l.name))continue;let n=yield Hr(l,e.auth);if(!n)continue;let a=(s=l.name)!=null?s:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[a]=n;break;case"cookie":e.headers.append("Cookie",`${a}=${n}`);break;default:e.headers.set(a,n);break}}}),yr=t=>$r({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Vr(t.querySerializer),url:t.url}),fr=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},Ii=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?Ii(r):Object.entries(r);for(let[s,l]of o)if(l===null)e.delete(s);else if(Array.isArray(l))for(let n of l)e.append(s,n);else l!==void 0&&e.set(s,typeof l=="object"?JSON.stringify(l):l)}return e},ue=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}},Wr=()=>({error:new ue,request:new ue,response:new ue}),Ui=Vr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),vi={"Content-Type":"application/json"},me=(t={})=>i(d(i({},mr),{headers:vi,parseAs:"auto",querySerializer:Ui}),t);var hr=(t={})=>{let e=fr(me(),t),r=()=>i({},e),o=f=>(e=fr(e,f),r()),s=Wr(),l=f=>y(null,null,function*(){var R,g;let u=d(i(i({},e),f),{fetch:(g=(R=f.fetch)!=null?R:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Yr(d(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=yr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var M;let{opts:u,url:O}=yield l(f),R=d(i({redirect:"follow"},u),{body:dr(u)}),g=new Request(O,R);for(let P of s.request.fns)P&&(g=yield P(g,u));let G=u.fetch,b;try{b=yield G(g)}catch(P){let C=P;for(let S of s.error.fns)S&&(C=yield S(P,void 0,g,u));if(C=C||{},u.throwOnError)throw C;return u.responseStyle==="data"?void 0:{error:C,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let I={request:g,response:b};if(b.ok){let P=(M=u.parseAs==="auto"?Qr(b.headers.get("Content-Type")):u.parseAs)!=null?M:"json";if(b.status===204||b.headers.get("Content-Length")==="0"){let S;switch(P){case"arrayBuffer":case"blob":case"text":S=yield b[P]();break;case"formData":S=new FormData;break;case"stream":S=b.body;break;default:S={};break}return u.responseStyle==="data"?S:i({data:S},I)}let C;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":C=yield b[P]();break;case"json":{let S=yield b.text();C=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},I)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(C)),u.responseTransformer&&(C=yield u.responseTransformer(C))),u.responseStyle==="data"?C:i({data:C},I)}let U=yield b.text(),T;try{T=JSON.parse(U)}catch(P){}let k=T!=null?T:U,v=k;for(let P of s.error.fns)P&&(v=yield P(k,b,g,u));if(v=v||{},u.throwOnError)throw v;return u.responseStyle==="data"?void 0:i({error:v},I)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:O,url:R}=yield l(u);return Kr(d(i({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let I of s.request.fns)I&&(b=yield I(b,O));return b}),serializedBody:dr(O),url:R}))});return{buildUrl:yr,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:s,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:n,setConfig:o,sse:{connect:m("CONNECT"),delete:m("DELETE"),get:m("GET"),head:m("HEAD"),options:m("OPTIONS"),patch:m("PATCH"),post:m("POST"),put:m("PUT"),trace:m("TRACE")},trace:a("TRACE")}};var h=hr(me({baseUrl:"https://api.matchi.com/v1"}));var Ae={};X(Ae,{AddressSchema:()=>ki,AuthorSchema:()=>_i,ChannelsSchema:()=>Ai,CommentListResponseSchema:()=>Gi,CommentSchema:()=>Ni,CommunityItemSchema:()=>Mi,CommunityListResponseSchema:()=>wi,ConflictDetailsSchema:()=>Li,CreateCommentRequestSchema:()=>qi,CreateMatchParticipationRequestSchema:()=>Fi,CreatePostRequestSchema:()=>ji,CreateSportProfileLevelRequestSchema:()=>zi,CreateSportProfileRequestSchema:()=>Bi,ExternalServiceSchema:()=>Ki,FacilityListSchema:()=>Hi,FacilityMessagePayloadSchema:()=>Vi,FacilityOfferConditionActivitiesSchema:()=>Wi,FacilityOfferConditionCourtsSchema:()=>Ji,FacilityOfferConditionDateSchema:()=>Xi,FacilityOfferConditionHoursinadvanceSchema:()=>Zi,FacilityOfferConditionSchema:()=>Yi,FacilityOfferConditionTimeSchema:()=>es,FacilityOfferConditionWeekdaysSchema:()=>ts,FacilityOfferListSchema:()=>rs,FacilityOfferOrderSchema:()=>os,FacilityOfferSchema:()=>Qi,FacilityPermissionSchema:()=>is,FacilityPermissionsResponseSchema:()=>ss,FacilityPunchCardDataSchema:()=>as,FacilitySchema:()=>$i,FacilityValueCardDataSchema:()=>ns,GenderSchema:()=>ps,JoinCommunityResponseSchema:()=>cs,LinkTypeSchema:()=>ls,MatchBasePriceSchema:()=>ms,MatchCourtSchema:()=>ds,MatchDetailSchema:()=>ys,MatchEventSchema:()=>fs,MatchListSchema:()=>hs,MatchOccasionDetailSchema:()=>bs,MatchOccasionSchema:()=>gs,MatchParticipantsSchema:()=>Ps,MatchPriceListEntrySchema:()=>Rs,MatchSchema:()=>us,MatchStatusSchema:()=>Os,MatchTeamSchema:()=>Ss,MatchTeamSpotSchema:()=>Es,MatchTeamsResponseSchema:()=>Cs,MatchTypeSchema:()=>Ds,MatchUserPriceSchema:()=>xs,MemberListResponseSchema:()=>Is,MemberRelationSchema:()=>Us,MemberSchema:()=>Ts,MembershipStatusSchema:()=>vs,MetadataSchema:()=>ks,NotificationPayloadSchema:()=>As,NotificationRequestBodySchema:()=>Ns,NotificationSchema:()=>_s,NotificationsFilterSchema:()=>Gs,NotificationsPaginatedResponseSchema:()=>Ms,NotificationsSummarySchema:()=>ws,OffsetPaginatedResultSetSchema:()=>Ls,PaginationMetaSchema:()=>qs,ParticipantDetailSchema:()=>Fs,ParticipantSummarySchema:()=>js,PatchCommentRequestSchema:()=>zs,PatchPostRequestSchema:()=>Bs,PaymentCommandSchema:()=>Ks,PaymentDetailsSchema:()=>$s,PositionSchema:()=>Hs,PostLinkSchema:()=>Qs,PostListResponseSchema:()=>Ys,PostSchema:()=>Vs,PostingPermissionSchema:()=>Ws,PreferenceSchema:()=>Js,PreferencesResponseSchema:()=>Xs,PrivateParticipantDetailSchema:()=>Zs,PrivateParticipantSummarySchema:()=>ea,PublicParticipantDetailSchema:()=>ta,PublicParticipantSummarySchema:()=>ra,ReactionGroupSchema:()=>oa,ReactionRequestSchema:()=>ia,ReactionTypeSchema:()=>sa,RearrangeMatchTeamsRequestSchema:()=>aa,RecommendationListSchema:()=>pa,RecommendationSchema:()=>na,RefundPolicySchema:()=>ca,RegisterDeviceRequestSchema:()=>la,ResourceSchema:()=>ua,SourceSchema:()=>ma,SportAuthoritiesResponseSchema:()=>da,SportAuthoritySchema:()=>ya,SportLevelSchema:()=>fa,SportProfileAttributeSchema:()=>ga,SportProfileLevelSchema:()=>ba,SportProfileSchema:()=>ha,SportProfilesResponseSchema:()=>Pa,SpotMoveSchema:()=>Ra,SpotPositionSchema:()=>Oa,SpotRefSchema:()=>Sa,TopicSchema:()=>Ea,UpdatePreferencesRequestBodySchema:()=>Ca,UpdateSportProfileLevelRequestSchema:()=>Da,UpdateUsersProfilesRequestSchema:()=>xa,UserParticipationStatusSchema:()=>Ta,UserProfileSchema:()=>Ia,UserRelationSchema:()=>Ua,UsersProfilesPaginatedResponseSchema:()=>va,VisibilitySchema:()=>ka,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>_a,pkgOpenapiSharedErrorSchema:()=>Aa,pkgOpenapiSharedErrorsSchema:()=>Na,pkgOpenapiSharedFilterableStringSchema:()=>Ga,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Ma,pkgOpenapiSharedProblemDetailsSchema:()=>wa});var ki={properties:{city:{type:"string"},country:{type:"string"},street:{type:"string"},zip:{type:"string"}},type:"object"},_i={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
|
|
5
|
+
`);L=(P=se.pop())!=null?P:"";for(let wt of se){let Lt=wt.split(`
|
|
6
|
+
`),H=[],ae;for(let x of Lt)if(x.startsWith("data:"))H.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))ae=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))g=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let W=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(W)||(U=W)}let _,ne=!1;if(H.length){let x=H.join(`
|
|
7
|
+
`);try{_=JSON.parse(x),ne=!0}catch(W){_=x}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),H.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&T>=n)break;let $=Math.min(U*2**(T-1),a!=null?a:3e4);yield new N(M($))}}})}()}};var Ci=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Di=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},xi=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ve=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(d=>encodeURIComponent(d))).join(Di(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let l=Ci(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):te({allowReserved:t,name:r,value:a})).join(l);return o==="label"||o==="matrix"?l+n:n},te=({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:s,valueOnly:l})=>{if(s instanceof Date)return l?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(s).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=xi(o),a=Object.entries(s).map(([d,f])=>te({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return o==="label"||o==="matrix"?n+a:a};var Ti=/\{[^{}]+\}/g,Ii=({path:t,url:e})=>{let r=e,o=e.match(Ti);if(o)for(let s of o){let l=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),a="label"):n.startsWith(";")&&(n=n.substring(1),a="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(s,ve({explode:l,name:n,style:a,value:d}));continue}if(typeof d=="object"){r=r.replace(s,ke({explode:l,name:n,style:a,value:d,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(s,`;${te({name:n,value:d})}`);continue}let f=encodeURIComponent(a==="label"?`.${d}`:d);r=r.replace(s,f)}return r},Vr=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=Ii({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function yr(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 Qr=(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 Yr=(r={})=>{var o=r,{parameters:t={}}=o,e=j(o,["parameters"]);return l=>{let n=[];if(l&&typeof l=="object")for(let a in l){let d=l[a];if(d==null)continue;let f=t[a]||e;if(Array.isArray(d)){let u=ve(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=ke(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=te({allowReserved:f.allowReserved,name:a,value:d});u&&n.push(u)}}return n.join("&")}},Wr=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"}},Ui=(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},Jr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=j(o,["security"]);var s;for(let l of t){if(Ui(e,l.name))continue;let n=yield Qr(l,e.auth);if(!n)continue;let a=(s=l.name)!=null?s:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[a]=n;break;case"cookie":e.headers.append("Cookie",`${a}=${n}`);break;default:e.headers.set(a,n);break}}}),fr=t=>Vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Yr(t.querySerializer),url:t.url}),hr=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},vi=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?vi(r):Object.entries(r);for(let[s,l]of o)if(l===null)e.delete(s);else if(Array.isArray(l))for(let n of l)e.append(s,n);else l!==void 0&&e.set(s,typeof l=="object"?JSON.stringify(l):l)}return e},ue=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}},Xr=()=>({error:new ue,request:new ue,response:new ue}),ki=Yr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),_i={"Content-Type":"application/json"},me=(t={})=>i(m(i({},dr),{headers:_i,parseAs:"auto",querySerializer:ki}),t);var gr=(t={})=>{let e=hr(me(),t),r=()=>i({},e),o=f=>(e=hr(e,f),r()),s=Xr(),l=f=>y(null,null,function*(){var R,g;let u=m(i(i({},e),f),{fetch:(g=(R=f.fetch)!=null?R:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Jr(m(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=fr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var G;let{opts:u,url:O}=yield l(f),R=m(i({redirect:"follow"},u),{body:yr(u)}),g=new Request(O,R);for(let P of s.request.fns)P&&(g=yield P(g,u));let M=u.fetch,b;try{b=yield M(g)}catch(P){let C=P;for(let S of s.error.fns)S&&(C=yield S(P,void 0,g,u));if(C=C||{},u.throwOnError)throw C;return u.responseStyle==="data"?void 0:{error:C,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let I={request:g,response:b};if(b.ok){let P=(G=u.parseAs==="auto"?Wr(b.headers.get("Content-Type")):u.parseAs)!=null?G:"json";if(b.status===204||b.headers.get("Content-Length")==="0"){let S;switch(P){case"arrayBuffer":case"blob":case"text":S=yield b[P]();break;case"formData":S=new FormData;break;case"stream":S=b.body;break;default:S={};break}return u.responseStyle==="data"?S:i({data:S},I)}let C;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":C=yield b[P]();break;case"json":{let S=yield b.text();C=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},I)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(C)),u.responseTransformer&&(C=yield u.responseTransformer(C))),u.responseStyle==="data"?C:i({data:C},I)}let U=yield b.text(),T;try{T=JSON.parse(U)}catch(P){}let k=T!=null?T:U,v=k;for(let P of s.error.fns)P&&(v=yield P(k,b,g,u));if(v=v||{},u.throwOnError)throw v;return u.responseStyle==="data"?void 0:i({error:v},I)}),a=f=>u=>n(m(i({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:R}=yield l(u);return Hr(m(i({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,M)=>y(null,null,function*(){let b=new Request(g,M);for(let I of s.request.fns)I&&(b=yield I(b,O));return b}),serializedBody:yr(O),url:R}))});return{buildUrl:fr,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:s,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:n,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:a("TRACE")}};var h=gr(me({baseUrl:"https://api.matchi.com/v1"}));var Ne={};X(Ne,{AddressSchema:()=>Ni,AuthorSchema:()=>Ai,ChannelsSchema:()=>Mi,CommentListResponseSchema:()=>wi,CommentSchema:()=>Gi,CommunityItemSchema:()=>Li,CommunityListResponseSchema:()=>qi,ConflictDetailsSchema:()=>Fi,CreateCommentRequestSchema:()=>ji,CreateMatchParticipationRequestSchema:()=>zi,CreatePostRequestSchema:()=>Bi,CreateSportProfileLevelRequestSchema:()=>Ki,CreateSportProfileRequestSchema:()=>$i,ExternalServiceSchema:()=>Hi,FacilityListSchema:()=>Qi,FacilityMessagePayloadSchema:()=>Yi,FacilityOfferConditionActivitiesSchema:()=>Xi,FacilityOfferConditionCourtsSchema:()=>Zi,FacilityOfferConditionDateSchema:()=>es,FacilityOfferConditionHoursinadvanceSchema:()=>ts,FacilityOfferConditionSchema:()=>Ji,FacilityOfferConditionTimeSchema:()=>rs,FacilityOfferConditionWeekdaysSchema:()=>os,FacilityOfferListSchema:()=>is,FacilityOfferOrderSchema:()=>ss,FacilityOfferSchema:()=>Wi,FacilityPermissionSchema:()=>as,FacilityPermissionsResponseSchema:()=>ns,FacilityPunchCardDataSchema:()=>ps,FacilitySchema:()=>Vi,FacilityValueCardDataSchema:()=>cs,GenderSchema:()=>ls,JoinCommunityResponseSchema:()=>us,LinkTypeSchema:()=>ms,MatchBasePriceSchema:()=>ys,MatchCourtSchema:()=>fs,MatchDetailSchema:()=>hs,MatchEventSchema:()=>gs,MatchListSchema:()=>bs,MatchOccasionDetailSchema:()=>Rs,MatchOccasionSchema:()=>Ps,MatchParticipantsSchema:()=>Os,MatchPriceListEntrySchema:()=>Ss,MatchSchema:()=>ds,MatchStatusSchema:()=>Es,MatchTeamSchema:()=>Cs,MatchTeamSpotSchema:()=>Ds,MatchTeamsResponseSchema:()=>xs,MatchTypeSchema:()=>Ts,MatchUserPriceSchema:()=>Is,MemberListResponseSchema:()=>vs,MemberRelationSchema:()=>ks,MemberSchema:()=>Us,MembershipStatusSchema:()=>_s,MetadataSchema:()=>Ns,NotificationPayloadSchema:()=>Ms,NotificationRequestBodySchema:()=>Gs,NotificationSchema:()=>As,NotificationsFilterSchema:()=>ws,NotificationsPaginatedResponseSchema:()=>Ls,NotificationsSummarySchema:()=>qs,OffsetPaginatedResultSetSchema:()=>Fs,PaginationMetaSchema:()=>js,ParticipantDetailSchema:()=>zs,ParticipantSummarySchema:()=>Bs,PatchCommentRequestSchema:()=>Ks,PatchPostRequestSchema:()=>$s,PaymentCommandSchema:()=>Hs,PaymentDetailsSchema:()=>Vs,PositionSchema:()=>Qs,PostLinkSchema:()=>Ws,PostListResponseSchema:()=>Js,PostSchema:()=>Ys,PostingPermissionSchema:()=>Xs,PreferenceSchema:()=>Zs,PreferencesResponseSchema:()=>ea,PrivateParticipantDetailSchema:()=>ta,PrivateParticipantSummarySchema:()=>ra,PublicParticipantDetailSchema:()=>oa,PublicParticipantSummarySchema:()=>ia,ReactionGroupSchema:()=>sa,ReactionRequestSchema:()=>aa,ReactionTypeSchema:()=>na,RearrangeMatchTeamsRequestSchema:()=>pa,RecommendationListSchema:()=>la,RecommendationSchema:()=>ca,RefundPolicySchema:()=>ua,RegisterDeviceRequestSchema:()=>ma,ResourceSchema:()=>da,SourceSchema:()=>ya,SportAuthoritiesResponseSchema:()=>fa,SportAuthoritySchema:()=>ha,SportLevelSchema:()=>ga,SportProfileAttributeSchema:()=>Pa,SportProfileLevelSchema:()=>Ra,SportProfileSchema:()=>ba,SportProfilesResponseSchema:()=>Oa,SpotMoveSchema:()=>Sa,SpotPositionSchema:()=>Ea,SpotRefSchema:()=>Ca,TopicSchema:()=>Da,UpdateMatchRequestSchema:()=>xa,UpdatePreferencesRequestBodySchema:()=>Ta,UpdateSportProfileLevelRequestSchema:()=>Ia,UpdateUsersProfilesRequestSchema:()=>Ua,UserParticipationStatusSchema:()=>va,UserProfileSchema:()=>ka,UserRelationSchema:()=>_a,UsersProfilesPaginatedResponseSchema:()=>Na,VisibilitySchema:()=>Aa,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Ma,pkgOpenapiSharedErrorSchema:()=>Ga,pkgOpenapiSharedErrorsSchema:()=>wa,pkgOpenapiSharedFilterableStringSchema:()=>La,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>qa,pkgOpenapiSharedProblemDetailsSchema:()=>Fa});var Ni={properties:{city:{type:"string"},country:{type:"string"},street:{type:"string"},zip:{type:"string"}},type:"object"},Ai={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
|
|
8
8
|
MEMBER \u2014 the post or comment was authored by a community member.
|
|
9
9
|
UNKNOWN \u2014 the community member who authored the post or comment
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
|
-
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},
|
|
12
|
-
already taken (offer picking another spot);
|
|
11
|
+
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Mi={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Gi={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"},reactions:{items:{$ref:"#/components/schemas/ReactionGroup"},type:"array"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},wi={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Li={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:{allOf:[{$ref:"#/components/schemas/MembershipStatus"}],nullable:!0},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"},qi={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Fi={allOf:[{$ref:"#/components/schemas/pkgOpenapiSharedProblemDetails"},{properties:{code:{description:`Conflict cause: SPOT_OCCUPIED \u2014 the requested spot is
|
|
12
|
+
already taken (offer picking another spot);
|
|
13
|
+
PARTICIPANTS_NOT_PUBLIC \u2014 the match cannot be competitive
|
|
14
|
+
while a participant lacks a public profile; CONFLICT \u2014
|
|
13
15
|
generic conflict. Absent when the webapp supplied no code.
|
|
14
16
|
`,type:"string"}},type:"object"}],description:`ProblemDetails extended with the webapp's machine-readable conflict
|
|
15
17
|
code so clients can branch on the conflict cause.
|
|
16
|
-
`},
|
|
18
|
+
`},ji={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},zi={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},position:{$ref:"#/components/schemas/SpotPosition"},promo_code:{nullable:!0,type:"string"},team_id:{description:`Team handling: id of the team whose spot is being claimed (from
|
|
17
19
|
the occasion's teams layout). Must be sent together with
|
|
18
20
|
position; omit both to have a spot auto-assigned (the behavior
|
|
19
21
|
of app versions that predate spot picking).
|
|
20
|
-
`,format:"uuid",type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},
|
|
21
|
-
`},
|
|
22
|
+
`,format:"uuid",type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Bi={description:"At least one of `content` or `links` must be provided. When `links` is\npresent and non-empty, `content` may be omitted.\n",properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},type:"object"},Ki={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},$i={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"},Hi={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},Vi={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"},Qi={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},result_set:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["result_set","items"],type:"object"},Yi={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Wi={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"},Ji={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"},Xi={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"},Zi={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},es={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},ts={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},rs={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},os={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},is={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},ss={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"},as={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},ns={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},ps={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"},cs={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"},ls={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},us={properties:{status:{$ref:"#/components/schemas/MembershipStatus"}},required:["status"],type:"object"},ms={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},ds={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"},ys={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},fs={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},hs={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.
|
|
23
|
+
`},gs={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},bs={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ps={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
22
24
|
`,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"},match_type:{$ref:"#/components/schemas/MatchType"},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"},teams:{description:`Team handling: the match's team layout (exactly HOME + AWAY, in
|
|
23
25
|
that order), rendered ALONGSIDE the participant list. Spot
|
|
24
26
|
occupants carry user_id only when visible to the viewer (same
|
|
@@ -30,13 +32,13 @@ Degraded state: when the webapp cannot resolve a match's teams
|
|
|
30
32
|
the array is EMPTY instead of failing the request \u2014 clients must
|
|
31
33
|
tolerate an empty or absent teams array and fall back to
|
|
32
34
|
rendering the plain participant list.
|
|
33
|
-
`,items:{$ref:"#/components/schemas/MatchTeam"},type:"array"},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","match_type"],type:"object"},
|
|
35
|
+
`,items:{$ref:"#/components/schemas/MatchTeam"},type:"array"},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","match_type"],type:"object"},Rs={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{access_code:{description:`Venue door/gate access code for the match. Display-only and informational \u2014 it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence \u2014 do not parse or validate it.
|
|
34
36
|
`,nullable:!0,type:"string"},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.
|
|
35
37
|
`,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.
|
|
36
|
-
`},
|
|
38
|
+
`},Os={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"},Ss={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Es={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},Cs={description:`One of a match's two stored teams. team_id is the stable external
|
|
37
39
|
id \u2014 spot claims (join with a position) and, later, Result Reporting
|
|
38
40
|
key off it.
|
|
39
|
-
`,properties:{name:{description:'Optional display name. Null \u2192 clients render a "Team 1/2" fallback.',nullable:!0,type:"string"},positions:{description:"The team's spots, in canonical order.",items:{$ref:"#/components/schemas/MatchTeamSpot"},type:"array"},side:{enum:["HOME","AWAY"],type:"string"},team_id:{format:"uuid",type:"string"}},required:["team_id","side","positions"],type:"object"},
|
|
41
|
+
`,properties:{name:{description:'Optional display name. Null \u2192 clients render a "Team 1/2" fallback.',nullable:!0,type:"string"},positions:{description:"The team's spots, in canonical order.",items:{$ref:"#/components/schemas/MatchTeamSpot"},type:"array"},side:{enum:["HOME","AWAY"],type:"string"},team_id:{format:"uuid",type:"string"}},required:["team_id","side","positions"],type:"object"},Ds={description:`One spot in a team's layout. The occupant is identified by user_id
|
|
40
42
|
when \u2014 and only when \u2014 the viewer is allowed to see it: the same
|
|
41
43
|
PUBLIC/PRIVATE visibility rules as the participant rows. An occupied
|
|
42
44
|
spot with no user_id means the occupant's identity is withheld
|
|
@@ -54,29 +56,29 @@ the play-sessions layout. Always false on venue-created matches
|
|
|
54
56
|
is PUBLIC to the viewer. ABSENT (never null) when the spot is
|
|
55
57
|
free, the occupant is private, or the occupant is a guest
|
|
56
58
|
customer without a MATCHi user.
|
|
57
|
-
`,format:"uuid",type:"string"}},required:["position","is_assigned","is_locked"],type:"object"},
|
|
59
|
+
`,format:"uuid",type:"string"}},required:["position","is_assigned","is_locked"],type:"object"},xs={description:`The match's team layout. Degraded state: when the webapp cannot
|
|
58
60
|
resolve the teams the array is EMPTY instead of failing the
|
|
59
61
|
request \u2014 clients fall back to the plain participant list.
|
|
60
|
-
`,properties:{teams:{items:{$ref:"#/components/schemas/MatchTeam"},type:"array"}},required:["teams"],type:"object"},
|
|
61
|
-
`,enum:["FRIENDLY","COMPETITIVE"],type:"string"},
|
|
62
|
+
`,properties:{teams:{items:{$ref:"#/components/schemas/MatchTeam"},type:"array"}},required:["teams"],type:"object"},Ts={description:`How the match is classified. Drives result visibility and, in future, rating input. Always present \u2014 matches created before the field existed read as FRIENDLY.
|
|
63
|
+
`,enum:["FRIENDLY","COMPETITIVE"],type:"string"},Is={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"},Us={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"},vs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ks={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"},_s={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ns={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},As={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"},Ms={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Gs={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},ws={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Ls={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},qs={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"},Fs={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"},js={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},zs={description:`Player-facing participant row with join timestamp. Tagged union over
|
|
62
64
|
PUBLIC and PRIVATE variants \u2014 see ParticipantSummary.
|
|
63
|
-
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantDetail"},{$ref:"#/components/schemas/PrivateParticipantDetail"}]},
|
|
65
|
+
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantDetail"},{$ref:"#/components/schemas/PrivateParticipantDetail"}]},Bs={description:`Player-facing participant row. Tagged union over PUBLIC (full data) and
|
|
64
66
|
PRIVATE (placeholder for users with searchable=false), distinguished by
|
|
65
67
|
the \`kind\` property on each variant. See
|
|
66
68
|
openspec/specs/match-participant-privacy/spec.md in team-discovery-docs.
|
|
67
|
-
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantSummary"},{$ref:"#/components/schemas/PrivateParticipantSummary"}]},
|
|
69
|
+
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantSummary"},{$ref:"#/components/schemas/PrivateParticipantSummary"}]},Ks={properties:{is_read:{type:"boolean"}},type:"object"},$s={properties:{is_read:{type:"boolean"}},type:"object"},Hs={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"},Vs={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"},Qs={properties:{latitude:{format:"double",type:"number"},longitude:{format:"double",type:"number"}},required:["latitude","longitude"],type:"object"},Ys={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"},reactions:{items:{$ref:"#/components/schemas/ReactionGroup"},type:"array"},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"},Ws={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},Js={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Xs={enum:["ADMINS","MEMBERS"],type:"string"},Zs={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"},ea={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},ta={description:"PRIVATE variant of ParticipantDetail. Carries only kind, participation_id, joined_at, and the (non-PII) team assignment.",properties:{joined_at:{format:"date-time",type:"string"},kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"},position:{$ref:"#/components/schemas/SpotPosition"},team_id:{description:`Team handling: id of the team this participant is assigned to.
|
|
68
70
|
Absent when unassigned. Needed to render the layout for PRIVATE
|
|
69
71
|
rows too.
|
|
70
|
-
`,format:"uuid",type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},
|
|
72
|
+
`,format:"uuid",type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},ra={description:"Minimal placeholder for a participant whose User.searchable is false. Carries only kind and participation_id \u2014 no PII (team assignment is not PII).",properties:{kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"},position:{$ref:"#/components/schemas/SpotPosition"},team_id:{description:`Team handling: id of the team this participant is assigned to.
|
|
71
73
|
Absent when unassigned. Needed to render the layout for PRIVATE
|
|
72
74
|
rows too.
|
|
73
|
-
`,format:"uuid",type:"string"}},required:["kind","participation_id"],type:"object"},
|
|
75
|
+
`,format:"uuid",type:"string"}},required:["kind","participation_id"],type:"object"},oa={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"},position:{$ref:"#/components/schemas/SpotPosition"},profile_image_url:{nullable:!0,type:"string"},team_id:{description:`Team handling: id of the team this participant is assigned to.
|
|
74
76
|
Absent when unassigned. Joins with the occasion's teams layout
|
|
75
77
|
on (team_id, position).
|
|
76
|
-
`,format:"uuid",type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},
|
|
78
|
+
`,format:"uuid",type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},ia={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"},position:{$ref:"#/components/schemas/SpotPosition"},profile_image_url:{nullable:!0,type:"string"},team_id:{description:`Team handling: id of the team this participant is assigned to.
|
|
77
79
|
Absent when unassigned. Joins with the occasion's teams layout
|
|
78
80
|
on (team_id, position).
|
|
79
|
-
`,format:"uuid",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"},
|
|
81
|
+
`,format:"uuid",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"},sa={properties:{authors:{items:{$ref:"#/components/schemas/Author"},type:"array"},reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type","authors"],type:"object"},aa={properties:{reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type"],type:"object"},na={enum:["THUMBS_UP","HEART","SWEAT_SMILE","LAUGHING","HUSHED","FIRE"],type:"string"},pa={properties:{moves:{items:{$ref:"#/components/schemas/SpotMove"},minItems:1,type:"array"}},required:["moves"],type:"object"},ca={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
80
82
|
`,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:{description:`Facility ID. 0 for matches without facility details available.
|
|
81
83
|
`,type:"integer"},facility_name:{description:`Facility name. Empty string for matches without facility details available.
|
|
82
84
|
`,type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.
|
|
@@ -84,13 +86,14 @@ on (team_id, position).
|
|
|
84
86
|
`,nullable:!0,type:"boolean"},name:{description:`Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.
|
|
85
87
|
`,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.
|
|
86
88
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.
|
|
87
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY","MATCH_PUBLIC"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},
|
|
89
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY","MATCH_PUBLIC"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},la={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ua={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},ma={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"},da={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"},ya={enum:["FACILITY"],type:"string"},fa={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},ha={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"},ga={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"},ba={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"},Pa={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"},Ra={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Oa={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Sa={description:"One spot-to-spot move. No player identity \u2014 the occupant of `from` at apply time is relocated.\n",properties:{from:{$ref:"#/components/schemas/SpotRef"},to:{$ref:"#/components/schemas/SpotRef"}},required:["from","to"],type:"object"},Ea={description:`Spot within a team. The layout derives from the match format:
|
|
88
90
|
SINGLES matches have one SINGLE spot per team, DOUBLES matches have
|
|
89
91
|
LEFT + RIGHT (court side).
|
|
90
|
-
`,enum:["SINGLE","LEFT","RIGHT"],type:"string"},Sa={properties:{position:{$ref:"#/components/schemas/SpotPosition"},team_id:{format:"uuid",type:"string"}},required:["team_id","position"],type:"object"},Ea={enum:["FACILITY_MESSAGE"],type:"string"},Ca={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Da={properties:{level:{type:"string"}},required:["level"],type:"object"},xa={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"},Ta={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},Ia={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"},Ua={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"},va={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ka={enum:["HIDDEN","VISIBLE"],type:"string"},_a={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"},Aa={properties:{message:{description:"The error message",type:"string"}},type:"object"},Na={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Ga={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"},Ma={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"},wa={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 de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Le=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Be=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ve=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/teams"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/matches/{matchId}/teams"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},pt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},lt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},yt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ht=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},gt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Pt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Rt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Jr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Xr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Zr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},eo={FRIENDLY:"FRIENDLY",COMPETITIVE:"COMPETITIVE"},to={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},ro={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},oo={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},io={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},so={FACILITY:"FACILITY"},ao={SINGLE:"SINGLE",LEFT:"LEFT",RIGHT:"RIGHT"},no={FACILITY_MESSAGE:"FACILITY_MESSAGE"},po={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},co={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},lo={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var Ot={};X(Ot,{acceptInvitationMutation:()=>$a,addUserSportProfileLevelMutation:()=>Bn,createCommentMutation:()=>en,createFacilityOfferOrderMutation:()=>dn,createMatchParticipationMutation:()=>bn,createPostMutation:()=>Qa,createUserSportProfileMutation:()=>Fn,deleteCommentMutation:()=>tn,deleteCommentReactionMutation:()=>on,deleteMatchParticipationMutation:()=>Pn,deletePostMutation:()=>Ya,deletePostReactionMutation:()=>an,deleteUserSportProfileLevelMutation:()=>Kn,deleteUserSportProfileMutation:()=>jn,getCommunityOptions:()=>Fa,getCommunityQueryKey:()=>yo,getFacilityOptions:()=>ln,getFacilityQueryKey:()=>Co,getMatchOptions:()=>gn,getMatchQueryKey:()=>vo,getMatchTeamsOptions:()=>On,getMatchTeamsQueryKey:()=>_o,getMatchUserPriceOptions:()=>Rn,getMatchUserPriceQueryKey:()=>ko,getNotificationByIdOptions:()=>In,getNotificationByIdQueryKey:()=>Mo,getNotificationsInfiniteOptions:()=>Cn,getNotificationsInfiniteQueryKey:()=>No,getNotificationsOptions:()=>En,getNotificationsPreferencesOptions:()=>xn,getNotificationsPreferencesQueryKey:()=>Go,getNotificationsQueryKey:()=>Ao,getPostOptions:()=>Wa,getPostQueryKey:()=>Po,getRecommendationsInfiniteOptions:()=>Ln,getRecommendationsInfiniteQueryKey:()=>Bo,getRecommendationsOptions:()=>wn,getRecommendationsQueryKey:()=>zo,getResourceOptions:()=>vn,getResourceQueryKey:()=>wo,getSportAuthoritiesOptions:()=>kn,getSportAuthoritiesQueryKey:()=>Lo,getUserFacilityPermissionsOptions:()=>Gn,getUserFacilityPermissionsQueryKey:()=>jo,getUserSportProfileOptions:()=>zn,getUserSportProfileQueryKey:()=>$o,getUserSportProfilesOptions:()=>qn,getUserSportProfilesQueryKey:()=>Ko,joinCommunityMutation:()=>Ba,leaveCommunityMutation:()=>Ka,listCommentsInfiniteOptions:()=>Za,listCommentsInfiniteQueryKey:()=>Oo,listCommentsOptions:()=>Xa,listCommentsQueryKey:()=>Ro,listCommunitiesInfiniteOptions:()=>qa,listCommunitiesInfiniteQueryKey:()=>mo,listCommunitiesOptions:()=>La,listCommunitiesQueryKey:()=>uo,listFacilitiesInfiniteOptions:()=>cn,listFacilitiesInfiniteQueryKey:()=>Eo,listFacilitiesOptions:()=>pn,listFacilitiesQueryKey:()=>So,listFacilityOffersInfiniteOptions:()=>mn,listFacilityOffersInfiniteQueryKey:()=>xo,listFacilityOffersOptions:()=>un,listFacilityOffersQueryKey:()=>Do,listFacilityResourcesOptions:()=>yn,listFacilityResourcesQueryKey:()=>To,listMatchesInfiniteOptions:()=>hn,listMatchesInfiniteQueryKey:()=>Uo,listMatchesOptions:()=>fn,listMatchesQueryKey:()=>Io,listMembersInfiniteOptions:()=>za,listMembersInfiniteQueryKey:()=>ho,listMembersOptions:()=>ja,listMembersQueryKey:()=>fo,listPostsInfiniteOptions:()=>Va,listPostsInfiniteQueryKey:()=>bo,listPostsOptions:()=>Ha,listPostsQueryKey:()=>go,markCommentReadMutation:()=>rn,markPostReadMutation:()=>Ja,rearrangeMatchTeamsMutation:()=>Sn,registerDeviceMutation:()=>Nn,searchUsersInfiniteOptions:()=>An,searchUsersInfiniteQueryKey:()=>Fo,searchUsersOptions:()=>_n,searchUsersQueryKey:()=>qo,updateAllNotificationsMutation:()=>Dn,updateNotificationMutation:()=>Un,updateNotificationsPreferencesMutation:()=>Tn,updateUserProfileMutation:()=>Mn,updateUserSportProfileLevelMutation:()=>$n,upsertCommentReactionMutation:()=>sn,upsertPostReactionMutation:()=>nn});var E=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},uo=t=>E("listCommunities",t),La=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield de(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:uo(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},mo=t=>E("listCommunities",t,!0),qa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield de(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:mo(t)}),yo=t=>E("getCommunity",t),Fa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ne(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),fo=t=>E("listMembers",t),ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:fo(t)}),ho=t=>E("listMembers",t,!0),za=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield ye(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:ho(t)}),Ba=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ka=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(d(i(i({},t),r),{throwOnError:!0}));return o})}),$a=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(d(i(i({},t),r),{throwOnError:!0}));return o})}),go=t=>E("listPosts",t),Ha=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:go(t)}),bo=t=>E("listPosts",t,!0),Va=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield fe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:bo(t)}),Qa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ya=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),Po=t=>E("getPost",t),Wa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ja=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ro=t=>E("listComments",t),Xa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ro(t)}),Oo=t=>E("listComments",t,!0),Za=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield he(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Oo(t)}),en=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),tn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(d(i(i({},t),r),{throwOnError:!0}));return o})}),rn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(d(i(i({},t),r),{throwOnError:!0}));return o})}),on=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(d(i(i({},t),r),{throwOnError:!0}));return o})}),sn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(d(i(i({},t),r),{throwOnError:!0}));return o})}),an=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ve(d(i(i({},t),r),{throwOnError:!0}));return o})}),nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),So=t=>E("ListFacilities",t),pn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>E("ListFacilities",t,!0),cn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield ge(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Eo(t)}),Co=t=>E("GetFacility",t),ln=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),Do=t=>E("ListFacilityOffers",t),un=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Do(t)}),xo=t=>E("ListFacilityOffers",t,!0),mn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield be(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:xo(t)}),dn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield We(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>E("ListFacilityResources",t),yn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Je(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),Io=t=>E("ListMatches",t),fn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Io(t)}),Uo=t=>E("ListMatches",t,!0),hn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Pe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Uo(t)}),vo=t=>E("GetMatch",t),gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Xe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Pn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(d(i(i({},t),r),{throwOnError:!0}));return o})}),ko=t=>E("GetMatchUserPrice",t),Rn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ko(t)}),_o=t=>E("GetMatchTeams",t),On=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield rt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),Sn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ot(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ao=t=>E("GetNotifications",t),En=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),No=t=>E("GetNotifications",t,!0),Cn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield Re(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:No(t)}),Dn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(d(i(i({},t),r),{throwOnError:!0}));return o})}),Go=t=>E("GetNotificationsPreferences",t),xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield st(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Go(t)}),Tn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>E("GetNotificationById",t),In=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield nt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),wo=t=>E("GetResource",t),vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ct(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),Lo=t=>E("getSportAuthorities",t),kn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield lt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Lo(t)}),qo=t=>E("searchUsers",t),_n=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:qo(t)}),Fo=t=>E("searchUsers",t,!0),An=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Oe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Fo(t)}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),jo=t=>E("getUserFacilityPermissions",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jo(t)}),Mn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),zo=t=>E("GetRecommendations",t),wn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zo(t)}),Bo=t=>E("GetRecommendations",t,!0),Ln=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Se(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Bo(t)}),Ko=t=>E("getUserSportProfiles",t),qn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield yt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ko(t)}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(d(i(i({},t),r),{throwOnError:!0}));return o})}),jn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(d(i(i({},t),r),{throwOnError:!0}));return o})}),$o=t=>E("getUserSportProfile",t),zn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield gt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$o(t)}),Bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(d(i(i({},t),r),{throwOnError:!0}));return o})});var Er={};X(Er,{NotificationResourceIcon:()=>Zo,NotificationSource:()=>ei,NotificationType:()=>ti,Topic:()=>ri,TopicSource:()=>oi,client:()=>N,getNotificationById:()=>Ut,getNotifications:()=>De,getNotificationsPreferences:()=>Tt,queries:()=>At,registerDevice:()=>kt,schemas:()=>Dt,updateAllNotifications:()=>xt,updateNotification:()=>vt,updateNotificationsPreferences:()=>It});var br={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Hn={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Au=Object.entries(Hn);var Ho=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(T=>setTimeout(T,U)));return{stream:function(){return Te(this,null,function*(){var v,M,P;let U=l!=null?l:3e3,T=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){T++;let C=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&C.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:C,signal:k}),$=new Request(f,S);t&&($=yield new A(t(f,S)));let Nt=(M=u.fetch)!=null?M:globalThis.fetch,w=yield new A(Nt($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),L="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Gt}=yield new A(Y.read());if(ie)break;L+=Gt,L=L.replace(/\r\n/g,`
|
|
92
|
+
`,enum:["SINGLE","LEFT","RIGHT"],type:"string"},Ca={properties:{position:{$ref:"#/components/schemas/SpotPosition"},team_id:{format:"uuid",type:"string"}},required:["team_id","position"],type:"object"},Da={enum:["FACILITY_MESSAGE"],type:"string"},xa={description:`Partial update of a match's player-editable fields. Currently carries only the classification; future player-editable fields extend this object as optional properties.
|
|
93
|
+
`,properties:{match_type:{$ref:"#/components/schemas/MatchType"}},required:["match_type"],type:"object"},Ta={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Ia={properties:{level:{type:"string"}},required:["level"],type:"object"},Ua={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"},va={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ka={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"},_a={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"},Na={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Aa={enum:["HIDDEN","VISIBLE"],type:"string"},Ma={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"},Ga={properties:{message:{description:"The error message",type:"string"}},type:"object"},wa={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},La={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"},qa={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"},Fa={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 de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Le=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Be=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ve=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/matches/{matchId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},tt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/teams"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/matches/{matchId}/teams"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},st=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},at=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},pt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},ut=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},dt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},yt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Rt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Zr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},eo={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},to={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},ro={FRIENDLY:"FRIENDLY",COMPETITIVE:"COMPETITIVE"},oo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},io={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},so={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},ao={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},no={FACILITY:"FACILITY"},po={SINGLE:"SINGLE",LEFT:"LEFT",RIGHT:"RIGHT"},co={FACILITY_MESSAGE:"FACILITY_MESSAGE"},lo={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},uo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},mo={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var St={};X(St,{acceptInvitationMutation:()=>Qa,addUserSportProfileLevelMutation:()=>Vn,createCommentMutation:()=>on,createFacilityOfferOrderMutation:()=>hn,createMatchParticipationMutation:()=>Sn,createPostMutation:()=>Ja,createUserSportProfileMutation:()=>Kn,deleteCommentMutation:()=>sn,deleteCommentReactionMutation:()=>nn,deleteMatchParticipationMutation:()=>En,deletePostMutation:()=>Xa,deletePostReactionMutation:()=>cn,deleteUserSportProfileLevelMutation:()=>Qn,deleteUserSportProfileMutation:()=>$n,getCommunityOptions:()=>Ba,getCommunityQueryKey:()=>ho,getFacilityOptions:()=>dn,getFacilityQueryKey:()=>xo,getMatchOptions:()=>Rn,getMatchQueryKey:()=>_o,getMatchTeamsOptions:()=>Dn,getMatchTeamsQueryKey:()=>Ao,getMatchUserPriceOptions:()=>Cn,getMatchUserPriceQueryKey:()=>No,getNotificationByIdOptions:()=>_n,getNotificationByIdQueryKey:()=>Lo,getNotificationsInfiniteOptions:()=>In,getNotificationsInfiniteQueryKey:()=>Go,getNotificationsOptions:()=>Tn,getNotificationsPreferencesOptions:()=>vn,getNotificationsPreferencesQueryKey:()=>wo,getNotificationsQueryKey:()=>Mo,getPostOptions:()=>Za,getPostQueryKey:()=>Oo,getRecommendationsInfiniteOptions:()=>zn,getRecommendationsInfiniteQueryKey:()=>$o,getRecommendationsOptions:()=>jn,getRecommendationsQueryKey:()=>Ko,getResourceOptions:()=>An,getResourceQueryKey:()=>qo,getSportAuthoritiesOptions:()=>Mn,getSportAuthoritiesQueryKey:()=>Fo,getUserFacilityPermissionsOptions:()=>qn,getUserFacilityPermissionsQueryKey:()=>Bo,getUserSportProfileOptions:()=>Hn,getUserSportProfileQueryKey:()=>Vo,getUserSportProfilesOptions:()=>Bn,getUserSportProfilesQueryKey:()=>Ho,joinCommunityMutation:()=>Ha,leaveCommunityMutation:()=>Va,listCommentsInfiniteOptions:()=>rn,listCommentsInfiniteQueryKey:()=>Eo,listCommentsOptions:()=>tn,listCommentsQueryKey:()=>So,listCommunitiesInfiniteOptions:()=>za,listCommunitiesInfiniteQueryKey:()=>fo,listCommunitiesOptions:()=>ja,listCommunitiesQueryKey:()=>yo,listFacilitiesInfiniteOptions:()=>mn,listFacilitiesInfiniteQueryKey:()=>Do,listFacilitiesOptions:()=>un,listFacilitiesQueryKey:()=>Co,listFacilityOffersInfiniteOptions:()=>fn,listFacilityOffersInfiniteQueryKey:()=>Io,listFacilityOffersOptions:()=>yn,listFacilityOffersQueryKey:()=>To,listFacilityResourcesOptions:()=>gn,listFacilityResourcesQueryKey:()=>Uo,listMatchesInfiniteOptions:()=>Pn,listMatchesInfiniteQueryKey:()=>ko,listMatchesOptions:()=>bn,listMatchesQueryKey:()=>vo,listMembersInfiniteOptions:()=>$a,listMembersInfiniteQueryKey:()=>bo,listMembersOptions:()=>Ka,listMembersQueryKey:()=>go,listPostsInfiniteOptions:()=>Wa,listPostsInfiniteQueryKey:()=>Ro,listPostsOptions:()=>Ya,listPostsQueryKey:()=>Po,markCommentReadMutation:()=>an,markPostReadMutation:()=>en,rearrangeMatchTeamsMutation:()=>xn,registerDeviceMutation:()=>Ln,searchUsersInfiniteOptions:()=>wn,searchUsersInfiniteQueryKey:()=>zo,searchUsersOptions:()=>Gn,searchUsersQueryKey:()=>jo,updateAllNotificationsMutation:()=>Un,updateMatchMutation:()=>On,updateNotificationMutation:()=>Nn,updateNotificationsPreferencesMutation:()=>kn,updateUserProfileMutation:()=>Fn,updateUserSportProfileLevelMutation:()=>Yn,upsertCommentReactionMutation:()=>pn,upsertPostReactionMutation:()=>ln});var E=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},yo=t=>E("listCommunities",t),ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield de(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},fo=t=>E("listCommunities",t,!0),za=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield de(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:fo(t)}),ho=t=>E("getCommunity",t),Ba=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ho(t)}),go=t=>E("listMembers",t),Ka=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:go(t)}),bo=t=>E("listMembers",t,!0),$a=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield ye(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:bo(t)}),Ha=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(m(i(i({},t),r),{throwOnError:!0}));return o})}),Va=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(m(i(i({},t),r),{throwOnError:!0}));return o})}),Qa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(m(i(i({},t),r),{throwOnError:!0}));return o})}),Po=t=>E("listPosts",t),Ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ro=t=>E("listPosts",t,!0),Wa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield fe(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Ro(t)}),Ja=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(m(i(i({},t),r),{throwOnError:!0}));return o})}),Xa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Oo=t=>E("getPost",t),Za=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Fe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Oo(t)}),en=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(m(i(i({},t),r),{throwOnError:!0}));return o})}),So=t=>E("listComments",t),tn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>E("listComments",t,!0),rn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield he(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Eo(t)}),on=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),sn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(m(i(i({},t),r),{throwOnError:!0}));return o})}),an=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(m(i(i({},t),r),{throwOnError:!0}));return o})}),pn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),cn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ve(m(i(i({},t),r),{throwOnError:!0}));return o})}),ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Co=t=>E("ListFacilities",t),un=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),Do=t=>E("ListFacilities",t,!0),mn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield ge(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Do(t)}),xo=t=>E("GetFacility",t),dn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ye(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),To=t=>E("ListFacilityOffers",t),yn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),Io=t=>E("ListFacilityOffers",t,!0),fn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield be(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Io(t)}),hn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield We(m(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>E("ListFacilityResources",t),gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Je(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Uo(t)}),vo=t=>E("ListMatches",t),bn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),ko=t=>E("ListMatches",t,!0),Pn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Pe(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:ko(t)}),_o=t=>E("GetMatch",t),Rn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Xe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),On=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),Sn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(m(i(i({},t),r),{throwOnError:!0}));return o})}),En=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),No=t=>E("GetMatchUserPrice",t),Cn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield rt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:No(t)}),Ao=t=>E("GetMatchTeams",t),Dn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),xn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(m(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>E("GetNotifications",t),Tn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Go=t=>E("GetNotifications",t,!0),In=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield Re(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Go(t)}),Un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield st(m(i(i({},t),r),{throwOnError:!0}));return o})}),wo=t=>E("GetNotificationsPreferences",t),vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Lo=t=>E("GetNotificationById",t),_n=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Lo(t)}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(m(i(i({},t),r),{throwOnError:!0}));return o})}),qo=t=>E("GetResource",t),An=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield lt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:qo(t)}),Fo=t=>E("getSportAuthorities",t),Mn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ut(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fo(t)}),jo=t=>E("searchUsers",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jo(t)}),zo=t=>E("searchUsers",t,!0),wn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Oe(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:zo(t)}),Ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield mt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Bo=t=>E("getUserFacilityPermissions",t),qn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield dt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Bo(t)}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ko=t=>E("GetRecommendations",t),jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ko(t)}),$o=t=>E("GetRecommendations",t,!0),zn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=yield Se(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:$o(t)}),Ho=t=>E("getUserSportProfiles",t),Bn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ft(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ho(t)}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(m(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vo=t=>E("getUserSportProfile",t),Hn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield bt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vo(t)}),Vn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Qn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ot(m(i(i({},t),r),{throwOnError:!0}));return o})});var Cr={};X(Cr,{NotificationResourceIcon:()=>ti,NotificationSource:()=>ri,NotificationType:()=>oi,Topic:()=>ii,TopicSource:()=>si,client:()=>A,getNotificationById:()=>vt,getNotifications:()=>De,getNotificationsPreferences:()=>It,queries:()=>At,registerDevice:()=>_t,schemas:()=>xt,updateAllNotifications:()=>Tt,updateNotification:()=>kt,updateNotificationsPreferences:()=>Ut});var Pr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Wn={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},qu=Object.entries(Wn);var Qo=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:d,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,M=d!=null?d:(U=>new Promise(T=>setTimeout(T,U)));return{stream:function(){return Te(this,null,function*(){var v,G,P;let U=l!=null?l:3e3,T=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){T++;let C=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&C.set("Last-Event-ID",g);try{let S=m(i({redirect:"follow"},u),{body:u.serializedBody,headers:C,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let Mt=(G=u.fetch)!=null?G:globalThis.fetch,w=yield new N(Mt($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),L="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Gt}=yield new N(Y.read());if(ie)break;L+=Gt,L=L.replace(/\r\n/g,`
|
|
91
94
|
`).replace(/\r/g,`
|
|
92
95
|
`);let se=L.split(`
|
|
93
96
|
|
|
94
|
-
`);L=(P=se.pop())!=null?P:"";for(let
|
|
95
|
-
`),H=[],ae;for(let x of
|
|
96
|
-
`);try{_=JSON.parse(x),ne=!0}catch(W){_=x}}ne&&(s&&(yield new A(s(_))),o&&(_=yield new A(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),H.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&T>=n)break;let $=Math.min(U*2**(T-1),a!=null?a:3e4);yield new A(G($))}}})}()}};var Vn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qn=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Yn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},St=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(m=>encodeURIComponent(m))).join(Qn(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let l=Vn(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):re({allowReserved:t,name:r,value:a})).join(l);return o==="label"||o==="matrix"?l+n:n},re=({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)}`},Et=({allowReserved:t,explode:e,name:r,style:o,value:s,valueOnly:l})=>{if(s instanceof Date)return l?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let m=[];Object.entries(s).forEach(([u,O])=>{m=[...m,u,t?O:encodeURIComponent(O)]});let f=m.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=Yn(o),a=Object.entries(s).map(([m,f])=>re({allowReserved:t,name:o==="deepObject"?`${r}[${m}]`:m,value:f})).join(n);return o==="label"||o==="matrix"?n+a:a};var Wn=/\{[^{}]+\}/g,Jn=({path:t,url:e})=>{let r=e,o=e.match(Wn);if(o)for(let s of o){let l=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),a="label"):n.startsWith(";")&&(n=n.substring(1),a="matrix");let m=t[n];if(m==null)continue;if(Array.isArray(m)){r=r.replace(s,St({explode:l,name:n,style:a,value:m}));continue}if(typeof m=="object"){r=r.replace(s,Et({explode:l,name:n,style:a,value:m,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(s,`;${re({name:n,value:m})}`);continue}let f=encodeURIComponent(a==="label"?`.${m}`:m);r=r.replace(s,f)}return r},Vo=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=Jn({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function Pr(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 Qo=(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 Yo=(r={})=>{var o=r,{parameters:t={}}=o,e=j(o,["parameters"]);return l=>{let n=[];if(l&&typeof l=="object")for(let a in l){let m=l[a];if(m==null)continue;let f=t[a]||e;if(Array.isArray(m)){let u=St(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"form",value:m},f.array));u&&n.push(u)}else if(typeof m=="object"){let u=Et(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"deepObject",value:m},f.object));u&&n.push(u)}else{let u=re({allowReserved:f.allowReserved,name:a,value:m});u&&n.push(u)}}return n.join("&")}},Wo=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"}},Xn=(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},Jo=r=>y(null,null,function*(){var o=r,{security:t}=o,e=j(o,["security"]);var s;for(let l of t){if(Xn(e,l.name))continue;let n=yield Qo(l,e.auth);if(!n)continue;let a=(s=l.name)!=null?s:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[a]=n;break;case"cookie":e.headers.append("Cookie",`${a}=${n}`);break;default:e.headers.set(a,n);break}}}),Rr=t=>Vo({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Yo(t.querySerializer),url:t.url}),Or=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Ct(t.headers,e.headers),r},Zn=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},Ct=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Zn(r):Object.entries(r);for(let[s,l]of o)if(l===null)e.delete(s);else if(Array.isArray(l))for(let n of l)e.append(s,n);else l!==void 0&&e.set(s,typeof l=="object"?JSON.stringify(l):l)}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}},Xo=()=>({error:new Ee,request:new Ee,response:new Ee}),ep=Yo({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),tp={"Content-Type":"application/json"},Ce=(t={})=>i(d(i({},br),{headers:tp,parseAs:"auto",querySerializer:ep}),t);var Sr=(t={})=>{let e=Or(Ce(),t),r=()=>i({},e),o=f=>(e=Or(e,f),r()),s=Xo(),l=f=>y(null,null,function*(){var R,g;let u=d(i(i({},e),f),{fetch:(g=(R=f.fetch)!=null?R:e.fetch)!=null?g:globalThis.fetch,headers:Ct(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Jo(d(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=Rr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var M;let{opts:u,url:O}=yield l(f),R=d(i({redirect:"follow"},u),{body:Pr(u)}),g=new Request(O,R);for(let P of s.request.fns)P&&(g=yield P(g,u));let G=u.fetch,b;try{b=yield G(g)}catch(P){let C=P;for(let S of s.error.fns)S&&(C=yield S(P,void 0,g,u));if(C=C||{},u.throwOnError)throw C;return u.responseStyle==="data"?void 0:{error:C,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let I={request:g,response:b};if(b.ok){let P=(M=u.parseAs==="auto"?Wo(b.headers.get("Content-Type")):u.parseAs)!=null?M:"json";if(b.status===204||b.headers.get("Content-Length")==="0"){let S;switch(P){case"arrayBuffer":case"blob":case"text":S=yield b[P]();break;case"formData":S=new FormData;break;case"stream":S=b.body;break;default:S={};break}return u.responseStyle==="data"?S:i({data:S},I)}let C;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":C=yield b[P]();break;case"json":{let S=yield b.text();C=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},I)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(C)),u.responseTransformer&&(C=yield u.responseTransformer(C))),u.responseStyle==="data"?C:i({data:C},I)}let U=yield b.text(),T;try{T=JSON.parse(U)}catch(P){}let k=T!=null?T:U,v=k;for(let P of s.error.fns)P&&(v=yield P(k,b,g,u));if(v=v||{},u.throwOnError)throw v;return u.responseStyle==="data"?void 0:i({error:v},I)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:O,url:R}=yield l(u);return Ho(d(i({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let I of s.request.fns)I&&(b=yield I(b,O));return b}),serializedBody:Pr(O),url:R}))});return{buildUrl:Rr,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:s,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:n,setConfig:o,sse:{connect:m("CONNECT"),delete:m("DELETE"),get:m("GET"),head:m("HEAD"),options:m("OPTIONS"),patch:m("PATCH"),post:m("POST"),put:m("PUT"),trace:m("TRACE")},trace:a("TRACE")}};var N=Sr(Ce({baseUrl:"https://api.matchi.com/v2"}));var Dt={};X(Dt,{ChannelsSchema:()=>rp,CommunityInvitationPayloadSchema:()=>op,FacilityMessagePayloadSchema:()=>ip,LocalizationSchema:()=>sp,MetadataSchema:()=>ap,NotificationPayloadSchema:()=>pp,NotificationRequestBodySchema:()=>cp,NotificationResourceIconSchema:()=>lp,NotificationSchema:()=>np,NotificationSourceSchema:()=>up,NotificationTypeSchema:()=>mp,NotificationsPaginatedResponseSchema:()=>dp,NotificationsSummarySchema:()=>yp,PreferenceSchema:()=>fp,PreferencesResponseSchema:()=>hp,RegisterDeviceRequestSchema:()=>gp,SimpleNotificationPayloadSchema:()=>bp,TopicSchema:()=>Pp,TopicSourceSchema:()=>Rp,UpdatePreferencesRequestBodySchema:()=>Op,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Sp,pkgOpenapiSharedErrorSchema:()=>Ep,pkgOpenapiSharedErrorsSchema:()=>Cp,pkgOpenapiSharedProblemDetailsSchema:()=>Dp});var rp={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},op={additionalProperties:!1,properties:{community_id:{format:"uuid",type:"string"},description:{type:"string"},title:{type:"string"}},required:["title","description","community_id"],type:"object"},ip={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},sp={additionalProperties:!1,properties:{description:{type:"string"},language:{description:'Language code of this translation, e.g. "sv", "no", "da".',example:"sv",type:"string"},title:{type:"string"}},required:["language","title","description"],type:"object"},ap={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},np={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/NotificationSource"},source_id:{type:"string"},type:{$ref:"#/components/schemas/NotificationType"}},required:["id","type","source","source_id","created_at","payload"],type:"object"},pp={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityInvitationPayload"},{$ref:"#/components/schemas/SimpleNotificationPayload"}]},cp={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},lp={enum:["USER","FACILITY"],type:"string"},up={enum:["FACILITY","COMMUNITY"],type:"string"},mp={enum:["USER_FACILITY_MESSAGE","USER_COMMUNITY_INVITATION","USER_SIMPLE_NOTIFICATION"],type:"string"},dp={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},yp={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"},fp={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/TopicSource"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},hp={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},gp={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"},bp={additionalProperties:!1,properties:{description:{type:"string"},link:{type:"string"},localizations:{description:"Per-language overrides of the notification title and description. The top-level title and description hold the English source values; omitted when no translations are available.",items:{$ref:"#/components/schemas/Localization"},type:"array"},resource_icon:{$ref:"#/components/schemas/NotificationResourceIcon"},resource_icon_id:{type:"string"},title:{type:"string"}},required:["title","description","link"],type:"object"},Pp={description:"All the different notifications a user can receive",enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Rp={enum:["FACILITY","COMMUNITY"],type:"string"},Op={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Sp={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"},Ep={properties:{message:{description:"The error message",type:"string"}},type:"object"},Cp={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Dp={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 De=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:N).get(i({url:"/notifications"},t))},xt=t=>{var e;return((e=t.client)!=null?e:N).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Tt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:N).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},It=t=>{var e;return((e=t.client)!=null?e:N).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ut=t=>{var e;return((e=t.client)!=null?e:N).get(i({url:"/notifications/{id}"},t))},vt=t=>{var e;return((e=t.client)!=null?e:N).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},kt=t=>{var e;return((e=t.client)!=null?e:N).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Zo={USER:"USER",FACILITY:"FACILITY"},ei={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},ti={USER_FACILITY_MESSAGE:"USER_FACILITY_MESSAGE",USER_COMMUNITY_INVITATION:"USER_COMMUNITY_INVITATION",USER_SIMPLE_NOTIFICATION:"USER_SIMPLE_NOTIFICATION"},ri={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"},oi={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"};var At={};X(At,{getNotificationByIdOptions:()=>_p,getNotificationByIdQueryKey:()=>ni,getNotificationsInfiniteOptions:()=>Ip,getNotificationsInfiniteQueryKey:()=>si,getNotificationsOptions:()=>xp,getNotificationsPreferencesOptions:()=>vp,getNotificationsPreferencesQueryKey:()=>ai,getNotificationsQueryKey:()=>ii,registerDeviceMutation:()=>Np,updateAllNotificationsMutation:()=>Up,updateNotificationMutation:()=>Ap,updateNotificationsPreferencesMutation:()=>kp});var _t=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:N).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},ii=t=>_t("GetNotifications",t),xp=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield De(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ii(t)}),Tp=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},si=t=>_t("GetNotifications",t,!0),Ip=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=Tp(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield De(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:si(t)}),Up=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xt(d(i(i({},t),r),{throwOnError:!0}));return o})}),ai=t=>_t("GetNotificationsPreferences",t),vp=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ai(t)}),kp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield It(d(i(i({},t),r),{throwOnError:!0}));return o})}),ni=t=>_t("GetNotificationById",t),_p=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ut(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ni(t)}),Ap=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield vt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Np=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield kt(d(i(i({},t),r),{throwOnError:!0}));return o})});export{er as ActivityServiceV1Service,tr as AnonymousService,rr as ApiClientServiceV1Service,Z as ApiError,or as AuthorizedService,ir as BookingServiceV1Service,Ie as CancelError,pe as CancelablePromise,sr as CheckoutServiceV1Service,ar as CompetitionServiceV1Service,nr as CorsService,pr as LoyaltyServiceV1Service,cr as MembershipServiceV1Service,p as OpenAPI,lr as PlaySessionServiceV1Service,ur as UserServiceV1Service,vr as bookingRestriction,kr as bookingSubType,Lt as bookingSubscription,_r as bookingUserStatus,qt as cancellationPolicy,Ft as chat,jt as chatCreation,Ar as chatTarget,Nr as clientType,Gr as directionParam,Mr as months,zt as notificationChatGroup,Bt as notificationEntity,Kt as pendingPayment,Vt as playSessionSettings,Qt as playSessionUser,$t as playerRefundInfo,wr as playerStatusParam,Ht as playingUserResponse,Lr as spotPosition,qr as teamSide,Fr as userChatStatusParam,jr as userChatTargetParam,Yt as userPunchCard,Wt as userRelation,zr as userRelationStatusParam,gr as v1,Er as v2};
|
|
97
|
+
`);L=(P=se.pop())!=null?P:"";for(let wt of se){let Lt=wt.split(`
|
|
98
|
+
`),H=[],ae;for(let x of Lt)if(x.startsWith("data:"))H.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))ae=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))g=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let W=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(W)||(U=W)}let _,ne=!1;if(H.length){let x=H.join(`
|
|
99
|
+
`);try{_=JSON.parse(x),ne=!0}catch(W){_=x}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),H.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&T>=n)break;let $=Math.min(U*2**(T-1),a!=null?a:3e4);yield new N(M($))}}})}()}};var Jn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Xn=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Zn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Et=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(d=>encodeURIComponent(d))).join(Xn(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let l=Jn(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):re({allowReserved:t,name:r,value:a})).join(l);return o==="label"||o==="matrix"?l+n:n},re=({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)}`},Ct=({allowReserved:t,explode:e,name:r,style:o,value:s,valueOnly:l})=>{if(s instanceof Date)return l?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(s).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(o){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=Zn(o),a=Object.entries(s).map(([d,f])=>re({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return o==="label"||o==="matrix"?n+a:a};var ep=/\{[^{}]+\}/g,tp=({path:t,url:e})=>{let r=e,o=e.match(ep);if(o)for(let s of o){let l=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),a="label"):n.startsWith(";")&&(n=n.substring(1),a="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(s,Et({explode:l,name:n,style:a,value:d}));continue}if(typeof d=="object"){r=r.replace(s,Ct({explode:l,name:n,style:a,value:d,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(s,`;${re({name:n,value:d})}`);continue}let f=encodeURIComponent(a==="label"?`.${d}`:d);r=r.replace(s,f)}return r},Yo=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=tp({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function Rr(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 Wo=(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 Jo=(r={})=>{var o=r,{parameters:t={}}=o,e=j(o,["parameters"]);return l=>{let n=[];if(l&&typeof l=="object")for(let a in l){let d=l[a];if(d==null)continue;let f=t[a]||e;if(Array.isArray(d)){let u=Et(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=Ct(i({allowReserved:f.allowReserved,explode:!0,name:a,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=re({allowReserved:f.allowReserved,name:a,value:d});u&&n.push(u)}}return n.join("&")}},Xo=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"}},rp=(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},Zo=r=>y(null,null,function*(){var o=r,{security:t}=o,e=j(o,["security"]);var s;for(let l of t){if(rp(e,l.name))continue;let n=yield Wo(l,e.auth);if(!n)continue;let a=(s=l.name)!=null?s:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[a]=n;break;case"cookie":e.headers.append("Cookie",`${a}=${n}`);break;default:e.headers.set(a,n);break}}}),Or=t=>Yo({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Jo(t.querySerializer),url:t.url}),Sr=(t,e)=>{var o;let r=i(i({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Dt(t.headers,e.headers),r},op=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},Dt=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?op(r):Object.entries(r);for(let[s,l]of o)if(l===null)e.delete(s);else if(Array.isArray(l))for(let n of l)e.append(s,n);else l!==void 0&&e.set(s,typeof l=="object"?JSON.stringify(l):l)}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}},ei=()=>({error:new Ee,request:new Ee,response:new Ee}),ip=Jo({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),sp={"Content-Type":"application/json"},Ce=(t={})=>i(m(i({},Pr),{headers:sp,parseAs:"auto",querySerializer:ip}),t);var Er=(t={})=>{let e=Sr(Ce(),t),r=()=>i({},e),o=f=>(e=Sr(e,f),r()),s=ei(),l=f=>y(null,null,function*(){var R,g;let u=m(i(i({},e),f),{fetch:(g=(R=f.fetch)!=null?R:e.fetch)!=null?g:globalThis.fetch,headers:Dt(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Zo(m(i({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=Or(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var G;let{opts:u,url:O}=yield l(f),R=m(i({redirect:"follow"},u),{body:Rr(u)}),g=new Request(O,R);for(let P of s.request.fns)P&&(g=yield P(g,u));let M=u.fetch,b;try{b=yield M(g)}catch(P){let C=P;for(let S of s.error.fns)S&&(C=yield S(P,void 0,g,u));if(C=C||{},u.throwOnError)throw C;return u.responseStyle==="data"?void 0:{error:C,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let I={request:g,response:b};if(b.ok){let P=(G=u.parseAs==="auto"?Xo(b.headers.get("Content-Type")):u.parseAs)!=null?G:"json";if(b.status===204||b.headers.get("Content-Length")==="0"){let S;switch(P){case"arrayBuffer":case"blob":case"text":S=yield b[P]();break;case"formData":S=new FormData;break;case"stream":S=b.body;break;default:S={};break}return u.responseStyle==="data"?S:i({data:S},I)}let C;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":C=yield b[P]();break;case"json":{let S=yield b.text();C=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},I)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(C)),u.responseTransformer&&(C=yield u.responseTransformer(C))),u.responseStyle==="data"?C:i({data:C},I)}let U=yield b.text(),T;try{T=JSON.parse(U)}catch(P){}let k=T!=null?T:U,v=k;for(let P of s.error.fns)P&&(v=yield P(k,b,g,u));if(v=v||{},u.throwOnError)throw v;return u.responseStyle==="data"?void 0:i({error:v},I)}),a=f=>u=>n(m(i({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:R}=yield l(u);return Qo(m(i({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,M)=>y(null,null,function*(){let b=new Request(g,M);for(let I of s.request.fns)I&&(b=yield I(b,O));return b}),serializedBody:Rr(O),url:R}))});return{buildUrl:Or,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:s,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:n,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:a("TRACE")}};var A=Er(Ce({baseUrl:"https://api.matchi.com/v2"}));var xt={};X(xt,{ChannelsSchema:()=>ap,CommunityInvitationPayloadSchema:()=>np,FacilityMessagePayloadSchema:()=>pp,LocalizationSchema:()=>cp,MetadataSchema:()=>lp,NotificationPayloadSchema:()=>mp,NotificationRequestBodySchema:()=>dp,NotificationResourceIconSchema:()=>yp,NotificationSchema:()=>up,NotificationSourceSchema:()=>fp,NotificationTypeSchema:()=>hp,NotificationsPaginatedResponseSchema:()=>gp,NotificationsSummarySchema:()=>bp,PreferenceSchema:()=>Pp,PreferencesResponseSchema:()=>Rp,RegisterDeviceRequestSchema:()=>Op,SimpleNotificationPayloadSchema:()=>Sp,TopicSchema:()=>Ep,TopicSourceSchema:()=>Cp,UpdatePreferencesRequestBodySchema:()=>Dp,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>xp,pkgOpenapiSharedErrorSchema:()=>Tp,pkgOpenapiSharedErrorsSchema:()=>Ip,pkgOpenapiSharedProblemDetailsSchema:()=>Up});var ap={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},np={additionalProperties:!1,properties:{community_id:{format:"uuid",type:"string"},description:{type:"string"},title:{type:"string"}},required:["title","description","community_id"],type:"object"},pp={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},cp={additionalProperties:!1,properties:{description:{type:"string"},language:{description:'Language code of this translation, e.g. "sv", "no", "da".',example:"sv",type:"string"},title:{type:"string"}},required:["language","title","description"],type:"object"},lp={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},up={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/NotificationSource"},source_id:{type:"string"},type:{$ref:"#/components/schemas/NotificationType"}},required:["id","type","source","source_id","created_at","payload"],type:"object"},mp={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityInvitationPayload"},{$ref:"#/components/schemas/SimpleNotificationPayload"}]},dp={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},yp={enum:["USER","FACILITY"],type:"string"},fp={enum:["FACILITY","COMMUNITY"],type:"string"},hp={enum:["USER_FACILITY_MESSAGE","USER_COMMUNITY_INVITATION","USER_SIMPLE_NOTIFICATION"],type:"string"},gp={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},bp={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"},Pp={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/TopicSource"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},Rp={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Op={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"},Sp={additionalProperties:!1,properties:{description:{type:"string"},link:{type:"string"},localizations:{description:"Per-language overrides of the notification title and description. The top-level title and description hold the English source values; omitted when no translations are available.",items:{$ref:"#/components/schemas/Localization"},type:"array"},resource_icon:{$ref:"#/components/schemas/NotificationResourceIcon"},resource_icon_id:{type:"string"},title:{type:"string"}},required:["title","description","link"],type:"object"},Ep={description:"All the different notifications a user can receive",enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Cp={enum:["FACILITY","COMMUNITY"],type:"string"},Dp={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},xp={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"},Tp={properties:{message:{description:"The error message",type:"string"}},type:"object"},Ip={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Up={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 De=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:A).get(i({url:"/notifications"},t))},Tt=t=>{var e;return((e=t.client)!=null?e:A).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},It=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:A).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Ut=t=>{var e;return((e=t.client)!=null?e:A).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},vt=t=>{var e;return((e=t.client)!=null?e:A).get(i({url:"/notifications/{id}"},t))},kt=t=>{var e;return((e=t.client)!=null?e:A).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},_t=t=>{var e;return((e=t.client)!=null?e:A).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ti={USER:"USER",FACILITY:"FACILITY"},ri={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},oi={USER_FACILITY_MESSAGE:"USER_FACILITY_MESSAGE",USER_COMMUNITY_INVITATION:"USER_COMMUNITY_INVITATION",USER_SIMPLE_NOTIFICATION:"USER_SIMPLE_NOTIFICATION"},ii={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"},si={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"};var At={};X(At,{getNotificationByIdOptions:()=>Gp,getNotificationByIdQueryKey:()=>ci,getNotificationsInfiniteOptions:()=>_p,getNotificationsInfiniteQueryKey:()=>ni,getNotificationsOptions:()=>vp,getNotificationsPreferencesOptions:()=>Ap,getNotificationsPreferencesQueryKey:()=>pi,getNotificationsQueryKey:()=>ai,registerDeviceMutation:()=>Lp,updateAllNotificationsMutation:()=>Np,updateNotificationMutation:()=>wp,updateNotificationsPreferencesMutation:()=>Mp});var Nt=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:A).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},ai=t=>Nt("GetNotifications",t),vp=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield De(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ai(t)}),kp=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},ni=t=>Nt("GetNotifications",t,!0),_p=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=kp(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield De(m(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:ni(t)}),Np=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),pi=t=>Nt("GetNotificationsPreferences",t),Ap=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield It(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:pi(t)}),Mp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ut(m(i(i({},t),r),{throwOnError:!0}));return o})}),ci=t=>Nt("GetNotificationById",t),Gp=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield vt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ci(t)}),wp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield kt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Lp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _t(m(i(i({},t),r),{throwOnError:!0}));return o})});export{tr as ActivityServiceV1Service,rr as AnonymousService,or as ApiClientServiceV1Service,Z as ApiError,ir as AuthorizedService,sr as BookingServiceV1Service,Ie as CancelError,pe as CancelablePromise,ar as CheckoutServiceV1Service,nr as CompetitionServiceV1Service,pr as CorsService,cr as LoyaltyServiceV1Service,lr as MembershipServiceV1Service,p as OpenAPI,ur as PlaySessionServiceV1Service,mr as UserServiceV1Service,kr as bookingRestriction,_r as bookingSubType,qt as bookingSubscription,Nr as bookingUserStatus,Ft as cancellationPolicy,jt as chat,zt as chatCreation,Ar as chatTarget,Mr as clientType,Gr as directionParam,wr as matchType,Lr as months,Bt as notificationChatGroup,Kt as notificationEntity,$t as pendingPayment,Qt as playSessionSettings,Yt as playSessionUser,Ht as playerRefundInfo,qr as playerStatusParam,Vt as playingUserResponse,Fr as spotPosition,jr as teamSide,zr as userChatStatusParam,Br as userChatTargetParam,Wt as userPunchCard,Jt as userRelation,Kr as userRelationStatusParam,br as v1,Cr as v2};
|