@matchi/api 0.20260609.1 → 0.20260610.2
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 +13 -2
- package/dist/main/index.d.ts +13 -2
- package/dist/main/index.js +3 -2
- package/dist/main/index.mjs +3 -2
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -1311,7 +1311,7 @@ type playerRefundInfo = {
|
|
|
1311
1311
|
*/
|
|
1312
1312
|
refundable?: boolean;
|
|
1313
1313
|
/**
|
|
1314
|
-
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot.
|
|
1314
|
+
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot. NON_EU_VENUE signals that the EU right of withdrawal does not apply (the venue is outside the EU); clients should typically hide the withdrawal UI entirely in that case.
|
|
1315
1315
|
*/
|
|
1316
1316
|
reason?: playerRefundInfo.reason | null;
|
|
1317
1317
|
/**
|
|
@@ -1325,10 +1325,11 @@ type playerRefundInfo = {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
declare namespace playerRefundInfo {
|
|
1327
1327
|
/**
|
|
1328
|
-
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot.
|
|
1328
|
+
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot. NON_EU_VENUE signals that the EU right of withdrawal does not apply (the venue is outside the EU); clients should typically hide the withdrawal UI entirely in that case.
|
|
1329
1329
|
*/
|
|
1330
1330
|
enum reason {
|
|
1331
1331
|
REFUNDABLE = "REFUNDABLE",
|
|
1332
|
+
NON_EU_VENUE = "NON_EU_VENUE",
|
|
1332
1333
|
ALREADY_REFUNDED = "ALREADY_REFUNDED",
|
|
1333
1334
|
INELIGIBLE_PRODUCT_TYPE = "INELIGIBLE_PRODUCT_TYPE",
|
|
1334
1335
|
PAID_AT_VENUE = "PAID_AT_VENUE",
|
|
@@ -3917,6 +3918,11 @@ type MatchOccasion = {
|
|
|
3917
3918
|
*
|
|
3918
3919
|
*/
|
|
3919
3920
|
type MatchOccasionDetail = MatchOccasion & {
|
|
3921
|
+
/**
|
|
3922
|
+
* Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.
|
|
3923
|
+
*
|
|
3924
|
+
*/
|
|
3925
|
+
access_code?: string | null;
|
|
3920
3926
|
can_be_cancelled_by_user: boolean;
|
|
3921
3927
|
event: MatchEvent;
|
|
3922
3928
|
external_services: Array<ExternalService>;
|
|
@@ -7290,6 +7296,11 @@ declare const MatchOccasionDetailSchema: {
|
|
|
7290
7296
|
readonly $ref: "#/components/schemas/MatchOccasion";
|
|
7291
7297
|
}, {
|
|
7292
7298
|
readonly properties: {
|
|
7299
|
+
readonly access_code: {
|
|
7300
|
+
readonly description: "Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. \"0666\") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.\n";
|
|
7301
|
+
readonly nullable: true;
|
|
7302
|
+
readonly type: "string";
|
|
7303
|
+
};
|
|
7293
7304
|
readonly can_be_cancelled_by_user: {
|
|
7294
7305
|
readonly type: "boolean";
|
|
7295
7306
|
};
|
package/dist/main/index.d.ts
CHANGED
|
@@ -1311,7 +1311,7 @@ type playerRefundInfo = {
|
|
|
1311
1311
|
*/
|
|
1312
1312
|
refundable?: boolean;
|
|
1313
1313
|
/**
|
|
1314
|
-
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot.
|
|
1314
|
+
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot. NON_EU_VENUE signals that the EU right of withdrawal does not apply (the venue is outside the EU); clients should typically hide the withdrawal UI entirely in that case.
|
|
1315
1315
|
*/
|
|
1316
1316
|
reason?: playerRefundInfo.reason | null;
|
|
1317
1317
|
/**
|
|
@@ -1325,10 +1325,11 @@ type playerRefundInfo = {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
declare namespace playerRefundInfo {
|
|
1327
1327
|
/**
|
|
1328
|
-
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot.
|
|
1328
|
+
* Eligibility reason. REFUNDABLE when the player may proceed; all other values indicate why they cannot. NON_EU_VENUE signals that the EU right of withdrawal does not apply (the venue is outside the EU); clients should typically hide the withdrawal UI entirely in that case.
|
|
1329
1329
|
*/
|
|
1330
1330
|
enum reason {
|
|
1331
1331
|
REFUNDABLE = "REFUNDABLE",
|
|
1332
|
+
NON_EU_VENUE = "NON_EU_VENUE",
|
|
1332
1333
|
ALREADY_REFUNDED = "ALREADY_REFUNDED",
|
|
1333
1334
|
INELIGIBLE_PRODUCT_TYPE = "INELIGIBLE_PRODUCT_TYPE",
|
|
1334
1335
|
PAID_AT_VENUE = "PAID_AT_VENUE",
|
|
@@ -3917,6 +3918,11 @@ type MatchOccasion = {
|
|
|
3917
3918
|
*
|
|
3918
3919
|
*/
|
|
3919
3920
|
type MatchOccasionDetail = MatchOccasion & {
|
|
3921
|
+
/**
|
|
3922
|
+
* Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.
|
|
3923
|
+
*
|
|
3924
|
+
*/
|
|
3925
|
+
access_code?: string | null;
|
|
3920
3926
|
can_be_cancelled_by_user: boolean;
|
|
3921
3927
|
event: MatchEvent;
|
|
3922
3928
|
external_services: Array<ExternalService>;
|
|
@@ -7290,6 +7296,11 @@ declare const MatchOccasionDetailSchema: {
|
|
|
7290
7296
|
readonly $ref: "#/components/schemas/MatchOccasion";
|
|
7291
7297
|
}, {
|
|
7292
7298
|
readonly properties: {
|
|
7299
|
+
readonly access_code: {
|
|
7300
|
+
readonly description: "Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. \"0666\") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.\n";
|
|
7301
|
+
readonly nullable: true;
|
|
7302
|
+
readonly type: "string";
|
|
7303
|
+
};
|
|
7293
7304
|
readonly can_be_cancelled_by_user: {
|
|
7294
7305
|
readonly type: "boolean";
|
|
7295
7306
|
};
|
package/dist/main/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Te=Object.defineProperty,Yo=Object.defineProperties,Wo=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyDescriptors,Xo=Object.getOwnPropertyNames,Ie=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Zo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),_r=t=>{throw TypeError(t)};var vr=(t,e,r)=>e in t?Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))sr.call(e,r)&&vr(t,r,e[r]);if(Ie)for(var r of Ie(e))kr.call(e,r)&&vr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Jo(e));var z=(t,e)=>{var r={};for(var o in t)sr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ie)for(var o of Ie(t))e.indexOf(o)<0&&kr.call(t,o)&&(r[o]=t[o]);return r};var J=(t,e)=>{for(var r in e)Te(t,r,{get:e[r],enumerable:!0})},ei=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Xo(e))!sr.call(t,s)&&s!==r&&Te(t,s,{get:()=>e[s],enumerable:!(o=Wo(e,s))||o.enumerable});return t};var ti=t=>ei(Te({},"__esModule",{value:!0}),t);var Nr=(t,e,r)=>e.has(t)||_r("Cannot "+r);var x=(t,e,r)=>(Nr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?_r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Nr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=m=>{try{a(r.next(m))}catch(f){s(f)}},n=m=>{try{a(r.throw(m))}catch(f){s(f)}},a=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Ue=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((m,f)=>o(n,a,m,f)),l={};return r=r.apply(t,e),l[Zo("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var ap={};J(ap,{ActivityServiceV1Service:()=>Ke,AnonymousService:()=>$e,ApiClientServiceV1Service:()=>Qe,ApiError:()=>X,AuthorizedService:()=>Ve,BookingServiceV1Service:()=>He,CancelError:()=>ce,CancelablePromise:()=>te,CheckoutServiceV1Service:()=>Ye,CompetitionServiceV1Service:()=>We,CorsService:()=>Je,LoyaltyServiceV1Service:()=>Xe,MembershipServiceV1Service:()=>Ze,OpenAPI:()=>p,PlaySessionServiceV1Service:()=>et,UserServiceV1Service:()=>tt,bookingRestriction:()=>ar,bookingSubType:()=>nr,bookingSubscription:()=>ve,bookingUserStatus:()=>pr,cancellationPolicy:()=>ke,chat:()=>_e,chatCreation:()=>Ne,chatTarget:()=>cr,clientType:()=>lr,directionParam:()=>ur,months:()=>mr,notificationChatGroup:()=>Ae,notificationEntity:()=>Ge,pendingPayment:()=>Le,playSessionSettings:()=>qe,playSessionUser:()=>Fe,playerRefundInfo:()=>we,playerStatusParam:()=>dr,playingUserResponse:()=>Me,userChatStatusParam:()=>yr,userChatTargetParam:()=>fr,userPunchCard:()=>ze,userRelation:()=>je,userRelationStatusParam:()=>hr,v1:()=>zt,v2:()=>er});module.exports=ti(ap);var X=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var ce=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,Z,le,ee,te=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,Z);V(this,le);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,Z,new Promise((r,o)=>{q(this,le,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,le))==null||m.call(this,a))},l=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,Z).then(e,r)}catch(e){return x(this,Z).catch(e)}finally(e){return x(this,Z).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new ce("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=new WeakMap,Z=new WeakMap,le=new WeakMap,ee=new WeakMap;var p={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var ar=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(ar||{});var ve;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(ve||(ve={}));var nr=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(nr||{});var pr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(pr||{});var ke;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ke||(ke={}));var _e;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(_e||(_e={}));var Ne;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Ne||(Ne={}));var cr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(cr||{});var lr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(lr||{});var ur=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(ur||{});var mr=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(mr||{});var Ae;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Ae||(Ae={}));var Ge;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Ge||(Ge={}));var Le;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Le||(Le={}));var we;(e=>{let t;(a=>(a.REFUNDABLE="REFUNDABLE",a.ALREADY_REFUNDED="ALREADY_REFUNDED",a.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",a.PAID_AT_VENUE="PAID_AT_VENUE",a.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(we||(we={}));var dr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(dr||{});var Me;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Me||(Me={}));var qe;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(qe||(qe={}));var Fe;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Fe||(Fe={}));var yr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(yr||{});var fr=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(fr||{});var ze;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ze||(ze={}));var je;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(je||(je={}));var hr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(hr||{});var br=t=>t!=null,ue=t=>typeof t=="string",gr=t=>ue(t)&&t!=="",Pr=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ar=t=>t instanceof FormData,ri=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},oi=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{br(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},ii=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${oi(e.query)}`:s},si=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{ue(s)||Pr(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>br(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Be=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ai=(t,e)=>y(null,null,function*(){let r=yield Be(e,t.TOKEN),o=yield Be(e,t.USERNAME),s=yield Be(e,t.PASSWORD),l=yield Be(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,m])=>br(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(gr(r)&&(n.Authorization=`Bearer ${r}`),gr(o)&&gr(s)){let a=ri(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Pr(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":ue(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ni=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):ue(t.body)||Pr(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},pi=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,m={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(m.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,m)}),ci=(t,e)=>{if(e){let r=t.headers.get(e);if(ue(r))return r}},li=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),ui=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new X(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",m=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new X(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${m}`)}},c=(t,e)=>new te((r,o,s)=>y(null,null,function*(){try{let l=ii(t,e),n=si(e),a=ni(e),m=yield ai(t,e);if(!s.isCancelled){let f=yield pi(t,e,l,a,n,m,s),u=yield li(f),R=ci(f,e.responseHeader),O={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ui(e,O),r(O.body)}}catch(l){o(l)}}));var Ke=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var $e=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,R,O=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:R,limit:O},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,m,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,offset:m,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return c(p,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return c(p,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return c(p,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Qe=class{static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ve=class{static getActivityOccasionForUser(e){return c(p,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return c(p,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return c(p,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return c(p,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return c(p,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return c(p,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return c(p,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return c(p,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return c(p,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return c(p,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return c(p,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return c(p,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return c(p,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return c(p,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return c(p,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var He=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ye=class{static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var We=class{static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Je=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Xe=class{static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ze=class{static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return c(p,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var et=class{static getPlaySessionById(e){return c(p,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return c(p,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return c(p,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return c(p,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var tt=class{static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return c(p,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return c(p,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return c(p,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return c(p,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var zt={};J(zt,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>pt,addUserSportProfileLevel:()=>wt,client:()=>h,createComment:()=>dt,createFacilityOfferOrder:()=>gt,createMatchParticipation:()=>Ot,createPost:()=>ct,createUserSportProfile:()=>At,deleteComment:()=>yt,deleteMatchParticipation:()=>Rt,deletePost:()=>lt,deleteUserSportProfile:()=>Gt,deleteUserSportProfileLevel:()=>Mt,getCommunity:()=>at,getFacility:()=>ht,getMatch:()=>Pt,getMatchUserPrice:()=>St,getNotificationById:()=>Dt,getNotifications:()=>Re,getNotificationsPreferences:()=>Ct,getPost:()=>ut,getRecommendations:()=>Ee,getResource:()=>Tt,getSportAuthorities:()=>Ut,getUserFacilityPermissions:()=>kt,getUserSportProfile:()=>Lt,getUserSportProfiles:()=>Nt,leaveCommunity:()=>nt,listComments:()=>ge,listCommunities:()=>ye,listFacilities:()=>be,listFacilityOffers:()=>Pe,listFacilityResources:()=>bt,listMatches:()=>Oe,listMembers:()=>fe,listPosts:()=>he,markCommentRead:()=>ft,markPostRead:()=>mt,queries:()=>Ft,registerDevice:()=>vt,schemas:()=>st,searchUsers:()=>Se,updateAllNotifications:()=>Et,updateNotification:()=>It,updateNotificationsPreferences:()=>xt,updateUserProfile:()=>_t,updateUserSportProfileLevel:()=>qt});var Or={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var mi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},cl=Object.entries(mi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ue(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let tr=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(tr($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",ie=()=>{try{Y.cancel()}catch(se){}};k.addEventListener("abort",ie);try{for(;;){let{done:se,value:rr}=yield new N(Y.read());if(se)break;M+=rr,M=M.replace(/\r\n/g,`
|
|
1
|
+
"use strict";var Te=Object.defineProperty,Yo=Object.defineProperties,Wo=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyDescriptors,Xo=Object.getOwnPropertyNames,Ie=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Zo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),_r=t=>{throw TypeError(t)};var vr=(t,e,r)=>e in t?Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))sr.call(e,r)&&vr(t,r,e[r]);if(Ie)for(var r of Ie(e))kr.call(e,r)&&vr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Jo(e));var z=(t,e)=>{var r={};for(var o in t)sr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ie)for(var o of Ie(t))e.indexOf(o)<0&&kr.call(t,o)&&(r[o]=t[o]);return r};var J=(t,e)=>{for(var r in e)Te(t,r,{get:e[r],enumerable:!0})},ei=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Xo(e))!sr.call(t,s)&&s!==r&&Te(t,s,{get:()=>e[s],enumerable:!(o=Wo(e,s))||o.enumerable});return t};var ti=t=>ei(Te({},"__esModule",{value:!0}),t);var Nr=(t,e,r)=>e.has(t)||_r("Cannot "+r);var x=(t,e,r)=>(Nr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?_r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Nr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=m=>{try{a(r.next(m))}catch(f){s(f)}},n=m=>{try{a(r.throw(m))}catch(f){s(f)}},a=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Ue=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((m,f)=>o(n,a,m,f)),l={};return r=r.apply(t,e),l[Zo("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var ap={};J(ap,{ActivityServiceV1Service:()=>Ke,AnonymousService:()=>$e,ApiClientServiceV1Service:()=>Qe,ApiError:()=>X,AuthorizedService:()=>Ve,BookingServiceV1Service:()=>He,CancelError:()=>ce,CancelablePromise:()=>te,CheckoutServiceV1Service:()=>Ye,CompetitionServiceV1Service:()=>We,CorsService:()=>Je,LoyaltyServiceV1Service:()=>Xe,MembershipServiceV1Service:()=>Ze,OpenAPI:()=>p,PlaySessionServiceV1Service:()=>et,UserServiceV1Service:()=>tt,bookingRestriction:()=>ar,bookingSubType:()=>nr,bookingSubscription:()=>ve,bookingUserStatus:()=>pr,cancellationPolicy:()=>ke,chat:()=>_e,chatCreation:()=>Ne,chatTarget:()=>cr,clientType:()=>lr,directionParam:()=>ur,months:()=>mr,notificationChatGroup:()=>Ae,notificationEntity:()=>Ge,pendingPayment:()=>Le,playSessionSettings:()=>qe,playSessionUser:()=>Fe,playerRefundInfo:()=>we,playerStatusParam:()=>dr,playingUserResponse:()=>Me,userChatStatusParam:()=>yr,userChatTargetParam:()=>fr,userPunchCard:()=>ze,userRelation:()=>je,userRelationStatusParam:()=>hr,v1:()=>zt,v2:()=>er});module.exports=ti(ap);var X=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var ce=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,Z,le,ee,te=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,Z);V(this,le);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,Z,new Promise((r,o)=>{q(this,le,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,le))==null||m.call(this,a))},l=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,Z).then(e,r)}catch(e){return x(this,Z).catch(e)}finally(e){return x(this,Z).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new ce("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=new WeakMap,Z=new WeakMap,le=new WeakMap,ee=new WeakMap;var p={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var ar=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(ar||{});var ve;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(ve||(ve={}));var nr=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(nr||{});var pr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(pr||{});var ke;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(ke||(ke={}));var _e;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(_e||(_e={}));var Ne;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Ne||(Ne={}));var cr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(cr||{});var lr=(r=>(r.WIDGET="WIDGET",r.API="API",r))(lr||{});var ur=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(ur||{});var mr=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(mr||{});var Ae;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Ae||(Ae={}));var Ge;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Ge||(Ge={}));var Le;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(Le||(Le={}));var we;(e=>{let t;(m=>(m.REFUNDABLE="REFUNDABLE",m.NON_EU_VENUE="NON_EU_VENUE",m.ALREADY_REFUNDED="ALREADY_REFUNDED",m.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",m.PAID_AT_VENUE="PAID_AT_VENUE",m.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(we||(we={}));var dr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(dr||{});var Me;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(Me||(Me={}));var qe;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(qe||(qe={}));var Fe;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(Fe||(Fe={}));var yr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(yr||{});var fr=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(fr||{});var ze;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(ze||(ze={}));var je;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(je||(je={}));var hr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(hr||{});var br=t=>t!=null,ue=t=>typeof t=="string",gr=t=>ue(t)&&t!=="",Pr=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ar=t=>t instanceof FormData,ri=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},oi=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{br(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},ii=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${oi(e.query)}`:s},si=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{ue(s)||Pr(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>br(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Be=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ai=(t,e)=>y(null,null,function*(){let r=yield Be(e,t.TOKEN),o=yield Be(e,t.USERNAME),s=yield Be(e,t.PASSWORD),l=yield Be(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,m])=>br(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(gr(r)&&(n.Authorization=`Bearer ${r}`),gr(o)&&gr(s)){let a=ri(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Pr(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":ue(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),ni=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):ue(t.body)||Pr(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},pi=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,m={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(m.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,m)}),ci=(t,e)=>{if(e){let r=t.headers.get(e);if(ue(r))return r}},li=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),ui=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new X(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",m=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new X(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${m}`)}},c=(t,e)=>new te((r,o,s)=>y(null,null,function*(){try{let l=ii(t,e),n=si(e),a=ni(e),m=yield ai(t,e);if(!s.isCancelled){let f=yield pi(t,e,l,a,n,m,s),u=yield li(f),R=ci(f,e.responseHeader),O={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ui(e,O),r(O.body)}}catch(l){o(l)}}));var Ke=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var $e=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,R,O=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:R,limit:O},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,m,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,offset:m,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return c(p,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return c(p,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return c(p,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Qe=class{static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ve=class{static getActivityOccasionForUser(e){return c(p,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return c(p,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return c(p,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return c(p,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return c(p,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return c(p,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return c(p,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return c(p,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return c(p,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return c(p,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return c(p,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return c(p,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return c(p,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return c(p,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return c(p,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var He=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ye=class{static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var We=class{static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Je=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Xe=class{static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ze=class{static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return c(p,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var et=class{static getPlaySessionById(e){return c(p,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return c(p,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return c(p,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return c(p,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var tt=class{static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return c(p,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return c(p,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return c(p,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return c(p,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var zt={};J(zt,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>pt,addUserSportProfileLevel:()=>wt,client:()=>h,createComment:()=>dt,createFacilityOfferOrder:()=>gt,createMatchParticipation:()=>Ot,createPost:()=>ct,createUserSportProfile:()=>At,deleteComment:()=>yt,deleteMatchParticipation:()=>Rt,deletePost:()=>lt,deleteUserSportProfile:()=>Gt,deleteUserSportProfileLevel:()=>Mt,getCommunity:()=>at,getFacility:()=>ht,getMatch:()=>Pt,getMatchUserPrice:()=>St,getNotificationById:()=>Dt,getNotifications:()=>Re,getNotificationsPreferences:()=>Ct,getPost:()=>ut,getRecommendations:()=>Ee,getResource:()=>Tt,getSportAuthorities:()=>Ut,getUserFacilityPermissions:()=>kt,getUserSportProfile:()=>Lt,getUserSportProfiles:()=>Nt,leaveCommunity:()=>nt,listComments:()=>ge,listCommunities:()=>ye,listFacilities:()=>be,listFacilityOffers:()=>Pe,listFacilityResources:()=>bt,listMatches:()=>Oe,listMembers:()=>fe,listPosts:()=>he,markCommentRead:()=>ft,markPostRead:()=>mt,queries:()=>Ft,registerDevice:()=>vt,schemas:()=>st,searchUsers:()=>Se,updateAllNotifications:()=>Et,updateNotification:()=>It,updateNotificationsPreferences:()=>xt,updateUserProfile:()=>_t,updateUserSportProfileLevel:()=>qt});var Or={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var mi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},cl=Object.entries(mi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ue(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let tr=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(tr($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",ie=()=>{try{Y.cancel()}catch(se){}};k.addEventListener("abort",ie);try{for(;;){let{done:se,value:rr}=yield new N(Y.read());if(se)break;M+=rr,M=M.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);let ae=M.split(`
|
|
4
4
|
|
|
@@ -10,7 +10,8 @@ UNKNOWN \u2014 the community member who authored the post or comment
|
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Ci={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},xi={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},Di={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ii={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ti={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ui={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},vi={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},ki={description:"At least one of `content` or `links` must be provided. When `links` is\npresent and non-empty, `content` may be omitted.\n",properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},type:"object"},_i={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Ni={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Ai={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},Gi={properties:{active:{type:"boolean"},address:{$ref:"#/components/schemas/Address"},bookable:{type:"boolean"},currency:{type:"string"},description:{type:"string"},email:{format:"email",type:"string"},id:{type:"integer"},logo_url:{format:"uri",type:"string"},name:{type:"string"},phone_number:{type:"string"},position:{$ref:"#/components/schemas/Position"},resource_types:{items:{type:"string"},type:"array"},sports:{items:{type:"string"},type:"array"},website:{format:"uri",type:"string"}},required:["id","name","logo_url","address","position","resource_types"],type:"object"},Li={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},result_set:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["result_set","items"],type:"object"},wi={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Mi={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},qi={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Fi={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},zi={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},ji={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Bi={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ki={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},$i={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Qi={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Vi={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Hi={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Yi={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Wi={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Ji={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Xi={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Zi={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},es={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},ts={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},rs={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},os={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},is={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ss={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},as={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
|
-
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ns={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{
|
|
13
|
+
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ns={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{access_code:{description:`Venue door/gate access code for the match. Display-only and informational \u2014 it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence \u2014 do not parse or validate it.
|
|
14
|
+
`,nullable:!0,type:"string"},can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
15
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
15
16
|
`},ps={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},cs={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},ls={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},us={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},ms={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ds={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ys={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},fs={enum:["ACTIVE","INVITED","LEFT"],type:"string"},hs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},gs={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},bs={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Ps={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Os={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Rs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Ss={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Es={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Cs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},xs={description:`Player-facing participant row with join timestamp. Tagged union over
|
|
16
17
|
PUBLIC and PRIVATE variants \u2014 see ParticipantSummary.
|
package/dist/main/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var br=Object.defineProperty,Yo=Object.defineProperties;var Wo=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Jo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Rr=t=>{throw TypeError(t)};var gr=(t,e,r)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Pr.call(e,r)&&gr(t,r,e[r]);if(De)for(var r of De(e))Or.call(e,r)&&gr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Wo(e));var z=(t,e)=>{var r={};for(var o in t)Pr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&De)for(var o of De(t))e.indexOf(o)<0&&Or.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)br(t,r,{get:e[r],enumerable:!0})};var Sr=(t,e,r)=>e.has(t)||Rr("Cannot "+r);var x=(t,e,r)=>(Sr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?Rr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Sr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=m=>{try{a(r.next(m))}catch(f){s(f)}},n=m=>{try{a(r.throw(m))}catch(f){s(f)}},a=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Ie=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((m,f)=>o(n,a,m,f)),l={};return r=r.apply(t,e),l[Jo("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var Z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Te=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,J,ce,ee,pe=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,J);V(this,ce);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,ce))==null||m.call(this,a))},l=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,J).then(e,r)}catch(e){return x(this,J).catch(e)}finally(e){return x(this,J).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new Te("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=new WeakMap,J=new WeakMap,ce=new WeakMap,ee=new WeakMap;var p={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var Er=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(Er||{});var kt;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(kt||(kt={}));var Cr=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(Cr||{});var xr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(xr||{});var _t;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(_t||(_t={}));var Nt;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Nt||(Nt={}));var At;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(At||(At={}));var Dr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Dr||{});var Ir=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ir||{});var Tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Tr||{});var Ur=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(Ur||{});var Gt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Gt||(Gt={}));var Lt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Lt||(Lt={}));var wt;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(wt||(wt={}));var Mt;(e=>{let t;(a=>(a.REFUNDABLE="REFUNDABLE",a.ALREADY_REFUNDED="ALREADY_REFUNDED",a.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",a.PAID_AT_VENUE="PAID_AT_VENUE",a.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(Mt||(Mt={}));var vr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(vr||{});var qt;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(qt||(qt={}));var Ft;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Ft||(Ft={}));var zt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(zt||(zt={}));var kr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(kr||{});var _r=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(_r||{});var jt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(jt||(jt={}));var Bt;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Bt||(Bt={}));var Nr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Nr||{});var $t=t=>t!=null,le=t=>typeof t=="string",Kt=t=>le(t)&&t!=="",Qt=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ar=t=>t instanceof FormData,Xo=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Zo=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{$t(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},ei=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${Zo(e.query)}`:s},ti=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||Qt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>$t(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ri=(t,e)=>y(null,null,function*(){let r=yield Ue(e,t.TOKEN),o=yield Ue(e,t.USERNAME),s=yield Ue(e,t.PASSWORD),l=yield Ue(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,m])=>$t(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(Kt(r)&&(n.Authorization=`Bearer ${r}`),Kt(o)&&Kt(s)){let a=Xo(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Qt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),oi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||Qt(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},ii=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,m={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(m.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,m)}),si=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},ai=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),ni=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new Z(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",m=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new Z(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${m}`)}},c=(t,e)=>new pe((r,o,s)=>y(null,null,function*(){try{let l=ei(t,e),n=ti(e),a=oi(e),m=yield ri(t,e);if(!s.isCancelled){let f=yield ii(t,e,l,a,n,m,s),u=yield ai(f),R=si(f,e.responseHeader),O={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ni(e,O),r(O.body)}}catch(l){o(l)}}));var Vt=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ht=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,R,O=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:R,limit:O},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,m,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,offset:m,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return c(p,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return c(p,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return c(p,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Yt=class{static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Wt=class{static getActivityOccasionForUser(e){return c(p,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return c(p,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return c(p,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return c(p,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return c(p,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return c(p,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return c(p,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return c(p,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return c(p,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return c(p,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return c(p,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return c(p,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return c(p,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return c(p,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return c(p,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Jt=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Xt=class{static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Zt=class{static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var er=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var tr=class{static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var rr=class{static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return c(p,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var or=class{static getPlaySessionById(e){return c(p,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return c(p,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return c(p,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return c(p,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ir=class{static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return c(p,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return c(p,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return c(p,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return c(p,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var lr={};X(lr,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>Le,addUserSportProfileLevel:()=>ut,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>$e,createMatchParticipation:()=>He,createPost:()=>we,createUserSportProfile:()=>pt,deleteComment:()=>je,deleteMatchParticipation:()=>Ye,deletePost:()=>Me,deleteUserSportProfile:()=>ct,deleteUserSportProfileLevel:()=>mt,getCommunity:()=>Ae,getFacility:()=>Ke,getMatch:()=>Ve,getMatchUserPrice:()=>We,getNotificationById:()=>et,getNotifications:()=>Oe,getNotificationsPreferences:()=>Xe,getPost:()=>qe,getRecommendations:()=>Se,getResource:()=>rt,getSportAuthorities:()=>ot,getUserFacilityPermissions:()=>st,getUserSportProfile:()=>lt,getUserSportProfiles:()=>nt,leaveCommunity:()=>Ge,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Qe,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Be,markPostRead:()=>Fe,queries:()=>yt,registerDevice:()=>it,schemas:()=>Ne,searchUsers:()=>Re,updateAllNotifications:()=>Je,updateNotification:()=>tt,updateNotificationsPreferences:()=>Ze,updateUserProfile:()=>at,updateUserSportProfileLevel:()=>dt});var sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var pi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},il=Object.entries(pi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
1
|
+
var br=Object.defineProperty,Yo=Object.defineProperties;var Wo=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Jo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Rr=t=>{throw TypeError(t)};var gr=(t,e,r)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||(e={}))Pr.call(e,r)&&gr(t,r,e[r]);if(De)for(var r of De(e))Or.call(e,r)&&gr(t,r,e[r]);return t},d=(t,e)=>Yo(t,Wo(e));var z=(t,e)=>{var r={};for(var o in t)Pr.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&De)for(var o of De(t))e.indexOf(o)<0&&Or.call(t,o)&&(r[o]=t[o]);return r};var X=(t,e)=>{for(var r in e)br(t,r,{get:e[r],enumerable:!0})};var Sr=(t,e,r)=>e.has(t)||Rr("Cannot "+r);var x=(t,e,r)=>(Sr(t,e,"read from private field"),r?r.call(t):e.get(t)),V=(t,e,r)=>e.has(t)?Rr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),q=(t,e,r,o)=>(Sr(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var y=(t,e,r)=>new Promise((o,s)=>{var l=m=>{try{a(r.next(m))}catch(f){s(f)}},n=m=>{try{a(r.throw(m))}catch(f){s(f)}},a=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,n);a((r=r.apply(t,e)).next())}),N=function(t,e){this[0]=t,this[1]=e},Ie=(t,e,r)=>{var o=(n,a,m,f)=>{try{var u=r[n](a),R=(a=u.value)instanceof N,O=u.done;Promise.resolve(R?a[0]:a).then(g=>R?o(n==="return"?n:"next",a[1]?{done:g.done,value:g.value}:g,m,f):m({value:g,done:O})).catch(g=>o("throw",g,m,f))}catch(g){f(g)}},s=n=>l[n]=a=>new Promise((m,f)=>o(n,a,m,f)),l={};return r=r.apply(t,e),l[Jo("asyncIterator")]=()=>l,s("next"),s("throw"),s("return"),l};var Z=class extends Error{constructor(e,r,o){super(o),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}};var Te=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},j,B,F,H,J,ce,ee,pe=class{constructor(e){V(this,j);V(this,B);V(this,F);V(this,H);V(this,J);V(this,ce);V(this,ee);q(this,j,!1),q(this,B,!1),q(this,F,!1),q(this,H,[]),q(this,J,new Promise((r,o)=>{q(this,ce,r),q(this,ee,o);let s=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,j,!0),(m=x(this,ce))==null||m.call(this,a))},l=a=>{var m;x(this,j)||x(this,B)||x(this,F)||(q(this,B,!0),(m=x(this,ee))==null||m.call(this,a))},n=a=>{x(this,j)||x(this,B)||x(this,F)||x(this,H).push(a)};return Object.defineProperty(n,"isResolved",{get:()=>x(this,j)}),Object.defineProperty(n,"isRejected",{get:()=>x(this,B)}),Object.defineProperty(n,"isCancelled",{get:()=>x(this,F)}),e(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return x(this,J).then(e,r)}catch(e){return x(this,J).catch(e)}finally(e){return x(this,J).finally(e)}cancel(){var e;if(!(x(this,j)||x(this,B)||x(this,F))){if(q(this,F,!0),x(this,H).length)try{for(let r of x(this,H))r()}catch(r){console.warn("Cancellation threw an error",r);return}x(this,H).length=0,(e=x(this,ee))==null||e.call(this,new Te("Request aborted"))}}get isCancelled(){return x(this,F)}};j=new WeakMap,B=new WeakMap,F=new WeakMap,H=new WeakMap,J=new WeakMap,ce=new WeakMap,ee=new WeakMap;var p={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var Er=(a=>(a.LIMIT_REACHED="LIMIT_REACHED",a.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",a.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",a.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",a.COURT_GROUP="COURT_GROUP",a.TOO_SOON="TOO_SOON",a.MEMBERS_ONLY="MEMBERS_ONLY",a))(Er||{});var kt;(e=>{let t;(u=>(u.MONDAY="MONDAY",u.TUESDAY="TUESDAY",u.WEDNESDAY="WEDNESDAY",u.THURSDAY="THURSDAY",u.FRIDAY="FRIDAY",u.SATURDAY="SATURDAY",u.SUNDAY="SUNDAY",u.UNKNOWN="UNKNOWN"))(t=e.weekday||(e.weekday={}))})(kt||(kt={}));var Cr=(a=>(a.BOOKING="booking",a.BOOKING_PLAYER="booking_player",a.ACTIVITY="activity",a.MATCH="match",a.SPLIT="split",a.SPLIT_MAIN="split_main",a.SPLIT_INVITE="split_invite",a))(Cr||{});var xr=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(xr||{});var _t;(e=>{let t;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(t=e.itemType||(e.itemType={}))})(_t||(_t={}));var Nt;(e=>{let t;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(t=e.status||(e.status={}))})(Nt||(Nt={}));var At;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(At||(At={}));var Dr=(o=>(o.PLAYSESSION="playsession",o.USERGROUP="usergroup",o.AICOACH="aicoach",o))(Dr||{});var Ir=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Ir||{});var Tr=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(Tr||{});var Ur=(O=>(O.JANUARY="January",O.FEBRUARY="February",O.MARCH="March",O.APRIL="April",O.MAY="May",O.JUNE="June",O.JULY="July",O.AUGUST="August",O.SEPTEMBER="September",O.OCTOBER="October",O.NOVEMBER="November",O.DECEMBER="December",O))(Ur||{});var Gt;(e=>{let t;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(t=e.type||(e.type={}))})(Gt||(Gt={}));var Lt;(e=>{let t;(s=>(s.GROUP="group",s.USER="user"))(t=e.entityType||(e.entityType={}))})(Lt||(Lt={}));var wt;(e=>{let t;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(t=e.type||(e.type={}))})(wt||(wt={}));var Mt;(e=>{let t;(m=>(m.REFUNDABLE="REFUNDABLE",m.NON_EU_VENUE="NON_EU_VENUE",m.ALREADY_REFUNDED="ALREADY_REFUNDED",m.INELIGIBLE_PRODUCT_TYPE="INELIGIBLE_PRODUCT_TYPE",m.PAID_AT_VENUE="PAID_AT_VENUE",m.OLDER_THAN_14_DAYS="OLDER_THAN_14_DAYS"))(t=e.reason||(e.reason={}))})(Mt||(Mt={}));var vr=(o=>(o.ALL="ALL",o.PENDING_APPROVAL="PENDING_APPROVAL",o.PENDING_ACTION="PENDING_ACTION",o))(vr||{});var qt;(e=>{let t;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(t=e.status||(e.status={}))})(qt||(qt={}));var Ft;(e=>{let t;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(t=e.joinApproval||(e.joinApproval={}))})(Ft||(Ft={}));var zt;(e=>{let t;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(t=e.joiningMethod||(e.joiningMethod={}))})(zt||(zt={}));var kr=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(kr||{});var _r=(o=>(o.ALL="ALL",o.PLAYSESSION="PLAYSESSION",o.USERGROUP="USERGROUP",o))(_r||{});var jt;(e=>{let t;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(t=e.type||(e.type={}))})(jt||(jt={}));var Bt;(e=>{let t;(a=>(a.FRIENDS="FRIENDS",a.OUTGOING="OUTGOING",a.INCOMING="INCOMING",a.BLOCKED="BLOCKED",a.NO_RELATION="NO_RELATION"))(t=e.status||(e.status={}))})(Bt||(Bt={}));var Nr=(s=>(s.FRIENDS="FRIENDS",s.OUTGOING="OUTGOING",s.INCOMING="INCOMING",s.BLOCKED="BLOCKED",s))(Nr||{});var $t=t=>t!=null,le=t=>typeof t=="string",Kt=t=>le(t)&&t!=="",Qt=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Ar=t=>t instanceof FormData,Xo=t=>{try{return btoa(t)}catch(e){return Buffer.from(t).toString("base64")}},Zo=t=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},o=(s,l)=>{$t(l)&&(Array.isArray(l)?l.forEach(n=>{o(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,a])=>{o(`${s}[${n}]`,a)}):r(s,l))};return Object.entries(t).forEach(([s,l])=>{o(s,l)}),e.length>0?`?${e.join("&")}`:""},ei=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,o=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(l,n)=>{var a;return(a=e.path)!=null&&a.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${t.BASE}${o}`;return e.query?`${s}${Zo(e.query)}`:s},ti=t=>{if(t.formData){let e=new FormData,r=(o,s)=>{le(s)||Qt(s)?e.append(o,s):e.append(o,JSON.stringify(s))};return Object.entries(t.formData).filter(([o,s])=>$t(s)).forEach(([o,s])=>{Array.isArray(s)?s.forEach(l=>r(o,l)):r(o,s)}),e}},Ue=(t,e)=>y(null,null,function*(){return typeof e=="function"?e(t):e}),ri=(t,e)=>y(null,null,function*(){let r=yield Ue(e,t.TOKEN),o=yield Ue(e,t.USERNAME),s=yield Ue(e,t.PASSWORD),l=yield Ue(e,t.HEADERS),n=Object.entries(i(i({Accept:"application/json"},l),e.headers)).filter(([a,m])=>$t(m)).reduce((a,[m,f])=>d(i({},a),{[m]:String(f)}),{});if(Kt(r)&&(n.Authorization=`Bearer ${r}`),Kt(o)&&Kt(s)){let a=Xo(`${o}:${s}`);n.Authorization=`Basic ${a}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:Qt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Ar(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),oi=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):le(t.body)||Qt(t.body)||Ar(t.body)?t.body:JSON.stringify(t.body)},ii=(t,e,r,o,s,l,n)=>y(null,null,function*(){let a=new AbortController,m={headers:l,body:o!=null?o:s,method:e.method,signal:a.signal};return t.WITH_CREDENTIALS&&(m.credentials=t.CREDENTIALS),n(()=>a.abort()),yield fetch(r,m)}),si=(t,e)=>{if(e){let r=t.headers.get(e);if(le(r))return r}},ai=t=>y(null,null,function*(){if(t.status!==204)try{let e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(s=>e.toLowerCase().startsWith(s))?yield t.json():yield t.text()}catch(e){console.error(e)}}),ni=(t,e)=>{var s,l;let o=i({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(o)throw new Z(t,e,o);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",a=(l=e.statusText)!=null?l:"unknown",m=(()=>{try{return JSON.stringify(e.body,null,2)}catch(f){return}})();throw new Z(t,e,`Generic Error: status: ${n}; status text: ${a}; body: ${m}`)}},c=(t,e)=>new pe((r,o,s)=>y(null,null,function*(){try{let l=ei(t,e),n=ti(e),a=oi(e),m=yield ri(t,e);if(!s.isCancelled){let f=yield ii(t,e,l,a,n,m,s),u=yield ai(f),R=si(f,e.responseHeader),O={url:l,ok:f.ok,status:f.status,statusText:f.statusText,body:R!=null?R:u};ni(e,O),r(O.body)}}catch(l){o(l)}}));var Vt=class{static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Ht=class{static listActivities(e=!1,r=!1,o,s,l,n,a,m,f,u,R,O=10){return c(p,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:o,level:s,locationSearch:l,categorySearch:n,querySearch:a,resourceTypes:m,startDate:f,endDate:u,offset:R,limit:O},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivity(e){return c(p,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listActivitiesOccasions(e,r=!1,o,s,l){return c(p,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:o,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAdminActivityOccasions(e,r,o,s,l,n=10){return c(p,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:o,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFacilities(e,r,o,s,l,n,a,m,f=10){return c(p,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:o,latitude:s,longitude:l,radius:n,resourceTypes:a,offset:m,limit:f},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getFacility(e){return c(p,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listResources(e){return c(p,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getResource(e){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilities(e,r,o){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimes(e,r){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getConfig(e){return c(p,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Yt=class{static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Wt=class{static getActivityOccasionForUser(e){return c(p,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityCancellationPolicy(e,r){return c(p,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,o,s){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:o,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return c(p,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return c(p,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserMemberships(){return c(p,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPayments(e,r=10){return c(p,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPayment(e){return c(p,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserPendingPayments(){return c(p,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPhoneRequirement(e,r,o){return c(p,{method:"GET",url:"/users/phone-requirement",query:{facilityId:e,orderId:r,articleType:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static setUserPhone(e){return c(p,{method:"POST",url:"/users/phone",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserBookings(e,r=10,o,s){return c(p,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:o,direction:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBooking(e){return c(p,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingDetails(e){return c(p,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createActivityBooking(e){return c(p,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityDetails(e){return c(p,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteActivityBooking(e){return c(p,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addWaitlistOccasion(e){return c(p,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeWaitlistOccasion(e){return c(p,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createCheckoutBooking(e,r){return c(p,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyValueCard(e,r){return c(p,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyValueCard(e,r){return c(p,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static applyPromoCode(e,r){return c(p,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unapplyPromocode(e){return c(p,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientList(e,r=10){return c(p,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createApiClient(e){return c(p,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The specified resource identifier already exists.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientById(e){return c(p,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateApiClientById(e,r,o){return c(p,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:o},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getApiClientUsageById(e,r){return c(p,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Jt=class{static getAvailabilityWithPrice(e,r,o,s,l,n,a){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:o,promoCode:s,numberOfSlots:l,emails:n,userIds:a},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithPrices(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,o,s,l){return c(p,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:o,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return c(p,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListUpcoming(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionsListHistory(e,r=10){return c(p,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingSubscriptionDetails(e){return c(p,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserBookingRestrictions(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPriceOfOrderSplitBooking(e){return c(p,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static inviteUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserToBooking(e,r){return c(p,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static removeUserFromBooking(e,r){return c(p,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static createBookingsAdmin(e){return c(p,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateBookingAdmin(e,r){return c(p,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteBookingAdmin(e,r,o){return c(p,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Xt=class{static getCheckout(e){return c(p,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPspSession(e,r,o){return c(p,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}};var Zt=class{static updateCompetitionAccount(e){return c(p,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}};var er=class{static options(e){return c(p,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var tr=class{static createPromoCode(e){return c(p,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var rr=class{static createMembership(e){return c(p,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",422:"Data within the request did not meet semantic requirements or validation rules.",500:"General Error.",503:"Service unavailable, please try again."}})}static cancellationPolicy(e,r){return c(p,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var or=class{static getPlaySessionById(e){return c(p,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getPlaySessionByBookingId(e){return c(p,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addPlayerWithUserId(e,r){return c(p,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserId(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addUserWithId(e,r,o){return c(p,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUserWithId(e,r,o){return c(p,{method:"PATCH",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:o,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static removePlayerWithUserEmail(e,r){return c(p,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updatePlaySessionSettings(e,r){return c(p,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return c(p,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessions(e,r=10,o="UPCOMING",s="ALL"){return c(p,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:o,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return c(p,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsUpcoming(){return c(p,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsMarketplace(e,r,o,s,l){return c(p,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:o,sportIds:s,availableSpots:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var ir=class{static getUserProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserChatProfile(e){return c(p,{method:"GET",url:"/profiles/users/{userId}/chat",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listChats(e="ALL",r="ALL",o,s=10){return c(p,{method:"GET",url:"/users/chats",query:{userChatStatus:e,userChatTarget:r,offset:o,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return c(p,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static adminCreateChat(e){return c(p,{method:"POST",url:"/admin/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error."}})}static getTargetChat(e,r){return c(p,{method:"GET",url:"/users/chats/by-targetid/{target}/{targetId}",path:{target:e,targetId:r},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserGroupChat(e){return c(p,{method:"GET",url:"/users/chats/by-userids",query:{userIds:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getChatByChatId(e){return c(p,{method:"GET",url:"/users/chats/by-chatid/{chatId}",path:{chatId:e},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static addUserToChat(e,r){return c(p,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return c(p,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return c(p,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static handleChatMessage(e){return c(p,{method:"POST",url:"/cometchat/webhooks/message",body:e,mediaType:"application/json"})}static getUsersProfile(){return c(p,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return c(p,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelations(e,r=10,o="FRIENDS"){return c(p,{method:"GET",url:"/user/relations",query:{offset:e,limit:r,userRelationStatus:o},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return c(p,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static addRelationToFriend(e){return c(p,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static deleteRelationToFriend(e){return c(p,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToUser(e){return c(p,{method:"GET",url:"/users/relations/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static blockRelationToUser(e){return c(p,{method:"POST",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static unblockRelationToUser(e){return c(p,{method:"DELETE",url:"/users/relations/{userId}/block",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error.",503:"Service unavailable, please try again."}})}static listFriends(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listIncomingFriendRequests(e,r=10){return c(p,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferPunchCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return c(p,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};var lr={};X(lr,{Gender:()=>jr,LinkType:()=>Br,MatchStatus:()=>Kr,MemberRelation:()=>$r,MembershipStatus:()=>Qr,PostingPermission:()=>Vr,Source:()=>Hr,Topic:()=>Yr,UserParticipationStatus:()=>Wr,UserRelation:()=>Jr,Visibility:()=>Xr,acceptInvitation:()=>Le,addUserSportProfileLevel:()=>ut,client:()=>h,createComment:()=>ze,createFacilityOfferOrder:()=>$e,createMatchParticipation:()=>He,createPost:()=>we,createUserSportProfile:()=>pt,deleteComment:()=>je,deleteMatchParticipation:()=>Ye,deletePost:()=>Me,deleteUserSportProfile:()=>ct,deleteUserSportProfileLevel:()=>mt,getCommunity:()=>Ae,getFacility:()=>Ke,getMatch:()=>Ve,getMatchUserPrice:()=>We,getNotificationById:()=>et,getNotifications:()=>Oe,getNotificationsPreferences:()=>Xe,getPost:()=>qe,getRecommendations:()=>Se,getResource:()=>rt,getSportAuthorities:()=>ot,getUserFacilityPermissions:()=>st,getUserSportProfile:()=>lt,getUserSportProfiles:()=>nt,leaveCommunity:()=>Ge,listComments:()=>he,listCommunities:()=>de,listFacilities:()=>ge,listFacilityOffers:()=>be,listFacilityResources:()=>Qe,listMatches:()=>Pe,listMembers:()=>ye,listPosts:()=>fe,markCommentRead:()=>Be,markPostRead:()=>Fe,queries:()=>yt,registerDevice:()=>it,schemas:()=>Ne,searchUsers:()=>Re,updateAllNotifications:()=>Je,updateNotification:()=>tt,updateNotificationsPreferences:()=>Ze,updateUserProfile:()=>at,updateUserSportProfileLevel:()=>dt});var sr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var pi={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},il=Object.entries(pi);var Gr=R=>{var O=R,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:n,sseMaxRetryDelay:a,sseSleepFn:m,url:f}=O,u=z(O,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(U=>new Promise(I=>setTimeout(I,U)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let U=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let It=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(It($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Tt}=yield new N(Y.read());if(ie)break;M+=Tt,M=M.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);let se=M.split(`
|
|
4
4
|
|
|
@@ -10,7 +10,8 @@ UNKNOWN \u2014 the community member who authored the post or comment
|
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Oi={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Ri={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},Si={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ei={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ci={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},xi={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Di={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Ii={description:"At least one of `content` or `links` must be provided. When `links` is\npresent and non-empty, `content` may be omitted.\n",properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},type:"object"},Ti={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Ui={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},vi={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},ki={properties:{active:{type:"boolean"},address:{$ref:"#/components/schemas/Address"},bookable:{type:"boolean"},currency:{type:"string"},description:{type:"string"},email:{format:"email",type:"string"},id:{type:"integer"},logo_url:{format:"uri",type:"string"},name:{type:"string"},phone_number:{type:"string"},position:{$ref:"#/components/schemas/Position"},resource_types:{items:{type:"string"},type:"array"},sports:{items:{type:"string"},type:"array"},website:{format:"uri",type:"string"}},required:["id","name","logo_url","address","position","resource_types"],type:"object"},_i={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},result_set:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["result_set","items"],type:"object"},Ni={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ai={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},Gi={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Li={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},wi={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Mi={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},qi={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Fi={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},zi={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},ji={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Bi={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Ki={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},$i={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Qi={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Vi={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Hi={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Yi={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},Wi={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},Ji={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Xi={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Zi={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},es={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ts={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},rs={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
|
-
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},os={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{
|
|
13
|
+
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},os={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{access_code:{description:`Venue door/gate access code for the match. Display-only and informational \u2014 it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence \u2014 do not parse or validate it.
|
|
14
|
+
`,nullable:!0,type:"string"},can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
15
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
15
16
|
`},is={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},ss={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},as={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},ns={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},ps={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},cs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ls={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},us={enum:["ACTIVE","INVITED","LEFT"],type:"string"},ms={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},ds={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},ys={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},fs={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},hs={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},gs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},bs={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Ps={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Os={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Rs={description:`Player-facing participant row with join timestamp. Tagged union over
|
|
16
17
|
PUBLIC and PRIVATE variants \u2014 see ParticipantSummary.
|