@matchi/api 0.20260603.1 → 0.20260609.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 +33 -1
- package/dist/main/index.d.ts +33 -1
- package/dist/main/index.js +4 -4
- package/dist/main/index.mjs +4 -4
- package/package.json +1 -1
package/dist/main/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var br=Object.defineProperty,Yo=Object.defineProperties;var Wo=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Jo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Rr=t=>{throw TypeError(t)};var gr=(t,e,r)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Pr.call(e,r)&&gr(t,r,e[r]);if(De)for(var r of De(e))Or.call(e,r)&&gr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Wo(e));var z=(t,e)=>{var r={};for(var o in t)Pr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&De)for(var o of De(t))e.indexOf(o)<0&&Or.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)br(t,r,{get:e[r],enumerable:!0})};var Sr=(t,e,r)=>e.has(t)||Rr("Cannot "+r);var x=(t,e,r)=>(Sr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?Rr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Sr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var c=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(c,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Ie=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>c[n]=a=>new Promise((m,f)=>o(n,a,m,f)),c={};return r=r.apply(t,e),c[Jo("asyncIterator")]=()=>c,s("next"),s("throw"),s("return"),c};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 Te=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,J,ce,ee,pe=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,J);V(this,ce);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,ce))==null||m.call(this,a))},c=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,c,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,J).then(e,r)}catch(e){return x(this,J).catch(e)}finally(e){return x(this,J).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new Te("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=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 Er=(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))(Er||{});var kt;(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={}))})(kt||(kt={}));var Cr=(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))(Cr||{});var xr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(xr||{});var _t;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(_t||(_t={}));var Nt;(e=>{let t;(c=>(c.ACTIVE="active",c.INACTIVE="inactive",c.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Nt||(Nt={}));var At;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(At||(At={}));var Dr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Dr||{});var Ir=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ir||{});var Tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Tr||{});var Ur=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(Ur||{});var Gt;(e=>{let t;(c=>(c.PUBLIC="public",c.PRIVATE="private",c.PASSWORD="password"))(t=e.type||(e.type={}))})(Gt||(Gt={}));var Lt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Lt||(Lt={}));var wt;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(wt||(wt={}));var Mt;(e=>{let t;(a=>(a.REFUNDABLE="REFUNDABLE",a.ALREADY_REFUNDED="ALREADY_REFUNDED",a.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",a.PAID_AT_VENUE="PAID_AT_VENUE",a.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(Mt||(Mt={}));var vr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(vr||{});var qt;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(qt||(qt={}));var Ft;(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={}))})(Ft||(Ft={}));var zt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(zt||(zt={}));var kr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(kr||{});var _r=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(_r||{});var jt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(jt||(jt={}));var Bt;(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={}))})(Bt||(Bt={}));var Nr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Nr||{});var $t=t=>t!=null,le=t=>typeof t=="string",Kt=t=>le(t)&&t!=="",Qt=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]),Ar=t=>t instanceof FormData,Xo=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Zo=t=>{let e=[],r=(s,c)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(c))}`)},o=(s,c)=>{$t(c)&&(Array.isArray(c)?c.forEach(n=>{o(s,n)}):typeof c=="object"?Object.entries(c).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,c))};return Object.entries(t).forEach(([s,c])=>{o(s,c)}),e.length>0?`?${e.join("&")}`:""},ei=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(c,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):c}),s=`${t.BASE}${o}`;return e.query?`${s}${Zo(e.query)}`:s},ti=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||Qt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>$t(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(c=>r(o,c)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ri=(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),c=yield Ue(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},c),e.headers)).filter(([a,m])=>$t(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(Kt(r)&&(n.Authorization=`Bearer ${r}`),Kt(o)&&Kt(s)){let a=Xo(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Qt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),oi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||Qt(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},ii=(t,e,r,o,s,c,n)=>y(null,null,function*(){let a=new AbortController,m={headers:c,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)}),si=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},ai=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)}}),ni=(t,e)=>{var s,c;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=(c=e.statusText)!=null?c:"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}`)}},l=(t,e)=>new pe((r,o,s)=>y(null,null,function*(){try{let c=ei(t,e),n=ti(e),a=oi(e),m=yield ri(t,e);if(!s.isCancelled){let f=yield ii(t,e,c,a,n,m,s),u=yield ai(f),R=si(f,e.responseHeader),O={url:c,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ni(e,O),r(O.body)}}catch(c){o(c)}}));var Vt=class{static getAdminActivityOccasions(e,r,o,s,c,n=10){return l(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,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 Ht=class{static listActivities(e=!1,r=!1,o,s,c,n,a,m,f,u,R,O=10){return l(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:c,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:R,limit: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 getActivity(e){return l(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,c){return l(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return l(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,c,n=10){return l(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:c,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 l(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,c,n,a,m,f=10){return l(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:c,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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 Yt=class{static getApiClientList(e,r=10){return l(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 l(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 l(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 l(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 l(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 Wt=class{static getActivityOccasionForUser(e){return l(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 l(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 l(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,c,n,a){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,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,c){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,c){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return l(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 l(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 l(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 l(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 l(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 l(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 getTargetChat(e,r){return l(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 l(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 l(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 l(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 l(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 l(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return l(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 listUserBookings(e,r=10,o,s){return l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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){return l(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return l(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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,c){return l(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 Jt=class{static getAvailabilityWithPrice(e,r,o,s,c,n,a){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:c,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,c){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,c){return l(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return l(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 l(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 l(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 l(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 l(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 l(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 l(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){return l(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return l(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return l(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 l(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 l(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 l(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 Xt=class{static getCheckout(e){return l(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 l(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 Zt=class{static updateCompetitionAccount(e){return l(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 er=class{static options(e){return l(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var tr=class{static createPromoCode(e){return l(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 rr=class{static createMembership(e){return l(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 l(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 or=class{static getPlaySessionById(e){return l(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 l(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 l(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 l(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 l(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.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return l(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 l(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 l(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 joinPlaySession(e){return l(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 l(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 l(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 l(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,c){return l(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:c},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ir=class{static getUserProfile(e){return l(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 l(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 l(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 l(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 l(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 getTargetChat(e,r){return l(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 l(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 l(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 l(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 l(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 l(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return l(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 l(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 lr={};X(lr,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>Le,addUserSportProfileLevel:()=>ut,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>$e,createMatchParticipation:()=>He,createPost:()=>we,createUserSportProfile:()=>pt,deleteComment:()=>je,deleteMatchParticipation:()=>Ye,deletePost:()=>Me,deleteUserSportProfile:()=>ct,deleteUserSportProfileLevel:()=>mt,getCommunity:()=>Ae,getFacility:()=>Ke,getMatch:()=>Ve,getMatchUserPrice:()=>We,getNotificationById:()=>et,getNotifications:()=>Oe,getNotificationsPreferences:()=>Xe,getPost:()=>qe,getRecommendations:()=>Se,getResource:()=>rt,getSportAuthorities:()=>ot,getUserFacilityPermissions:()=>st,getUserSportProfile:()=>lt,getUserSportProfiles:()=>nt,leaveCommunity:()=>Ge,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Qe,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Be,markPostRead:()=>Fe,queries:()=>yt,registerDevice:()=>it,schemas:()=>Ne,searchUsers:()=>Re,updateAllNotifications:()=>Je,updateNotification:()=>tt,updateNotificationsPreferences:()=>Ze,updateUserProfile:()=>at,updateUserSportProfileLevel:()=>dt});var sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var pi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},il=Object.entries(pi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:c,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=c!=null?c:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));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(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
1
|
+
var br=Object.defineProperty,Yo=Object.defineProperties;var Wo=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Jo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Rr=t=>{throw TypeError(t)};var gr=(t,e,r)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Pr.call(e,r)&&gr(t,r,e[r]);if(De)for(var r of De(e))Or.call(e,r)&&gr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Wo(e));var z=(t,e)=>{var r={};for(var o in t)Pr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&De)for(var o of De(t))e.indexOf(o)<0&&Or.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)br(t,r,{get:e[r],enumerable:!0})};var Sr=(t,e,r)=>e.has(t)||Rr("Cannot "+r);var x=(t,e,r)=>(Sr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?Rr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Sr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,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())}),N=function(t,e){this[0]=t,this[1]=e},Ie=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).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[Jo("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 Te=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,J,ce,ee,pe=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,J);V(this,ce);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,ce))==null||m.call(this,a))},l=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,J).then(e,r)}catch(e){return x(this,J).catch(e)}finally(e){return x(this,J).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new Te("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=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 Er=(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))(Er||{});var kt;(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={}))})(kt||(kt={}));var Cr=(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))(Cr||{});var xr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(xr||{});var _t;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(_t||(_t={}));var Nt;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Nt||(Nt={}));var At;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(At||(At={}));var Dr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Dr||{});var Ir=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ir||{});var Tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Tr||{});var Ur=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(Ur||{});var Gt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Gt||(Gt={}));var Lt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Lt||(Lt={}));var wt;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(wt||(wt={}));var Mt;(e=>{let t;(a=>(a.REFUNDABLE="REFUNDABLE",a.ALREADY_REFUNDED="ALREADY_REFUNDED",a.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",a.PAID_AT_VENUE="PAID_AT_VENUE",a.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(Mt||(Mt={}));var vr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(vr||{});var qt;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(qt||(qt={}));var Ft;(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={}))})(Ft||(Ft={}));var zt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(zt||(zt={}));var kr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(kr||{});var _r=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(_r||{});var jt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(jt||(jt={}));var Bt;(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={}))})(Bt||(Bt={}));var Nr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Nr||{});var $t=t=>t!=null,le=t=>typeof t=="string",Kt=t=>le(t)&&t!=="",Qt=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]),Ar=t=>t instanceof FormData,Xo=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Zo=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{$t(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("&")}`:""},ei=(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}${Zo(e.query)}`:s},ti=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||Qt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>$t(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}),ri=(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])=>$t(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(Kt(r)&&(n.Authorization=`Bearer ${r}`),Kt(o)&&Kt(s)){let a=Xo(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Qt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),oi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||Qt(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},ii=(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)}),si=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},ai=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)}}),ni=(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=ei(t,e),n=ti(e),a=oi(e),m=yield ri(t,e);if(!s.isCancelled){let f=yield ii(t,e,l,a,n,m,s),u=yield ai(f),R=si(f,e.responseHeader),O={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ni(e,O),r(O.body)}}catch(l){o(l)}}));var Vt=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 Ht=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,R,O=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:R,limit: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 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 Yt=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 Wt=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 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){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return 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 Jt=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){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return 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 Xt=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 Zt=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 er=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var tr=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 rr=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 or=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.",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 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 ir=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 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 lr={};X(lr,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>Le,addUserSportProfileLevel:()=>ut,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>$e,createMatchParticipation:()=>He,createPost:()=>we,createUserSportProfile:()=>pt,deleteComment:()=>je,deleteMatchParticipation:()=>Ye,deletePost:()=>Me,deleteUserSportProfile:()=>ct,deleteUserSportProfileLevel:()=>mt,getCommunity:()=>Ae,getFacility:()=>Ke,getMatch:()=>Ve,getMatchUserPrice:()=>We,getNotificationById:()=>et,getNotifications:()=>Oe,getNotificationsPreferences:()=>Xe,getPost:()=>qe,getRecommendations:()=>Se,getResource:()=>rt,getSportAuthorities:()=>ot,getUserFacilityPermissions:()=>st,getUserSportProfile:()=>lt,getUserSportProfiles:()=>nt,leaveCommunity:()=>Ge,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Qe,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Be,markPostRead:()=>Fe,queries:()=>yt,registerDevice:()=>it,schemas:()=>Ne,searchUsers:()=>Re,updateAllNotifications:()=>Je,updateNotification:()=>tt,updateNotificationsPreferences:()=>Ze,updateUserProfile:()=>at,updateUserSportProfileLevel:()=>dt});var sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var pi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},il=Object.entries(pi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));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(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);let se=M.split(`
|
|
4
4
|
|
|
5
5
|
`);M=(P=se.pop())!=null?P:"";for(let Ut of se){let vt=Ut.split(`
|
|
6
6
|
`),Q=[],ae;for(let D of vt)if(D.startsWith("data:"))Q.push(D.replace(/^data:\s*/,""));else if(D.startsWith("event:"))ae=D.replace(/^event:\s*/,"");else if(D.startsWith("id:"))g=D.replace(/^id:\s*/,"");else if(D.startsWith("retry:")){let W=Number.parseInt(D.replace(/^retry:\s*/,""),10);Number.isNaN(W)||(U=W)}let _,ne=!1;if(Q.length){let D=Q.join(`
|
|
7
|
-
`);try{_=JSON.parse(D),ne=!0}catch(W){_=D}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),Q.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&I>=n)break;let $=Math.min(U*2**(I-1),a!=null?a:3e4);yield new N(G($))}}})}()}};var ci=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},li=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ui=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(li(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let c=ci(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):te({allowReserved:t,name:r,value:a})).join(c);return o==="label"||o==="matrix"?c+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:c})=>{if(s instanceof Date)return c?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let m=[];Object.entries(s).forEach(([u,R])=>{m=[...m,u,t?R:encodeURIComponent(R)]});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=ui(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 mi=/\{[^{}]+\}/g,di=({path:t,url:e})=>{let r=e,o=e.match(mi);if(o)for(let s of o){let c=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(c=!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:c,name:n,style:a,value:m}));continue}if(typeof m=="object"){r=r.replace(s,ke({explode:c,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},Lr=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let c=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+c;e&&(n=di({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function ar(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 wr=(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 Mr=(r={})=>{var o=r,{parameters:t={}}=o,e=z(o,["parameters"]);return c=>{let n=[];if(c&&typeof c=="object")for(let a in c){let m=c[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"}},yi=(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},Fr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=z(o,["security"]);var s;for(let c of t){if(yi(e,c.name))continue;let n=yield wr(c,e.auth);if(!n)continue;let a=(s=c.name)!=null?s:"Authorization";switch(c.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}}}),nr=t=>Lr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Mr(t.querySerializer),url:t.url}),pr=(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},fi=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?fi(r):Object.entries(r);for(let[s,c]of o)if(c===null)e.delete(s);else if(Array.isArray(c))for(let n of c)e.append(s,n);else c!==void 0&&e.set(s,typeof c=="object"?JSON.stringify(c):c)}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}},zr=()=>({error:new ue,request:new ue,response:new ue}),hi=Mr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),gi={"Content-Type":"application/json"},me=(t={})=>i(d(i({},sr),{headers:gi,parseAs:"auto",querySerializer:hi}),t);var cr=(t={})=>{let e=pr(me(),t),r=()=>i({},e),o=f=>(e=pr(e,f),r()),s=zr(),c=f=>y(null,null,function*(){var O,g;let u=d(i(i({},e),f),{fetch:(g=(O=f.fetch)!=null?O:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Fr(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 R=nr(u);return{opts:u,url:R}}),n=f=>y(null,null,function*(){var L;let{opts:u,url:R}=yield c(f),O=d(i({redirect:"follow"},u),{body:ar(u)}),g=new Request(R,O);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 E=P;for(let S of s.error.fns)S&&(E=yield S(P,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let T={request:g,response:b};if(b.ok){let P=(L=u.parseAs==="auto"?qr(b.headers.get("Content-Type")):u.parseAs)!=null?L:"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},T)}let E;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":E=yield b[P]();break;case"json":{let S=yield b.text();E=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},T)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:i({data:E},T)}let U=yield b.text(),I;try{I=JSON.parse(U)}catch(P){}let k=I!=null?I: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},T)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:R,url:O}=yield c(u);return Gr(d(i({},R),{body:R.body,headers:R.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let T of s.request.fns)T&&(b=yield T(b,R));return b}),serializedBody:ar(R),url:O}))});return{buildUrl:nr,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=cr(me({baseUrl:"https://api.matchi.com/v1"}));var Ne={};X(Ne,{AddressSchema:()=>bi,AuthorSchema:()=>Pi,ChannelsSchema:()=>Oi,CommentListResponseSchema:()=>Si,CommentSchema:()=>Ri,CommunityItemSchema:()=>Ei,CommunityListResponseSchema:()=>Ci,CreateCommentRequestSchema:()=>xi,CreateMatchParticipationRequestSchema:()=>Di,CreatePostRequestSchema:()=>Ii,CreateSportProfileLevelRequestSchema:()=>Ti,CreateSportProfileRequestSchema:()=>Ui,ExternalServiceSchema:()=>vi,FacilityListSchema:()=>_i,FacilityMessagePayloadSchema:()=>Ni,FacilityOfferConditionActivitiesSchema:()=>Li,FacilityOfferConditionCourtsSchema:()=>wi,FacilityOfferConditionDateSchema:()=>Mi,FacilityOfferConditionHoursinadvanceSchema:()=>qi,FacilityOfferConditionSchema:()=>Gi,FacilityOfferConditionTimeSchema:()=>Fi,FacilityOfferConditionWeekdaysSchema:()=>zi,FacilityOfferListSchema:()=>ji,FacilityOfferOrderSchema:()=>Bi,FacilityOfferSchema:()=>Ai,FacilityPermissionSchema:()=>Ki,FacilityPermissionsResponseSchema:()=>$i,FacilityPunchCardDataSchema:()=>Qi,FacilitySchema:()=>ki,FacilityValueCardDataSchema:()=>Vi,GenderSchema:()=>Hi,LinkTypeSchema:()=>Yi,MatchBasePriceSchema:()=>Ji,MatchCourtSchema:()=>Xi,MatchDetailSchema:()=>Zi,MatchEventSchema:()=>es,MatchListSchema:()=>ts,MatchOccasionDetailSchema:()=>os,MatchOccasionSchema:()=>rs,MatchParticipantsSchema:()=>is,MatchPriceListEntrySchema:()=>ss,MatchSchema:()=>Wi,MatchStatusSchema:()=>as,MatchUserPriceSchema:()=>ns,MemberListResponseSchema:()=>cs,MemberRelationSchema:()=>ls,MemberSchema:()=>ps,MembershipStatusSchema:()=>us,MetadataSchema:()=>ms,NotificationPayloadSchema:()=>ys,NotificationRequestBodySchema:()=>fs,NotificationSchema:()=>ds,NotificationsFilterSchema:()=>hs,NotificationsPaginatedResponseSchema:()=>gs,NotificationsSummarySchema:()=>bs,OffsetPaginatedResultSetSchema:()=>Ps,PaginationMetaSchema:()=>Os,ParticipantDetailSchema:()=>Rs,ParticipantSummarySchema:()=>Ss,PatchCommentRequestSchema:()=>Es,PatchPostRequestSchema:()=>Cs,PaymentCommandSchema:()=>xs,PaymentDetailsSchema:()=>Ds,PositionSchema:()=>Is,PostLinkSchema:()=>Us,PostListResponseSchema:()=>vs,PostSchema:()=>Ts,PostingPermissionSchema:()=>ks,PreferenceSchema:()=>_s,PreferencesResponseSchema:()=>Ns,PrivateParticipantDetailSchema:()=>As,PrivateParticipantSummarySchema:()=>Gs,PublicParticipantDetailSchema:()=>Ls,PublicParticipantSummarySchema:()=>ws,RecommendationListSchema:()=>qs,RecommendationSchema:()=>Ms,RefundPolicySchema:()=>Fs,RegisterDeviceRequestSchema:()=>zs,ResourceSchema:()=>js,SourceSchema:()=>Bs,SportAuthoritiesResponseSchema:()=>Ks,SportAuthoritySchema:()=>$s,SportLevelSchema:()=>Qs,SportProfileAttributeSchema:()=>Hs,SportProfileLevelSchema:()=>Ys,SportProfileSchema:()=>Vs,SportProfilesResponseSchema:()=>Ws,TopicSchema:()=>Js,UpdatePreferencesRequestBodySchema:()=>Xs,UpdateSportProfileLevelRequestSchema:()=>Zs,UpdateUsersProfilesRequestSchema:()=>ea,UserParticipationStatusSchema:()=>ta,UserProfileSchema:()=>ra,UserRelationSchema:()=>oa,UsersProfilesPaginatedResponseSchema:()=>ia,VisibilitySchema:()=>sa,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>aa,pkgOpenapiSharedErrorSchema:()=>na,pkgOpenapiSharedErrorsSchema:()=>pa,pkgOpenapiSharedFilterableStringSchema:()=>ca,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>la,pkgOpenapiSharedProblemDetailsSchema:()=>ua});var bi={properties:{city:{type:"string"},country:{type:"string"},street:{type:"string"},zip:{type:"string"}},type:"object"},Pi={properties:{type:{description:`ADMIN \u2014 the post or comment was authored by a facility admin.
|
|
7
|
+
`);try{_=JSON.parse(D),ne=!0}catch(W){_=D}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),Q.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&I>=n)break;let $=Math.min(U*2**(I-1),a!=null?a:3e4);yield new N(G($))}}})}()}};var ci=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},li=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ui=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(li(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 m=[];Object.entries(s).forEach(([u,R])=>{m=[...m,u,t?R:encodeURIComponent(R)]});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=ui(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 mi=/\{[^{}]+\}/g,di=({path:t,url:e})=>{let r=e,o=e.match(mi);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},Lr=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=di({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function ar(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 wr=(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 Mr=(r={})=>{var o=r,{parameters:t={}}=o,e=z(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"}},yi=(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},Fr=r=>y(null,null,function*(){var o=r,{security:t}=o,e=z(o,["security"]);var s;for(let l of t){if(yi(e,l.name))continue;let n=yield wr(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}}}),nr=t=>Lr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Mr(t.querySerializer),url:t.url}),pr=(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},fi=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?fi(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}},zr=()=>({error:new ue,request:new ue,response:new ue}),hi=Mr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),gi={"Content-Type":"application/json"},me=(t={})=>i(d(i({},sr),{headers:gi,parseAs:"auto",querySerializer:hi}),t);var cr=(t={})=>{let e=pr(me(),t),r=()=>i({},e),o=f=>(e=pr(e,f),r()),s=zr(),l=f=>y(null,null,function*(){var O,g;let u=d(i(i({},e),f),{fetch:(g=(O=f.fetch)!=null?O:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Fr(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 R=nr(u);return{opts:u,url:R}}),n=f=>y(null,null,function*(){var L;let{opts:u,url:R}=yield l(f),O=d(i({redirect:"follow"},u),{body:ar(u)}),g=new Request(R,O);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 E=P;for(let S of s.error.fns)S&&(E=yield S(P,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let T={request:g,response:b};if(b.ok){let P=(L=u.parseAs==="auto"?qr(b.headers.get("Content-Type")):u.parseAs)!=null?L:"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},T)}let E;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":E=yield b[P]();break;case"json":{let S=yield b.text();E=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},T)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:i({data:E},T)}let U=yield b.text(),I;try{I=JSON.parse(U)}catch(P){}let k=I!=null?I: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},T)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:R,url:O}=yield l(u);return Gr(d(i({},R),{body:R.body,headers:R.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let T of s.request.fns)T&&(b=yield T(b,R));return b}),serializedBody:ar(R),url:O}))});return{buildUrl:nr,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=cr(me({baseUrl:"https://api.matchi.com/v1"}));var Ne={};X(Ne,{AddressSchema:()=>bi,AuthorSchema:()=>Pi,ChannelsSchema:()=>Oi,CommentListResponseSchema:()=>Si,CommentSchema:()=>Ri,CommunityItemSchema:()=>Ei,CommunityListResponseSchema:()=>Ci,CreateCommentRequestSchema:()=>xi,CreateMatchParticipationRequestSchema:()=>Di,CreatePostRequestSchema:()=>Ii,CreateSportProfileLevelRequestSchema:()=>Ti,CreateSportProfileRequestSchema:()=>Ui,ExternalServiceSchema:()=>vi,FacilityListSchema:()=>_i,FacilityMessagePayloadSchema:()=>Ni,FacilityOfferConditionActivitiesSchema:()=>Li,FacilityOfferConditionCourtsSchema:()=>wi,FacilityOfferConditionDateSchema:()=>Mi,FacilityOfferConditionHoursinadvanceSchema:()=>qi,FacilityOfferConditionSchema:()=>Gi,FacilityOfferConditionTimeSchema:()=>Fi,FacilityOfferConditionWeekdaysSchema:()=>zi,FacilityOfferListSchema:()=>ji,FacilityOfferOrderSchema:()=>Bi,FacilityOfferSchema:()=>Ai,FacilityPermissionSchema:()=>Ki,FacilityPermissionsResponseSchema:()=>$i,FacilityPunchCardDataSchema:()=>Qi,FacilitySchema:()=>ki,FacilityValueCardDataSchema:()=>Vi,GenderSchema:()=>Hi,LinkTypeSchema:()=>Yi,MatchBasePriceSchema:()=>Ji,MatchCourtSchema:()=>Xi,MatchDetailSchema:()=>Zi,MatchEventSchema:()=>es,MatchListSchema:()=>ts,MatchOccasionDetailSchema:()=>os,MatchOccasionSchema:()=>rs,MatchParticipantsSchema:()=>is,MatchPriceListEntrySchema:()=>ss,MatchSchema:()=>Wi,MatchStatusSchema:()=>as,MatchUserPriceSchema:()=>ns,MemberListResponseSchema:()=>cs,MemberRelationSchema:()=>ls,MemberSchema:()=>ps,MembershipStatusSchema:()=>us,MetadataSchema:()=>ms,NotificationPayloadSchema:()=>ys,NotificationRequestBodySchema:()=>fs,NotificationSchema:()=>ds,NotificationsFilterSchema:()=>hs,NotificationsPaginatedResponseSchema:()=>gs,NotificationsSummarySchema:()=>bs,OffsetPaginatedResultSetSchema:()=>Ps,PaginationMetaSchema:()=>Os,ParticipantDetailSchema:()=>Rs,ParticipantSummarySchema:()=>Ss,PatchCommentRequestSchema:()=>Es,PatchPostRequestSchema:()=>Cs,PaymentCommandSchema:()=>xs,PaymentDetailsSchema:()=>Ds,PositionSchema:()=>Is,PostLinkSchema:()=>Us,PostListResponseSchema:()=>vs,PostSchema:()=>Ts,PostingPermissionSchema:()=>ks,PreferenceSchema:()=>_s,PreferencesResponseSchema:()=>Ns,PrivateParticipantDetailSchema:()=>As,PrivateParticipantSummarySchema:()=>Gs,PublicParticipantDetailSchema:()=>Ls,PublicParticipantSummarySchema:()=>ws,RecommendationListSchema:()=>qs,RecommendationSchema:()=>Ms,RefundPolicySchema:()=>Fs,RegisterDeviceRequestSchema:()=>zs,ResourceSchema:()=>js,SourceSchema:()=>Bs,SportAuthoritiesResponseSchema:()=>Ks,SportAuthoritySchema:()=>$s,SportLevelSchema:()=>Qs,SportProfileAttributeSchema:()=>Hs,SportProfileLevelSchema:()=>Ys,SportProfileSchema:()=>Vs,SportProfilesResponseSchema:()=>Ws,TopicSchema:()=>Js,UpdatePreferencesRequestBodySchema:()=>Xs,UpdateSportProfileLevelRequestSchema:()=>Zs,UpdateUsersProfilesRequestSchema:()=>ea,UserParticipationStatusSchema:()=>ta,UserProfileSchema:()=>ra,UserRelationSchema:()=>oa,UsersProfilesPaginatedResponseSchema:()=>ia,VisibilitySchema:()=>sa,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>aa,pkgOpenapiSharedErrorSchema:()=>na,pkgOpenapiSharedErrorsSchema:()=>pa,pkgOpenapiSharedFilterableStringSchema:()=>ca,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>la,pkgOpenapiSharedProblemDetailsSchema:()=>ua});var bi={properties:{city:{type:"string"},country:{type:"string"},street:{type:"string"},zip:{type:"string"}},type:"object"},Pi={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.
|
|
@@ -23,10 +23,10 @@ openspec/specs/match-participant-privacy/spec.md in team-discovery-docs.
|
|
|
23
23
|
`,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
|
|
24
24
|
`,nullable:!0,type:"boolean"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
|
|
25
25
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
26
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},qs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Fs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},zs={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"},js={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"},Bs={enum:["FACILITY"],type:"string"},Ks={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},$s={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"},Qs={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"},Vs={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"},Hs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ys={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ws={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Js={enum:["FACILITY_MESSAGE"],type:"string"},Xs={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Zs={properties:{level:{type:"string"}},required:["level"],type:"object"},ea={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"},ra={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"},oa={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"},ia={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},sa={enum:["HIDDEN"],type:"string"},aa={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"},na={properties:{message:{description:"The error message",type:"string"}},type:"object"},pa={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ca={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"},la={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"},ua={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))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Le=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))},we=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)}))},Me=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},qe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=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)}))},je=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Be=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)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ke=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))},$e=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Qe=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))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},He=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)}))},Ye=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Xe=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))},Ze=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)}))},et=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},tt=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)}))},rt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},ot=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},it=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)}))},st=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},at=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))},nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},pt=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)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ut=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)}))},mt=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))},dt=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"},Br={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Kr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},$r={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Qr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Vr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Hr={FACILITY:"FACILITY"},Yr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Wr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Xr={HIDDEN:"HIDDEN"};var yt={};X(yt,{acceptInvitationMutation:()=>ba,addUserSportProfileLevelMutation:()=>ln,createCommentMutation:()=>Ia,createFacilityOfferOrderMutation:()=>Ga,createMatchParticipationMutation:()=>Fa,createPostMutation:()=>Ra,createUserSportProfileMutation:()=>nn,deleteCommentMutation:()=>Ta,deleteMatchParticipationMutation:()=>za,deletePostMutation:()=>Sa,deleteUserSportProfileLevelMutation:()=>un,deleteUserSportProfileMutation:()=>pn,getCommunityOptions:()=>ya,getCommunityQueryKey:()=>to,getFacilityOptions:()=>_a,getFacilityQueryKey:()=>uo,getMatchOptions:()=>qa,getMatchQueryKey:()=>bo,getMatchUserPriceOptions:()=>ja,getMatchUserPriceQueryKey:()=>Po,getNotificationByIdOptions:()=>Ha,getNotificationByIdQueryKey:()=>Eo,getNotificationsInfiniteOptions:()=>Ka,getNotificationsInfiniteQueryKey:()=>Ro,getNotificationsOptions:()=>Ba,getNotificationsPreferencesOptions:()=>Qa,getNotificationsPreferencesQueryKey:()=>So,getNotificationsQueryKey:()=>Oo,getPostOptions:()=>Ea,getPostQueryKey:()=>ao,getRecommendationsInfiniteOptions:()=>sn,getRecommendationsInfiniteQueryKey:()=>vo,getRecommendationsOptions:()=>on,getRecommendationsQueryKey:()=>Uo,getResourceOptions:()=>Wa,getResourceQueryKey:()=>Co,getSportAuthoritiesOptions:()=>Ja,getSportAuthoritiesQueryKey:()=>xo,getUserFacilityPermissionsOptions:()=>tn,getUserFacilityPermissionsQueryKey:()=>To,getUserSportProfileOptions:()=>cn,getUserSportProfileQueryKey:()=>_o,getUserSportProfilesOptions:()=>an,getUserSportProfilesQueryKey:()=>ko,leaveCommunityMutation:()=>ga,listCommentsInfiniteOptions:()=>Da,listCommentsInfiniteQueryKey:()=>po,listCommentsOptions:()=>xa,listCommentsQueryKey:()=>no,listCommunitiesInfiniteOptions:()=>da,listCommunitiesInfiniteQueryKey:()=>eo,listCommunitiesOptions:()=>ma,listCommunitiesQueryKey:()=>Zr,listFacilitiesInfiniteOptions:()=>ka,listFacilitiesInfiniteQueryKey:()=>lo,listFacilitiesOptions:()=>va,listFacilitiesQueryKey:()=>co,listFacilityOffersInfiniteOptions:()=>Aa,listFacilityOffersInfiniteQueryKey:()=>yo,listFacilityOffersOptions:()=>Na,listFacilityOffersQueryKey:()=>mo,listFacilityResourcesOptions:()=>La,listFacilityResourcesQueryKey:()=>fo,listMatchesInfiniteOptions:()=>Ma,listMatchesInfiniteQueryKey:()=>go,listMatchesOptions:()=>wa,listMatchesQueryKey:()=>ho,listMembersInfiniteOptions:()=>ha,listMembersInfiniteQueryKey:()=>oo,listMembersOptions:()=>fa,listMembersQueryKey:()=>ro,listPostsInfiniteOptions:()=>Oa,listPostsInfiniteQueryKey:()=>so,listPostsOptions:()=>Pa,listPostsQueryKey:()=>io,markCommentReadMutation:()=>Ua,markPostReadMutation:()=>Ca,registerDeviceMutation:()=>en,searchUsersInfiniteOptions:()=>Za,searchUsersInfiniteQueryKey:()=>Io,searchUsersOptions:()=>Xa,searchUsersQueryKey:()=>Do,updateAllNotificationsMutation:()=>$a,updateNotificationMutation:()=>Ya,updateNotificationsPreferencesMutation:()=>Va,updateUserProfileMutation:()=>rn,updateUserSportProfileLevelMutation:()=>mn});var C=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c: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]},Zr=t=>C("listCommunities",t),ma=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:Zr(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},eo=t=>C("listCommunities",t,!0),da=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:eo(t)}),to=t=>C("getCommunity",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:to(t)}),ro=t=>C("listMembers",t),fa=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:ro(t)}),oo=t=>C("listMembers",t,!0),ha=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:oo(t)}),ga=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(d(i(i({},t),r),{throwOnError:!0}));return o})}),ba=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(d(i(i({},t),r),{throwOnError:!0}));return o})}),io=t=>C("listPosts",t),Pa=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:io(t)}),so=t=>C("listPosts",t,!0),Oa=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:so(t)}),Ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(d(i(i({},t),r),{throwOnError:!0}));return o})}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(d(i(i({},t),r),{throwOnError:!0}));return o})}),ao=t=>C("getPost",t),Ea=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),Ca=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(d(i(i({},t),r),{throwOnError:!0}));return o})}),no=t=>C("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:no(t)}),po=t=>C("listComments",t,!0),Da=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:po(t)}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(d(i(i({},t),r),{throwOnError:!0}));return o})}),co=t=>C("ListFacilities",t),va=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:co(t)}),lo=t=>C("ListFacilities",t,!0),ka=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:lo(t)}),uo=t=>C("GetFacility",t),_a=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ke(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:uo(t)}),mo=t=>C("ListFacilityOffers",t),Na=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:mo(t)}),yo=t=>C("ListFacilityOffers",t,!0),Aa=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:yo(t)}),Ga=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(d(i(i({},t),r),{throwOnError:!0}));return o})}),fo=t=>C("ListFacilityResources",t),La=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Qe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:fo(t)}),ho=t=>C("ListMatches",t),wa=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:ho(t)}),go=t=>C("ListMatches",t,!0),Ma=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:go(t)}),bo=t=>C("GetMatch",t),qa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Fa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(d(i(i({},t),r),{throwOnError:!0}));return o})}),za=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(d(i(i({},t),r),{throwOnError:!0}));return o})}),Po=t=>C("GetMatchUserPrice",t),ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield We(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Oo=t=>C("GetNotifications",t),Ba=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:Oo(t)}),Ro=t=>C("GetNotifications",t,!0),Ka=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 Oe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Ro(t)}),$a=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Je(d(i(i({},t),r),{throwOnError:!0}));return o})}),So=t=>C("GetNotificationsPreferences",t),Qa=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:So(t)}),Va=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Eo=t=>C("GetNotificationById",t),Ha=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield et(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Eo(t)}),Ya=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Co=t=>C("GetResource",t),Wa=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:Co(t)}),xo=t=>C("getSportAuthorities",t),Ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Do=t=>C("searchUsers",t),Xa=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:Do(t)}),Io=t=>C("searchUsers",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 Re(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Io(t)}),en=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("getUserFacilityPermissions",t),tn=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:To(t)}),rn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetRecommendations",t),on=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:Uo(t)}),vo=t=>C("GetRecommendations",t,!0),sn=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:vo(t)}),ko=t=>C("getUserSportProfiles",t),an=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:ko(t)}),nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),pn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),_o=t=>C("getUserSportProfile",t),cn=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:_o(t)}),ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield mt(d(i(i({},t),r),{throwOnError:!0}));return o})}),mn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})});var hr={};X(hr,{NotificationResourceIcon:()=>Fo,NotificationSource:()=>zo,NotificationType:()=>jo,Topic:()=>Bo,TopicSource:()=>Ko,client:()=>A,getNotificationById:()=>St,getNotifications:()=>xe,getNotificationsPreferences:()=>Ot,queries:()=>Dt,registerDevice:()=>Ct,schemas:()=>bt,updateAllNotifications:()=>Pt,updateNotification:()=>Et,updateNotificationsPreferences:()=>Rt});var ur={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var dn={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Wl=Object.entries(dn);var No=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:c,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=c!=null?c:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));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(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
26
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},qs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Fs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},zs={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"},js={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"},Bs={enum:["FACILITY"],type:"string"},Ks={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},$s={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"},Qs={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"},Vs={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"},Hs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ys={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ws={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Js={enum:["FACILITY_MESSAGE"],type:"string"},Xs={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Zs={properties:{level:{type:"string"}},required:["level"],type:"object"},ea={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"},ra={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"},oa={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"},ia={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},sa={enum:["HIDDEN"],type:"string"},aa={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"},na={properties:{message:{description:"The error message",type:"string"}},type:"object"},pa={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ca={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"},la={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"},ua={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))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Le=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))},we=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)}))},Me=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},qe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=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)}))},je=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Be=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)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ke=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))},$e=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Qe=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))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},He=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)}))},Ye=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Xe=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))},Ze=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)}))},et=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},tt=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)}))},rt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},ot=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},it=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)}))},st=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},at=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))},nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},pt=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)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ut=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)}))},mt=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))},dt=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"},Br={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Kr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},$r={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Qr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Vr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Hr={FACILITY:"FACILITY"},Yr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Wr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Xr={HIDDEN:"HIDDEN"};var yt={};X(yt,{acceptInvitationMutation:()=>ba,addUserSportProfileLevelMutation:()=>ln,createCommentMutation:()=>Ia,createFacilityOfferOrderMutation:()=>Ga,createMatchParticipationMutation:()=>Fa,createPostMutation:()=>Ra,createUserSportProfileMutation:()=>nn,deleteCommentMutation:()=>Ta,deleteMatchParticipationMutation:()=>za,deletePostMutation:()=>Sa,deleteUserSportProfileLevelMutation:()=>un,deleteUserSportProfileMutation:()=>pn,getCommunityOptions:()=>ya,getCommunityQueryKey:()=>to,getFacilityOptions:()=>_a,getFacilityQueryKey:()=>uo,getMatchOptions:()=>qa,getMatchQueryKey:()=>bo,getMatchUserPriceOptions:()=>ja,getMatchUserPriceQueryKey:()=>Po,getNotificationByIdOptions:()=>Ha,getNotificationByIdQueryKey:()=>Eo,getNotificationsInfiniteOptions:()=>Ka,getNotificationsInfiniteQueryKey:()=>Ro,getNotificationsOptions:()=>Ba,getNotificationsPreferencesOptions:()=>Qa,getNotificationsPreferencesQueryKey:()=>So,getNotificationsQueryKey:()=>Oo,getPostOptions:()=>Ea,getPostQueryKey:()=>ao,getRecommendationsInfiniteOptions:()=>sn,getRecommendationsInfiniteQueryKey:()=>vo,getRecommendationsOptions:()=>on,getRecommendationsQueryKey:()=>Uo,getResourceOptions:()=>Wa,getResourceQueryKey:()=>Co,getSportAuthoritiesOptions:()=>Ja,getSportAuthoritiesQueryKey:()=>xo,getUserFacilityPermissionsOptions:()=>tn,getUserFacilityPermissionsQueryKey:()=>To,getUserSportProfileOptions:()=>cn,getUserSportProfileQueryKey:()=>_o,getUserSportProfilesOptions:()=>an,getUserSportProfilesQueryKey:()=>ko,leaveCommunityMutation:()=>ga,listCommentsInfiniteOptions:()=>Da,listCommentsInfiniteQueryKey:()=>po,listCommentsOptions:()=>xa,listCommentsQueryKey:()=>no,listCommunitiesInfiniteOptions:()=>da,listCommunitiesInfiniteQueryKey:()=>eo,listCommunitiesOptions:()=>ma,listCommunitiesQueryKey:()=>Zr,listFacilitiesInfiniteOptions:()=>ka,listFacilitiesInfiniteQueryKey:()=>lo,listFacilitiesOptions:()=>va,listFacilitiesQueryKey:()=>co,listFacilityOffersInfiniteOptions:()=>Aa,listFacilityOffersInfiniteQueryKey:()=>yo,listFacilityOffersOptions:()=>Na,listFacilityOffersQueryKey:()=>mo,listFacilityResourcesOptions:()=>La,listFacilityResourcesQueryKey:()=>fo,listMatchesInfiniteOptions:()=>Ma,listMatchesInfiniteQueryKey:()=>go,listMatchesOptions:()=>wa,listMatchesQueryKey:()=>ho,listMembersInfiniteOptions:()=>ha,listMembersInfiniteQueryKey:()=>oo,listMembersOptions:()=>fa,listMembersQueryKey:()=>ro,listPostsInfiniteOptions:()=>Oa,listPostsInfiniteQueryKey:()=>so,listPostsOptions:()=>Pa,listPostsQueryKey:()=>io,markCommentReadMutation:()=>Ua,markPostReadMutation:()=>Ca,registerDeviceMutation:()=>en,searchUsersInfiniteOptions:()=>Za,searchUsersInfiniteQueryKey:()=>Io,searchUsersOptions:()=>Xa,searchUsersQueryKey:()=>Do,updateAllNotificationsMutation:()=>$a,updateNotificationMutation:()=>Ya,updateNotificationsPreferencesMutation:()=>Va,updateUserProfileMutation:()=>rn,updateUserSportProfileLevelMutation:()=>mn});var C=(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]},Zr=t=>C("listCommunities",t),ma=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:Zr(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},eo=t=>C("listCommunities",t,!0),da=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:eo(t)}),to=t=>C("getCommunity",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:to(t)}),ro=t=>C("listMembers",t),fa=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:ro(t)}),oo=t=>C("listMembers",t,!0),ha=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:oo(t)}),ga=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(d(i(i({},t),r),{throwOnError:!0}));return o})}),ba=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(d(i(i({},t),r),{throwOnError:!0}));return o})}),io=t=>C("listPosts",t),Pa=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:io(t)}),so=t=>C("listPosts",t,!0),Oa=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:so(t)}),Ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(d(i(i({},t),r),{throwOnError:!0}));return o})}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(d(i(i({},t),r),{throwOnError:!0}));return o})}),ao=t=>C("getPost",t),Ea=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),Ca=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(d(i(i({},t),r),{throwOnError:!0}));return o})}),no=t=>C("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:no(t)}),po=t=>C("listComments",t,!0),Da=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:po(t)}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(d(i(i({},t),r),{throwOnError:!0}));return o})}),co=t=>C("ListFacilities",t),va=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:co(t)}),lo=t=>C("ListFacilities",t,!0),ka=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:lo(t)}),uo=t=>C("GetFacility",t),_a=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ke(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:uo(t)}),mo=t=>C("ListFacilityOffers",t),Na=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:mo(t)}),yo=t=>C("ListFacilityOffers",t,!0),Aa=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:yo(t)}),Ga=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(d(i(i({},t),r),{throwOnError:!0}));return o})}),fo=t=>C("ListFacilityResources",t),La=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Qe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:fo(t)}),ho=t=>C("ListMatches",t),wa=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:ho(t)}),go=t=>C("ListMatches",t,!0),Ma=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:go(t)}),bo=t=>C("GetMatch",t),qa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Fa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(d(i(i({},t),r),{throwOnError:!0}));return o})}),za=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(d(i(i({},t),r),{throwOnError:!0}));return o})}),Po=t=>C("GetMatchUserPrice",t),ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield We(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Oo=t=>C("GetNotifications",t),Ba=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:Oo(t)}),Ro=t=>C("GetNotifications",t,!0),Ka=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 Oe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Ro(t)}),$a=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Je(d(i(i({},t),r),{throwOnError:!0}));return o})}),So=t=>C("GetNotificationsPreferences",t),Qa=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:So(t)}),Va=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Eo=t=>C("GetNotificationById",t),Ha=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield et(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Eo(t)}),Ya=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Co=t=>C("GetResource",t),Wa=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:Co(t)}),xo=t=>C("getSportAuthorities",t),Ja=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Do=t=>C("searchUsers",t),Xa=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:Do(t)}),Io=t=>C("searchUsers",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 Re(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Io(t)}),en=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("getUserFacilityPermissions",t),tn=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:To(t)}),rn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetRecommendations",t),on=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:Uo(t)}),vo=t=>C("GetRecommendations",t,!0),sn=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:vo(t)}),ko=t=>C("getUserSportProfiles",t),an=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:ko(t)}),nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),pn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),_o=t=>C("getUserSportProfile",t),cn=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:_o(t)}),ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield mt(d(i(i({},t),r),{throwOnError:!0}));return o})}),mn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})});var hr={};X(hr,{NotificationResourceIcon:()=>Fo,NotificationSource:()=>zo,NotificationType:()=>jo,Topic:()=>Bo,TopicSource:()=>Ko,client:()=>A,getNotificationById:()=>St,getNotifications:()=>xe,getNotificationsPreferences:()=>Ot,queries:()=>Dt,registerDevice:()=>Ct,schemas:()=>bt,updateAllNotifications:()=>Pt,updateNotification:()=>Et,updateNotificationsPreferences:()=>Rt});var ur={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var dn={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Wl=Object.entries(dn);var No=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));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(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
27
27
|
`).replace(/\r/g,`
|
|
28
28
|
`);let se=M.split(`
|
|
29
29
|
|
|
30
30
|
`);M=(P=se.pop())!=null?P:"";for(let Ut of se){let vt=Ut.split(`
|
|
31
31
|
`),Q=[],ae;for(let D of vt)if(D.startsWith("data:"))Q.push(D.replace(/^data:\s*/,""));else if(D.startsWith("event:"))ae=D.replace(/^event:\s*/,"");else if(D.startsWith("id:"))g=D.replace(/^id:\s*/,"");else if(D.startsWith("retry:")){let W=Number.parseInt(D.replace(/^retry:\s*/,""),10);Number.isNaN(W)||(U=W)}let _,ne=!1;if(Q.length){let D=Q.join(`
|
|
32
|
-
`);try{_=JSON.parse(D),ne=!0}catch(W){_=D}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),Q.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&I>=n)break;let $=Math.min(U*2**(I-1),a!=null?a:3e4);yield new N(G($))}}})}()}};var yn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fn=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},hn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ft=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(m=>encodeURIComponent(m))).join(fn(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let c=yn(o),n=s.map(a=>o==="label"||o==="simple"?t?a:encodeURIComponent(a):re({allowReserved:t,name:r,value:a})).join(c);return o==="label"||o==="matrix"?c+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)}`},ht=({allowReserved:t,explode:e,name:r,style:o,value:s,valueOnly:c})=>{if(s instanceof Date)return c?s.toISOString():`${r}=${s.toISOString()}`;if(o!=="deepObject"&&!e){let m=[];Object.entries(s).forEach(([u,R])=>{m=[...m,u,t?R:encodeURIComponent(R)]});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=hn(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 gn=/\{[^{}]+\}/g,bn=({path:t,url:e})=>{let r=e,o=e.match(gn);if(o)for(let s of o){let c=!1,n=s.substring(1,s.length-1),a="simple";n.endsWith("*")&&(c=!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,ft({explode:c,name:n,style:a,value:m}));continue}if(typeof m=="object"){r=r.replace(s,ht({explode:c,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},Ao=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let c=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+c;e&&(n=bn({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function mr(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 Go=(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 Lo=(r={})=>{var o=r,{parameters:t={}}=o,e=z(o,["parameters"]);return c=>{let n=[];if(c&&typeof c=="object")for(let a in c){let m=c[a];if(m==null)continue;let f=t[a]||e;if(Array.isArray(m)){let u=ft(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=ht(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"}},Pn=(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},Mo=r=>y(null,null,function*(){var o=r,{security:t}=o,e=z(o,["security"]);var s;for(let c of t){if(Pn(e,c.name))continue;let n=yield Go(c,e.auth);if(!n)continue;let a=(s=c.name)!=null?s:"Authorization";switch(c.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}}}),dr=t=>Ao({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Lo(t.querySerializer),url:t.url}),yr=(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=gt(t.headers,e.headers),r},On=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},gt=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?On(r):Object.entries(r);for(let[s,c]of o)if(c===null)e.delete(s);else if(Array.isArray(c))for(let n of c)e.append(s,n);else c!==void 0&&e.set(s,typeof c=="object"?JSON.stringify(c):c)}return e},Ee=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},qo=()=>({error:new Ee,request:new Ee,response:new Ee}),Rn=Lo({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Sn={"Content-Type":"application/json"},Ce=(t={})=>i(d(i({},ur),{headers:Sn,parseAs:"auto",querySerializer:Rn}),t);var fr=(t={})=>{let e=yr(Ce(),t),r=()=>i({},e),o=f=>(e=yr(e,f),r()),s=qo(),c=f=>y(null,null,function*(){var O,g;let u=d(i(i({},e),f),{fetch:(g=(O=f.fetch)!=null?O:e.fetch)!=null?g:globalThis.fetch,headers:gt(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Mo(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 R=dr(u);return{opts:u,url:R}}),n=f=>y(null,null,function*(){var L;let{opts:u,url:R}=yield c(f),O=d(i({redirect:"follow"},u),{body:mr(u)}),g=new Request(R,O);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 E=P;for(let S of s.error.fns)S&&(E=yield S(P,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let T={request:g,response:b};if(b.ok){let P=(L=u.parseAs==="auto"?wo(b.headers.get("Content-Type")):u.parseAs)!=null?L:"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},T)}let E;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":E=yield b[P]();break;case"json":{let S=yield b.text();E=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},T)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:i({data:E},T)}let U=yield b.text(),I;try{I=JSON.parse(U)}catch(P){}let k=I!=null?I: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},T)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:R,url:O}=yield c(u);return No(d(i({},R),{body:R.body,headers:R.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let T of s.request.fns)T&&(b=yield T(b,R));return b}),serializedBody:mr(R),url:O}))});return{buildUrl:dr,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 A=fr(Ce({baseUrl:"https://api.matchi.com/v2"}));var bt={};X(bt,{ChannelsSchema:()=>En,CommunityInvitationPayloadSchema:()=>Cn,FacilityMessagePayloadSchema:()=>xn,LocalizationSchema:()=>Dn,MetadataSchema:()=>In,NotificationPayloadSchema:()=>Un,NotificationRequestBodySchema:()=>vn,NotificationResourceIconSchema:()=>kn,NotificationSchema:()=>Tn,NotificationSourceSchema:()=>_n,NotificationTypeSchema:()=>Nn,NotificationsPaginatedResponseSchema:()=>An,NotificationsSummarySchema:()=>Gn,PreferenceSchema:()=>Ln,PreferencesResponseSchema:()=>wn,RegisterDeviceRequestSchema:()=>Mn,SimpleNotificationPayloadSchema:()=>qn,TopicSchema:()=>Fn,TopicSourceSchema:()=>zn,UpdatePreferencesRequestBodySchema:()=>jn,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Bn,pkgOpenapiSharedErrorSchema:()=>Kn,pkgOpenapiSharedErrorsSchema:()=>$n,pkgOpenapiSharedProblemDetailsSchema:()=>Qn});var En={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Cn={additionalProperties:!1,properties:{community_id:{format:"uuid",type:"string"},description:{type:"string"},title:{type:"string"}},required:["title","description","community_id"],type:"object"},xn={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Dn={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"},In={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Tn={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"},Un={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityInvitationPayload"},{$ref:"#/components/schemas/SimpleNotificationPayload"}]},vn={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},kn={enum:["USER","FACILITY"],type:"string"},_n={enum:["FACILITY","COMMUNITY"],type:"string"},Nn={enum:["USER_FACILITY_MESSAGE","USER_COMMUNITY_INVITATION","USER_SIMPLE_NOTIFICATION"],type:"string"},An={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Gn={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"},Ln={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"},wn={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Mn={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"},qn={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"},Fn={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"},zn={enum:["FACILITY","COMMUNITY"],type:"string"},jn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Bn={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"},Kn={properties:{message:{description:"The error message",type:"string"}},type:"object"},$n={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Qn={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 xe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:A).get(i({url:"/notifications"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:A).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ot=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))},Rt=t=>{var e;return((e=t.client)!=null?e:A).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},St=t=>{var e;return((e=t.client)!=null?e:A).get(i({url:"/notifications/{id}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:A).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:A).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Fo={USER:"USER",FACILITY:"FACILITY"},zo={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},jo={USER_FACILITY_MESSAGE:"USER_FACILITY_MESSAGE",USER_COMMUNITY_INVITATION:"USER_COMMUNITY_INVITATION",USER_SIMPLE_NOTIFICATION:"USER_SIMPLE_NOTIFICATION"},Bo={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"},Ko={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"};var Dt={};X(Dt,{getNotificationByIdOptions:()=>Zn,getNotificationByIdQueryKey:()=>Ho,getNotificationsInfiniteOptions:()=>Yn,getNotificationsInfiniteQueryKey:()=>Qo,getNotificationsOptions:()=>Vn,getNotificationsPreferencesOptions:()=>Jn,getNotificationsPreferencesQueryKey:()=>Vo,getNotificationsQueryKey:()=>$o,registerDeviceMutation:()=>tp,updateAllNotificationsMutation:()=>Wn,updateNotificationMutation:()=>ep,updateNotificationsPreferencesMutation:()=>Xn});var xt=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c: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]},$o=t=>xt("GetNotifications",t),Vn=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:$o(t)}),Hn=(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},Qo=t=>xt("GetNotifications",t,!0),Yn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=Hn(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield xe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Qo(t)}),Wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Vo=t=>xt("GetNotificationsPreferences",t),Jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vo(t)}),Xn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ho=t=>xt("GetNotificationById",t),Zn=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:Ho(t)}),ep=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Et(d(i(i({},t),r),{throwOnError:!0}));return o})}),tp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ct(d(i(i({},t),r),{throwOnError:!0}));return o})});export{Vt as ActivityServiceV1Service,Ht as AnonymousService,Yt as ApiClientServiceV1Service,Z as ApiError,Wt as AuthorizedService,Jt as BookingServiceV1Service,Te as CancelError,pe as CancelablePromise,Xt as CheckoutServiceV1Service,Zt as CompetitionServiceV1Service,er as CorsService,tr as LoyaltyServiceV1Service,rr as MembershipServiceV1Service,p as OpenAPI,or as PlaySessionServiceV1Service,ir as UserServiceV1Service,Er as bookingRestriction,Cr as bookingSubType,kt as bookingSubscription,xr as bookingUserStatus,_t as cancellationPolicy,Nt as chat,At as chatCreation,Dr as chatTarget,Ir as clientType,Tr as directionParam,Ur as months,Gt as notificationChatGroup,Lt as notificationEntity,wt as pendingPayment,Ft as playSessionSettings,zt as playSessionUser,Mt as playerRefundInfo,vr as playerStatusParam,qt as playingUserResponse,kr as userChatStatusParam,_r as userChatTargetParam,jt as userPunchCard,Bt as userRelation,Nr as userRelationStatusParam,lr as v1,hr as v2};
|
|
32
|
+
`);try{_=JSON.parse(D),ne=!0}catch(W){_=D}}ne&&(s&&(yield new N(s(_))),o&&(_=yield new N(o(_)))),r==null||r({data:_,event:ae,id:g,retry:U}),Q.length&&(yield _)}}}finally{k.removeEventListener("abort",oe),Y.releaseLock()}break}catch(S){if(e==null||e(S),n!==void 0&&I>=n)break;let $=Math.min(U*2**(I-1),a!=null?a:3e4);yield new N(G($))}}})}()}};var yn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fn=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},hn=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ft=({allowReserved:t,explode:e,name:r,style:o,value:s})=>{if(!e){let a=(t?s:s.map(m=>encodeURIComponent(m))).join(fn(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let l=yn(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)}`},ht=({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,R])=>{m=[...m,u,t?R:encodeURIComponent(R)]});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=hn(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 gn=/\{[^{}]+\}/g,bn=({path:t,url:e})=>{let r=e,o=e.match(gn);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,ft({explode:l,name:n,style:a,value:m}));continue}if(typeof m=="object"){r=r.replace(s,ht({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},Ao=({baseUrl:t,path:e,query:r,querySerializer:o,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=bn({path:e,url:n}));let a=r?o(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n};function mr(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 Go=(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 Lo=(r={})=>{var o=r,{parameters:t={}}=o,e=z(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=ft(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=ht(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"}},Pn=(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},Mo=r=>y(null,null,function*(){var o=r,{security:t}=o,e=z(o,["security"]);var s;for(let l of t){if(Pn(e,l.name))continue;let n=yield Go(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}}}),dr=t=>Ao({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Lo(t.querySerializer),url:t.url}),yr=(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=gt(t.headers,e.headers),r},On=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},gt=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?On(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}},qo=()=>({error:new Ee,request:new Ee,response:new Ee}),Rn=Lo({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Sn={"Content-Type":"application/json"},Ce=(t={})=>i(d(i({},ur),{headers:Sn,parseAs:"auto",querySerializer:Rn}),t);var fr=(t={})=>{let e=yr(Ce(),t),r=()=>i({},e),o=f=>(e=yr(e,f),r()),s=qo(),l=f=>y(null,null,function*(){var O,g;let u=d(i(i({},e),f),{fetch:(g=(O=f.fetch)!=null?O:e.fetch)!=null?g:globalThis.fetch,headers:gt(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Mo(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 R=dr(u);return{opts:u,url:R}}),n=f=>y(null,null,function*(){var L;let{opts:u,url:R}=yield l(f),O=d(i({redirect:"follow"},u),{body:mr(u)}),g=new Request(R,O);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 E=P;for(let S of s.error.fns)S&&(E=yield S(P,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let P of s.response.fns)P&&(b=yield P(b,g,u));let T={request:g,response:b};if(b.ok){let P=(L=u.parseAs==="auto"?wo(b.headers.get("Content-Type")):u.parseAs)!=null?L:"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},T)}let E;switch(P){case"arrayBuffer":case"blob":case"formData":case"text":E=yield b[P]();break;case"json":{let S=yield b.text();E=S?JSON.parse(S):{};break}case"stream":return u.responseStyle==="data"?b.body:i({data:b.body},T)}return P==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:i({data:E},T)}let U=yield b.text(),I;try{I=JSON.parse(U)}catch(P){}let k=I!=null?I: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},T)}),a=f=>u=>n(d(i({},u),{method:f})),m=f=>u=>y(null,null,function*(){let{opts:R,url:O}=yield l(u);return No(d(i({},R),{body:R.body,headers:R.headers,method:f,onRequest:(g,G)=>y(null,null,function*(){let b=new Request(g,G);for(let T of s.request.fns)T&&(b=yield T(b,R));return b}),serializedBody:mr(R),url:O}))});return{buildUrl:dr,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 A=fr(Ce({baseUrl:"https://api.matchi.com/v2"}));var bt={};X(bt,{ChannelsSchema:()=>En,CommunityInvitationPayloadSchema:()=>Cn,FacilityMessagePayloadSchema:()=>xn,LocalizationSchema:()=>Dn,MetadataSchema:()=>In,NotificationPayloadSchema:()=>Un,NotificationRequestBodySchema:()=>vn,NotificationResourceIconSchema:()=>kn,NotificationSchema:()=>Tn,NotificationSourceSchema:()=>_n,NotificationTypeSchema:()=>Nn,NotificationsPaginatedResponseSchema:()=>An,NotificationsSummarySchema:()=>Gn,PreferenceSchema:()=>Ln,PreferencesResponseSchema:()=>wn,RegisterDeviceRequestSchema:()=>Mn,SimpleNotificationPayloadSchema:()=>qn,TopicSchema:()=>Fn,TopicSourceSchema:()=>zn,UpdatePreferencesRequestBodySchema:()=>jn,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Bn,pkgOpenapiSharedErrorSchema:()=>Kn,pkgOpenapiSharedErrorsSchema:()=>$n,pkgOpenapiSharedProblemDetailsSchema:()=>Qn});var En={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Cn={additionalProperties:!1,properties:{community_id:{format:"uuid",type:"string"},description:{type:"string"},title:{type:"string"}},required:["title","description","community_id"],type:"object"},xn={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Dn={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"},In={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Tn={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"},Un={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityInvitationPayload"},{$ref:"#/components/schemas/SimpleNotificationPayload"}]},vn={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},kn={enum:["USER","FACILITY"],type:"string"},_n={enum:["FACILITY","COMMUNITY"],type:"string"},Nn={enum:["USER_FACILITY_MESSAGE","USER_COMMUNITY_INVITATION","USER_SIMPLE_NOTIFICATION"],type:"string"},An={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Gn={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"},Ln={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"},wn={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Mn={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"},qn={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"},Fn={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"},zn={enum:["FACILITY","COMMUNITY"],type:"string"},jn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Bn={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"},Kn={properties:{message:{description:"The error message",type:"string"}},type:"object"},$n={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Qn={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 xe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:A).get(i({url:"/notifications"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:A).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ot=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))},Rt=t=>{var e;return((e=t.client)!=null?e:A).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},St=t=>{var e;return((e=t.client)!=null?e:A).get(i({url:"/notifications/{id}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:A).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:A).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Fo={USER:"USER",FACILITY:"FACILITY"},zo={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},jo={USER_FACILITY_MESSAGE:"USER_FACILITY_MESSAGE",USER_COMMUNITY_INVITATION:"USER_COMMUNITY_INVITATION",USER_SIMPLE_NOTIFICATION:"USER_SIMPLE_NOTIFICATION"},Bo={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"},Ko={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"};var Dt={};X(Dt,{getNotificationByIdOptions:()=>Zn,getNotificationByIdQueryKey:()=>Ho,getNotificationsInfiniteOptions:()=>Yn,getNotificationsInfiniteQueryKey:()=>Qo,getNotificationsOptions:()=>Vn,getNotificationsPreferencesOptions:()=>Jn,getNotificationsPreferencesQueryKey:()=>Vo,getNotificationsQueryKey:()=>$o,registerDeviceMutation:()=>tp,updateAllNotificationsMutation:()=>Wn,updateNotificationMutation:()=>ep,updateNotificationsPreferencesMutation:()=>Xn});var xt=(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]},$o=t=>xt("GetNotifications",t),Vn=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:$o(t)}),Hn=(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},Qo=t=>xt("GetNotifications",t,!0),Yn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let n=Hn(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=yield xe(d(i(i({},t),n),{signal:o,throwOnError:!0}));return a}),queryKey:Qo(t)}),Wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Vo=t=>xt("GetNotificationsPreferences",t),Jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vo(t)}),Xn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ho=t=>xt("GetNotificationById",t),Zn=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:Ho(t)}),ep=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Et(d(i(i({},t),r),{throwOnError:!0}));return o})}),tp=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ct(d(i(i({},t),r),{throwOnError:!0}));return o})});export{Vt as ActivityServiceV1Service,Ht as AnonymousService,Yt as ApiClientServiceV1Service,Z as ApiError,Wt as AuthorizedService,Jt as BookingServiceV1Service,Te as CancelError,pe as CancelablePromise,Xt as CheckoutServiceV1Service,Zt as CompetitionServiceV1Service,er as CorsService,tr as LoyaltyServiceV1Service,rr as MembershipServiceV1Service,p as OpenAPI,or as PlaySessionServiceV1Service,ir as UserServiceV1Service,Er as bookingRestriction,Cr as bookingSubType,kt as bookingSubscription,xr as bookingUserStatus,_t as cancellationPolicy,Nt as chat,At as chatCreation,Dr as chatTarget,Ir as clientType,Tr as directionParam,Ur as months,Gt as notificationChatGroup,Lt as notificationEntity,wt as pendingPayment,Ft as playSessionSettings,zt as playSessionUser,Mt as playerRefundInfo,vr as playerStatusParam,qt as playingUserResponse,kr as userChatStatusParam,_r as userChatTargetParam,jt as userPunchCard,Bt as userRelation,Nr as userRelationStatusParam,lr as v1,hr as v2};
|