@matchi/api 0.20250130.1 → 0.20250203.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 +28 -1
- package/dist/main/index.d.ts +28 -1
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/dist/v1/@tanstack/react-query.gen.d.mts +63 -2
- package/dist/v1/@tanstack/react-query.gen.d.ts +63 -2
- package/dist/v1/@tanstack/react-query.gen.js +1 -1
- package/dist/v1/@tanstack/react-query.gen.mjs +1 -1
- package/dist/v1/chunk-M5A265XW.mjs +1 -0
- package/dist/v1/index.d.mts +2 -2
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.js +1 -1
- package/dist/v1/index.mjs +1 -1
- package/dist/v1/schemas.gen.d.mts +288 -3
- package/dist/v1/schemas.gen.d.ts +288 -3
- package/dist/v1/schemas.gen.js +1 -1
- package/dist/v1/schemas.gen.mjs +1 -1
- package/dist/v1/sdk.gen.d.mts +12 -2
- package/dist/v1/sdk.gen.d.ts +12 -2
- package/dist/v1/sdk.gen.js +1 -1
- package/dist/v1/sdk.gen.mjs +1 -1
- package/dist/v1/types.gen.d.mts +191 -1
- package/dist/v1/types.gen.d.ts +191 -1
- package/dist/v1/types.gen.js +1 -1
- package/package.json +1 -1
- package/dist/v1/chunk-SNGJPP3Q.mjs +0 -1
package/dist/main/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ge=Object.defineProperty,he=Object.defineProperties;var Ie=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var oe=(i,e,r)=>e in i?ge(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))Te.call(e,r)&&oe(i,r,e[r]);if(te)for(var r of te(e))Ee.call(e,r)&&oe(i,r,e[r]);return i},ie=(i,e)=>he(i,Ie(e));var se=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(se(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(se(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var C=(i,e,r)=>new Promise((s,a)=>{var l=u=>{try{p(r.next(u))}catch(d){a(d)}},n=u=>{try{p(r.throw(u))}catch(d){a(d)}},p=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(i,e)).next())});var P=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var G=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,E,O,S,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,E,void 0);I(this,O,void 0);I(this,S,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,E,new Promise((r,s)=>{y(this,O,r),y(this,S,s);let a=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,O))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,S))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,E).then(e,r)}catch(e){return c(this,E).catch(e)}finally(e){return c(this,E).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,S))==null||e.call(this,new G("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,E=new WeakMap,O=new WeakMap,S=new WeakMap;var t={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 ae=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(ae||{});var ne=(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))(ne||{});var k;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(k||(k={}));var le=(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))(le||{});var pe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(pe||{});var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var w;(e=>{let i;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(i=e.status||(e.status={}))})(w||(w={}));var ue=(e=>(e.PLAYSESSION="playsession",e))(ue||{});var ce=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ce||{});var N;(e=>{let i;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(i=e.type||(e.type={}))})(N||(N={}));var me=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(me||{});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 q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var fe=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(fe||{});var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var L;(e=>{let i;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(i=e.joinApproval||(e.joinApproval={}))})(L||(L={}));var B;(e=>{let i;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(i=e.joiningMethod||(e.joiningMethod={}))})(B||(B={}));var ye=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(ye||{});var _;(e=>{let i;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(i=e.type||(e.type={}))})(_||(_={}));var j=i=>i!=null,U=i=>typeof i=="string",M=i=>U(i)&&i!=="",V=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),be=i=>i instanceof FormData,Ce=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},Pe=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{j(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{s(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},Se=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${Pe(e.query)}`:a},ve=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{U(a)||V(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>j(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},x=(i,e)=>C(void 0,null,function*(){return typeof e=="function"?e(i):e}),Re=(i,e)=>C(void 0,null,function*(){let r=yield x(e,i.TOKEN),s=yield x(e,i.USERNAME),a=yield x(e,i.PASSWORD),l=yield x(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([p,u])=>j(u)).reduce((p,[u,d])=>ie(R({},p),{[u]:String(d)}),{});if(M(r)&&(n.Authorization=`Bearer ${r}`),M(s)&&M(a)){let p=Ce(`${s}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:V(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":U(e.body)?n["Content-Type"]="text/plain":be(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Ae=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):U(i.body)||V(i.body)||be(i.body)?i.body:JSON.stringify(i.body)},Oe=(i,e,r,s,a,l,n)=>C(void 0,null,function*(){let p=new AbortController,u={headers:l,body:s!=null?s:a,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Ue=(i,e)=>{if(e){let r=i.headers.get(e);if(U(r))return r}},Ge=i=>C(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),xe=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new P(i,e,s);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(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},o=(i,e)=>new A((r,s,a)=>C(void 0,null,function*(){try{let l=Se(i,e),n=ve(e),p=Ae(e),u=yield Re(i,e);if(!a.isCancelled){let d=yield Oe(i,e,l,p,n,u,a),f=yield Ge(d),v=Ue(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:v!=null?v:f};xe(e,m),r(m.body)}}catch(l){s(l)}}));var H=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,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 F=class{static listActivities(e=!1,r=!1,s,a,l,n,p,u,d,f,v,m=10){return o(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:d,endDate:f,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 o(t,{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,s,a,l){return o(t,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,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 o(t,{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,s,a,l,n,p,u,d=10){return o(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,limit:d},errors:{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return o(t,{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 o(t,{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 o(t,{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 o(t,{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."}})}};var W=class{static getApiClientList(e,r=10){return o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},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 o(t,{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 Y=class{static getActivityOccasionForUser(e){return o(t,{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 o(t,{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 o(t,{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,s,a,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,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 o(t,{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 o(t,{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,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{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 getTargetChat(e,r){return o(t,{method:"GET",url:"/users/chats/{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 addUserToChat(e,r){return o(t,{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 o(t,{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 o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return o(t,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,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 o(t,{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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 addWaitlistOccasion(e){return o(t,{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 o(t,{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 listUserOfferPunchCards(e,r=10){return o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},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 o(t,{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 K=class{static getAvailabilityWithPrice(e,r,s,a,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var J=class{static getCheckout(e){return o(t,{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,s){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},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 $=class{static updateCompetitionAccount(e){return o(t,{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 Q=class{static options(e){return o(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var X=class{static createPromoCode(e){return o(t,{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 Z=class{static createMembership(e){return o(t,{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 o(t,{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 ee=class{static getPlaySessionById(e){return o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,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 o(t,{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 o(t,{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 o(t,{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,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,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 o(t,{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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 re=class{static getUserProfile(e){return o(t,{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 listChats(e="ALL",r,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{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 getTargetChat(e,r){return o(t,{method:"GET",url:"/users/chats/{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 addUserToChat(e,r){return o(t,{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 o(t,{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 o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUsersProfile(){return o(t,{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 o(t,{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 getRelationToFriend(e){return o(t,{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 o(t,{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 o(t,{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 listFriends(e,r=10){return o(t,{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 o(t,{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 o(t,{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 o(t,{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."}})}};export{H as ActivityServiceV1Service,F as AnonymousService,W as ApiClientServiceV1Service,P as ApiError,Y as AuthorizedService,K as BookingServiceV1Service,G as CancelError,A as CancelablePromise,J as CheckoutServiceV1Service,$ as CompetitionServiceV1Service,Q as CorsService,X as LoyaltyServiceV1Service,Z as MembershipServiceV1Service,t as OpenAPI,ee as PlaySessionServiceV1Service,re as UserServiceV1Service,ae as access,ne as bookingRestriction,le as bookingSubType,k as bookingSubscription,pe as bookingUserStatus,D as cancellationPolicy,w as chat,ue as chatTarget,ce as clientType,N as createChatResponse,me as directionParam,de as months,q as pendingPayment,L as playSessionSettings,B as playSessionUser,fe as playerStatusParam,z as playingUserResponse,ye as userChatStatusParam,_ as userPunchCard};
|
|
1
|
+
var ge=Object.defineProperty,he=Object.defineProperties;var Ie=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var oe=(i,e,r)=>e in i?ge(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))Te.call(e,r)&&oe(i,r,e[r]);if(te)for(var r of te(e))Ee.call(e,r)&&oe(i,r,e[r]);return i},ie=(i,e)=>he(i,Ie(e));var se=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(se(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(se(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var C=(i,e,r)=>new Promise((s,a)=>{var l=u=>{try{p(r.next(u))}catch(d){a(d)}},n=u=>{try{p(r.throw(u))}catch(d){a(d)}},p=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(i,e)).next())});var P=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var G=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,E,O,S,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,E,void 0);I(this,O,void 0);I(this,S,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,E,new Promise((r,s)=>{y(this,O,r),y(this,S,s);let a=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,O))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,S))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,E).then(e,r)}catch(e){return c(this,E).catch(e)}finally(e){return c(this,E).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,S))==null||e.call(this,new G("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,E=new WeakMap,O=new WeakMap,S=new WeakMap;var t={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 ae=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(ae||{});var ne=(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))(ne||{});var k;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(k||(k={}));var le=(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))(le||{});var pe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(pe||{});var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var w;(e=>{let i;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(i=e.status||(e.status={}))})(w||(w={}));var ue=(e=>(e.PLAYSESSION="playsession",e))(ue||{});var ce=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ce||{});var N;(e=>{let i;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(i=e.type||(e.type={}))})(N||(N={}));var me=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(me||{});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 q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var fe=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(fe||{});var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var L;(e=>{let i;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(i=e.joinApproval||(e.joinApproval={}))})(L||(L={}));var B;(e=>{let i;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(i=e.joiningMethod||(e.joiningMethod={}))})(B||(B={}));var ye=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(ye||{});var _;(e=>{let i;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(i=e.type||(e.type={}))})(_||(_={}));var j=i=>i!=null,U=i=>typeof i=="string",M=i=>U(i)&&i!=="",V=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),be=i=>i instanceof FormData,Ce=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},Pe=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{j(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{s(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},Se=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${Pe(e.query)}`:a},ve=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{U(a)||V(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>j(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},x=(i,e)=>C(void 0,null,function*(){return typeof e=="function"?e(i):e}),Re=(i,e)=>C(void 0,null,function*(){let r=yield x(e,i.TOKEN),s=yield x(e,i.USERNAME),a=yield x(e,i.PASSWORD),l=yield x(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([p,u])=>j(u)).reduce((p,[u,d])=>ie(R({},p),{[u]:String(d)}),{});if(M(r)&&(n.Authorization=`Bearer ${r}`),M(s)&&M(a)){let p=Ce(`${s}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:V(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":U(e.body)?n["Content-Type"]="text/plain":be(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Ae=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):U(i.body)||V(i.body)||be(i.body)?i.body:JSON.stringify(i.body)},Oe=(i,e,r,s,a,l,n)=>C(void 0,null,function*(){let p=new AbortController,u={headers:l,body:s!=null?s:a,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Ue=(i,e)=>{if(e){let r=i.headers.get(e);if(U(r))return r}},Ge=i=>C(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),xe=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new P(i,e,s);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(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},o=(i,e)=>new A((r,s,a)=>C(void 0,null,function*(){try{let l=Se(i,e),n=ve(e),p=Ae(e),u=yield Re(i,e);if(!a.isCancelled){let d=yield Oe(i,e,l,p,n,u,a),f=yield Ge(d),v=Ue(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:v!=null?v:f};xe(e,m),r(m.body)}}catch(l){s(l)}}));var H=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,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 F=class{static listActivities(e=!1,r=!1,s,a,l,n,p,u,d,f,v,m=10){return o(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:d,endDate:f,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 o(t,{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,s,a,l){return o(t,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,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 o(t,{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,s,a,l,n,p,u,d=10){return o(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,limit:d},errors:{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return o(t,{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 o(t,{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 o(t,{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 o(t,{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."}})}};var W=class{static getApiClientList(e,r=10){return o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},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 o(t,{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 Y=class{static getActivityOccasionForUser(e){return o(t,{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 o(t,{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 o(t,{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,s,a,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,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 o(t,{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 o(t,{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,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{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 getTargetChat(e,r){return o(t,{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 addUserToChat(e,r){return o(t,{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 o(t,{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 o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return o(t,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,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 o(t,{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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 addWaitlistOccasion(e){return o(t,{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 o(t,{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 listUserOfferPunchCards(e,r=10){return o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},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 o(t,{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 K=class{static getAvailabilityWithPrice(e,r,s,a,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var J=class{static getCheckout(e){return o(t,{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,s){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},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 $=class{static updateCompetitionAccount(e){return o(t,{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 Q=class{static options(e){return o(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var X=class{static createPromoCode(e){return o(t,{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 Z=class{static createMembership(e){return o(t,{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 o(t,{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 ee=class{static getPlaySessionById(e){return o(t,{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 o(t,{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 o(t,{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 o(t,{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,s){return o(t,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,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 o(t,{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 o(t,{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 o(t,{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,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,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 o(t,{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 o(t,{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,s,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 re=class{static getUserProfile(e){return o(t,{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 listChats(e="ALL",r,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{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 getTargetChat(e,r){return o(t,{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 addUserToChat(e,r){return o(t,{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 o(t,{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 o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUsersProfile(){return o(t,{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 o(t,{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 getRelationToFriend(e){return o(t,{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 o(t,{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 o(t,{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 listFriends(e,r=10){return o(t,{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 o(t,{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 o(t,{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 o(t,{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."}})}};export{H as ActivityServiceV1Service,F as AnonymousService,W as ApiClientServiceV1Service,P as ApiError,Y as AuthorizedService,K as BookingServiceV1Service,G as CancelError,A as CancelablePromise,J as CheckoutServiceV1Service,$ as CompetitionServiceV1Service,Q as CorsService,X as LoyaltyServiceV1Service,Z as MembershipServiceV1Service,t as OpenAPI,ee as PlaySessionServiceV1Service,re as UserServiceV1Service,ae as access,ne as bookingRestriction,le as bookingSubType,k as bookingSubscription,pe as bookingUserStatus,D as cancellationPolicy,w as chat,ue as chatTarget,ce as clientType,N as createChatResponse,me as directionParam,de as months,q as pendingPayment,L as playSessionSettings,B as playSessionUser,fe as playerStatusParam,z as playingUserResponse,ye as userChatStatusParam,_ as userPunchCard};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_query_core_build_legacy_hydration_ClXcjjG9 from '@tanstack/query-core/build/legacy/hydration-ClXcjjG9';
|
|
2
2
|
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
3
|
-
import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData } from '../types.gen.mjs';
|
|
3
|
+
import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData, ListFacilityOffersData, FacilityOfferList, CreateFacilityOfferOrderData, FacilityOfferOrder } from '../types.gen.mjs';
|
|
4
4
|
import { Options } from '@hey-api/client-fetch';
|
|
5
5
|
import { InfiniteData, UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
|
|
@@ -124,5 +124,66 @@ declare const findBookingByIdOptions: (options: Options<FindBookingByIdData>) =>
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
declare const updateBookingMutation: (options?: Partial<Options<UpdateBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<UpdateBookingData>, unknown>;
|
|
127
|
+
declare const listFacilityOffersQueryKey: (options: Options<ListFacilityOffersData>) => (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
128
|
+
_id: string;
|
|
129
|
+
_infinite?: boolean | undefined;
|
|
130
|
+
})[];
|
|
131
|
+
declare const listFacilityOffersOptions: (options: Options<ListFacilityOffersData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<FacilityOfferList, Error, FacilityOfferList, (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
132
|
+
_id: string;
|
|
133
|
+
_infinite?: boolean | undefined;
|
|
134
|
+
})[]>, "queryFn"> & {
|
|
135
|
+
queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<FacilityOfferList, (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
136
|
+
_id: string;
|
|
137
|
+
_infinite?: boolean | undefined;
|
|
138
|
+
})[], never> | undefined;
|
|
139
|
+
} & {
|
|
140
|
+
queryKey: (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
141
|
+
_id: string;
|
|
142
|
+
_infinite?: boolean | undefined;
|
|
143
|
+
})[] & {
|
|
144
|
+
[dataTagSymbol]: FacilityOfferList;
|
|
145
|
+
[dataTagErrorSymbol]: Error;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
declare const listFacilityOffersInfiniteQueryKey: (options: Options<ListFacilityOffersData>) => QueryKey<Options<ListFacilityOffersData>>;
|
|
149
|
+
declare const listFacilityOffersInfiniteOptions: (options: Options<ListFacilityOffersData>) => _tanstack_react_query_build_legacy_types.UseInfiniteQueryOptions<FacilityOfferList, PkgOpenapiSharedProblemDetails, InfiniteData<FacilityOfferList, unknown>, FacilityOfferList, QueryKey<Options<ListFacilityOffersData>>, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
150
|
+
_id: string;
|
|
151
|
+
_infinite?: boolean | undefined;
|
|
152
|
+
}, "body" | "path" | "query" | "headers">> & {
|
|
153
|
+
initialData: InfiniteData<FacilityOfferList, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
154
|
+
_id: string;
|
|
155
|
+
_infinite?: boolean | undefined;
|
|
156
|
+
}, "body" | "path" | "query" | "headers">> | (() => InfiniteData<FacilityOfferList, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
157
|
+
_id: string;
|
|
158
|
+
_infinite?: boolean | undefined;
|
|
159
|
+
}, "body" | "path" | "query" | "headers">>) | undefined;
|
|
160
|
+
} & {
|
|
161
|
+
queryKey: QueryKey<Options<ListFacilityOffersData>> & {
|
|
162
|
+
[dataTagSymbol]: InfiniteData<FacilityOfferList, unknown>;
|
|
163
|
+
[dataTagErrorSymbol]: PkgOpenapiSharedProblemDetails;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
declare const createFacilityOfferOrderQueryKey: (options: Options<CreateFacilityOfferOrderData>) => (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
167
|
+
_id: string;
|
|
168
|
+
_infinite?: boolean | undefined;
|
|
169
|
+
})[];
|
|
170
|
+
declare const createFacilityOfferOrderOptions: (options: Options<CreateFacilityOfferOrderData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<FacilityOfferOrder, Error, FacilityOfferOrder, (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
171
|
+
_id: string;
|
|
172
|
+
_infinite?: boolean | undefined;
|
|
173
|
+
})[]>, "queryFn"> & {
|
|
174
|
+
queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<FacilityOfferOrder, (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
175
|
+
_id: string;
|
|
176
|
+
_infinite?: boolean | undefined;
|
|
177
|
+
})[], never> | undefined;
|
|
178
|
+
} & {
|
|
179
|
+
queryKey: (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
180
|
+
_id: string;
|
|
181
|
+
_infinite?: boolean | undefined;
|
|
182
|
+
})[] & {
|
|
183
|
+
[dataTagSymbol]: FacilityOfferOrder;
|
|
184
|
+
[dataTagErrorSymbol]: Error;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
declare const createFacilityOfferOrderMutation: (options?: Partial<Options<CreateFacilityOfferOrderData>>) => UseMutationOptions<FacilityOfferOrder, PkgOpenapiSharedProblemDetails, Options<CreateFacilityOfferOrderData>, unknown>;
|
|
127
188
|
|
|
128
|
-
export { addBookingMutation, addBookingOptions, addBookingQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, updateBookingMutation };
|
|
189
|
+
export { addBookingMutation, addBookingOptions, addBookingQueryKey, createFacilityOfferOrderMutation, createFacilityOfferOrderOptions, createFacilityOfferOrderQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, listFacilityOffersInfiniteOptions, listFacilityOffersInfiniteQueryKey, listFacilityOffersOptions, listFacilityOffersQueryKey, updateBookingMutation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_query_core_build_legacy_hydration_ClXcjjG9 from '@tanstack/query-core/build/legacy/hydration-ClXcjjG9';
|
|
2
2
|
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
3
|
-
import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData } from '../types.gen.js';
|
|
3
|
+
import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData, ListFacilityOffersData, FacilityOfferList, CreateFacilityOfferOrderData, FacilityOfferOrder } from '../types.gen.js';
|
|
4
4
|
import { Options } from '@hey-api/client-fetch';
|
|
5
5
|
import { InfiniteData, UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
|
|
@@ -124,5 +124,66 @@ declare const findBookingByIdOptions: (options: Options<FindBookingByIdData>) =>
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
declare const updateBookingMutation: (options?: Partial<Options<UpdateBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<UpdateBookingData>, unknown>;
|
|
127
|
+
declare const listFacilityOffersQueryKey: (options: Options<ListFacilityOffersData>) => (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
128
|
+
_id: string;
|
|
129
|
+
_infinite?: boolean | undefined;
|
|
130
|
+
})[];
|
|
131
|
+
declare const listFacilityOffersOptions: (options: Options<ListFacilityOffersData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<FacilityOfferList, Error, FacilityOfferList, (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
132
|
+
_id: string;
|
|
133
|
+
_infinite?: boolean | undefined;
|
|
134
|
+
})[]>, "queryFn"> & {
|
|
135
|
+
queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<FacilityOfferList, (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
136
|
+
_id: string;
|
|
137
|
+
_infinite?: boolean | undefined;
|
|
138
|
+
})[], never> | undefined;
|
|
139
|
+
} & {
|
|
140
|
+
queryKey: (Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
141
|
+
_id: string;
|
|
142
|
+
_infinite?: boolean | undefined;
|
|
143
|
+
})[] & {
|
|
144
|
+
[dataTagSymbol]: FacilityOfferList;
|
|
145
|
+
[dataTagErrorSymbol]: Error;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
declare const listFacilityOffersInfiniteQueryKey: (options: Options<ListFacilityOffersData>) => QueryKey<Options<ListFacilityOffersData>>;
|
|
149
|
+
declare const listFacilityOffersInfiniteOptions: (options: Options<ListFacilityOffersData>) => _tanstack_react_query_build_legacy_types.UseInfiniteQueryOptions<FacilityOfferList, PkgOpenapiSharedProblemDetails, InfiniteData<FacilityOfferList, unknown>, FacilityOfferList, QueryKey<Options<ListFacilityOffersData>>, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
150
|
+
_id: string;
|
|
151
|
+
_infinite?: boolean | undefined;
|
|
152
|
+
}, "body" | "path" | "query" | "headers">> & {
|
|
153
|
+
initialData: InfiniteData<FacilityOfferList, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
154
|
+
_id: string;
|
|
155
|
+
_infinite?: boolean | undefined;
|
|
156
|
+
}, "body" | "path" | "query" | "headers">> | (() => InfiniteData<FacilityOfferList, string | Pick<Pick<Options<ListFacilityOffersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
157
|
+
_id: string;
|
|
158
|
+
_infinite?: boolean | undefined;
|
|
159
|
+
}, "body" | "path" | "query" | "headers">>) | undefined;
|
|
160
|
+
} & {
|
|
161
|
+
queryKey: QueryKey<Options<ListFacilityOffersData>> & {
|
|
162
|
+
[dataTagSymbol]: InfiniteData<FacilityOfferList, unknown>;
|
|
163
|
+
[dataTagErrorSymbol]: PkgOpenapiSharedProblemDetails;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
declare const createFacilityOfferOrderQueryKey: (options: Options<CreateFacilityOfferOrderData>) => (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
167
|
+
_id: string;
|
|
168
|
+
_infinite?: boolean | undefined;
|
|
169
|
+
})[];
|
|
170
|
+
declare const createFacilityOfferOrderOptions: (options: Options<CreateFacilityOfferOrderData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<FacilityOfferOrder, Error, FacilityOfferOrder, (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
171
|
+
_id: string;
|
|
172
|
+
_infinite?: boolean | undefined;
|
|
173
|
+
})[]>, "queryFn"> & {
|
|
174
|
+
queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<FacilityOfferOrder, (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
175
|
+
_id: string;
|
|
176
|
+
_infinite?: boolean | undefined;
|
|
177
|
+
})[], never> | undefined;
|
|
178
|
+
} & {
|
|
179
|
+
queryKey: (Pick<Options<CreateFacilityOfferOrderData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
|
|
180
|
+
_id: string;
|
|
181
|
+
_infinite?: boolean | undefined;
|
|
182
|
+
})[] & {
|
|
183
|
+
[dataTagSymbol]: FacilityOfferOrder;
|
|
184
|
+
[dataTagErrorSymbol]: Error;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
declare const createFacilityOfferOrderMutation: (options?: Partial<Options<CreateFacilityOfferOrderData>>) => UseMutationOptions<FacilityOfferOrder, PkgOpenapiSharedProblemDetails, Options<CreateFacilityOfferOrderData>, unknown>;
|
|
127
188
|
|
|
128
|
-
export { addBookingMutation, addBookingOptions, addBookingQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, updateBookingMutation };
|
|
189
|
+
export { addBookingMutation, addBookingOptions, addBookingQueryKey, createFacilityOfferOrderMutation, createFacilityOfferOrderOptions, createFacilityOfferOrderQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, listFacilityOffersInfiniteOptions, listFacilityOffersInfiniteQueryKey, listFacilityOffersOptions, listFacilityOffersQueryKey, updateBookingMutation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var W=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},N=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!P.call(e,i)&&i!==r&&b(e,i,{get:()=>t[i],enumerable:!(n=K(t,i))||n.enumerable});return e};var M=e=>N(b({},"__esModule",{value:!0}),e);var ce={};W(ce,{addBookingMutation:()=>le,addBookingOptions:()=>de,addBookingQueryKey:()=>$,deleteBookingMutation:()=>ue,findBookingByIdOptions:()=>pe,findBookingByIdQueryKey:()=>_,findBookingsInfiniteOptions:()=>se,findBookingsInfiniteQueryKey:()=>C,findBookingsOptions:()=>ae,findBookingsQueryKey:()=>v,updateBookingMutation:()=>ye});module.exports=M(ce);var H=/\{[^{}]+\}/g,k=({allowReserved:e,name:t,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`${t}=${e?r:encodeURIComponent(r)}`},J=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},L=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},V=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},R=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(d=>encodeURIComponent(d))).join(L(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=J(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):k({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},q=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([c,u])=>{a=[...a,c,e?u:encodeURIComponent(u)]});let d=a.join(",");switch(n){case"form":return`${r}=${d}`;case"label":return`.${d}`;case"matrix":return`;${r}=${d}`;default:return d}}let s=V(n),o=Object.entries(i).map(([a,d])=>k({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:d})).join(s);return n==="label"||n==="matrix"?s+o:o},G=({path:e,url:t})=>{let r=t,n=t.match(H);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let d=e[o];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,R({explode:s,name:o,style:a,value:d}));continue}if(typeof d=="object"){r=r.replace(i,q({explode:s,name:o,style:a,value:d}));continue}if(a==="matrix"){r=r.replace(i,`;${k({name:o,value:d})}`);continue}let c=encodeURIComponent(a==="label"?`.${d}`:d);r=r.replace(i,c)}return r},F=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,R({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,q({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,k({allowReserved:e,name:s,value:o})]}}return i.join("&")},X=e=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"}},Y=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},Z=async({security:e,...t})=>{for(let r of e){let n=await Y(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[i]=n;break;case"header":default:t.headers.set(i,n);break}return}},x=e=>ee({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:F(e.querySerializer),url:e.url}),ee=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=G({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},T=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},U=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},m=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},te=()=>({error:new m,request:new m,response:new m});var re={bodySerializer:e=>JSON.stringify(e)};var oe=F({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),ne={"Content-Type":"application/json"},w=(e={})=>({...re,baseUrl:"",headers:ne,parseAs:"auto",querySerializer:oe,...e}),j=(e={})=>{let t=T(w(),e),r=()=>({...t}),n=o=>(t=T(t,o),r()),i=te(),s=async o=>{let a={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,o.headers)};a.security&&await Z({...a,security:a.security}),a.body&&a.bodySerializer&&(a.body=a.bodySerializer(a.body)),a.body||a.headers.delete("Content-Type");let d=x(a),c={redirect:"follow",...a},u=new Request(d,c);for(let p of i.request._fns)u=await p(u,a);let z=a.fetch,l=await z(u);for(let p of i.response._fns)l=await p(l,u,a);let g={request:u,response:l};if(l.ok){if(l.status===204||l.headers.get("Content-Length")==="0")return{data:{},...g};let p=(a.parseAs==="auto"?X(l.headers.get("Content-Type")):a.parseAs)??"json";if(p==="stream")return{data:l.body,...g};let B=await l[p]();return p==="json"&&(a.responseValidator&&await a.responseValidator(B),a.responseTransformer&&(B=await a.responseTransformer(B))),{data:B,...g}}let h=await l.text();try{h=JSON.parse(h)}catch{}let f=h;for(let p of i.error._fns)f=await p(h,l,u,a);if(f=f||{},a.throwOnError)throw f;return{error:f,...g}};return{buildUrl:x,connect:o=>s({...o,method:"CONNECT"}),delete:o=>s({...o,method:"DELETE"}),get:o=>s({...o,method:"GET"}),getConfig:r,head:o=>s({...o,method:"HEAD"}),interceptors:i,options:o=>s({...o,method:"OPTIONS"}),patch:o=>s({...o,method:"PATCH"}),post:o=>s({...o,method:"POST"}),put:o=>s({...o,method:"PUT"}),request:s,setConfig:n,trace:o=>s({...o,method:"TRACE"})}};var y=j(w()),D=e=>(e?.client??y).get({...e,url:"/bookings"}),E=e=>(e?.client??y).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),A=e=>(e?.client??y).delete({...e,url:"/bookings/{bookingId}"}),I=e=>(e?.client??y).get({...e,url:"/bookings/{bookingId}"}),S=e=>(e?.client??y).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"});var O=(e,t,r)=>{let n={_id:e,baseUrl:(t?.client??y).getConfig().baseUrl};return r&&(n._infinite=r),t?.body&&(n.body=t.body),t?.headers&&(n.headers=t.headers),t?.path&&(n.path=t.path),t?.query&&(n.query=t.query),n},v=e=>[O("findBookings",e)],ae=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await D({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:v(e)}),ie=(e,t)=>{let r=e[0];return t.body&&(r.body={...e[0].body,...t.body}),t.headers&&(r.headers={...e[0].headers,...t.headers}),t.path&&(r.path={...e[0].path,...t.path}),t.query&&(r.query={...e[0].query,...t.query}),r},C=e=>[O("findBookings",e,!0)],se=e=>({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let s=ie(r,typeof t=="object"?t:{query:{offset:t}}),{data:o}=await D({...e,...s,signal:n,throwOnError:!0});return o},queryKey:C(e)}),$=e=>[O("addBooking",e)],de=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await E({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:$(e)}),le=e=>({mutationFn:async r=>{let{data:n}=await E({...e,...r,throwOnError:!0});return n}}),ue=e=>({mutationFn:async r=>{let{data:n}=await A({...e,...r,throwOnError:!0});return n}}),_=e=>[O("findBookingById",e)],pe=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await I({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:_(e)}),ye=e=>({mutationFn:async r=>{let{data:n}=await S({...e,...r,throwOnError:!0});return n}});0&&(module.exports={addBookingMutation,addBookingOptions,addBookingQueryKey,deleteBookingMutation,findBookingByIdOptions,findBookingByIdQueryKey,findBookingsInfiniteOptions,findBookingsInfiniteQueryKey,findBookingsOptions,findBookingsQueryKey,updateBookingMutation});
|
|
1
|
+
"use strict";var b=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var J=Object.prototype.hasOwnProperty;var V=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},G=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of H(r))!J.call(e,a)&&a!==t&&b(e,a,{get:()=>r[a],enumerable:!(o=N(r,a))||o.enumerable});return e};var X=e=>G(b({},"__esModule",{value:!0}),e);var Fe={};V(Fe,{addBookingMutation:()=>pe,addBookingOptions:()=>ce,addBookingQueryKey:()=>$,createFacilityOfferOrderMutation:()=>me,createFacilityOfferOrderOptions:()=>be,createFacilityOfferOrderQueryKey:()=>W,deleteBookingMutation:()=>Oe,findBookingByIdOptions:()=>he,findBookingByIdQueryKey:()=>_,findBookingsInfiniteOptions:()=>ye,findBookingsInfiniteQueryKey:()=>L,findBookingsOptions:()=>ue,findBookingsQueryKey:()=>v,listFacilityOffersInfiniteOptions:()=>ke,listFacilityOffersInfiniteQueryKey:()=>P,listFacilityOffersOptions:()=>Be,listFacilityOffersQueryKey:()=>z,updateBookingMutation:()=>ge});module.exports=X(Fe);var Y=/\{[^{}]+\}/g,k=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},Z=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ee=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},re=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},T=({allowReserved:e,explode:r,name:t,style:o,value:a})=>{if(!r){let i=(e?a:a.map(l=>encodeURIComponent(l))).join(ee(o));switch(o){case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;case"simple":return i;default:return`${t}=${i}`}}let s=Z(o),n=a.map(i=>o==="label"||o==="simple"?e?i:encodeURIComponent(i):k({allowReserved:e,name:t,value:i})).join(s);return o==="label"||o==="matrix"?s+n:n},C=({allowReserved:e,explode:r,name:t,style:o,value:a})=>{if(a instanceof Date)return`${t}=${a.toISOString()}`;if(o!=="deepObject"&&!r){let i=[];Object.entries(a).forEach(([p,f])=>{i=[...i,p,e?f:encodeURIComponent(f)]});let l=i.join(",");switch(o){case"form":return`${t}=${l}`;case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;default:return l}}let s=re(o),n=Object.entries(a).map(([i,l])=>k({allowReserved:e,name:o==="deepObject"?`${t}[${i}]`:i,value:l})).join(s);return o==="label"||o==="matrix"?s+n:n},te=({path:e,url:r})=>{let t=r,o=r.match(Y);if(o)for(let a of o){let s=!1,n=a.substring(1,a.length-1),i="simple";n.endsWith("*")&&(s=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),i="label"):n.startsWith(";")&&(n=n.substring(1),i="matrix");let l=e[n];if(l==null)continue;if(Array.isArray(l)){t=t.replace(a,T({explode:s,name:n,style:i,value:l}));continue}if(typeof l=="object"){t=t.replace(a,C({explode:s,name:n,style:i,value:l}));continue}if(i==="matrix"){t=t.replace(a,`;${k({name:n,value:l})}`);continue}let p=encodeURIComponent(i==="label"?`.${l}`:l);t=t.replace(a,p)}return t},U=({allowReserved:e,array:r,object:t}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let s in o){let n=o[s];if(n!=null){if(Array.isArray(n)){a=[...a,T({allowReserved:e,explode:!0,name:s,style:"form",value:n,...r})];continue}if(typeof n=="object"){a=[...a,C({allowReserved:e,explode:!0,name:s,style:"deepObject",value:n,...t})];continue}a=[...a,k({allowReserved:e,name:s,value:n})]}}return a.join("&")},oe=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ne=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t},ie=async({security:e,...r})=>{for(let t of e){let o=await ne(t,r.auth);if(!o)continue;let a=t.name??"Authorization";switch(t.in){case"query":r.query||(r.query={}),r.query[a]=o;break;case"header":default:r.headers.set(a,o);break}return}},R=e=>ae({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:U(e.querySerializer),url:e.url}),ae=({baseUrl:e,path:r,query:t,querySerializer:o,url:a})=>{let s=a.startsWith("/")?a:`/${a}`,n=e+s;r&&(n=te({path:r,url:n}));let i=t?o(t):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n},q=(e,r)=>{let t={...e,...r};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=j(e.headers,r.headers),t},j=(...e)=>{let r=new Headers;for(let t of e){if(!t||typeof t!="object")continue;let o=t instanceof Headers?t.entries():Object.entries(t);for(let[a,s]of o)if(s===null)r.delete(a);else if(Array.isArray(s))for(let n of s)r.append(a,n);else s!==void 0&&r.set(a,typeof s=="object"?JSON.stringify(s):s)}return r},m=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let r=this._fns.indexOf(e);r!==-1&&(this._fns=[...this._fns.slice(0,r),...this._fns.slice(r+1)])}use(e){this._fns=[...this._fns,e]}},se=()=>({error:new m,request:new m,response:new m});var le={bodySerializer:e=>JSON.stringify(e)};var de=U({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),fe={"Content-Type":"application/json"},F=(e={})=>({...le,baseUrl:"",headers:fe,parseAs:"auto",querySerializer:de,...e}),A=(e={})=>{let r=q(F(),e),t=()=>({...r}),o=n=>(r=q(r,n),t()),a=se(),s=async n=>{let i={...r,...n,fetch:n.fetch??r.fetch??globalThis.fetch,headers:j(r.headers,n.headers)};i.security&&await ie({...i,security:i.security}),i.body&&i.bodySerializer&&(i.body=i.bodySerializer(i.body)),i.body||i.headers.delete("Content-Type");let l=R(i),p={redirect:"follow",...i},f=new Request(l,p);for(let u of a.request._fns)f=await u(f,i);let M=i.fetch,d=await M(f);for(let u of a.response._fns)d=await u(d,f,i);let h={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...h};let u=(i.parseAs==="auto"?oe(d.headers.get("Content-Type")):i.parseAs)??"json";if(u==="stream")return{data:d.body,...h};let B=await d[u]();return u==="json"&&(i.responseValidator&&await i.responseValidator(B),i.responseTransformer&&(B=await i.responseTransformer(B))),{data:B,...h}}let g=await d.text();try{g=JSON.parse(g)}catch{}let O=g;for(let u of a.error._fns)O=await u(g,d,f,i);if(O=O||{},i.throwOnError)throw O;return{error:O,...h}};return{buildUrl:R,connect:n=>s({...n,method:"CONNECT"}),delete:n=>s({...n,method:"DELETE"}),get:n=>s({...n,method:"GET"}),getConfig:t,head:n=>s({...n,method:"HEAD"}),interceptors:a,options:n=>s({...n,method:"OPTIONS"}),patch:n=>s({...n,method:"PATCH"}),post:n=>s({...n,method:"POST"}),put:n=>s({...n,method:"PUT"}),request:s,setConfig:o,trace:n=>s({...n,method:"TRACE"})}};var y=A(F()),w=e=>(e?.client??y).get({...e,url:"/bookings"}),D=e=>(e?.client??y).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),I=e=>(e?.client??y).delete({...e,url:"/bookings/{bookingId}"}),K=e=>(e?.client??y).get({...e,url:"/bookings/{bookingId}"}),S=e=>(e?.client??y).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"}),E=e=>(e?.client??y).get({...e,url:"/facilities/{facility_id}/offers"}),x=e=>(e?.client??y).post({...e,url:"/facilities/{facility_id}/offers/{offer_id}"});var c=(e,r,t)=>{let o={_id:e,baseUrl:(r?.client??y).getConfig().baseUrl};return t&&(o._infinite=t),r?.body&&(o.body=r.body),r?.headers&&(o.headers=r.headers),r?.path&&(o.path=r.path),r?.query&&(o.query=r.query),o},v=e=>[c("findBookings",e)],ue=e=>({queryFn:async({queryKey:r,signal:t})=>{let{data:o}=await w({...e,...r[0],signal:t,throwOnError:!0});return o},queryKey:v(e)}),Q=(e,r)=>{let t=e[0];return r.body&&(t.body={...e[0].body,...r.body}),r.headers&&(t.headers={...e[0].headers,...r.headers}),r.path&&(t.path={...e[0].path,...r.path}),r.query&&(t.query={...e[0].query,...r.query}),t},L=e=>[c("findBookings",e,!0)],ye=e=>({queryFn:async({pageParam:r,queryKey:t,signal:o})=>{let s=Q(t,typeof r=="object"?r:{query:{offset:r}}),{data:n}=await w({...e,...s,signal:o,throwOnError:!0});return n},queryKey:L(e)}),$=e=>[c("addBooking",e)],ce=e=>({queryFn:async({queryKey:r,signal:t})=>{let{data:o}=await D({...e,...r[0],signal:t,throwOnError:!0});return o},queryKey:$(e)}),pe=e=>({mutationFn:async t=>{let{data:o}=await D({...e,...t,throwOnError:!0});return o}}),Oe=e=>({mutationFn:async t=>{let{data:o}=await I({...e,...t,throwOnError:!0});return o}}),_=e=>[c("findBookingById",e)],he=e=>({queryFn:async({queryKey:r,signal:t})=>{let{data:o}=await K({...e,...r[0],signal:t,throwOnError:!0});return o},queryKey:_(e)}),ge=e=>({mutationFn:async t=>{let{data:o}=await S({...e,...t,throwOnError:!0});return o}}),z=e=>[c("listFacilityOffers",e)],Be=e=>({queryFn:async({queryKey:r,signal:t})=>{let{data:o}=await E({...e,...r[0],signal:t,throwOnError:!0});return o},queryKey:z(e)}),P=e=>[c("listFacilityOffers",e,!0)],ke=e=>({queryFn:async({pageParam:r,queryKey:t,signal:o})=>{let s=Q(t,typeof r=="object"?r:{query:{cursor:r}}),{data:n}=await E({...e,...s,signal:o,throwOnError:!0});return n},queryKey:P(e)}),W=e=>[c("createFacilityOfferOrder",e)],be=e=>({queryFn:async({queryKey:r,signal:t})=>{let{data:o}=await x({...e,...r[0],signal:t,throwOnError:!0});return o},queryKey:W(e)}),me=e=>({mutationFn:async t=>{let{data:o}=await x({...e,...t,throwOnError:!0});return o}});0&&(module.exports={addBookingMutation,addBookingOptions,addBookingQueryKey,createFacilityOfferOrderMutation,createFacilityOfferOrderOptions,createFacilityOfferOrderQueryKey,deleteBookingMutation,findBookingByIdOptions,findBookingByIdQueryKey,findBookingsInfiniteOptions,findBookingsInfiniteQueryKey,findBookingsOptions,findBookingsQueryKey,listFacilityOffersInfiniteOptions,listFacilityOffersInfiniteQueryKey,listFacilityOffersOptions,listFacilityOffersQueryKey,updateBookingMutation});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p,b as s,c as y,d as u,e as f,f as c,g as d,h as O}from"../chunk-M5A265XW.mjs";var i=(t,e,r)=>{let o={_id:t,baseUrl:(e?.client??p).getConfig().baseUrl};return r&&(o._infinite=r),e?.body&&(o.body=e.body),e?.headers&&(o.headers=e.headers),e?.path&&(o.path=e.path),e?.query&&(o.query=e.query),o},l=t=>[i("findBookings",t)],E=t=>({queryFn:async({queryKey:e,signal:r})=>{let{data:o}=await s({...t,...e[0],signal:r,throwOnError:!0});return o},queryKey:l(t)}),k=(t,e)=>{let r=t[0];return e.body&&(r.body={...t[0].body,...e.body}),e.headers&&(r.headers={...t[0].headers,...e.headers}),e.path&&(r.path={...t[0].path,...e.path}),e.query&&(r.query={...t[0].query,...e.query}),r},F=t=>[i("findBookings",t,!0)],Q=t=>({queryFn:async({pageParam:e,queryKey:r,signal:o})=>{let n=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:a}=await s({...t,...n,signal:o,throwOnError:!0});return a},queryKey:F(t)}),g=t=>[i("addBooking",t)],m=t=>({queryFn:async({queryKey:e,signal:r})=>{let{data:o}=await y({...t,...e[0],signal:r,throwOnError:!0});return o},queryKey:g(t)}),b=t=>({mutationFn:async r=>{let{data:o}=await y({...t,...r,throwOnError:!0});return o}}),x=t=>({mutationFn:async r=>{let{data:o}=await u({...t,...r,throwOnError:!0});return o}}),D=t=>[i("findBookingById",t)],I=t=>({queryFn:async({queryKey:e,signal:r})=>{let{data:o}=await f({...t,...e[0],signal:r,throwOnError:!0});return o},queryKey:D(t)}),U=t=>({mutationFn:async r=>{let{data:o}=await c({...t,...r,throwOnError:!0});return o}}),h=t=>[i("listFacilityOffers",t)],L=t=>({queryFn:async({queryKey:e,signal:r})=>{let{data:o}=await d({...t,...e[0],signal:r,throwOnError:!0});return o},queryKey:h(t)}),K=t=>[i("listFacilityOffers",t,!0)],R=t=>({queryFn:async({pageParam:e,queryKey:r,signal:o})=>{let n=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:a}=await d({...t,...n,signal:o,throwOnError:!0});return a},queryKey:K(t)}),q=t=>[i("createFacilityOfferOrder",t)],C=t=>({queryFn:async({queryKey:e,signal:r})=>{let{data:o}=await O({...t,...e[0],signal:r,throwOnError:!0});return o},queryKey:q(t)}),A=t=>({mutationFn:async r=>{let{data:o}=await O({...t,...r,throwOnError:!0});return o}});export{b as addBookingMutation,m as addBookingOptions,g as addBookingQueryKey,A as createFacilityOfferOrderMutation,C as createFacilityOfferOrderOptions,q as createFacilityOfferOrderQueryKey,x as deleteBookingMutation,I as findBookingByIdOptions,D as findBookingByIdQueryKey,Q as findBookingsInfiniteOptions,F as findBookingsInfiniteQueryKey,E as findBookingsOptions,l as findBookingsQueryKey,R as listFacilityOffersInfiniteOptions,K as listFacilityOffersInfiniteQueryKey,L as listFacilityOffersOptions,h as listFacilityOffersQueryKey,U as updateBookingMutation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=/\{[^{}]+\}/g,O=({allowReserved:e,name:n,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${n}=${e?t:encodeURIComponent(t)}`},F=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},v=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},k=({allowReserved:e,explode:n,name:t,style:s,value:a})=>{if(!n){let o=(e?a:a.map(l=>encodeURIComponent(l))).join(S(s));switch(s){case"label":return`.${o}`;case"matrix":return`;${t}=${o}`;case"simple":return o;default:return`${t}=${o}`}}let i=F(s),r=a.map(o=>s==="label"||s==="simple"?e?o:encodeURIComponent(o):O({allowReserved:e,name:t,value:o})).join(i);return s==="label"||s==="matrix"?i+r:r},x=({allowReserved:e,explode:n,name:t,style:s,value:a})=>{if(a instanceof Date)return`${t}=${a.toISOString()}`;if(s!=="deepObject"&&!n){let o=[];Object.entries(a).forEach(([p,f])=>{o=[...o,p,e?f:encodeURIComponent(f)]});let l=o.join(",");switch(s){case"form":return`${t}=${l}`;case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;default:return l}}let i=v(s),r=Object.entries(a).map(([o,l])=>O({allowReserved:e,name:s==="deepObject"?`${t}[${o}]`:o,value:l})).join(i);return s==="label"||s==="matrix"?i+r:r},A=({path:e,url:n})=>{let t=n,s=n.match(C);if(s)for(let a of s){let i=!1,r=a.substring(1,a.length-1),o="simple";r.endsWith("*")&&(i=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(r=r.substring(1),o="label"):r.startsWith(";")&&(r=r.substring(1),o="matrix");let l=e[r];if(l==null)continue;if(Array.isArray(l)){t=t.replace(a,k({explode:i,name:r,style:o,value:l}));continue}if(typeof l=="object"){t=t.replace(a,x({explode:i,name:r,style:o,value:l}));continue}if(o==="matrix"){t=t.replace(a,`;${O({name:r,value:l})}`);continue}let p=encodeURIComponent(o==="label"?`.${l}`:l);t=t.replace(a,p)}return t},T=({allowReserved:e,array:n,object:t}={})=>s=>{let a=[];if(s&&typeof s=="object")for(let i in s){let r=s[i];if(r!=null){if(Array.isArray(r)){a=[...a,k({allowReserved:e,explode:!0,name:i,style:"form",value:r,...n})];continue}if(typeof r=="object"){a=[...a,x({allowReserved:e,explode:!0,name:i,style:"deepObject",value:r,...t})];continue}a=[...a,O({allowReserved:e,name:i,value:r})]}}return a.join("&")},U=e=>{if(!e)return"stream";let n=e.split(";")[0]?.trim();if(n){if(n.startsWith("application/json")||n.endsWith("+json"))return"json";if(n==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>n.startsWith(t)))return"blob";if(n.startsWith("text/"))return"text"}},$=async(e,n)=>{let t=typeof n=="function"?await n(e):n;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t},q=async({security:e,...n})=>{for(let t of e){let s=await $(t,n.auth);if(!s)continue;let a=t.name??"Authorization";switch(t.in){case"query":n.query||(n.query={}),n.query[a]=s;break;case"header":default:n.headers.set(a,s);break}return}},E=e=>I({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:T(e.querySerializer),url:e.url}),I=({baseUrl:e,path:n,query:t,querySerializer:s,url:a})=>{let i=a.startsWith("/")?a:`/${a}`,r=e+i;n&&(r=A({path:n,url:r}));let o=t?s(t):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(r+=`?${o}`),r},B=(e,n)=>{let t={...e,...n};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=j(e.headers,n.headers),t},j=(...e)=>{let n=new Headers;for(let t of e){if(!t||typeof t!="object")continue;let s=t instanceof Headers?t.entries():Object.entries(t);for(let[a,i]of s)if(i===null)n.delete(a);else if(Array.isArray(i))for(let r of i)n.append(a,r);else i!==void 0&&n.set(a,typeof i=="object"?JSON.stringify(i):i)}return n},m=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let n=this._fns.indexOf(e);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(e){this._fns=[...this._fns,e]}},z=()=>({error:new m,request:new m,response:new m});var _={bodySerializer:e=>JSON.stringify(e)};var W=T({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),L={"Content-Type":"application/json"},w=(e={})=>({..._,baseUrl:"",headers:L,parseAs:"auto",querySerializer:W,...e}),R=(e={})=>{let n=B(w(),e),t=()=>({...n}),s=r=>(n=B(n,r),t()),a=z(),i=async r=>{let o={...n,...r,fetch:r.fetch??n.fetch??globalThis.fetch,headers:j(n.headers,r.headers)};o.security&&await q({...o,security:o.security}),o.body&&o.bodySerializer&&(o.body=o.bodySerializer(o.body)),o.body||o.headers.delete("Content-Type");let l=E(o),p={redirect:"follow",...o},f=new Request(l,p);for(let u of a.request._fns)f=await u(f,o);let D=o.fetch,d=await D(f);for(let u of a.response._fns)d=await u(d,f,o);let y={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...y};let u=(o.parseAs==="auto"?U(d.headers.get("Content-Type")):o.parseAs)??"json";if(u==="stream")return{data:d.body,...y};let g=await d[u]();return u==="json"&&(o.responseValidator&&await o.responseValidator(g),o.responseTransformer&&(g=await o.responseTransformer(g))),{data:g,...y}}let b=await d.text();try{b=JSON.parse(b)}catch{}let h=b;for(let u of a.error._fns)h=await u(b,d,f,o);if(h=h||{},o.throwOnError)throw h;return{error:h,...y}};return{buildUrl:E,connect:r=>i({...r,method:"CONNECT"}),delete:r=>i({...r,method:"DELETE"}),get:r=>i({...r,method:"GET"}),getConfig:t,head:r=>i({...r,method:"HEAD"}),interceptors:a,options:r=>i({...r,method:"OPTIONS"}),patch:r=>i({...r,method:"PATCH"}),post:r=>i({...r,method:"POST"}),put:r=>i({...r,method:"PUT"}),request:i,setConfig:s,trace:r=>i({...r,method:"TRACE"})}};var c=R(w()),J=e=>(e?.client??c).get({...e,url:"/bookings"}),V=e=>(e?.client??c).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),G=e=>(e?.client??c).delete({...e,url:"/bookings/{bookingId}"}),M=e=>(e?.client??c).get({...e,url:"/bookings/{bookingId}"}),Q=e=>(e?.client??c).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"}),K=e=>(e?.client??c).get({...e,url:"/facilities/{facility_id}/offers"}),X=e=>(e?.client??c).post({...e,url:"/facilities/{facility_id}/offers/{offer_id}"});export{c as a,J as b,V as c,G as d,M as e,Q as f,K as g,X as h};
|
package/dist/v1/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.mjs';
|
|
2
|
-
export { addBooking, client, deleteBooking, findBookingById, findBookings, updateBooking } from './sdk.gen.mjs';
|
|
1
|
+
export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, CreateFacilityOfferOrderData, CreateFacilityOfferOrderError, CreateFacilityOfferOrderErrors, CreateFacilityOfferOrderResponse, CreateFacilityOfferOrderResponses, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FacilityIdPath, FacilityOffer, FacilityOfferCondition, FacilityOfferConditionActivities, FacilityOfferConditionCourts, FacilityOfferConditionDate, FacilityOfferConditionHoursinadvance, FacilityOfferConditionNotImplemented, FacilityOfferConditionTime, FacilityOfferConditionWeekdays, FacilityOfferList, FacilityOfferOrder, FacilityPunchCardData, FacilityValueCardData, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, ListFacilityOffersData, ListFacilityOffersError, ListFacilityOffersErrors, ListFacilityOffersResponse, ListFacilityOffersResponses, OfferIdPath, PkgOpenapiSharedCursorLimitParam, PkgOpenapiSharedCursorPaginatedResultSet, PkgOpenapiSharedCursorParam, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.mjs';
|
|
2
|
+
export { addBooking, client, createFacilityOfferOrder, deleteBooking, findBookingById, findBookings, listFacilityOffers, updateBooking } from './sdk.gen.mjs';
|
|
3
3
|
import '@hey-api/client-fetch';
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.js';
|
|
2
|
-
export { addBooking, client, deleteBooking, findBookingById, findBookings, updateBooking } from './sdk.gen.js';
|
|
1
|
+
export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, CreateFacilityOfferOrderData, CreateFacilityOfferOrderError, CreateFacilityOfferOrderErrors, CreateFacilityOfferOrderResponse, CreateFacilityOfferOrderResponses, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FacilityIdPath, FacilityOffer, FacilityOfferCondition, FacilityOfferConditionActivities, FacilityOfferConditionCourts, FacilityOfferConditionDate, FacilityOfferConditionHoursinadvance, FacilityOfferConditionNotImplemented, FacilityOfferConditionTime, FacilityOfferConditionWeekdays, FacilityOfferList, FacilityOfferOrder, FacilityPunchCardData, FacilityValueCardData, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, ListFacilityOffersData, ListFacilityOffersError, ListFacilityOffersErrors, ListFacilityOffersResponse, ListFacilityOffersResponses, OfferIdPath, PkgOpenapiSharedCursorLimitParam, PkgOpenapiSharedCursorPaginatedResultSet, PkgOpenapiSharedCursorParam, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.js';
|
|
2
|
+
export { addBooking, client, createFacilityOfferOrder, deleteBooking, findBookingById, findBookings, listFacilityOffers, updateBooking } from './sdk.gen.js';
|
|
3
3
|
import '@hey-api/client-fetch';
|