@matchi/api 0.20260121.6 → 0.20260121.7
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 +517 -131
- package/dist/main/index.d.ts +517 -131
- package/dist/main/index.js +7 -1
- package/dist/main/index.mjs +7 -1
- package/package.json +6 -8
package/dist/main/index.mjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
var we=Object.defineProperty,hr=Object.defineProperties;var gr=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var qe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var W=(t,e,r)=>e in t?we(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))qe.call(e,r)&&W(t,r,e[r]);if(L)for(var r of L(e))Le.call(e,r)&&W(t,r,e[r]);return t},d=(t,e)=>hr(t,gr(e));var Fe=(t,e)=>{var r={};for(var i in t)qe.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&L)for(var i of L(t))e.indexOf(i)<0&&Le.call(t,i)&&(r[i]=t[i]);return r};var Y=(t,e)=>{for(var r in e)we(t,r,{get:e[r],enumerable:!0})};var ze=(t,e,r)=>(W(t,typeof e!="symbol"?e+"":e,r),r),Be=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Be(t,e,"read from private field"),r?r.call(t):e.get(t)),C=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},O=(t,e,r,i)=>(Be(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((i,s)=>{var l=u=>{try{p(r.next(u))}catch(h){s(h)}},n=u=>{try{p(r.throw(u))}catch(h){s(h)}},p=u=>u.done?i(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(t,e)).next())});var x=class extends Error{constructor(r,i,s){super(s);this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=r}};var F=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,T,P,R,U,G,A,D=class{constructor(e){C(this,E,void 0);C(this,T,void 0);C(this,P,void 0);C(this,R,void 0);C(this,U,void 0);C(this,G,void 0);C(this,A,void 0);O(this,E,!1),O(this,T,!1),O(this,P,!1),O(this,R,[]),O(this,U,new Promise((r,i)=>{O(this,G,r),O(this,A,i);let s=p=>{var u;f(this,E)||f(this,T)||f(this,P)||(O(this,E,!0),(u=f(this,G))==null||u.call(this,p))},l=p=>{var u;f(this,E)||f(this,T)||f(this,P)||(O(this,T,!0),(u=f(this,A))==null||u.call(this,p))},n=p=>{f(this,E)||f(this,T)||f(this,P)||f(this,R).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,T)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,P)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,U).then(e,r)}catch(e){return f(this,U).catch(e)}finally(e){return f(this,U).finally(e)}cancel(){var e;if(!(f(this,E)||f(this,T)||f(this,P))){if(O(this,P,!0),f(this,R).length)try{for(let r of f(this,R))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,R).length=0,(e=f(this,A))==null||e.call(this,new F("Request aborted"))}}get isCancelled(){return f(this,P)}};E=new WeakMap,T=new WeakMap,P=new WeakMap,R=new WeakMap,U=new WeakMap,G=new WeakMap,A=new WeakMap;var o={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 Me=(p=>(p.LIMIT_REACHED="LIMIT_REACHED",p.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",p.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",p.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",p.COURT_GROUP="COURT_GROUP",p.TOO_SOON="TOO_SOON",p.MEMBERS_ONLY="MEMBERS_ONLY",p))(Me||{});var Q;(e=>{let t;(g=>(g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY",g.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(Q||(Q={}));var je=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(je||{});var $e=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))($e||{});var J;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(J||(J={}));var X;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(X||(X={}));var Z;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Z||(Z={}));var He=(i=>(i.PLAYSESSION="playsession",i.USERGROUP="usergroup",i.AICOACH="aicoach",i))(He||{});var Ve=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ve||{});var Ke=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Ke||{});var We=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(We||{});var ee;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(ee||(ee={}));var re;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(re||(re={}));var te;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(te||(te={}));var Ye=(i=>(i.ALL="ALL",i.PENDING_APPROVAL="PENDING_APPROVAL",i.PENDING_ACTION="PENDING_ACTION",i))(Ye||{});var ie;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(ie||(ie={}));var oe;(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={}))})(oe||(oe={}));var ae;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(ae||(ae={}));var Qe=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(Qe||{});var Je=(i=>(i.ALL="ALL",i.PLAYSESSION="PLAYSESSION",i.USERGROUP="USERGROUP",i))(Je||{});var se;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(se||(se={}));var ne;(e=>{let t;(p=>(p.FRIENDS="FRIENDS",p.OUTGOING="OUTGOING",p.INCOMING="INCOMING",p.BLOCKED="BLOCKED",p.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(ne||(ne={}));var Xe=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Xe||{});var pe=t=>t!=null,k=t=>typeof t=="string",le=t=>k(t)&&t!=="",ce=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]),Ze=t=>t instanceof FormData,br=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Or=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},i=(s,l)=>{pe(l)&&(Array.isArray(l)?l.forEach(n=>{i(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{i(`${s}[${n}]`,p)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{i(s,l)}),e.length>0?`?${e.join("&")}`:""},Pr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${i}`;return e.query?`${s}${Or(e.query)}`:s},Ir=t=>{if(t.formData){let e=new FormData,r=(i,s)=>{k(s)||ce(s)?e.append(i,s):e.append(i,JSON.stringify(s))};return Object.entries(t.formData).filter(([i,s])=>pe(s)).forEach(([i,s])=>{Array.isArray(s)?s.forEach(l=>r(i,l)):r(i,s)}),e}},z=(t,e)=>y(void 0,null,function*(){return typeof e=="function"?e(t):e}),Er=(t,e)=>y(void 0,null,function*(){let r=yield z(e,t.TOKEN),i=yield z(e,t.USERNAME),s=yield z(e,t.PASSWORD),l=yield z(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},l),e.headers)).filter(([p,u])=>pe(u)).reduce((p,[u,h])=>d(c({},p),{[u]:String(h)}),{});if(le(r)&&(n.Authorization=`Bearer ${r}`),le(i)&&le(s)){let p=br(`${i}:${s}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:ce(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":k(e.body)?n["Content-Type"]="text/plain":Ze(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Tr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):k(t.body)||ce(t.body)||Ze(t.body)?t.body:JSON.stringify(t.body)},Sr=(t,e,r,i,s,l,n)=>y(void 0,null,function*(){let p=new AbortController,u={headers:l,body:i!=null?i:s,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(u.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Cr=(t,e)=>{if(e){let r=t.headers.get(e);if(k(r))return r}},Rr=t=>y(void 0,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)}}),vr=(t,e)=>{var s,l;let i=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(i)throw new x(t,e,i);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",p=(l=e.statusText)!=null?l:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(h){return}})();throw new x(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},a=(t,e)=>new D((r,i,s)=>y(void 0,null,function*(){try{let l=Pr(t,e),n=Ir(e),p=Tr(e),u=yield Er(t,e);if(!s.isCancelled){let h=yield Sr(t,e,l,p,n,u,s),g=yield Rr(h),v=Cr(h,e.responseHeader),m={url:l,ok:h.ok,status:h.status,statusText:h.statusText,body:v!=null?v:g};vr(e,m),r(m.body)}}catch(l){i(l)}}));var ue=class{static getAdminActivityOccasions(e,r,i,s,l,n=10){return a(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,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 de=class{static listActivities(e=!1,r=!1,i,s,l,n,p,u,h,g,v,m=10){return a(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:i,level:s,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:h,endDate:g,offset:v,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return a(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,i,s,l){return a(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:i,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 a(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,i,s,l,n=10){return a(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,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 a(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,i,s,l,n,p,u,h=10){return a(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:i,latitude:s,longitude:l,radius:n,resourceTypes:p,offset:u,limit:h},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return a(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return a(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,i){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return a(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return a(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(o,{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 me=class{static getApiClientList(e,r=10){return a(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(o,{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 fe=class{static getActivityOccasionForUser(e){return a(o,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return a(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return a(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,i,s,l,n,p){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:s,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,i,s,l){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,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,i,s,l){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,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,i,s){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:i,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 a(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return a(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,s=10){return a(o,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(o,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(o,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(o,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(o,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(o,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(o,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(o,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(o,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return a(o,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return a(o,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(o,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return a(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return a(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return a(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return a(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return a(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return a(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,i){return a(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return a(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return a(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return a(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return a(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return a(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return a(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",s="ALL"){return a(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,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 a(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,s,l){return a(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,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 a(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return a(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return a(o,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(o,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(o,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return a(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return a(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return a(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return a(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return a(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return a(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return a(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return a(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return a(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return a(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return a(o,{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 ye=class{static getAvailabilityWithPrice(e,r,i,s,l,n,p){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:s,numberOfSlots:l,emails:n,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,i,s,l){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,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,i,s,l){return a(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,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 a(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return a(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return a(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return a(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return a(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return a(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return a(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return a(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return a(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return a(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return a(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var he=class{static getCheckout(e){return a(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return a(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ge=class{static updateCompetitionAccount(e){return a(o,{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 be=class{static options(e){return a(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Oe=class{static createPromoCode(e){return a(o,{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 Pe=class{static createMembership(e){return a(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return a(o,{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 Ie=class{static getPlaySessionById(e){return a(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return a(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return a(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return a(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,i){return a(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,i){return a(o,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return a(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return a(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return a(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",s="ALL"){return a(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,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 a(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return a(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,s,l){return a(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,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 Ee=class{static getUserProfile(e){return a(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return a(o,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,s=10){return a(o,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return a(o,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return a(o,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return a(o,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return a(o,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return a(o,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return a(o,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return a(o,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return a(o,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return a(o,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return a(o,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return a(o,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return a(o,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return a(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return a(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return a(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return a(o,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return a(o,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return a(o,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return a(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return a(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return a(o,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return a(o,{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 De={};Y(De,{Gender:()=>St,Source:()=>Ct,Topic:()=>Rt,UserRelation:()=>vt,client:()=>b,createFacilityOfferOrder:()=>$,getNotificationById:()=>Ue,getNotifications:()=>H,getNotificationsPreferences:()=>Re,listFacilityOffers:()=>j,queries:()=>K,schemas:()=>M,searchUsers:()=>V,updateAllNotifications:()=>Ce,updateNotification:()=>xe,updateNotificationsPreferences:()=>ve,updateUserProfile:()=>Ae});var Ur=(t,e)=>y(void 0,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 xr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Ar=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Nr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Dr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},tr=({allowReserved:t,explode:e,name:r,style:i,value:s})=>{if(!e){let p=(t?s:s.map(u=>encodeURIComponent(u))).join(Nr(i));switch(i){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Ar(i),n=s.map(p=>i==="label"||i==="simple"?t?p:encodeURIComponent(p):B({allowReserved:t,name:r,value:p})).join(l);return i==="label"||i==="matrix"?l+n:n},B=({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)}`},ir=({allowReserved:t,explode:e,name:r,style:i,value:s})=>{if(s instanceof Date)return`${r}=${s.toISOString()}`;if(i!=="deepObject"&&!e){let p=[];Object.entries(s).forEach(([h,g])=>{p=[...p,h,t?g:encodeURIComponent(g)]});let u=p.join(",");switch(i){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let l=Dr(i),n=Object.entries(s).map(([p,u])=>B({allowReserved:t,name:i==="deepObject"?`${r}[${p}]`:p,value:u})).join(l);return i==="label"||i==="matrix"?l+n:n},Gr=/\{[^{}]+\}/g,kr=({path:t,url:e})=>{let r=e,i=e.match(Gr);if(i)for(let s of i){let l=!1,n=s.substring(1,s.length-1),p="simple";n.endsWith("*")&&(l=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),p="label"):n.startsWith(";")&&(n=n.substring(1),p="matrix");let u=t[n];if(u==null)continue;if(Array.isArray(u)){r=r.replace(s,tr({explode:l,name:n,style:p,value:u}));continue}if(typeof u=="object"){r=r.replace(s,ir({explode:l,name:n,style:p,value:u}));continue}if(p==="matrix"){r=r.replace(s,`;${B({name:n,value:u})}`);continue}let h=encodeURIComponent(p==="label"?`.${u}`:u);r=r.replace(s,h)}return r},or=({allowReserved:t,array:e,object:r}={})=>i=>{let s=[];if(i&&typeof i=="object")for(let l in i){let n=i[l];if(n!=null){if(Array.isArray(n)){s=[...s,tr(c({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){s=[...s,ir(c({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}s=[...s,B({allowReserved:t,name:l,value:n})]}}return s.join("&")},_r=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},wr=r=>y(void 0,null,function*(){var i=r,{security:t}=i,e=Fe(i,["security"]);var s;for(let l of t){let n=yield Ur(l,e.auth);if(!n)continue;let p=(s=l.name)!=null?s:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=n;break;case"header":default:e.headers.set(p,n);break}return}}),er=t=>qr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:or(t.querySerializer),url:t.url}),qr=({baseUrl:t,path:e,query:r,querySerializer:i,url:s})=>{let l=s.startsWith("/")?s:`/${s}`,n=(t!=null?t:"")+l;e&&(n=kr({path:e,url:n}));let p=r?i(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},rr=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=ar(t.headers,e.headers),r},ar=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let i=r instanceof Headers?r.entries():Object.entries(r);for(let[s,l]of i)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},Te=class{constructor(){ze(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},Lr=()=>({error:new Te,request:new Te,response:new Te}),Fr=or({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),zr={"Content-Type":"application/json"},Se=(t={})=>c(d(c({},xr),{headers:zr,parseAs:"auto",querySerializer:Fr}),t),sr=(t={})=>{let e=rr(Se(),t),r=()=>c({},e),i=n=>(e=rr(e,n),r()),s=Lr(),l=n=>y(void 0,null,function*(){var Ge,ke,_e;let p=d(c(c({},e),n),{fetch:(ke=(Ge=n.fetch)!=null?Ge:e.fetch)!=null?ke:globalThis.fetch,headers:ar(e.headers,n.headers)});p.security&&(yield wr(d(c({},p),{security:p.security}))),p.body&&p.bodySerializer&&(p.body=p.bodySerializer(p.body)),(p.body===void 0||p.body==="")&&p.headers.delete("Content-Type");let u=er(p),h=c({redirect:"follow"},p),g=new Request(u,h);for(let I of s.request._fns)g=yield I(g,p);let v=p.fetch,m=yield v(g);for(let I of s.response._fns)m=yield I(m,g,p);let _={request:g,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return c({data:{}},_);let I=(_e=p.parseAs==="auto"?_r(m.headers.get("Content-Type")):p.parseAs)!=null?_e:"json";if(I==="stream")return c({data:m.body},_);let q=yield m[I]();return I==="json"&&(p.responseValidator&&(yield p.responseValidator(q)),p.responseTransformer&&(q=yield p.responseTransformer(q))),c({data:q},_)}let w=yield m.text();try{w=JSON.parse(w)}catch(I){}let N=w;for(let I of s.error._fns)N=yield I(w,m,g,p);if(N=N||{},p.throwOnError)throw N;return c({error:N},_)});return{buildUrl:er,connect:n=>l(d(c({},n),{method:"CONNECT"})),delete:n=>l(d(c({},n),{method:"DELETE"})),get:n=>l(d(c({},n),{method:"GET"})),getConfig:r,head:n=>l(d(c({},n),{method:"HEAD"})),interceptors:s,options:n=>l(d(c({},n),{method:"OPTIONS"})),patch:n=>l(d(c({},n),{method:"PATCH"})),post:n=>l(d(c({},n),{method:"POST"})),put:n=>l(d(c({},n),{method:"PUT"})),request:l,setConfig:i,trace:n=>l(d(c({},n),{method:"TRACE"}))}};var b=sr(Se({baseUrl:"https://api.matchi.com/v1"}));var M={};Y(M,{ChannelsSchema:()=>Br,FacilityMessagePayloadSchema:()=>Mr,FacilityOfferConditionActivitiesSchema:()=>Hr,FacilityOfferConditionCourtsSchema:()=>Vr,FacilityOfferConditionDateSchema:()=>Kr,FacilityOfferConditionHoursinadvanceSchema:()=>Wr,FacilityOfferConditionSchema:()=>$r,FacilityOfferConditionTimeSchema:()=>Yr,FacilityOfferConditionWeekdaysSchema:()=>Qr,FacilityOfferListSchema:()=>Jr,FacilityOfferOrderSchema:()=>Xr,FacilityOfferSchema:()=>jr,FacilityPunchCardDataSchema:()=>Zr,FacilityValueCardDataSchema:()=>et,GenderSchema:()=>rt,MetadataSchema:()=>tt,NotificationPayloadSchema:()=>ot,NotificationRequestBodySchema:()=>at,NotificationSchema:()=>it,NotificationsFilterSchema:()=>st,NotificationsPaginatedResponseSchema:()=>nt,NotificationsSummarySchema:()=>lt,PreferenceSchema:()=>pt,PreferencesResponseSchema:()=>ct,SourceSchema:()=>ut,TopicSchema:()=>dt,UpdatePreferencesRequestBodySchema:()=>mt,UpdateUserProfileRequestSchema:()=>ft,UserProfileSchema:()=>ht,UserRelationSchema:()=>gt,UserSchema:()=>yt,UsersPaginatedResponseSchema:()=>bt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Ot,pkgOpenapiSharedErrorSchema:()=>Pt,pkgOpenapiSharedErrorsSchema:()=>It,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Et,pkgOpenapiSharedProblemDetailsSchema:()=>Tt});var Br={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Mr={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},jr={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},$r={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Hr={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Vr={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Kr={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Wr={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Yr={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Qr={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Jr={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Xr={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Zr={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},et={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},rt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},tt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},it={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},ot={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},at={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},st={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},nt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},lt={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"},pt={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ct={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},ut={enum:["FACILITY"],type:"string"},dt={enum:["FACILITY_MESSAGE"],type:"string"},mt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ft={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},yt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ht={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{nullable:!0,type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},gt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},bt={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ot={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"},Pt={properties:{message:{description:"The error message",type:"string"}},type:"object"},It={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Et={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"},Tt={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 St={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},Ct={FACILITY:"FACILITY"},Rt={FACILITY_MESSAGE:"FACILITY_MESSAGE"},vt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var j=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/facilities/{facility_id}/offers"},t))},$=t=>{var e;return((e=t.client)!=null?e:b).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},H=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/notifications"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:b).patch(d(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({querySerializer:{array:{explode:!1,style:"form"}},url:"/notifications/preferences"},t))},ve=t=>{var e;return((e=t.client)!=null?e:b).patch(d(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},Ue=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/notifications/{id}"},t))},xe=t=>{var e;return((e=t.client)!=null?e:b).patch(d(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},V=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/users/profiles"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:b).patch(d(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))};var K={};Y(K,{createFacilityOfferOrderMutation:()=>Nt,createFacilityOfferOrderOptions:()=>At,createFacilityOfferOrderQueryKey:()=>pr,getNotificationByIdOptions:()=>qt,getNotificationByIdQueryKey:()=>mr,getNotificationsInfiniteOptions:()=>Gt,getNotificationsInfiniteQueryKey:()=>ur,getNotificationsOptions:()=>Dt,getNotificationsPreferencesOptions:()=>_t,getNotificationsPreferencesQueryKey:()=>dr,getNotificationsQueryKey:()=>cr,listFacilityOffersInfiniteOptions:()=>xt,listFacilityOffersInfiniteQueryKey:()=>lr,listFacilityOffersOptions:()=>Ut,listFacilityOffersQueryKey:()=>nr,searchUsersInfiniteOptions:()=>zt,searchUsersInfiniteQueryKey:()=>yr,searchUsersOptions:()=>Ft,searchUsersQueryKey:()=>fr,updateAllNotificationsMutation:()=>kt,updateNotificationMutation:()=>Lt,updateNotificationsPreferencesMutation:()=>wt,updateUserProfileMutation:()=>Bt});var S=(t,e,r)=>{var s;let i={_id:t,baseUrl:((s=e==null?void 0:e.client)!=null?s:b).getConfig().baseUrl};return r&&(i._infinite=r),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},nr=t=>S("listFacilityOffers",t),Ut=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield j(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:nr(t)}),Ne=(t,e)=>{let r=t[0];return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},lr=t=>S("listFacilityOffers",t,!0),xt=t=>({queryFn:s=>y(void 0,[s],function*({pageParam:e,queryKey:r,signal:i}){let n=Ne(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield j(d(c(c({},t),n),{signal:i,throwOnError:!0}));return p}),queryKey:lr(t)}),pr=t=>S("createFacilityOfferOrder",t),At=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield $(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:pr(t)}),Nt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:i}=yield $(d(c(c({},t),r),{throwOnError:!0}));return i})}),cr=t=>S("getNotifications",t),Dt=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield H(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:cr(t)}),ur=t=>S("getNotifications",t,!0),Gt=t=>({queryFn:s=>y(void 0,[s],function*({pageParam:e,queryKey:r,signal:i}){let n=Ne(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield H(d(c(c({},t),n),{signal:i,throwOnError:!0}));return p}),queryKey:ur(t)}),kt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:i}=yield Ce(d(c(c({},t),r),{throwOnError:!0}));return i})}),dr=t=>S("getNotificationsPreferences",t),_t=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:dr(t)}),wt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:i}=yield ve(d(c(c({},t),r),{throwOnError:!0}));return i})}),mr=t=>S("getNotificationById",t),qt=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield Ue(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:mr(t)}),Lt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:i}=yield xe(d(c(c({},t),r),{throwOnError:!0}));return i})}),fr=t=>S("searchUsers",t),Ft=t=>({queryFn:i=>y(void 0,[i],function*({queryKey:e,signal:r}){let{data:s}=yield V(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:fr(t)}),yr=t=>S("searchUsers",t,!0),zt=t=>({queryFn:s=>y(void 0,[s],function*({pageParam:e,queryKey:r,signal:i}){let n=Ne(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield V(d(c(c({},t),n),{signal:i,throwOnError:!0}));return p}),queryKey:yr(t)}),Bt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:i}=yield Ae(d(c(c({},t),r),{throwOnError:!0}));return i})});export{ue as ActivityServiceV1Service,de as AnonymousService,me as ApiClientServiceV1Service,x as ApiError,fe as AuthorizedService,ye as BookingServiceV1Service,F as CancelError,D as CancelablePromise,he as CheckoutServiceV1Service,ge as CompetitionServiceV1Service,be as CorsService,Oe as LoyaltyServiceV1Service,Pe as MembershipServiceV1Service,o as OpenAPI,Ie as PlaySessionServiceV1Service,Ee as UserServiceV1Service,Me as bookingRestriction,je as bookingSubType,Q as bookingSubscription,$e as bookingUserStatus,J as cancellationPolicy,X as chat,Z as chatCreation,He as chatTarget,Ve as clientType,Ke as directionParam,We as months,ee as notificationChatGroup,re as notificationEntity,te as pendingPayment,oe as playSessionSettings,ae as playSessionUser,Ye as playerStatusParam,ie as playingUserResponse,Qe as userChatStatusParam,Je as userChatTargetParam,se as userPunchCard,ne as userRelation,Xe as userRelationStatusParam,De as v1};
|
|
1
|
+
var lr=Object.defineProperty,Yr=Object.defineProperties;var Jr=Object.getOwnPropertyDescriptors;var se=Object.getOwnPropertySymbols;var cr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable;var Xr=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),dr=t=>{throw TypeError(t)};var pr=(t,e,r)=>e in t?lr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))cr.call(e,r)&&pr(t,r,e[r]);if(se)for(var r of se(e))ur.call(e,r)&&pr(t,r,e[r]);return t},m=(t,e)=>Yr(t,Jr(e));var W=(t,e)=>{var r={};for(var i in t)cr.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&se)for(var i of se(t))e.indexOf(i)<0&&ur.call(t,i)&&(r[i]=t[i]);return r};var Ie=(t,e)=>{for(var r in e)lr(t,r,{get:e[r],enumerable:!0})};var fr=(t,e,r)=>e.has(t)||dr("Cannot "+r);var b=(t,e,r)=>(fr(t,e,"read from private field"),r?r.call(t):e.get(t)),G=(t,e,r)=>e.has(t)?dr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),R=(t,e,r,i)=>(fr(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var h=(t,e,r)=>new Promise((i,a)=>{var p=d=>{try{l(r.next(d))}catch(f){a(f)}},n=d=>{try{l(r.throw(d))}catch(f){a(f)}},l=d=>d.done?i(d.value):Promise.resolve(d.value).then(p,n);l((r=r.apply(t,e)).next())}),w=function(t,e){this[0]=t,this[1]=e},mr=(t,e,r)=>{var i=(n,l,d,f)=>{try{var u=r[n](l),O=(l=u.value)instanceof w,y=u.done;Promise.resolve(O?l[0]:l).then(g=>O?i(n==="return"?n:"next",l[1]?{done:g.done,value:g.value}:g,d,f):d({value:g,done:y})).catch(g=>i("throw",g,d,f))}catch(g){f(g)}},a=n=>p[n]=l=>new Promise((d,f)=>i(n,l,d,f)),p={};return r=r.apply(t,e),p[Xr("asyncIterator")]=()=>p,a("next"),a("throw"),a("return"),p};var B=class extends Error{constructor(e,r,i){super(i),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var ae=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},v,A,x,_,z,Y,j,Q=class{constructor(e){G(this,v);G(this,A);G(this,x);G(this,_);G(this,z);G(this,Y);G(this,j);R(this,v,!1),R(this,A,!1),R(this,x,!1),R(this,_,[]),R(this,z,new Promise((r,i)=>{R(this,Y,r),R(this,j,i);let a=l=>{var d;b(this,v)||b(this,A)||b(this,x)||(R(this,v,!0),(d=b(this,Y))==null||d.call(this,l))},p=l=>{var d;b(this,v)||b(this,A)||b(this,x)||(R(this,A,!0),(d=b(this,j))==null||d.call(this,l))},n=l=>{b(this,v)||b(this,A)||b(this,x)||b(this,_).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>b(this,v)}),Object.defineProperty(n,"isRejected",{get:()=>b(this,A)}),Object.defineProperty(n,"isCancelled",{get:()=>b(this,x)}),e(a,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return b(this,z).then(e,r)}catch(e){return b(this,z).catch(e)}finally(e){return b(this,z).finally(e)}cancel(){var e;if(!(b(this,v)||b(this,A)||b(this,x))){if(R(this,x,!0),b(this,_).length)try{for(let r of b(this,_))r()}catch(r){console.warn("Cancellation threw an error",r);return}b(this,_).length=0,(e=b(this,j))==null||e.call(this,new ae("Request aborted"))}}get isCancelled(){return b(this,x)}};v=new WeakMap,A=new WeakMap,x=new WeakMap,_=new WeakMap,z=new WeakMap,Y=new WeakMap,j=new WeakMap;var o={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 yr=(l=>(l.LIMIT_REACHED="LIMIT_REACHED",l.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",l.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",l.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",l.COURT_GROUP="COURT_GROUP",l.TOO_SOON="TOO_SOON",l.MEMBERS_ONLY="MEMBERS_ONLY",l))(yr||{});var Ee;(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={}))})(Ee||(Ee={}));var hr=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(hr||{});var gr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(gr||{});var Te;(e=>{let t;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(Te||(Te={}));var Ce;(e=>{let t;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Ce||(Ce={}));var Re;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(Re||(Re={}));var br=(i=>(i.PLAYSESSION="playsession",i.USERGROUP="usergroup",i.AICOACH="aicoach",i))(br||{});var Or=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Or||{});var Pr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Pr||{});var Sr=(y=>(y.JANUARY="January",y.FEBRUARY="February",y.MARCH="March",y.APRIL="April",y.MAY="May",y.JUNE="June",y.JULY="July",y.AUGUST="August",y.SEPTEMBER="September",y.OCTOBER="October",y.NOVEMBER="November",y.DECEMBER="December",y))(Sr||{});var xe;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(xe||(xe={}));var Ue;(e=>{let t;(a=>(a.GROUP="group",a.USER="user"))(t=e.entityType||(e.entityType={}))})(Ue||(Ue={}));var ve;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(ve||(ve={}));var Ir=(i=>(i.ALL="ALL",i.PENDING_APPROVAL="PENDING_APPROVAL",i.PENDING_ACTION="PENDING_ACTION",i))(Ir||{});var Ae;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Ae||(Ae={}));var Ne;(e=>{let t;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Ne||(Ne={}));var ke;(e=>{let t;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(ke||(ke={}));var Er=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(Er||{});var Tr=(i=>(i.ALL="ALL",i.PLAYSESSION="PLAYSESSION",i.USERGROUP="USERGROUP",i))(Tr||{});var De;(e=>{let t;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(De||(De={}));var Ge;(e=>{let t;(l=>(l.FRIENDS="FRIENDS",l.OUTGOING="OUTGOING",l.INCOMING="INCOMING",l.BLOCKED="BLOCKED",l.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Ge||(Ge={}));var Cr=(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a))(Cr||{});var _e=t=>t!=null,J=t=>typeof t=="string",we=t=>J(t)&&t!=="",qe=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]),Rr=t=>t instanceof FormData,Zr=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},et=t=>{let e=[],r=(a,p)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(p))}`)},i=(a,p)=>{_e(p)&&(Array.isArray(p)?p.forEach(n=>{i(a,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{i(`${a}[${n}]`,l)}):r(a,p))};return Object.entries(t).forEach(([a,p])=>{i(a,p)}),e.length>0?`?${e.join("&")}`:""},rt=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(p,n)=>{var l;return(l=e.path)!=null&&l.hasOwnProperty(n)?r(String(e.path[n])):p}),a=`${t.BASE}${i}`;return e.query?`${a}${et(e.query)}`:a},tt=t=>{if(t.formData){let e=new FormData,r=(i,a)=>{J(a)||qe(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(t.formData).filter(([i,a])=>_e(a)).forEach(([i,a])=>{Array.isArray(a)?a.forEach(p=>r(i,p)):r(i,a)}),e}},ne=(t,e)=>h(null,null,function*(){return typeof e=="function"?e(t):e}),it=(t,e)=>h(null,null,function*(){let r=yield ne(e,t.TOKEN),i=yield ne(e,t.USERNAME),a=yield ne(e,t.PASSWORD),p=yield ne(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,d])=>_e(d)).reduce((l,[d,f])=>m(c({},l),{[d]:String(f)}),{});if(we(r)&&(n.Authorization=`Bearer ${r}`),we(i)&&we(a)){let l=Zr(`${i}:${a}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:qe(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":J(e.body)?n["Content-Type"]="text/plain":Rr(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ot=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):J(t.body)||qe(t.body)||Rr(t.body)?t.body:JSON.stringify(t.body)},st=(t,e,r,i,a,p,n)=>h(null,null,function*(){let l=new AbortController,d={headers:p,body:i!=null?i:a,method:e.method,signal:l.signal};return t.WITH_CREDENTIALS&&(d.credentials=t.CREDENTIALS),n(()=>l.abort()),yield fetch(r,d)}),at=(t,e)=>{if(e){let r=t.headers.get(e);if(J(r))return r}},nt=t=>h(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield t.json():yield t.text()}catch(e){console.error(e)}}),pt=(t,e)=>{var a,p;let i=c({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(i)throw new B(t,e,i);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",l=(p=e.statusText)!=null?p:"unknown",d=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new B(t,e,`Generic Error: status: ${n}; status text: ${l}; body: ${d}`)}},s=(t,e)=>new Q((r,i,a)=>h(null,null,function*(){try{let p=rt(t,e),n=tt(e),l=ot(e),d=yield it(t,e);if(!a.isCancelled){let f=yield st(t,e,p,l,n,d,a),u=yield nt(f),O=at(f,e.responseHeader),y={url:p,ok:f.ok,status:f.status,statusText:f.statusText,body:O!=null?O:u};pt(e,y),r(y.body)}}catch(p){i(p)}}));var Fe=class{static getAdminActivityOccasions(e,r,i,a,p,n=10){return s(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:a,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Le=class{static listActivities(e=!1,r=!1,i,a,p,n,l,d,f,u,O,y=10){return s(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:i,level:a,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:d,startDate:f,endDate:u,offset:O,limit:y},errors:{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 s(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,i,a,p){return s(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:i,startDate:a,endDate:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return s(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,i,a,p,n=10){return s(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:i,endDate:a,offset:p,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return s(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,i,a,p,n,l,d,f=10){return s(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:i,latitude:a,longitude:p,radius:n,resourceTypes:l,offset:d,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return s(o,{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 s(o,{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 s(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,i){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 ze=class{static getApiClientList(e,r=10){return s(o,{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 s(o,{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 s(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return s(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return s(o,{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 Be=class{static getActivityOccasionForUser(e){return s(o,{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 s(o,{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 s(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,i,a,p,n,l){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:a,numberOfSlots:p,emails:n,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,i,a,p){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:a,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,i,a,p){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:a,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,i,a){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:i,locale: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 createPromoCode(e){return s(o,{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 s(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,a=10){return s(o,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return s(o,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,i){return s(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return s(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",a="ALL"){return s(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(o,{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 s(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,a,p){return s(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:a,availableSpots:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return s(o,{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 s(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return s(o,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return s(o,{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 s(o,{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 s(o,{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 s(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return s(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,i){return s(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:i},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return s(o,{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 je=class{static getAvailabilityWithPrice(e,r,i,a,p,n,l){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:i,promoCode:a,numberOfSlots:p,emails:n,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,i,a,p){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:a,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,i,a,p){return s(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:i,emails:a,userIds:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,i){return s(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Me=class{static getCheckout(e){return s(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,i){return s(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var He=class{static updateCompetitionAccount(e){return s(o,{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 $e=class{static options(e){return s(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Ve=class{static createPromoCode(e){return s(o,{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 Ke=class{static createMembership(e){return s(o,{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 s(o,{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 We=class{static getPlaySessionById(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,i){return s(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,i){return s(o,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:i,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return s(o,{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 s(o,{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 s(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,i="UPCOMING",a="ALL"){return s(o,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:i,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return s(o,{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 s(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,i,a,p){return s(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:i,sportIds:a,availableSpots:p},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Qe=class{static getUserProfile(e){return s(o,{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 s(o,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",i,a=10){return s(o,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:i,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return s(o,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return s(o,{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 s(o,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,i="FRIENDS"){return s(o,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 s(o,{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 tr={};Ie(tr,{Gender:()=>Gr,Source:()=>wr,Topic:()=>_r,UserRelation:()=>qr,client:()=>T,createFacilityOfferOrder:()=>de,getNotificationById:()=>he,getNotifications:()=>re,getNotificationsPreferences:()=>me,listFacilityOffers:()=>ee,queries:()=>Oe,schemas:()=>ue,searchUsers:()=>te,updateAllNotifications:()=>fe,updateNotification:()=>ge,updateNotificationsPreferences:()=>ye,updateUserProfile:()=>be});var Ye={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var lt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},hs=Object.entries(lt);var xr=O=>{var y=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:i,responseValidator:a,sseDefaultRetryDelay:p,sseMaxRetryAttempts:n,sseMaxRetryDelay:l,sseSleepFn:d,url:f}=y,u=W(y,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,H=d!=null?d:(k=>new Promise(U=>setTimeout(U,k)));return{stream:function(){return mr(this,null,function*(){var D,$,S;let k=p!=null?p:3e3,U=0,F=(D=u.signal)!=null?D:new AbortController().signal;for(;!F.aborted;){U++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let I=m(c({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:F}),ie=new Request(f,I);t&&(ie=yield new w(t(f,I)));let Vr=($=u.fetch)!=null?$:globalThis.fetch,V=yield new w(Vr(ie));if(!V.ok)throw new Error(`SSE failed: ${V.status} ${V.statusText}`);if(!V.body)throw new Error("No body in SSE response");let Pe=V.body.pipeThrough(new TextDecoderStream).getReader(),K="",ir=()=>{try{Pe.cancel()}catch(or){}};F.addEventListener("abort",ir);try{for(;;){let{done:or,value:Kr}=yield new w(Pe.read());if(or)break;K+=Kr,K=K.replace(/\r\n/g,`
|
|
2
|
+
`).replace(/\r/g,`
|
|
3
|
+
`);let sr=K.split(`
|
|
4
|
+
|
|
5
|
+
`);K=(S=sr.pop())!=null?S:"";for(let Wr of sr){let Qr=Wr.split(`
|
|
6
|
+
`),oe=[],ar;for(let C of Qr)if(C.startsWith("data:"))oe.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))ar=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let Se=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(Se)||(k=Se)}let L,nr=!1;if(oe.length){let C=oe.join(`
|
|
7
|
+
`);try{L=JSON.parse(C),nr=!0}catch(Se){L=C}}nr&&(a&&(yield new w(a(L))),i&&(L=yield new w(i(L)))),r==null||r({data:L,event:ar,id:g,retry:k}),oe.length&&(yield L)}}}finally{F.removeEventListener("abort",ir),Pe.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&U>=n)break;let ie=Math.min(k*2**(U-1),l!=null?l:3e4);yield new w(H(ie))}}})}()}};var ct=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ut=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},dt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=({allowReserved:t,explode:e,name:r,style:i,value:a})=>{if(!e){let l=(t?a:a.map(d=>encodeURIComponent(d))).join(ut(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ct(i),n=a.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):M({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},M=({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)}`},le=({allowReserved:t,explode:e,name:r,style:i,value:a,valueOnly:p})=>{if(a instanceof Date)return p?a.toISOString():`${r}=${a.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(a).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=dt(i),l=Object.entries(a).map(([d,f])=>M({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var ft=/\{[^{}]+\}/g,mt=({path:t,url:e})=>{let r=e,i=e.match(ft);if(i)for(let a of i){let p=!1,n=a.substring(1,a.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(a,pe({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(a,le({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(a,`;${M({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(a,f)}return r},Ur=({baseUrl:t,path:e,query:r,querySerializer:i,url:a})=>{let p=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+p;e&&(n=mt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Je(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 vr=(t,e)=>h(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 Ar=(r={})=>{var i=r,{parameters:t={}}=i,e=W(i,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=t[l]||e;if(Array.isArray(d)){let u=pe(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=le(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=M({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},Nr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},yt=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},kr=r=>h(null,null,function*(){var i=r,{security:t}=i,e=W(i,["security"]);var a;for(let p of t){if(yt(e,p.name))continue;let n=yield vr(p,e.auth);if(!n)continue;let l=(a=p.name)!=null?a:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),Xe=t=>Ur({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Ar(t.querySerializer),url:t.url}),Ze=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=ce(t.headers,e.headers),r},ht=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},ce=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?ht(r):Object.entries(r);for(let[a,p]of i)if(p===null)e.delete(a);else if(Array.isArray(p))for(let n of p)e.append(a,n);else p!==void 0&&e.set(a,typeof p=="object"?JSON.stringify(p):p)}return e},X=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new X,request:new X,response:new X}),gt=Ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),bt={"Content-Type":"application/json"},Z=(t={})=>c(m(c({},Ye),{headers:bt,parseAs:"auto",querySerializer:gt}),t);var er=(t={})=>{let e=Ze(Z(),t),r=()=>c({},e),i=f=>(e=Ze(e,f),r()),a=Dr(),p=f=>h(null,null,function*(){var y,g;let u=m(c(c({},e),f),{fetch:(g=(y=f.fetch)!=null?y:e.fetch)!=null?g:globalThis.fetch,headers:ce(e.headers,f.headers),serializedBody:void 0});u.security&&(yield kr(m(c({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=Xe(u);return{opts:u,url:O}}),n=f=>h(null,null,function*(){var $;let{opts:u,url:O}=yield p(f),y=m(c({redirect:"follow"},u),{body:Je(u)}),g=new Request(O,y);for(let S of a.request.fns)S&&(g=yield S(g,u));let H=u.fetch,P;try{P=yield H(g)}catch(S){let E=S;for(let I of a.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of a.response.fns)S&&(P=yield S(P,g,u));let N={request:g,response:P};if(P.ok){let S=($=u.parseAs==="auto"?Nr(P.headers.get("Content-Type")):u.parseAs)!=null?$:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},N)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},N)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},N)}let k=yield P.text(),U;try{U=JSON.parse(k)}catch(S){}let F=U!=null?U:k,D=F;for(let S of a.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},N)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>h(null,null,function*(){let{opts:O,url:y}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>h(null,null,function*(){let P=new Request(g,H);for(let N of a.request.fns)N&&(P=yield N(P,O));return P}),serializedBody:Je(O),url:y}))});return{buildUrl:Xe,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:a,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:l("TRACE")}};var T=er(Z({baseUrl:"https://api.matchi.com/v1"}));var ue={};Ie(ue,{ChannelsSchema:()=>Ot,FacilityMessagePayloadSchema:()=>Pt,FacilityOfferConditionActivitiesSchema:()=>Et,FacilityOfferConditionCourtsSchema:()=>Tt,FacilityOfferConditionDateSchema:()=>Ct,FacilityOfferConditionHoursinadvanceSchema:()=>Rt,FacilityOfferConditionSchema:()=>It,FacilityOfferConditionTimeSchema:()=>xt,FacilityOfferConditionWeekdaysSchema:()=>Ut,FacilityOfferListSchema:()=>vt,FacilityOfferOrderSchema:()=>At,FacilityOfferSchema:()=>St,FacilityPunchCardDataSchema:()=>Nt,FacilityValueCardDataSchema:()=>kt,GenderSchema:()=>Dt,MetadataSchema:()=>Gt,NotificationPayloadSchema:()=>_t,NotificationRequestBodySchema:()=>qt,NotificationSchema:()=>wt,NotificationsFilterSchema:()=>Ft,NotificationsPaginatedResponseSchema:()=>Lt,NotificationsSummarySchema:()=>zt,PreferenceSchema:()=>Bt,PreferencesResponseSchema:()=>jt,SourceSchema:()=>Mt,TopicSchema:()=>Ht,UpdatePreferencesRequestBodySchema:()=>$t,UpdateUserProfileRequestSchema:()=>Vt,UserProfileSchema:()=>Wt,UserRelationSchema:()=>Qt,UserSchema:()=>Kt,UsersPaginatedResponseSchema:()=>Yt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Jt,pkgOpenapiSharedErrorSchema:()=>Xt,pkgOpenapiSharedErrorsSchema:()=>Zt,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ei,pkgOpenapiSharedProblemDetailsSchema:()=>ri});var Ot={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Pt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},St={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},It={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Et={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Tt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ct={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Rt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},xt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Ut={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},vt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},At={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Nt={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},kt={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Dt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},Gt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},wt={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},_t={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},qt={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ft={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Lt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},zt={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"},Bt={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},jt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Mt={enum:["FACILITY"],type:"string"},Ht={enum:["FACILITY_MESSAGE"],type:"string"},$t={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Vt={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Kt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Wt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{nullable:!0,type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},Qt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},Yt={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Jt={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"},Xt={properties:{message:{description:"The error message",type:"string"}},type:"object"},Zt={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ei={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"},ri={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 ee=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/facilities/{facility_id}/offers"},t))},de=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},fe=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},me=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},ye=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var Gr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},wr={FACILITY:"FACILITY"},_r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},qr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Oe={};Ie(Oe,{createFacilityOfferOrderMutation:()=>oi,getNotificationByIdOptions:()=>ci,getNotificationByIdQueryKey:()=>Mr,getNotificationsInfiniteOptions:()=>ai,getNotificationsInfiniteQueryKey:()=>Br,getNotificationsOptions:()=>si,getNotificationsPreferencesOptions:()=>pi,getNotificationsPreferencesQueryKey:()=>jr,getNotificationsQueryKey:()=>zr,listFacilityOffersInfiniteOptions:()=>ii,listFacilityOffersInfiniteQueryKey:()=>Lr,listFacilityOffersOptions:()=>ti,listFacilityOffersQueryKey:()=>Fr,searchUsersInfiniteOptions:()=>fi,searchUsersInfiniteQueryKey:()=>$r,searchUsersOptions:()=>di,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ni,updateNotificationMutation:()=>ui,updateNotificationsPreferencesMutation:()=>li,updateUserProfileMutation:()=>mi});var q=(t,e,r,i)=>{var p;let a={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(a._infinite=r),i&&(a.tags=i),e!=null&&e.body&&(a.body=e.body),e!=null&&e.headers&&(a.headers=e.headers),e!=null&&e.path&&(a.path=e.path),e!=null&&e.query&&(a.query=e.query),[a]},Fr=t=>q("ListFacilityOffers",t),ti=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield ee(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Fr(t)}),rr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},Lr=t=>q("ListFacilityOffers",t,!0),ii=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield ee(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Lr(t)}),oi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield de(m(c(c({},t),r),{throwOnError:!0}));return i})}),zr=t=>q("GetNotifications",t),si=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:zr(t)}),Br=t=>q("GetNotifications",t,!0),ai=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Br(t)}),ni=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),jr=t=>q("GetNotificationsPreferences",t),pi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield me(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:jr(t)}),li=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ye(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>q("GetNotificationById",t),ci=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield he(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Mr(t)}),ui=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ge(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>q("searchUsers",t),di=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Hr(t)}),$r=t=>q("searchUsers",t,!0),fi=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:$r(t)}),mi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield be(m(c(c({},t),r),{throwOnError:!0}));return i})});export{Fe as ActivityServiceV1Service,Le as AnonymousService,ze as ApiClientServiceV1Service,B as ApiError,Be as AuthorizedService,je as BookingServiceV1Service,ae as CancelError,Q as CancelablePromise,Me as CheckoutServiceV1Service,He as CompetitionServiceV1Service,$e as CorsService,Ve as LoyaltyServiceV1Service,Ke as MembershipServiceV1Service,o as OpenAPI,We as PlaySessionServiceV1Service,Qe as UserServiceV1Service,yr as bookingRestriction,hr as bookingSubType,Ee as bookingSubscription,gr as bookingUserStatus,Te as cancellationPolicy,Ce as chat,Re as chatCreation,br as chatTarget,Or as clientType,Pr as directionParam,Sr as months,xe as notificationChatGroup,Ue as notificationEntity,ve as pendingPayment,Ne as playSessionSettings,ke as playSessionUser,Ir as playerStatusParam,Ae as playingUserResponse,Er as userChatStatusParam,Tr as userChatTargetParam,De as userPunchCard,Ge as userRelation,Cr as userRelationStatusParam,tr as v1};
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matchi/api",
|
|
3
|
-
"version": "0.20260121.
|
|
3
|
+
"version": "0.20260121.7",
|
|
4
4
|
"main": "dist/main/index.js",
|
|
5
5
|
"module": "dist/main/index.mjs",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@hey-api/
|
|
8
|
-
"@
|
|
9
|
-
"
|
|
10
|
-
"@tanstack/react-query": "^5.62.10",
|
|
11
|
-
"bun-types": "latest",
|
|
7
|
+
"@hey-api/openapi-ts": "^0.90.6",
|
|
8
|
+
"@tanstack/react-query": "^5.90.19",
|
|
9
|
+
"bun-types": "^1.3.6",
|
|
12
10
|
"openapi-typescript-codegen": "^0.25.0",
|
|
13
|
-
"tsup": "^8.
|
|
14
|
-
"typescript": "^5.
|
|
11
|
+
"tsup": "^8.5.1",
|
|
12
|
+
"typescript": "^5.9.3"
|
|
15
13
|
},
|
|
16
14
|
"files": [
|
|
17
15
|
"dist"
|