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