@matchi/api 0.20250925.1 → 0.20251002.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.d.mts +184 -88
- package/dist/main/index.d.ts +184 -88
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/package.json +1 -1
package/dist/main/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty,fr=Object.defineProperties,yr=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable;var Ee=(t,e,r)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))Se.call(e,r)&&Ee(t,r,e[r]);if(N)for(var r of N(e))Ke.call(e,r)&&Ee(t,r,e[r]);return t},d=(t,e)=>fr(t,gr(e));var We=(t,e)=>{var r={};for(var o in t)Se.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&N)for(var o of N(t))e.indexOf(o)<0&&Ke.call(t,o)&&(r[o]=t[o]);return r};var z=(t,e)=>{for(var r in e)L(t,r,{get:e[r],enumerable:!0})},br=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of hr(e))!Se.call(t,a)&&a!==r&&L(t,a,{get:()=>e[a],enumerable:!(o=yr(e,a))||o.enumerable});return t};var Or=t=>br(L({},"__esModule",{value:!0}),t);var Ye=(t,e,r)=>(Ee(t,typeof e!="symbol"?e+"":e,r),r),Qe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Qe(t,e,"read from private field"),r?r.call(t):e.get(t)),C=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},O=(t,e,r,o)=>(Qe(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,a)=>{var l=u=>{try{p(r.next(u))}catch(g){a(g)}},n=u=>{try{p(r.throw(u))}catch(g){a(g)}},p=u=>u.done?o(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(t,e)).next())});var Rt={};z(Rt,{ActivityServiceV1Service:()=>re,AnonymousService:()=>te,ApiClientServiceV1Service:()=>oe,ApiError:()=>R,AuthorizedService:()=>ie,BookingServiceV1Service:()=>ae,CancelError:()=>_,CancelablePromise:()=>U,CheckoutServiceV1Service:()=>se,CompetitionServiceV1Service:()=>ne,CorsService:()=>le,LoyaltyServiceV1Service:()=>pe,MembershipServiceV1Service:()=>ce,OpenAPI:()=>i,PlaySessionServiceV1Service:()=>ue,UserServiceV1Service:()=>de,bookingRestriction:()=>Pe,bookingSubType:()=>Ce,bookingSubscription:()=>j,bookingUserStatus:()=>ve,cancellationPolicy:()=>M,chat:()=>$,chatCreation:()=>V,chatTarget:()=>ke,clientType:()=>Re,directionParam:()=>xe,months:()=>Ae,notificationChatGroup:()=>H,notificationEntity:()=>K,pendingPayment:()=>W,playSessionSettings:()=>Q,playSessionUser:()=>J,playerStatusParam:()=>Ue,playingUserResponse:()=>Y,userChatStatusParam:()=>De,userChatTargetParam:()=>_e,userPunchCard:()=>X,userRelation:()=>Z,userRelationStatusParam:()=>Ge,v1:()=>Te});module.exports=Or(Rt);var R=class extends Error{constructor(r,o,a){super(a);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var _=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},E,S,I,v,x,G,A,U=class{constructor(e){C(this,E,void 0);C(this,S,void 0);C(this,I,void 0);C(this,v,void 0);C(this,x,void 0);C(this,G,void 0);C(this,A,void 0);O(this,E,!1),O(this,S,!1),O(this,I,!1),O(this,v,[]),O(this,x,new Promise((r,o)=>{O(this,G,r),O(this,A,o);let a=p=>{var u;f(this,E)||f(this,S)||f(this,I)||(O(this,E,!0),(u=f(this,G))==null||u.call(this,p))},l=p=>{var u;f(this,E)||f(this,S)||f(this,I)||(O(this,S,!0),(u=f(this,A))==null||u.call(this,p))},n=p=>{f(this,E)||f(this,S)||f(this,I)||f(this,v).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,E)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,S)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,I)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,x).then(e,r)}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,S)||f(this,I))){if(O(this,I,!0),f(this,v).length)try{for(let r of f(this,v))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,v).length=0,(e=f(this,A))==null||e.call(this,new _("Request aborted"))}}get isCancelled(){return f(this,I)}};E=new WeakMap,S=new WeakMap,I=new WeakMap,v=new WeakMap,x=new WeakMap,G=new WeakMap,A=new WeakMap;var i={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 Pe=(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))(Pe||{});var j;(e=>{let t;(h=>(h.MONDAY="MONDAY",h.TUESDAY="TUESDAY",h.WEDNESDAY="WEDNESDAY",h.THURSDAY="THURSDAY",h.FRIDAY="FRIDAY",h.SATURDAY="SATURDAY",h.SUNDAY="SUNDAY",h.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(j||(j={}));var Ce=(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))(Ce||{});var ve=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(ve||{});var M;(e=>{let t;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(M||(M={}));var $;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})($||($={}));var V;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(V||(V={}));var ke=(r=>(r.PLAYSESSION="playsession",r.USERGROUP="usergroup",r))(ke||{});var Re=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Re||{});var xe=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(xe||{});var Ae=(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))(Ae||{});var H;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(H||(H={}));var K;(e=>{let t;(a=>(a.GROUP="group",a.USER="user"))(t=e.entityType||(e.entityType={}))})(K||(K={}));var W;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(W||(W={}));var Ue=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(Ue||{});var Y;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Y||(Y={}));var Q;(e=>{let t;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Q||(Q={}));var J;(e=>{let t;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(J||(J={}));var De=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(De||{});var _e=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(_e||{});var X;(e=>{let t;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(X||(X={}));var Z;(e=>{let t;(p=>(p.FRIENDS="FRIENDS",p.OUTGOING="OUTGOING",p.INCOMING="INCOMING",p.BLOCKED="BLOCKED",p.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Z||(Z={}));var Ge=(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a))(Ge||{});var Be=t=>t!=null,w=t=>typeof t=="string",we=t=>w(t)&&t!=="",Fe=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]),Je=t=>t instanceof FormData,Ir=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Tr=t=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},o=(a,l)=>{Be(l)&&(Array.isArray(l)?l.forEach(n=>{o(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{o(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(t).forEach(([a,l])=>{o(a,l)}),e.length>0?`?${e.join("&")}`:""},Er=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${t.BASE}${o}`;return e.query?`${a}${Tr(e.query)}`:a},Sr=t=>{if(t.formData){let e=new FormData,r=(o,a)=>{w(a)||Fe(a)?e.append(o,a):e.append(o,JSON.stringify(a))};return Object.entries(t.formData).filter(([o,a])=>Be(a)).forEach(([o,a])=>{Array.isArray(a)?a.forEach(l=>r(o,l)):r(o,a)}),e}},ee=(t,e)=>y(void 0,null,function*(){return typeof e=="function"?e(t):e}),Pr=(t,e)=>y(void 0,null,function*(){let r=yield ee(e,t.TOKEN),o=yield ee(e,t.USERNAME),a=yield ee(e,t.PASSWORD),l=yield ee(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},l),e.headers)).filter(([p,u])=>Be(u)).reduce((p,[u,g])=>d(c({},p),{[u]:String(g)}),{});if(we(r)&&(n.Authorization=`Bearer ${r}`),we(o)&&we(a)){let p=Ir(`${o}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Fe(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":w(e.body)?n["Content-Type"]="text/plain":Je(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Cr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):w(t.body)||Fe(t.body)||Je(t.body)?t.body:JSON.stringify(t.body)},vr=(t,e,r,o,a,l,n)=>y(void 0,null,function*(){let p=new AbortController,u={headers:l,body:o!=null?o:a,method:e.method,signal:p.signal};return t.WITH_CREDENTIALS&&(u.credentials=t.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),kr=(t,e)=>{if(e){let r=t.headers.get(e);if(w(r))return r}},Rr=t=>y(void 0,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield t.json():yield t.text()}catch(e){console.error(e)}}),xr=(t,e)=>{var a,l;let o=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(o)throw new R(t,e,o);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(g){return}})();throw new R(t,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},s=(t,e)=>new U((r,o,a)=>y(void 0,null,function*(){try{let l=Er(t,e),n=Sr(e),p=Cr(e),u=yield Pr(t,e);if(!a.isCancelled){let g=yield vr(t,e,l,p,n,u,a),h=yield Rr(g),k=kr(g,e.responseHeader),m={url:l,ok:g.ok,status:g.status,statusText:g.statusText,body:k!=null?k:h};xr(e,m),r(m.body)}}catch(l){o(l)}}));var re=class{static getAdminActivityOccasions(e,r,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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,r=!1,o,a,l,n,p,u,g,h,k,m=10){return s(i,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:g,endDate:h,offset:k,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(i,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,a,l){return s(i,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,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(i,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,a,l,n=10){return s(i,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,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(i,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,a,l,n,p,u,g=10){return s(i,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,limit:g},errors:{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(i,{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(i,{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(i,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return s(i,{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(i,{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(i,{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(i,{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 oe=class{static getApiClientList(e,r=10){return s(i,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return s(i,{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(i,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return s(i,{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 ie=class{static getActivityOccasionForUser(e){return s(i,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return s(i,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return s(i,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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,r,o,a){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,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(i,{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(i,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,a=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{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(i,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return s(i,{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(i,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return s(i,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return s(i,{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(i,{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(i,{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(i,{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(i,{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.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return s(i,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return s(i,{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(i,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o){return s(i,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType: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 createBooking(e){return s(i,{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(i,{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(i,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return s(i,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return s(i,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return s(i,{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(i,{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(i,{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(i,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return s(i,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return s(i,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return s(i,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return s(i,{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(i,{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(i,{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(i,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return s(i,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return s(i,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return s(i,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,a,l){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,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(i,{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(i,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return s(i,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return s(i,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return s(i,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return s(i,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return s(i,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return s(i,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return s(i,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return s(i,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return s(i,{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(i,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return s(i,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return s(i,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ae=class{static getAvailabilityWithPrice(e,r,o,a,l,n,p){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,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,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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,r,o,a,l){return s(i,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,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(i,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return s(i,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return s(i,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return s(i,{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(i,{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(i,{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(i,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return s(i,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return s(i,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return s(i,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return s(i,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return s(i,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return s(i,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var se=class{static getCheckout(e){return s(i,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return s(i,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ne=class{static updateCompetitionAccount(e){return s(i,{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(i,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var pe=class{static createPromoCode(e){return s(i,{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(i,{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.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return s(i,{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 ue=class{static getPlaySessionById(e){return s(i,{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(i,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return s(i,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return s(i,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return s(i,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return s(i,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return s(i,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return s(i,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return s(i,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",a="ALL"){return s(i,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return s(i,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return s(i,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,a,l){return s(i,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,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(i,{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(i,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,a=10){return s(i,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return s(i,{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(i,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return s(i,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return s(i,{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(i,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return s(i,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return s(i,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return s(i,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return s(i,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return s(i,{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(i,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return s(i,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return s(i,{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(i,{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(i,{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(i,{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(i,{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(i,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return s(i,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return s(i,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return s(i,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return s(i,{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 Te={};z(Te,{SearchUserRelation:()=>ft,addBooking:()=>ge,client:()=>b,createFacilityOfferOrder:()=>be,deleteBooking:()=>Le,findBookingById:()=>ze,findBookings:()=>ye,listFacilityOffers:()=>he,queries:()=>Ie,schemas:()=>fe,searchUsers:()=>Oe,updateBooking:()=>je});var Ar=(t,e)=>y(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Ur={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Dr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},_r=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Gr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},er=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(!e){let p=(t?a:a.map(u=>encodeURIComponent(u))).join(_r(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Dr(o),n=a.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):me({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+n:n},me=({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)}`},rr=({allowReserved:t,explode:e,name:r,style:o,value:a})=>{if(a instanceof Date)return`${r}=${a.toISOString()}`;if(o!=="deepObject"&&!e){let p=[];Object.entries(a).forEach(([g,h])=>{p=[...p,g,t?h:encodeURIComponent(h)]});let u=p.join(",");switch(o){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let l=Gr(o),n=Object.entries(a).map(([p,u])=>me({allowReserved:t,name:o==="deepObject"?`${r}[${p}]`:p,value:u})).join(l);return o==="label"||o==="matrix"?l+n:n},wr=/\{[^{}]+\}/g,Br=({path:t,url:e})=>{let r=e,o=e.match(wr);if(o)for(let a of o){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=t[n];if(u==null)continue;if(Array.isArray(u)){r=r.replace(a,er({explode:l,name:n,style:p,value:u}));continue}if(typeof u=="object"){r=r.replace(a,rr({explode:l,name:n,style:p,value:u}));continue}if(p==="matrix"){r=r.replace(a,`;${me({name:n,value:u})}`);continue}let g=encodeURIComponent(p==="label"?`.${u}`:u);r=r.replace(a,g)}return r},tr=({allowReserved:t,array:e,object:r}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let l in o){let n=o[l];if(n!=null){if(Array.isArray(n)){a=[...a,er(c({allowReserved:t,explode:!0,name:l,style:"form",value:n},e))];continue}if(typeof n=="object"){a=[...a,rr(c({allowReserved:t,explode:!0,name:l,style:"deepObject",value:n},r))];continue}a=[...a,me({allowReserved:t,name:l,value:n})]}}return a.join("&")},Fr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},qr=r=>y(void 0,null,function*(){var o=r,{security:t}=o,e=We(o,["security"]);var a;for(let l of t){let n=yield Ar(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}}),Xe=t=>Nr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:tr(t.querySerializer),url:t.url}),Nr=({baseUrl:t,path:e,query:r,querySerializer:o,url:a})=>{let l=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+l;e&&(n=Br({path:e,url:n}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(n+=`?${p}`),n},Ze=(t,e)=>{var o;let r=c(c({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=or(t.headers,e.headers),r},or=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[a,l]of o)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(){Ye(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},Lr=()=>({error:new qe,request:new qe,response:new qe}),zr=tr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),jr={"Content-Type":"application/json"},Ne=(t={})=>c(d(c({},Ur),{headers:jr,parseAs:"auto",querySerializer:zr}),t),ir=(t={})=>{let e=Ze(Ne(),t),r=()=>c({},e),o=n=>(e=Ze(e,n),r()),a=Lr(),l=n=>y(void 0,null,function*(){var $e,Ve,He;let p=d(c(c({},e),n),{fetch:(Ve=($e=n.fetch)!=null?$e:e.fetch)!=null?Ve:globalThis.fetch,headers:or(e.headers,n.headers)});p.security&&(yield qr(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=Xe(p),g=c({redirect:"follow"},p),h=new Request(u,g);for(let T of a.request._fns)h=yield T(h,p);let k=p.fetch,m=yield k(h);for(let T of a.response._fns)m=yield T(m,h,p);let B={request:h,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return c({data:{}},B);let T=(He=p.parseAs==="auto"?Fr(m.headers.get("Content-Type")):p.parseAs)!=null?He:"json";if(T==="stream")return c({data:m.body},B);let q=yield m[T]();return T==="json"&&(p.responseValidator&&(yield p.responseValidator(q)),p.responseTransformer&&(q=yield p.responseTransformer(q))),c({data:q},B)}let F=yield m.text();try{F=JSON.parse(F)}catch(T){}let D=F;for(let T of a.error._fns)D=yield T(F,m,h,p);if(D=D||{},p.throwOnError)throw D;return c({error:D},B)});return{buildUrl:Xe,connect:n=>l(d(c({},n),{method:"CONNECT"})),delete:n=>l(d(c({},n),{method:"DELETE"})),get:n=>l(d(c({},n),{method:"GET"})),getConfig:r,head:n=>l(d(c({},n),{method:"HEAD"})),interceptors: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:o,trace:n=>l(d(c({},n),{method:"TRACE"}))}};var b=ir(Ne({baseUrl:"https://api.matchi.com/v1"}));var fe={};z(fe,{BookingSchema:()=>Mr,CreateBookingSchema:()=>$r,FacilityOfferConditionActivitiesSchema:()=>Kr,FacilityOfferConditionCourtsSchema:()=>Wr,FacilityOfferConditionDateSchema:()=>Yr,FacilityOfferConditionHoursinadvanceSchema:()=>Qr,FacilityOfferConditionSchema:()=>Hr,FacilityOfferConditionTimeSchema:()=>Jr,FacilityOfferConditionWeekdaysSchema:()=>Xr,FacilityOfferListSchema:()=>Zr,FacilityOfferOrderSchema:()=>et,FacilityOfferSchema:()=>Vr,FacilityPunchCardDataSchema:()=>rt,FacilityValueCardDataSchema:()=>tt,GuestSchema:()=>ot,PlayerSchema:()=>it,SearchUserRelationSchema:()=>st,SearchUserSchema:()=>at,SearchUsersListPaginatedResponseSchema:()=>nt,UpdateBookingSchema:()=>lt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>pt,pkgOpenapiSharedErrorSchema:()=>ct,pkgOpenapiSharedErrorsSchema:()=>ut,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>dt,pkgOpenapiSharedProblemDetailsSchema:()=>mt});var Mr={properties:{booker:{format:"uuid",type:"string"},created_at:{format:"date-time",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},required:["guests","players"],type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id","booker","location","start_time","end_time","created_at","updated_at","participants","payment_reference","created_by","updated_by"],type:"object"},$r={properties:{booker:{format:"uuid",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},Vr={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"},Hr={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"},Kr={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"},Wr={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Yr={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Qr={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Jr={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Xr={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Zr={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},et={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"},rt={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"},tt={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"},ot={properties:{email:{type:"string"}},required:["email"],type:"object"},it={properties:{email:{type:"string"},id:{format:"uuid",type:"string"}},required:["id","email"],type:"object"},at={properties:{firstname:{type:"string"},lastname:{type:"string"},profileImageUrl:{type:"string"},relationStatus:{$ref:"#/components/schemas/SearchUserRelation"},userId:{format:"uuid",type:"string"}},required:["userId","firstname","lastname","relationStatus"],type:"object"},st={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"},nt={properties:{items:{items:{$ref:"#/components/schemas/SearchUser"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},lt={properties:{booker:{format:"uuid",type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},pt={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"},ct={properties:{message:{description:"The error message",type:"string"}},type:"object"},ut={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},dt={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"},mt={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 ft={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var ye=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/bookings"},t))},ge=t=>{var e;return((e=t.client)!=null?e:b).post(d(c({url:"/bookings"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},Le=t=>{var e;return((e=t.client)!=null?e:b).delete(c({url:"/bookings/{bookingId}"},t))},ze=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/bookings/{bookingId}"},t))},je=t=>{var e;return((e=t.client)!=null?e:b).put(d(c({url:"/bookings/{bookingId}"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/facilities/{facility_id}/offers"},t))},be=t=>{var e;return((e=t.client)!=null?e:b).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/users/search"},t))};var Ie={};z(Ie,{addBookingMutation:()=>bt,addBookingOptions:()=>ht,addBookingQueryKey:()=>nr,createFacilityOfferOrderMutation:()=>Ct,createFacilityOfferOrderOptions:()=>Pt,createFacilityOfferOrderQueryKey:()=>ur,deleteBookingMutation:()=>Ot,findBookingByIdOptions:()=>It,findBookingByIdQueryKey:()=>lr,findBookingsInfiniteOptions:()=>gt,findBookingsInfiniteQueryKey:()=>sr,findBookingsOptions:()=>yt,findBookingsQueryKey:()=>ar,listFacilityOffersInfiniteOptions:()=>St,listFacilityOffersInfiniteQueryKey:()=>cr,listFacilityOffersOptions:()=>Et,listFacilityOffersQueryKey:()=>pr,searchUsersInfiniteOptions:()=>kt,searchUsersInfiniteQueryKey:()=>mr,searchUsersOptions:()=>vt,searchUsersQueryKey:()=>dr,updateBookingMutation:()=>Tt});var P=(t,e,r)=>{var a;let o={_id:t,baseUrl:((a=e==null?void 0:e.client)!=null?a:b).getConfig().baseUrl};return r&&(o._infinite=r),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]},ar=t=>P("findBookings",t),yt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield ye(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:ar(t)}),Me=(t,e)=>{let r=t[0];return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},sr=t=>P("findBookings",t,!0),gt=t=>({queryFn:a=>y(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=Me(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ye(d(c(c({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:sr(t)}),nr=t=>P("addBooking",t),ht=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield ge(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:nr(t)}),bt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield ge(d(c(c({},t),r),{throwOnError:!0}));return o})}),Ot=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield Le(d(c(c({},t),r),{throwOnError:!0}));return o})}),lr=t=>P("findBookingById",t),It=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield ze(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:lr(t)}),Tt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield je(d(c(c({},t),r),{throwOnError:!0}));return o})}),pr=t=>P("listFacilityOffers",t),Et=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield he(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:pr(t)}),cr=t=>P("listFacilityOffers",t,!0),St=t=>({queryFn:a=>y(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=Me(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield he(d(c(c({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:cr(t)}),ur=t=>P("createFacilityOfferOrder",t),Pt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield be(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:ur(t)}),Ct=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield be(d(c(c({},t),r),{throwOnError:!0}));return o})}),dr=t=>P("searchUsers",t),vt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:a}=yield Oe(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:dr(t)}),mr=t=>P("searchUsers",t,!0),kt=t=>({queryFn:a=>y(void 0,[a],function*({pageParam:e,queryKey:r,signal:o}){let n=Me(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield Oe(d(c(c({},t),n),{signal:o,throwOnError:!0}));return p}),queryKey:mr(t)});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 L=Object.defineProperty,hr=Object.defineProperties,br=Object.getOwnPropertyDescriptor,Or=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var Se=(t,e,r)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))Ce.call(e,r)&&Se(t,r,e[r]);if(N)for(var r of N(e))We.call(e,r)&&Se(t,r,e[r]);return t},d=(t,e)=>hr(t,Or(e));var Qe=(t,e)=>{var r={};for(var o in t)Ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&N)for(var o of N(t))e.indexOf(o)<0&&We.call(t,o)&&(r[o]=t[o]);return r};var z=(t,e)=>{for(var r in e)L(t,r,{get:e[r],enumerable:!0})},Tr=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ir(e))!Ce.call(t,i)&&i!==r&&L(t,i,{get:()=>e[i],enumerable:!(o=br(e,i))||o.enumerable});return t};var Er=t=>Tr(L({},"__esModule",{value:!0}),t);var Ye=(t,e,r)=>(Se(t,typeof e!="symbol"?e+"":e,r),r),Je=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var f=(t,e,r)=>(Je(t,e,"read from private field"),r?r.call(t):e.get(t)),C=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},O=(t,e,r,o)=>(Je(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,i)=>{var p=u=>{try{l(r.next(u))}catch(g){i(g)}},n=u=>{try{l(r.throw(u))}catch(g){i(g)}},l=u=>u.done?o(u.value):Promise.resolve(u.value).then(p,n);l((r=r.apply(t,e)).next())});var _t={};z(_t,{ActivityServiceV1Service:()=>re,AnonymousService:()=>te,ApiClientServiceV1Service:()=>oe,ApiError:()=>R,AuthorizedService:()=>ie,BookingServiceV1Service:()=>se,CancelError:()=>_,CancelablePromise:()=>A,CheckoutServiceV1Service:()=>ae,CompetitionServiceV1Service:()=>ne,CorsService:()=>le,LoyaltyServiceV1Service:()=>pe,MembershipServiceV1Service:()=>ce,OpenAPI:()=>s,PlaySessionServiceV1Service:()=>ue,UserServiceV1Service:()=>de,bookingRestriction:()=>ke,bookingSubType:()=>ve,bookingSubscription:()=>j,bookingUserStatus:()=>Re,cancellationPolicy:()=>M,chat:()=>K,chatCreation:()=>$,chatTarget:()=>xe,clientType:()=>Ue,directionParam:()=>Ae,months:()=>De,notificationChatGroup:()=>H,notificationEntity:()=>V,pendingPayment:()=>W,playSessionSettings:()=>Y,playSessionUser:()=>J,playerStatusParam:()=>_e,playingUserResponse:()=>Q,userChatStatusParam:()=>Ge,userChatTargetParam:()=>we,userPunchCard:()=>X,userRelation:()=>Z,userRelationStatusParam:()=>Be,v1:()=>Pe});module.exports=Er(_t);var R=class extends Error{constructor(r,o,i){super(i);this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=r}};var _=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},P,S,I,k,x,G,U,A=class{constructor(e){C(this,P,void 0);C(this,S,void 0);C(this,I,void 0);C(this,k,void 0);C(this,x,void 0);C(this,G,void 0);C(this,U,void 0);O(this,P,!1),O(this,S,!1),O(this,I,!1),O(this,k,[]),O(this,x,new Promise((r,o)=>{O(this,G,r),O(this,U,o);let i=l=>{var u;f(this,P)||f(this,S)||f(this,I)||(O(this,P,!0),(u=f(this,G))==null||u.call(this,l))},p=l=>{var u;f(this,P)||f(this,S)||f(this,I)||(O(this,S,!0),(u=f(this,U))==null||u.call(this,l))},n=l=>{f(this,P)||f(this,S)||f(this,I)||f(this,k).push(l)};return Object.defineProperty(n,"isResolved",{get:()=>f(this,P)}),Object.defineProperty(n,"isRejected",{get:()=>f(this,S)}),Object.defineProperty(n,"isCancelled",{get:()=>f(this,I)}),e(i,p,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return f(this,x).then(e,r)}catch(e){return f(this,x).catch(e)}finally(e){return f(this,x).finally(e)}cancel(){var e;if(!(f(this,P)||f(this,S)||f(this,I))){if(O(this,I,!0),f(this,k).length)try{for(let r of f(this,k))r()}catch(r){console.warn("Cancellation threw an error",r);return}f(this,k).length=0,(e=f(this,U))==null||e.call(this,new _("Request aborted"))}}get isCancelled(){return f(this,I)}};P=new WeakMap,S=new WeakMap,I=new WeakMap,k=new WeakMap,x=new WeakMap,G=new WeakMap,U=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 ke=(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))(ke||{});var j;(e=>{let t;(h=>(h.MONDAY="MONDAY",h.TUESDAY="TUESDAY",h.WEDNESDAY="WEDNESDAY",h.THURSDAY="THURSDAY",h.FRIDAY="FRIDAY",h.SATURDAY="SATURDAY",h.SUNDAY="SUNDAY",h.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(j||(j={}));var ve=(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))(ve||{});var Re=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(Re||{});var M;(e=>{let t;(i=>(i.AVAILABILITY="AVAILABILITY",i.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(M||(M={}));var K;(e=>{let t;(p=>(p.ACTIVE="active",p.INACTIVE="inactive",p.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(K||(K={}));var $;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})($||($={}));var xe=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(xe||{});var Ue=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ue||{});var Ae=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Ae||{});var De=(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))(De||{});var H;(e=>{let t;(p=>(p.PUBLIC="public",p.PRIVATE="private",p.PASSWORD="password"))(t=e.type||(e.type={}))})(H||(H={}));var V;(e=>{let t;(i=>(i.GROUP="group",i.USER="user"))(t=e.entityType||(e.entityType={}))})(V||(V={}));var W;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(W||(W={}));var _e=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(_e||{});var Q;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Q||(Q={}));var Y;(e=>{let t;(i=>(i.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",i.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Y||(Y={}));var J;(e=>{let t;(i=>(i.APPLIED="APPLIED",i.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(J||(J={}));var Ge=(i=>(i.ALL="ALL",i.ACTIVE="ACTIVE",i.INACTIVE="INACTIVE",i.NOT_CONNECTED="NOT_CONNECTED",i))(Ge||{});var we=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(we||{});var X;(e=>{let t;(i=>(i.UNLIMITED="UNLIMITED",i.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(X||(X={}));var Z;(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={}))})(Z||(Z={}));var Be=(i=>(i.FRIENDS="FRIENDS",i.OUTGOING="OUTGOING",i.INCOMING="INCOMING",i.BLOCKED="BLOCKED",i))(Be||{});var qe=t=>t!=null,w=t=>typeof t=="string",Fe=t=>w(t)&&t!=="",Ne=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]),Xe=t=>t instanceof FormData,Pr=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Sr=t=>{let e=[],r=(i,p)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(p))}`)},o=(i,p)=>{qe(p)&&(Array.isArray(p)?p.forEach(n=>{o(i,n)}):typeof p=="object"?Object.entries(p).forEach(([n,l])=>{o(`${i}[${n}]`,l)}):r(i,p))};return Object.entries(t).forEach(([i,p])=>{o(i,p)}),e.length>0?`?${e.join("&")}`:""},Cr=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=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}),i=`${t.BASE}${o}`;return e.query?`${i}${Sr(e.query)}`:i},kr=t=>{if(t.formData){let e=new FormData,r=(o,i)=>{w(i)||Ne(i)?e.append(o,i):e.append(o,JSON.stringify(i))};return Object.entries(t.formData).filter(([o,i])=>qe(i)).forEach(([o,i])=>{Array.isArray(i)?i.forEach(p=>r(o,p)):r(o,i)}),e}},ee=(t,e)=>y(void 0,null,function*(){return typeof e=="function"?e(t):e}),vr=(t,e)=>y(void 0,null,function*(){let r=yield ee(e,t.TOKEN),o=yield ee(e,t.USERNAME),i=yield ee(e,t.PASSWORD),p=yield ee(e,t.HEADERS),n=Object.entries(c(c({Accept:"application/json"},p),e.headers)).filter(([l,u])=>qe(u)).reduce((l,[u,g])=>d(c({},l),{[u]:String(g)}),{});if(Fe(r)&&(n.Authorization=`Bearer ${r}`),Fe(o)&&Fe(i)){let l=Pr(`${o}:${i}`);n.Authorization=`Basic ${l}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Ne(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":w(e.body)?n["Content-Type"]="text/plain":Xe(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Rr=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):w(t.body)||Ne(t.body)||Xe(t.body)?t.body:JSON.stringify(t.body)},xr=(t,e,r,o,i,p,n)=>y(void 0,null,function*(){let l=new AbortController,u={headers:p,body:o!=null?o:i,method:e.method,signal:l.signal};return t.WITH_CREDENTIALS&&(u.credentials=t.CREDENTIALS),n(()=>l.abort()),yield fetch(r,u)}),Ur=(t,e)=>{if(e){let r=t.headers.get(e);if(w(r))return r}},Ar=t=>y(void 0,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?yield t.json():yield t.text()}catch(e){console.error(e)}}),Dr=(t,e)=>{var i,p;let o=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(o)throw new R(t,e,o);if(!e.ok){let n=(i=e.status)!=null?i:"unknown",l=(p=e.statusText)!=null?p:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(g){return}})();throw new R(t,e,`Generic Error: status: ${n}; status text: ${l}; body: ${u}`)}},a=(t,e)=>new A((r,o,i)=>y(void 0,null,function*(){try{let p=Cr(t,e),n=kr(e),l=Rr(e),u=yield vr(t,e);if(!i.isCancelled){let g=yield xr(t,e,p,l,n,u,i),h=yield Ar(g),v=Ur(g,e.responseHeader),m={url:p,ok:g.ok,status:g.status,statusText:g.statusText,body:v!=null?v:h};Dr(e,m),r(m.body)}}catch(p){o(p)}}));var re=class{static getAdminActivityOccasions(e,r,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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 te=class{static listActivities(e=!1,r=!1,o,i,p,n,l,u,g,h,v,m=10){return a(s,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:i,locationSearch:p,categorySearch:n,querySearch:l,resourceTypes:u,startDate:g,endDate:h,offset:v,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return a(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,o,i,p){return a(s,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:i,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,o,i,p,n=10){return a(s,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:i,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,o,i,p,n,l,u,g=10){return a(s,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:i,longitude:p,radius:n,resourceTypes:l,offset:u,limit:g},errors:{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,o){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return 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 oe=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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return 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 ie=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,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o,i){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return 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",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return 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.",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,o){return a(s,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType: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 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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return 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,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,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,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return 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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return 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,o){return a(s,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return 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 se=class{static getAvailabilityWithPrice(e,r,o,i,p,n,l){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:i,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,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o,i,p){return a(s,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:i,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,o){return a(s,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ae=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,o){return a(s,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ne=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 le=class{static options(e){return a(s,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var pe=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 ce=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.",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 ue=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,o){return a(s,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return a(s,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return 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,o="UPCOMING",i="ALL"){return a(s,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:i},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return 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,o,i,p){return a(s,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:i,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",o,i=10){return a(s,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:i},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return 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,o="FRIENDS"){return a(s,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return 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 Pe={};z(Pe,{UserRelation:()=>ht,addBooking:()=>ge,client:()=>b,createFacilityOfferOrder:()=>be,deleteBooking:()=>je,findBookingById:()=>Me,findBookings:()=>ye,listFacilityOffers:()=>he,queries:()=>Ee,recommendedUsers:()=>Oe,schemas:()=>fe,searchUsers:()=>Ie,updateBooking:()=>Ke});var _r=(t,e)=>y(void 0,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Gr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var wr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Fr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},rr=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let l=(t?i:i.map(u=>encodeURIComponent(u))).join(Br(o));switch(o){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=wr(o),n=i.map(l=>o==="label"||o==="simple"?t?l:encodeURIComponent(l):me({allowReserved:t,name:r,value:l})).join(p);return o==="label"||o==="matrix"?p+n:n},me=({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)}`},tr=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let l=[];Object.entries(i).forEach(([g,h])=>{l=[...l,g,t?h:encodeURIComponent(h)]});let u=l.join(",");switch(o){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let p=Fr(o),n=Object.entries(i).map(([l,u])=>me({allowReserved:t,name:o==="deepObject"?`${r}[${l}]`:l,value:u})).join(p);return o==="label"||o==="matrix"?p+n:n},qr=/\{[^{}]+\}/g,Nr=({path:t,url:e})=>{let r=e,o=e.match(qr);if(o)for(let i of o){let p=!1,n=i.substring(1,i.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 u=t[n];if(u==null)continue;if(Array.isArray(u)){r=r.replace(i,rr({explode:p,name:n,style:l,value:u}));continue}if(typeof u=="object"){r=r.replace(i,tr({explode:p,name:n,style:l,value:u}));continue}if(l==="matrix"){r=r.replace(i,`;${me({name:n,value:u})}`);continue}let g=encodeURIComponent(l==="label"?`.${u}`:u);r=r.replace(i,g)}return r},or=({allowReserved:t,array:e,object:r}={})=>o=>{let i=[];if(o&&typeof o=="object")for(let p in o){let n=o[p];if(n!=null){if(Array.isArray(n)){i=[...i,rr(c({allowReserved:t,explode:!0,name:p,style:"form",value:n},e))];continue}if(typeof n=="object"){i=[...i,tr(c({allowReserved:t,explode:!0,name:p,style:"deepObject",value:n},r))];continue}i=[...i,me({allowReserved:t,name:p,value:n})]}}return i.join("&")},Lr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},zr=r=>y(void 0,null,function*(){var o=r,{security:t}=o,e=Qe(o,["security"]);var i;for(let p of t){let n=yield _r(p,e.auth);if(!n)continue;let l=(i=p.name)!=null?i:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"header":default:e.headers.set(l,n);break}return}}),Ze=t=>jr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:or(t.querySerializer),url:t.url}),jr=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,n=(t!=null?t:"")+p;e&&(n=Nr({path:e,url:n}));let l=r?o(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n},er=(t,e)=>{var o;let r=c(c({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=ir(t.headers,e.headers),r},ir=(...t)=>{let e=new Headers;for(let r of t){if(!r||typeof r!="object")continue;let o=r instanceof Headers?r.entries():Object.entries(r);for(let[i,p]of o)if(p===null)e.delete(i);else if(Array.isArray(p))for(let n of p)e.append(i,n);else p!==void 0&&e.set(i,typeof p=="object"?JSON.stringify(p):p)}return e},Le=class{constructor(){Ye(this,"_fns");this._fns=[]}clear(){this._fns=[]}exists(t){return this._fns.indexOf(t)!==-1}eject(t){let e=this._fns.indexOf(t);e!==-1&&(this._fns=[...this._fns.slice(0,e),...this._fns.slice(e+1)])}use(t){this._fns=[...this._fns,t]}},Mr=()=>({error:new Le,request:new Le,response:new Le}),Kr=or({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),$r={"Content-Type":"application/json"},ze=(t={})=>c(d(c({},Gr),{headers:$r,parseAs:"auto",querySerializer:Kr}),t),sr=(t={})=>{let e=er(ze(),t),r=()=>c({},e),o=n=>(e=er(e,n),r()),i=Mr(),p=n=>y(void 0,null,function*(){var $e,He,Ve;let l=d(c(c({},e),n),{fetch:(He=($e=n.fetch)!=null?$e:e.fetch)!=null?He:globalThis.fetch,headers:ir(e.headers,n.headers)});l.security&&(yield zr(d(c({},l),{security:l.security}))),l.body&&l.bodySerializer&&(l.body=l.bodySerializer(l.body)),(l.body===void 0||l.body==="")&&l.headers.delete("Content-Type");let u=Ze(l),g=c({redirect:"follow"},l),h=new Request(u,g);for(let E of i.request._fns)h=yield E(h,l);let v=l.fetch,m=yield v(h);for(let E of i.response._fns)m=yield E(m,h,l);let B={request:h,response:m};if(m.ok){if(m.status===204||m.headers.get("Content-Length")==="0")return c({data:{}},B);let E=(Ve=l.parseAs==="auto"?Lr(m.headers.get("Content-Type")):l.parseAs)!=null?Ve:"json";if(E==="stream")return c({data:m.body},B);let q=yield m[E]();return E==="json"&&(l.responseValidator&&(yield l.responseValidator(q)),l.responseTransformer&&(q=yield l.responseTransformer(q))),c({data:q},B)}let F=yield m.text();try{F=JSON.parse(F)}catch(E){}let D=F;for(let E of i.error._fns)D=yield E(F,m,h,l);if(D=D||{},l.throwOnError)throw D;return c({error:D},B)});return{buildUrl:Ze,connect:n=>p(d(c({},n),{method:"CONNECT"})),delete:n=>p(d(c({},n),{method:"DELETE"})),get:n=>p(d(c({},n),{method:"GET"})),getConfig:r,head:n=>p(d(c({},n),{method:"HEAD"})),interceptors:i,options:n=>p(d(c({},n),{method:"OPTIONS"})),patch:n=>p(d(c({},n),{method:"PATCH"})),post:n=>p(d(c({},n),{method:"POST"})),put:n=>p(d(c({},n),{method:"PUT"})),request:p,setConfig:o,trace:n=>p(d(c({},n),{method:"TRACE"}))}};var b=sr(ze({baseUrl:"https://api.matchi.com/v1"}));var fe={};z(fe,{BookingSchema:()=>Hr,CreateBookingSchema:()=>Vr,FacilityOfferConditionActivitiesSchema:()=>Yr,FacilityOfferConditionCourtsSchema:()=>Jr,FacilityOfferConditionDateSchema:()=>Xr,FacilityOfferConditionHoursinadvanceSchema:()=>Zr,FacilityOfferConditionSchema:()=>Qr,FacilityOfferConditionTimeSchema:()=>et,FacilityOfferConditionWeekdaysSchema:()=>rt,FacilityOfferListSchema:()=>tt,FacilityOfferOrderSchema:()=>ot,FacilityOfferSchema:()=>Wr,FacilityPunchCardDataSchema:()=>it,FacilityValueCardDataSchema:()=>st,GuestSchema:()=>at,PlayerSchema:()=>nt,UpdateBookingSchema:()=>lt,UserRelationSchema:()=>ct,UserSchema:()=>pt,UsersPaginatedResponseSchema:()=>ut,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>dt,pkgOpenapiSharedErrorSchema:()=>mt,pkgOpenapiSharedErrorsSchema:()=>ft,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>yt,pkgOpenapiSharedProblemDetailsSchema:()=>gt});var Hr={properties:{booker:{format:"uuid",type:"string"},created_at:{format:"date-time",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},required:["guests","players"],type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id","booker","location","start_time","end_time","created_at","updated_at","participants","payment_reference","created_by","updated_by"],type:"object"},Vr={properties:{booker:{format:"uuid",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},Wr={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"},Qr={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"},Jr={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Xr={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Zr={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},et={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},rt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},tt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},ot={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"},st={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={properties:{email:{type:"string"}},required:["email"],type:"object"},nt={properties:{email:{type:"string"},id:{format:"uuid",type:"string"}},required:["id","email"],type:"object"},lt={properties:{booker:{format:"uuid",type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},pt={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"},ct={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"},ut={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},dt={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"},mt={properties:{message:{description:"The error message",type:"string"}},type:"object"},ft={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},yt={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"},gt={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 ht={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var ye=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/bookings"},t))},ge=t=>{var e;return((e=t.client)!=null?e:b).post(d(c({url:"/bookings"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},je=t=>{var e;return((e=t.client)!=null?e:b).delete(c({url:"/bookings/{bookingId}"},t))},Me=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/bookings/{bookingId}"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:b).put(d(c({url:"/bookings/{bookingId}"},t),{headers:c({"Content-Type":"application/json"},t==null?void 0:t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/facilities/{facility_id}/offers"},t))},be=t=>{var e;return((e=t.client)!=null?e:b).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:b).get(c({url:"/users/recommended"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:b).get(c({url:"/users/search"},t))};var Ee={};z(Ee,{addBookingMutation:()=>Tt,addBookingOptions:()=>It,addBookingQueryKey:()=>lr,createFacilityOfferOrderMutation:()=>Rt,createFacilityOfferOrderOptions:()=>vt,createFacilityOfferOrderQueryKey:()=>dr,deleteBookingMutation:()=>Et,findBookingByIdOptions:()=>Pt,findBookingByIdQueryKey:()=>pr,findBookingsInfiniteOptions:()=>Ot,findBookingsInfiniteQueryKey:()=>nr,findBookingsOptions:()=>bt,findBookingsQueryKey:()=>ar,listFacilityOffersInfiniteOptions:()=>kt,listFacilityOffersInfiniteQueryKey:()=>ur,listFacilityOffersOptions:()=>Ct,listFacilityOffersQueryKey:()=>cr,recommendedUsersInfiniteOptions:()=>Ut,recommendedUsersInfiniteQueryKey:()=>fr,recommendedUsersOptions:()=>xt,recommendedUsersQueryKey:()=>mr,searchUsersInfiniteOptions:()=>Dt,searchUsersInfiniteQueryKey:()=>gr,searchUsersOptions:()=>At,searchUsersQueryKey:()=>yr,updateBookingMutation:()=>St});var T=(t,e,r)=>{var i;let o={_id:t,baseUrl:((i=e==null?void 0:e.client)!=null?i:b).getConfig().baseUrl};return r&&(o._infinite=r),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]},ar=t=>T("findBookings",t),bt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ye(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),Te=(t,e)=>{let r=t[0];return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},nr=t=>T("findBookings",t,!0),Ot=t=>({queryFn:i=>y(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=Te(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ye(d(c(c({},t),n),{signal:o,throwOnError:!0}));return l}),queryKey:nr(t)}),lr=t=>T("addBooking",t),It=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ge(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:lr(t)}),Tt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield ge(d(c(c({},t),r),{throwOnError:!0}));return o})}),Et=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield je(d(c(c({},t),r),{throwOnError:!0}));return o})}),pr=t=>T("findBookingById",t),Pt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Me(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),St=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield Ke(d(c(c({},t),r),{throwOnError:!0}));return o})}),cr=t=>T("listFacilityOffers",t),Ct=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield he(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),ur=t=>T("listFacilityOffers",t,!0),kt=t=>({queryFn:i=>y(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=Te(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield he(d(c(c({},t),n),{signal:o,throwOnError:!0}));return l}),queryKey:ur(t)}),dr=t=>T("createFacilityOfferOrder",t),vt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield be(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),Rt=t=>({mutationFn:r=>y(void 0,null,function*(){let{data:o}=yield be(d(c(c({},t),r),{throwOnError:!0}));return o})}),mr=t=>T("recommendedUsers",t),xt=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Oe(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:mr(t)}),fr=t=>T("recommendedUsers",t,!0),Ut=t=>({queryFn:i=>y(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=Te(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield Oe(d(c(c({},t),n),{signal:o,throwOnError:!0}));return l}),queryKey:fr(t)}),yr=t=>T("searchUsers",t),At=t=>({queryFn:o=>y(void 0,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ie(d(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),gr=t=>T("searchUsers",t,!0),Dt=t=>({queryFn:i=>y(void 0,[i],function*({pageParam:e,queryKey:r,signal:o}){let n=Te(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield Ie(d(c(c({},t),n),{signal:o,throwOnError:!0}));return l}),queryKey:gr(t)});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});
|