@matchi/api 0.20260430.1 → 0.20260430.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 +10 -10
- package/dist/main/index.d.ts +10 -10
- package/dist/main/index.js +3 -3
- package/dist/main/index.mjs +3 -3
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -3548,7 +3548,7 @@ type Author = {
|
|
|
3548
3548
|
last_name?: string;
|
|
3549
3549
|
profile_image_url?: string;
|
|
3550
3550
|
relation_status?: MemberRelation;
|
|
3551
|
-
type: '
|
|
3551
|
+
type: 'ADMIN' | 'MEMBER';
|
|
3552
3552
|
user_id?: string;
|
|
3553
3553
|
};
|
|
3554
3554
|
type Channels = {
|
|
@@ -3733,8 +3733,8 @@ declare const Gender: {
|
|
|
3733
3733
|
};
|
|
3734
3734
|
type Gender = typeof Gender[keyof typeof Gender];
|
|
3735
3735
|
declare const LinkType: {
|
|
3736
|
-
readonly ACTIVITY: "
|
|
3737
|
-
readonly MATCH: "
|
|
3736
|
+
readonly ACTIVITY: "ACTIVITY";
|
|
3737
|
+
readonly MATCH: "MATCH";
|
|
3738
3738
|
};
|
|
3739
3739
|
type LinkType = typeof LinkType[keyof typeof LinkType];
|
|
3740
3740
|
type Match = {
|
|
@@ -4000,8 +4000,8 @@ type PostListResponse = {
|
|
|
4000
4000
|
meta: PaginationMeta;
|
|
4001
4001
|
};
|
|
4002
4002
|
declare const PostingPermission: {
|
|
4003
|
-
readonly ADMINS: "
|
|
4004
|
-
readonly MEMBERS: "
|
|
4003
|
+
readonly ADMINS: "ADMINS";
|
|
4004
|
+
readonly MEMBERS: "MEMBERS";
|
|
4005
4005
|
};
|
|
4006
4006
|
type PostingPermission = typeof PostingPermission[keyof typeof PostingPermission];
|
|
4007
4007
|
type Preference = {
|
|
@@ -4283,7 +4283,7 @@ type UsersProfilesPaginatedResponse = {
|
|
|
4283
4283
|
meta: PkgOpenapiSharedOffsetPaginatedResultSet;
|
|
4284
4284
|
};
|
|
4285
4285
|
declare const Visibility: {
|
|
4286
|
-
readonly HIDDEN: "
|
|
4286
|
+
readonly HIDDEN: "HIDDEN";
|
|
4287
4287
|
};
|
|
4288
4288
|
type Visibility = typeof Visibility[keyof typeof Visibility];
|
|
4289
4289
|
/**
|
|
@@ -5493,7 +5493,7 @@ declare const AuthorSchema: {
|
|
|
5493
5493
|
readonly $ref: "#/components/schemas/MemberRelation";
|
|
5494
5494
|
};
|
|
5495
5495
|
readonly type: {
|
|
5496
|
-
readonly enum: readonly ["
|
|
5496
|
+
readonly enum: readonly ["ADMIN", "MEMBER"];
|
|
5497
5497
|
readonly type: "string";
|
|
5498
5498
|
};
|
|
5499
5499
|
readonly user_id: {
|
|
@@ -6086,7 +6086,7 @@ declare const GenderSchema: {
|
|
|
6086
6086
|
readonly type: "string";
|
|
6087
6087
|
};
|
|
6088
6088
|
declare const LinkTypeSchema: {
|
|
6089
|
-
readonly enum: readonly ["
|
|
6089
|
+
readonly enum: readonly ["ACTIVITY", "MATCH"];
|
|
6090
6090
|
readonly type: "string";
|
|
6091
6091
|
};
|
|
6092
6092
|
declare const MatchSchema: {
|
|
@@ -6765,7 +6765,7 @@ declare const PostListResponseSchema: {
|
|
|
6765
6765
|
readonly type: "object";
|
|
6766
6766
|
};
|
|
6767
6767
|
declare const PostingPermissionSchema: {
|
|
6768
|
-
readonly enum: readonly ["
|
|
6768
|
+
readonly enum: readonly ["ADMINS", "MEMBERS"];
|
|
6769
6769
|
readonly type: "string";
|
|
6770
6770
|
};
|
|
6771
6771
|
declare const PreferenceSchema: {
|
|
@@ -7279,7 +7279,7 @@ declare const UsersProfilesPaginatedResponseSchema: {
|
|
|
7279
7279
|
readonly type: "object";
|
|
7280
7280
|
};
|
|
7281
7281
|
declare const VisibilitySchema: {
|
|
7282
|
-
readonly enum: readonly ["
|
|
7282
|
+
readonly enum: readonly ["HIDDEN"];
|
|
7283
7283
|
readonly type: "string";
|
|
7284
7284
|
};
|
|
7285
7285
|
declare const pkgOpenapiSharedCursorPaginatedResultSetSchema: {
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3548,7 +3548,7 @@ type Author = {
|
|
|
3548
3548
|
last_name?: string;
|
|
3549
3549
|
profile_image_url?: string;
|
|
3550
3550
|
relation_status?: MemberRelation;
|
|
3551
|
-
type: '
|
|
3551
|
+
type: 'ADMIN' | 'MEMBER';
|
|
3552
3552
|
user_id?: string;
|
|
3553
3553
|
};
|
|
3554
3554
|
type Channels = {
|
|
@@ -3733,8 +3733,8 @@ declare const Gender: {
|
|
|
3733
3733
|
};
|
|
3734
3734
|
type Gender = typeof Gender[keyof typeof Gender];
|
|
3735
3735
|
declare const LinkType: {
|
|
3736
|
-
readonly ACTIVITY: "
|
|
3737
|
-
readonly MATCH: "
|
|
3736
|
+
readonly ACTIVITY: "ACTIVITY";
|
|
3737
|
+
readonly MATCH: "MATCH";
|
|
3738
3738
|
};
|
|
3739
3739
|
type LinkType = typeof LinkType[keyof typeof LinkType];
|
|
3740
3740
|
type Match = {
|
|
@@ -4000,8 +4000,8 @@ type PostListResponse = {
|
|
|
4000
4000
|
meta: PaginationMeta;
|
|
4001
4001
|
};
|
|
4002
4002
|
declare const PostingPermission: {
|
|
4003
|
-
readonly ADMINS: "
|
|
4004
|
-
readonly MEMBERS: "
|
|
4003
|
+
readonly ADMINS: "ADMINS";
|
|
4004
|
+
readonly MEMBERS: "MEMBERS";
|
|
4005
4005
|
};
|
|
4006
4006
|
type PostingPermission = typeof PostingPermission[keyof typeof PostingPermission];
|
|
4007
4007
|
type Preference = {
|
|
@@ -4283,7 +4283,7 @@ type UsersProfilesPaginatedResponse = {
|
|
|
4283
4283
|
meta: PkgOpenapiSharedOffsetPaginatedResultSet;
|
|
4284
4284
|
};
|
|
4285
4285
|
declare const Visibility: {
|
|
4286
|
-
readonly HIDDEN: "
|
|
4286
|
+
readonly HIDDEN: "HIDDEN";
|
|
4287
4287
|
};
|
|
4288
4288
|
type Visibility = typeof Visibility[keyof typeof Visibility];
|
|
4289
4289
|
/**
|
|
@@ -5493,7 +5493,7 @@ declare const AuthorSchema: {
|
|
|
5493
5493
|
readonly $ref: "#/components/schemas/MemberRelation";
|
|
5494
5494
|
};
|
|
5495
5495
|
readonly type: {
|
|
5496
|
-
readonly enum: readonly ["
|
|
5496
|
+
readonly enum: readonly ["ADMIN", "MEMBER"];
|
|
5497
5497
|
readonly type: "string";
|
|
5498
5498
|
};
|
|
5499
5499
|
readonly user_id: {
|
|
@@ -6086,7 +6086,7 @@ declare const GenderSchema: {
|
|
|
6086
6086
|
readonly type: "string";
|
|
6087
6087
|
};
|
|
6088
6088
|
declare const LinkTypeSchema: {
|
|
6089
|
-
readonly enum: readonly ["
|
|
6089
|
+
readonly enum: readonly ["ACTIVITY", "MATCH"];
|
|
6090
6090
|
readonly type: "string";
|
|
6091
6091
|
};
|
|
6092
6092
|
declare const MatchSchema: {
|
|
@@ -6765,7 +6765,7 @@ declare const PostListResponseSchema: {
|
|
|
6765
6765
|
readonly type: "object";
|
|
6766
6766
|
};
|
|
6767
6767
|
declare const PostingPermissionSchema: {
|
|
6768
|
-
readonly enum: readonly ["
|
|
6768
|
+
readonly enum: readonly ["ADMINS", "MEMBERS"];
|
|
6769
6769
|
readonly type: "string";
|
|
6770
6770
|
};
|
|
6771
6771
|
declare const PreferenceSchema: {
|
|
@@ -7279,7 +7279,7 @@ declare const UsersProfilesPaginatedResponseSchema: {
|
|
|
7279
7279
|
readonly type: "object";
|
|
7280
7280
|
};
|
|
7281
7281
|
declare const VisibilitySchema: {
|
|
7282
|
-
readonly enum: readonly ["
|
|
7282
|
+
readonly enum: readonly ["HIDDEN"];
|
|
7283
7283
|
readonly type: "string";
|
|
7284
7284
|
};
|
|
7285
7285
|
declare const pkgOpenapiSharedCursorPaginatedResultSetSchema: {
|
package/dist/main/index.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
`);Q=(E=Gt.pop())!=null?E:"";for(let Tr of Gt){let xr=Tr.split(`
|
|
6
6
|
`),pe=[],kt;for(let T of xr)if(T.startsWith("data:"))pe.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))kt=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let ct=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(ct)||(G=ct)}let q,Nt=!1;if(pe.length){let T=pe.join(`
|
|
7
|
-
`);try{q=JSON.parse(T),Nt=!0}catch(ct){q=T}}Nt&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:kt,id:b,retry:G}),pe.length&&(yield q)}}}finally{M.removeEventListener("abort",Dt),lt.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ne=Math.min(G*2**(v-1),c!=null?c:3e4);yield new w(K(ne))}}})}()}};var Vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Hr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Le=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(Hr(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=Vr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):$({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},$=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Me=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let p=Qr(o),c=Object.entries(i).map(([d,y])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(p);return o==="label"||o==="matrix"?p+c:c};var Yr=/\{[^{}]+\}/g,Wr=({path:t,url:e})=>{let r=e,o=e.match(Yr);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,Le({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,Me({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${$({name:p,value:d})}`);continue}let y=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Wr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function xt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var $t=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Y(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let y=t[c]||e;if(Array.isArray(d)){let u=Le(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"form",value:d},y.array));u&&p.push(u)}else if(typeof d=="object"){let u=Me(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"deepObject",value:d},y.object));u&&p.push(u)}else{let u=$({allowReserved:y.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Vt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Jr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Y(o,["security"]);var i;for(let l of t){if(Jr(e,l.name))continue;let p=yield $t(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),Ct=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),vt=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=qe(t.headers,e.headers),r},Xr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},qe=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Xr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Qt=()=>({error:new Z,request:new Z,response:new Z}),Zr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),eo={"Content-Type":"application/json"},ee=(t={})=>n(m(n({},Tt),{headers:eo,parseAs:"auto",querySerializer:Zr}),t);var _t=(t={})=>{let e=vt(ee(),t),r=()=>n({},e),o=y=>(e=vt(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:qe(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=Ct(u);return{opts:u,url:S}}),p=y=>f(null,null,function*(){var V;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:xt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let K=u.fetch,O;try{O=yield K(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(V=u.parseAs==="auto"?Vt(O.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=y=>u=>p(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,K)=>f(null,null,function*(){let O=new Request(b,K);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:xt(S),url:g}))});return{buildUrl:Ct,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var h=_t(ee({baseUrl:"https://api.matchi.com/v1"}));var Fe={};ue(Fe,{AuthorSchema:()=>to,ChannelsSchema:()=>ro,CommentListResponseSchema:()=>io,CommentSchema:()=>oo,CommunityItemSchema:()=>so,CommunityListResponseSchema:()=>ao,CreateCommentRequestSchema:()=>no,CreateMatchParticipationRequestSchema:()=>po,CreatePostRequestSchema:()=>lo,CreateSportProfileLevelRequestSchema:()=>co,CreateSportProfileRequestSchema:()=>uo,ExternalServiceSchema:()=>mo,FacilityListSchema:()=>fo,FacilityMessagePayloadSchema:()=>ho,FacilityOfferConditionActivitiesSchema:()=>Po,FacilityOfferConditionCourtsSchema:()=>So,FacilityOfferConditionDateSchema:()=>Oo,FacilityOfferConditionHoursinadvanceSchema:()=>Eo,FacilityOfferConditionSchema:()=>bo,FacilityOfferConditionTimeSchema:()=>Ro,FacilityOfferConditionWeekdaysSchema:()=>Uo,FacilityOfferListSchema:()=>Io,FacilityOfferOrderSchema:()=>To,FacilityOfferSchema:()=>go,FacilityPermissionSchema:()=>xo,FacilityPermissionsResponseSchema:()=>Co,FacilityPunchCardDataSchema:()=>vo,FacilitySchema:()=>yo,FacilityValueCardDataSchema:()=>_o,GenderSchema:()=>Do,LinkTypeSchema:()=>Ao,MatchBasePriceSchema:()=>ko,MatchCourtSchema:()=>No,MatchDetailSchema:()=>wo,MatchEventSchema:()=>Lo,MatchListSchema:()=>Mo,MatchOccasionDetailSchema:()=>Fo,MatchOccasionSchema:()=>qo,MatchParticipantsSchema:()=>zo,MatchPriceListEntrySchema:()=>jo,MatchSchema:()=>Go,MatchStatusSchema:()=>Bo,MatchUserPriceSchema:()=>$o,MemberListResponseSchema:()=>Vo,MemberRelationSchema:()=>Ho,MemberSchema:()=>Ko,MembershipStatusSchema:()=>Qo,MetadataSchema:()=>Yo,NotificationPayloadSchema:()=>Jo,NotificationRequestBodySchema:()=>Xo,NotificationSchema:()=>Wo,NotificationsFilterSchema:()=>Zo,NotificationsPaginatedResponseSchema:()=>ei,NotificationsSummarySchema:()=>ti,OffsetPaginatedResultSetSchema:()=>ri,PaginationMetaSchema:()=>oi,ParticipantDetailSchema:()=>ii,ParticipantSummarySchema:()=>si,PatchCommentRequestSchema:()=>ai,PatchPostRequestSchema:()=>ni,PaymentCommandSchema:()=>pi,PaymentDetailsSchema:()=>li,PostLinkSchema:()=>ui,PostListResponseSchema:()=>di,PostSchema:()=>ci,PostingPermissionSchema:()=>mi,PreferenceSchema:()=>yi,PreferencesResponseSchema:()=>fi,RecommendationListSchema:()=>gi,RecommendationSchema:()=>hi,RefundPolicySchema:()=>bi,RegisterDeviceRequestSchema:()=>Pi,SourceSchema:()=>Si,SportAuthoritiesResponseSchema:()=>Oi,SportAuthoritySchema:()=>Ei,SportLevelSchema:()=>Ri,SportProfileAttributeSchema:()=>Ii,SportProfileLevelSchema:()=>Ti,SportProfileSchema:()=>Ui,SportProfilesResponseSchema:()=>xi,TopicSchema:()=>Ci,UpdatePreferencesRequestBodySchema:()=>vi,UpdateSportProfileLevelRequestSchema:()=>_i,UpdateUsersProfilesRequestSchema:()=>Di,UserParticipationStatusSchema:()=>Ai,UserProfileSchema:()=>Gi,UserRelationSchema:()=>ki,UsersProfilesPaginatedResponseSchema:()=>Ni,VisibilitySchema:()=>wi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Li,pkgOpenapiSharedErrorSchema:()=>Mi,pkgOpenapiSharedErrorsSchema:()=>qi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Fi,pkgOpenapiSharedProblemDetailsSchema:()=>zi});var to={properties:{facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["admin","member"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},ro={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},oo={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"},io={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},so={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"},ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},no={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},po={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"},lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},co={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},uo={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"},mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},yo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},fo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ho={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},go={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"},bo={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"},Po={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"},So={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Oo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Eo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ro={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Uo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Io={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},To={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"},xo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Co={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},vo={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"},_o={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"},Do={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Ao={enum:["activity","match"],type:"string"},Go={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"},ko={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},No={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},wo={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.
|
|
7
|
+
`);try{q=JSON.parse(T),Nt=!0}catch(ct){q=T}}Nt&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:kt,id:b,retry:G}),pe.length&&(yield q)}}}finally{M.removeEventListener("abort",Dt),lt.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ne=Math.min(G*2**(v-1),c!=null?c:3e4);yield new w(K(ne))}}})}()}};var Vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Hr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Le=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(Hr(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=Vr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):$({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},$=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},Me=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let p=Qr(o),c=Object.entries(i).map(([d,y])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(p);return o==="label"||o==="matrix"?p+c:c};var Yr=/\{[^{}]+\}/g,Wr=({path:t,url:e})=>{let r=e,o=e.match(Yr);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,Le({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,Me({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${$({name:p,value:d})}`);continue}let y=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Wr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function xt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var $t=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Y(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let y=t[c]||e;if(Array.isArray(d)){let u=Le(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"form",value:d},y.array));u&&p.push(u)}else if(typeof d=="object"){let u=Me(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"deepObject",value:d},y.object));u&&p.push(u)}else{let u=$({allowReserved:y.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Vt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Jr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Y(o,["security"]);var i;for(let l of t){if(Jr(e,l.name))continue;let p=yield $t(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),Ct=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),vt=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=qe(t.headers,e.headers),r},Xr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},qe=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Xr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Qt=()=>({error:new Z,request:new Z,response:new Z}),Zr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),eo={"Content-Type":"application/json"},ee=(t={})=>n(m(n({},Tt),{headers:eo,parseAs:"auto",querySerializer:Zr}),t);var _t=(t={})=>{let e=vt(ee(),t),r=()=>n({},e),o=y=>(e=vt(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:qe(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=Ct(u);return{opts:u,url:S}}),p=y=>f(null,null,function*(){var V;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:xt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let K=u.fetch,O;try{O=yield K(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(V=u.parseAs==="auto"?Vt(O.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=y=>u=>p(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,K)=>f(null,null,function*(){let O=new Request(b,K);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:xt(S),url:g}))});return{buildUrl:Ct,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var h=_t(ee({baseUrl:"https://api.matchi.com/v1"}));var Fe={};ue(Fe,{AuthorSchema:()=>to,ChannelsSchema:()=>ro,CommentListResponseSchema:()=>io,CommentSchema:()=>oo,CommunityItemSchema:()=>so,CommunityListResponseSchema:()=>ao,CreateCommentRequestSchema:()=>no,CreateMatchParticipationRequestSchema:()=>po,CreatePostRequestSchema:()=>lo,CreateSportProfileLevelRequestSchema:()=>co,CreateSportProfileRequestSchema:()=>uo,ExternalServiceSchema:()=>mo,FacilityListSchema:()=>fo,FacilityMessagePayloadSchema:()=>ho,FacilityOfferConditionActivitiesSchema:()=>Po,FacilityOfferConditionCourtsSchema:()=>So,FacilityOfferConditionDateSchema:()=>Oo,FacilityOfferConditionHoursinadvanceSchema:()=>Eo,FacilityOfferConditionSchema:()=>bo,FacilityOfferConditionTimeSchema:()=>Ro,FacilityOfferConditionWeekdaysSchema:()=>Uo,FacilityOfferListSchema:()=>Io,FacilityOfferOrderSchema:()=>To,FacilityOfferSchema:()=>go,FacilityPermissionSchema:()=>xo,FacilityPermissionsResponseSchema:()=>Co,FacilityPunchCardDataSchema:()=>vo,FacilitySchema:()=>yo,FacilityValueCardDataSchema:()=>_o,GenderSchema:()=>Do,LinkTypeSchema:()=>Ao,MatchBasePriceSchema:()=>ko,MatchCourtSchema:()=>No,MatchDetailSchema:()=>wo,MatchEventSchema:()=>Lo,MatchListSchema:()=>Mo,MatchOccasionDetailSchema:()=>Fo,MatchOccasionSchema:()=>qo,MatchParticipantsSchema:()=>zo,MatchPriceListEntrySchema:()=>jo,MatchSchema:()=>Go,MatchStatusSchema:()=>Bo,MatchUserPriceSchema:()=>$o,MemberListResponseSchema:()=>Vo,MemberRelationSchema:()=>Ho,MemberSchema:()=>Ko,MembershipStatusSchema:()=>Qo,MetadataSchema:()=>Yo,NotificationPayloadSchema:()=>Jo,NotificationRequestBodySchema:()=>Xo,NotificationSchema:()=>Wo,NotificationsFilterSchema:()=>Zo,NotificationsPaginatedResponseSchema:()=>ei,NotificationsSummarySchema:()=>ti,OffsetPaginatedResultSetSchema:()=>ri,PaginationMetaSchema:()=>oi,ParticipantDetailSchema:()=>ii,ParticipantSummarySchema:()=>si,PatchCommentRequestSchema:()=>ai,PatchPostRequestSchema:()=>ni,PaymentCommandSchema:()=>pi,PaymentDetailsSchema:()=>li,PostLinkSchema:()=>ui,PostListResponseSchema:()=>di,PostSchema:()=>ci,PostingPermissionSchema:()=>mi,PreferenceSchema:()=>yi,PreferencesResponseSchema:()=>fi,RecommendationListSchema:()=>gi,RecommendationSchema:()=>hi,RefundPolicySchema:()=>bi,RegisterDeviceRequestSchema:()=>Pi,SourceSchema:()=>Si,SportAuthoritiesResponseSchema:()=>Oi,SportAuthoritySchema:()=>Ei,SportLevelSchema:()=>Ri,SportProfileAttributeSchema:()=>Ii,SportProfileLevelSchema:()=>Ti,SportProfileSchema:()=>Ui,SportProfilesResponseSchema:()=>xi,TopicSchema:()=>Ci,UpdatePreferencesRequestBodySchema:()=>vi,UpdateSportProfileLevelRequestSchema:()=>_i,UpdateUsersProfilesRequestSchema:()=>Di,UserParticipationStatusSchema:()=>Ai,UserProfileSchema:()=>Gi,UserRelationSchema:()=>ki,UsersProfilesPaginatedResponseSchema:()=>Ni,VisibilitySchema:()=>wi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Li,pkgOpenapiSharedErrorSchema:()=>Mi,pkgOpenapiSharedErrorsSchema:()=>qi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Fi,pkgOpenapiSharedProblemDetailsSchema:()=>zi});var to={properties:{facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["ADMIN","MEMBER"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},ro={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},oo={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"},io={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},so={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"},ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},no={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},po={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"},lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},co={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},uo={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"},mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},yo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},fo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ho={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},go={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"},bo={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"},Po={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"},So={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Oo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Eo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ro={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Uo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Io={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},To={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"},xo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Co={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},vo={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"},_o={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"},Do={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Ao={enum:["ACTIVITY","MATCH"],type:"string"},Go={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"},ko={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},No={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},wo={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.
|
|
8
8
|
`},Lo={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},Mo={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},qo={properties:{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:{format:"int32",nullable:!0,type:"integer"},level_min:{format:"int32",nullable:!0,type:"integer"},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"],type:"object"},Fo={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},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.
|
|
9
|
-
`},zo={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"},jo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Bo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},$o={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"},Ko={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","relation_status"],type:"object"},Vo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ho={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"},Qo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Yo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Wo={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"},Jo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Xo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Zo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},ti={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"},ri={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"},oi={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ii={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},si={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ai={properties:{is_read:{type:"boolean"}},type:"object"},ni={properties:{is_read:{type:"boolean"}},type:"object"},pi={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},li={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ci={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ui={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},di={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},mi={enum:["
|
|
9
|
+
`},zo={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"},jo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Bo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},$o={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"},Ko={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","relation_status"],type:"object"},Vo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ho={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"},Qo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Yo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Wo={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"},Jo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Xo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Zo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},ti={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"},ri={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"},oi={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ii={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},si={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ai={properties:{is_read:{type:"boolean"}},type:"object"},ni={properties:{is_read:{type:"boolean"}},type:"object"},pi={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},li={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ci={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ui={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},di={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},mi={enum:["ADMINS","MEMBERS"],type:"string"},yi={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},fi={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},hi={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
10
10
|
`,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
|
|
11
11
|
`,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
|
|
12
12
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
13
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},gi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},bi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Pi={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Si={enum:["FACILITY"],type:"string"},Oi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ei={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ri={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Ui={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Ii={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ti={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},xi={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ci={enum:["FACILITY_MESSAGE"],type:"string"},vi={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},_i={properties:{level:{type:"string"}},required:["level"],type:"object"},Di={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Ai={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},Gi={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ki={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"},Ni={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},wi={enum:["hidden"],type:"string"},Li={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},Mi={properties:{message:{description:"The error message",type:"string"}},type:"object"},qi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Fi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},zi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},Be=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ve=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Qe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},We=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},et=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},rt=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Yt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Wt={ACTIVITY:"activity",MATCH:"match"},Jt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Xt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Zt={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},er={ADMINS:"admins",MEMBERS:"members"},tr={FACILITY:"FACILITY"},rr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},or={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},ir={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},sr={HIDDEN:"hidden"};var nt={};ue(nt,{addUserSportProfileLevelMutation:()=>fs,createFacilityOfferOrderMutation:()=>$i,createMatchParticipationMutation:()=>Qi,createUserSportProfileMutation:()=>ds,deleteUserSportProfileLevelMutation:()=>hs,deleteUserSportProfileMutation:()=>ms,getMatchOptions:()=>Hi,getMatchQueryKey:()=>cr,getMatchUserPriceOptions:()=>Yi,getMatchUserPriceQueryKey:()=>ur,getNotificationByIdOptions:()=>ts,getNotificationByIdQueryKey:()=>fr,getNotificationsInfiniteOptions:()=>Ji,getNotificationsInfiniteQueryKey:()=>mr,getNotificationsOptions:()=>Wi,getNotificationsPreferencesOptions:()=>Zi,getNotificationsPreferencesQueryKey:()=>yr,getNotificationsQueryKey:()=>dr,getRecommendationsInfiniteOptions:()=>cs,getRecommendationsInfiniteQueryKey:()=>Or,getRecommendationsOptions:()=>ls,getRecommendationsQueryKey:()=>Sr,getSportAuthoritiesOptions:()=>os,getSportAuthoritiesQueryKey:()=>hr,getUserFacilityPermissionsOptions:()=>ns,getUserFacilityPermissionsQueryKey:()=>Pr,getUserSportProfileOptions:()=>ys,getUserSportProfileQueryKey:()=>Rr,getUserSportProfilesOptions:()=>us,getUserSportProfilesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>Bi,listFacilityOffersInfiniteQueryKey:()=>nr,listFacilityOffersOptions:()=>ji,listFacilityOffersQueryKey:()=>ar,listMatchesInfiniteOptions:()=>Vi,listMatchesInfiniteQueryKey:()=>lr,listMatchesOptions:()=>Ki,listMatchesQueryKey:()=>pr,registerDeviceMutation:()=>as,searchUsersInfiniteOptions:()=>ss,searchUsersInfiniteQueryKey:()=>br,searchUsersOptions:()=>is,searchUsersQueryKey:()=>gr,updateAllNotificationsMutation:()=>Xi,updateNotificationMutation:()=>rs,updateNotificationsPreferencesMutation:()=>es,updateUserProfileMutation:()=>ps,updateUserSportProfileLevelMutation:()=>gs});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},ar=t=>R("ListFacilityOffers",t),ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),ae=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},nr=t=>R("ListFacilityOffers",t,!0),Bi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield te(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:nr(t)}),$i=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ze(m(n(n({},t),r),{throwOnError:!0}));return o})}),pr=t=>R("ListMatches",t),Ki=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),lr=t=>R("ListMatches",t,!0),Vi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield re(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:lr(t)}),cr=t=>R("GetMatch",t),Hi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield je(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),Qi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Be(m(n(n({},t),r),{throwOnError:!0}));return o})}),ur=t=>R("GetMatchUserPrice",t),Yi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield $e(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),dr=t=>R("GetNotifications",t),Wi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t,!0),Ji=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield oe(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:mr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ke(m(n(n({},t),r),{throwOnError:!0}));return o})}),yr=t=>R("GetNotificationsPreferences",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ve(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),es=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield He(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationById",t),ts=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Qe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),rs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ye(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("getSportAuthorities",t),os=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield We(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),gr=t=>R("searchUsers",t),is=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t,!0),ss=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield ie(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:br(t)}),as=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Je(m(n(n({},t),r),{throwOnError:!0}));return o})}),Pr=t=>R("getUserFacilityPermissions",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Xe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Pr(t)}),ps=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ze(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("GetRecommendations",t),ls=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield se(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),Or=t=>R("GetRecommendations",t,!0),cs=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield se(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:Or(t)}),Er=t=>R("getUserSportProfiles",t),us=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield et(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Er(t)}),ds=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield tt(m(n(n({},t),r),{throwOnError:!0}));return o})}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield rt(m(n(n({},t),r),{throwOnError:!0}));return o})}),Rr=t=>R("getUserSportProfile",t),ys=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ot(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),fs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield it(m(n(n({},t),r),{throwOnError:!0}));return o})}),hs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield st(m(n(n({},t),r),{throwOnError:!0}));return o})}),gs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield at(m(n(n({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
|
13
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},gi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},bi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Pi={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Si={enum:["FACILITY"],type:"string"},Oi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ei={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ri={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Ui={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Ii={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ti={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},xi={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ci={enum:["FACILITY_MESSAGE"],type:"string"},vi={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},_i={properties:{level:{type:"string"}},required:["level"],type:"object"},Di={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Ai={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},Gi={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ki={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"},Ni={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},wi={enum:["HIDDEN"],type:"string"},Li={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},Mi={properties:{message:{description:"The error message",type:"string"}},type:"object"},qi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Fi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},zi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},Be=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ve=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Qe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},We=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},et=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},rt=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Yt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Wt={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},Jt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Xt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Zt={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},er={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},tr={FACILITY:"FACILITY"},rr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},or={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},ir={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},sr={HIDDEN:"HIDDEN"};var nt={};ue(nt,{addUserSportProfileLevelMutation:()=>fs,createFacilityOfferOrderMutation:()=>$i,createMatchParticipationMutation:()=>Qi,createUserSportProfileMutation:()=>ds,deleteUserSportProfileLevelMutation:()=>hs,deleteUserSportProfileMutation:()=>ms,getMatchOptions:()=>Hi,getMatchQueryKey:()=>cr,getMatchUserPriceOptions:()=>Yi,getMatchUserPriceQueryKey:()=>ur,getNotificationByIdOptions:()=>ts,getNotificationByIdQueryKey:()=>fr,getNotificationsInfiniteOptions:()=>Ji,getNotificationsInfiniteQueryKey:()=>mr,getNotificationsOptions:()=>Wi,getNotificationsPreferencesOptions:()=>Zi,getNotificationsPreferencesQueryKey:()=>yr,getNotificationsQueryKey:()=>dr,getRecommendationsInfiniteOptions:()=>cs,getRecommendationsInfiniteQueryKey:()=>Or,getRecommendationsOptions:()=>ls,getRecommendationsQueryKey:()=>Sr,getSportAuthoritiesOptions:()=>os,getSportAuthoritiesQueryKey:()=>hr,getUserFacilityPermissionsOptions:()=>ns,getUserFacilityPermissionsQueryKey:()=>Pr,getUserSportProfileOptions:()=>ys,getUserSportProfileQueryKey:()=>Rr,getUserSportProfilesOptions:()=>us,getUserSportProfilesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>Bi,listFacilityOffersInfiniteQueryKey:()=>nr,listFacilityOffersOptions:()=>ji,listFacilityOffersQueryKey:()=>ar,listMatchesInfiniteOptions:()=>Vi,listMatchesInfiniteQueryKey:()=>lr,listMatchesOptions:()=>Ki,listMatchesQueryKey:()=>pr,registerDeviceMutation:()=>as,searchUsersInfiniteOptions:()=>ss,searchUsersInfiniteQueryKey:()=>br,searchUsersOptions:()=>is,searchUsersQueryKey:()=>gr,updateAllNotificationsMutation:()=>Xi,updateNotificationMutation:()=>rs,updateNotificationsPreferencesMutation:()=>es,updateUserProfileMutation:()=>ps,updateUserSportProfileLevelMutation:()=>gs});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},ar=t=>R("ListFacilityOffers",t),ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),ae=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},nr=t=>R("ListFacilityOffers",t,!0),Bi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield te(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:nr(t)}),$i=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ze(m(n(n({},t),r),{throwOnError:!0}));return o})}),pr=t=>R("ListMatches",t),Ki=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),lr=t=>R("ListMatches",t,!0),Vi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield re(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:lr(t)}),cr=t=>R("GetMatch",t),Hi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield je(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),Qi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Be(m(n(n({},t),r),{throwOnError:!0}));return o})}),ur=t=>R("GetMatchUserPrice",t),Yi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield $e(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),dr=t=>R("GetNotifications",t),Wi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t,!0),Ji=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield oe(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:mr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ke(m(n(n({},t),r),{throwOnError:!0}));return o})}),yr=t=>R("GetNotificationsPreferences",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ve(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),es=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield He(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationById",t),ts=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Qe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),rs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ye(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("getSportAuthorities",t),os=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield We(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),gr=t=>R("searchUsers",t),is=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t,!0),ss=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield ie(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:br(t)}),as=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Je(m(n(n({},t),r),{throwOnError:!0}));return o})}),Pr=t=>R("getUserFacilityPermissions",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Xe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Pr(t)}),ps=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ze(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("GetRecommendations",t),ls=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield se(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),Or=t=>R("GetRecommendations",t,!0),cs=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=ae(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield se(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:Or(t)}),Er=t=>R("getUserSportProfiles",t),us=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield et(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Er(t)}),ds=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield tt(m(n(n({},t),r),{throwOnError:!0}));return o})}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield rt(m(n(n({},t),r),{throwOnError:!0}));return o})}),Rr=t=>R("getUserSportProfile",t),ys=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ot(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),fs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield it(m(n(n({},t),r),{throwOnError:!0}));return o})}),hs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield st(m(n(n({},t),r),{throwOnError:!0}));return o})}),gs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield at(m(n(n({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
package/dist/main/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ var Ut=Object.defineProperty,Cr=Object.defineProperties;var vr=Object.getOwnProp
|
|
|
4
4
|
|
|
5
5
|
`);H=(E=St.pop())!=null?E:"";for(let Tr of St){let xr=Tr.split(`
|
|
6
6
|
`),ne=[],Ot;for(let T of xr)if(T.startsWith("data:"))ne.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))Ot=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let Le=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(Le)||(G=Le)}let q,Et=!1;if(ne.length){let T=ne.join(`
|
|
7
|
-
`);try{q=JSON.parse(T),Et=!0}catch(Le){q=T}}Et&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Ot,id:b,retry:G}),ne.length&&(yield q)}}}finally{M.removeEventListener("abort",bt),we.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ae=Math.min(G*2**(v-1),c!=null?c:3e4);yield new w($(ae))}}})}()}};var jr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$r=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(Br(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=jr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):B({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},B=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},de=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let p=$r(o),c=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(p);return o==="label"||o==="matrix"?p+c:c};var Kr=/\{[^{}]+\}/g,Vr=({path:t,url:e})=>{let r=e,o=e.match(Kr);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${B({name:p,value:d})}`);continue}let y=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Vr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function mt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var $t=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let y=t[c]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"form",value:d},y.array));u&&p.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"deepObject",value:d},y.object));u&&p.push(u)}else{let u=B({allowReserved:y.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Vt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Hr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Hr(e,l.name))continue;let p=yield $t(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),yt=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),ft=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=me(t.headers,e.headers),r},Qr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Qr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},X=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Qt=()=>({error:new X,request:new X,response:new X}),Yr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Wr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},dt),{headers:Wr,parseAs:"auto",querySerializer:Yr}),t);var ht=(t={})=>{let e=ft(Z(),t),r=()=>n({},e),o=y=>(e=ft(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=yt(u);return{opts:u,url:S}}),p=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:mt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let $=u.fetch,O;try{O=yield $(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?Vt(O.headers.get("Content-Type")):u.parseAs)!=null?K:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=y=>u=>p(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,$)=>f(null,null,function*(){let O=new Request(b,$);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:mt(S),url:g}))});return{buildUrl:yt,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var h=ht(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};Me(ye,{AuthorSchema:()=>Jr,ChannelsSchema:()=>Xr,CommentListResponseSchema:()=>eo,CommentSchema:()=>Zr,CommunityItemSchema:()=>to,CommunityListResponseSchema:()=>ro,CreateCommentRequestSchema:()=>oo,CreateMatchParticipationRequestSchema:()=>io,CreatePostRequestSchema:()=>so,CreateSportProfileLevelRequestSchema:()=>ao,CreateSportProfileRequestSchema:()=>no,ExternalServiceSchema:()=>po,FacilityListSchema:()=>co,FacilityMessagePayloadSchema:()=>uo,FacilityOfferConditionActivitiesSchema:()=>fo,FacilityOfferConditionCourtsSchema:()=>ho,FacilityOfferConditionDateSchema:()=>go,FacilityOfferConditionHoursinadvanceSchema:()=>bo,FacilityOfferConditionSchema:()=>yo,FacilityOfferConditionTimeSchema:()=>Po,FacilityOfferConditionWeekdaysSchema:()=>So,FacilityOfferListSchema:()=>Oo,FacilityOfferOrderSchema:()=>Eo,FacilityOfferSchema:()=>mo,FacilityPermissionSchema:()=>Ro,FacilityPermissionsResponseSchema:()=>Uo,FacilityPunchCardDataSchema:()=>Io,FacilitySchema:()=>lo,FacilityValueCardDataSchema:()=>To,GenderSchema:()=>xo,LinkTypeSchema:()=>Co,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Do,MatchDetailSchema:()=>Ao,MatchEventSchema:()=>Go,MatchListSchema:()=>ko,MatchOccasionDetailSchema:()=>wo,MatchOccasionSchema:()=>No,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>Mo,MatchSchema:()=>vo,MatchStatusSchema:()=>qo,MatchUserPriceSchema:()=>Fo,MemberListResponseSchema:()=>jo,MemberRelationSchema:()=>Bo,MemberSchema:()=>zo,MembershipStatusSchema:()=>$o,MetadataSchema:()=>Ko,NotificationPayloadSchema:()=>Ho,NotificationRequestBodySchema:()=>Qo,NotificationSchema:()=>Vo,NotificationsFilterSchema:()=>Yo,NotificationsPaginatedResponseSchema:()=>Wo,NotificationsSummarySchema:()=>Jo,OffsetPaginatedResultSetSchema:()=>Xo,PaginationMetaSchema:()=>Zo,ParticipantDetailSchema:()=>ei,ParticipantSummarySchema:()=>ti,PatchCommentRequestSchema:()=>ri,PatchPostRequestSchema:()=>oi,PaymentCommandSchema:()=>ii,PaymentDetailsSchema:()=>si,PostLinkSchema:()=>ni,PostListResponseSchema:()=>pi,PostSchema:()=>ai,PostingPermissionSchema:()=>li,PreferenceSchema:()=>ci,PreferencesResponseSchema:()=>ui,RecommendationListSchema:()=>mi,RecommendationSchema:()=>di,RefundPolicySchema:()=>yi,RegisterDeviceRequestSchema:()=>fi,SourceSchema:()=>hi,SportAuthoritiesResponseSchema:()=>gi,SportAuthoritySchema:()=>bi,SportLevelSchema:()=>Pi,SportProfileAttributeSchema:()=>Oi,SportProfileLevelSchema:()=>Ei,SportProfileSchema:()=>Si,SportProfilesResponseSchema:()=>Ri,TopicSchema:()=>Ui,UpdatePreferencesRequestBodySchema:()=>Ii,UpdateSportProfileLevelRequestSchema:()=>Ti,UpdateUsersProfilesRequestSchema:()=>xi,UserParticipationStatusSchema:()=>Ci,UserProfileSchema:()=>vi,UserRelationSchema:()=>_i,UsersProfilesPaginatedResponseSchema:()=>Di,VisibilitySchema:()=>Ai,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Gi,pkgOpenapiSharedErrorSchema:()=>ki,pkgOpenapiSharedErrorsSchema:()=>Ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>wi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Jr={properties:{facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["admin","member"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},Xr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Zr={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"},eo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},to={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"},ro={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},oo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},io={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"},so={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},no={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"},po={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},lo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},co={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},uo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},mo={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"},yo={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"},fo={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"},ho={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},go={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},bo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Po={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},So={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Oo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Eo={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"},Ro={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Uo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Io={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"},To={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"},xo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Co={enum:["activity","match"],type:"string"},vo={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Do={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Ao={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.
|
|
7
|
+
`);try{q=JSON.parse(T),Et=!0}catch(Le){q=T}}Et&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Ot,id:b,retry:G}),ne.length&&(yield q)}}}finally{M.removeEventListener("abort",bt),we.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ae=Math.min(G*2**(v-1),c!=null?c:3e4);yield new w($(ae))}}})}()}};var jr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$r=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(Br(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=jr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):B({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},B=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},de=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let p=$r(o),c=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(p);return o==="label"||o==="matrix"?p+c:c};var Kr=/\{[^{}]+\}/g,Vr=({path:t,url:e})=>{let r=e,o=e.match(Kr);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${B({name:p,value:d})}`);continue}let y=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Vr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function mt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var $t=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let y=t[c]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"form",value:d},y.array));u&&p.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:c,style:"deepObject",value:d},y.object));u&&p.push(u)}else{let u=B({allowReserved:y.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Vt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Hr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Hr(e,l.name))continue;let p=yield $t(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),yt=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),ft=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=me(t.headers,e.headers),r},Qr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Qr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},X=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Qt=()=>({error:new X,request:new X,response:new X}),Yr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Wr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},dt),{headers:Wr,parseAs:"auto",querySerializer:Yr}),t);var ht=(t={})=>{let e=ft(Z(),t),r=()=>n({},e),o=y=>(e=ft(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=yt(u);return{opts:u,url:S}}),p=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:mt(u)}),b=new Request(S,g);for(let E of i.request.fns)E&&(b=yield E(b,u));let $=u.fetch,O;try{O=yield $(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?Vt(O.headers.get("Content-Type")):u.parseAs)!=null?K:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=y=>u=>p(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,onRequest:(b,$)=>f(null,null,function*(){let O=new Request(b,$);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:mt(S),url:g}))});return{buildUrl:yt,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var h=ht(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};Me(ye,{AuthorSchema:()=>Jr,ChannelsSchema:()=>Xr,CommentListResponseSchema:()=>eo,CommentSchema:()=>Zr,CommunityItemSchema:()=>to,CommunityListResponseSchema:()=>ro,CreateCommentRequestSchema:()=>oo,CreateMatchParticipationRequestSchema:()=>io,CreatePostRequestSchema:()=>so,CreateSportProfileLevelRequestSchema:()=>ao,CreateSportProfileRequestSchema:()=>no,ExternalServiceSchema:()=>po,FacilityListSchema:()=>co,FacilityMessagePayloadSchema:()=>uo,FacilityOfferConditionActivitiesSchema:()=>fo,FacilityOfferConditionCourtsSchema:()=>ho,FacilityOfferConditionDateSchema:()=>go,FacilityOfferConditionHoursinadvanceSchema:()=>bo,FacilityOfferConditionSchema:()=>yo,FacilityOfferConditionTimeSchema:()=>Po,FacilityOfferConditionWeekdaysSchema:()=>So,FacilityOfferListSchema:()=>Oo,FacilityOfferOrderSchema:()=>Eo,FacilityOfferSchema:()=>mo,FacilityPermissionSchema:()=>Ro,FacilityPermissionsResponseSchema:()=>Uo,FacilityPunchCardDataSchema:()=>Io,FacilitySchema:()=>lo,FacilityValueCardDataSchema:()=>To,GenderSchema:()=>xo,LinkTypeSchema:()=>Co,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Do,MatchDetailSchema:()=>Ao,MatchEventSchema:()=>Go,MatchListSchema:()=>ko,MatchOccasionDetailSchema:()=>wo,MatchOccasionSchema:()=>No,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>Mo,MatchSchema:()=>vo,MatchStatusSchema:()=>qo,MatchUserPriceSchema:()=>Fo,MemberListResponseSchema:()=>jo,MemberRelationSchema:()=>Bo,MemberSchema:()=>zo,MembershipStatusSchema:()=>$o,MetadataSchema:()=>Ko,NotificationPayloadSchema:()=>Ho,NotificationRequestBodySchema:()=>Qo,NotificationSchema:()=>Vo,NotificationsFilterSchema:()=>Yo,NotificationsPaginatedResponseSchema:()=>Wo,NotificationsSummarySchema:()=>Jo,OffsetPaginatedResultSetSchema:()=>Xo,PaginationMetaSchema:()=>Zo,ParticipantDetailSchema:()=>ei,ParticipantSummarySchema:()=>ti,PatchCommentRequestSchema:()=>ri,PatchPostRequestSchema:()=>oi,PaymentCommandSchema:()=>ii,PaymentDetailsSchema:()=>si,PostLinkSchema:()=>ni,PostListResponseSchema:()=>pi,PostSchema:()=>ai,PostingPermissionSchema:()=>li,PreferenceSchema:()=>ci,PreferencesResponseSchema:()=>ui,RecommendationListSchema:()=>mi,RecommendationSchema:()=>di,RefundPolicySchema:()=>yi,RegisterDeviceRequestSchema:()=>fi,SourceSchema:()=>hi,SportAuthoritiesResponseSchema:()=>gi,SportAuthoritySchema:()=>bi,SportLevelSchema:()=>Pi,SportProfileAttributeSchema:()=>Oi,SportProfileLevelSchema:()=>Ei,SportProfileSchema:()=>Si,SportProfilesResponseSchema:()=>Ri,TopicSchema:()=>Ui,UpdatePreferencesRequestBodySchema:()=>Ii,UpdateSportProfileLevelRequestSchema:()=>Ti,UpdateUsersProfilesRequestSchema:()=>xi,UserParticipationStatusSchema:()=>Ci,UserProfileSchema:()=>vi,UserRelationSchema:()=>_i,UsersProfilesPaginatedResponseSchema:()=>Di,VisibilitySchema:()=>Ai,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Gi,pkgOpenapiSharedErrorSchema:()=>ki,pkgOpenapiSharedErrorsSchema:()=>Ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>wi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Jr={properties:{facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["ADMIN","MEMBER"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},Xr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Zr={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"},eo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},to={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"},ro={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},oo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},io={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"},so={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},no={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"},po={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},lo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},co={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},uo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},mo={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"},yo={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"},fo={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"},ho={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},go={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},bo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Po={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},So={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Oo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Eo={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"},Ro={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Uo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Io={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"},To={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"},xo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Co={enum:["ACTIVITY","MATCH"],type:"string"},vo={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Do={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Ao={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.
|
|
8
8
|
`},Go={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ko={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},No={properties:{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:{format:"int32",nullable:!0,type:"integer"},level_min:{format:"int32",nullable:!0,type:"integer"},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"],type:"object"},wo={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},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.
|
|
9
|
-
`},Lo={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"},Mo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},qo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},Fo={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"},zo={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","relation_status"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Bo={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"},$o={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ko={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Vo={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"},Ho={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Qo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Yo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Wo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Jo={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"},Xo={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"},Zo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ei={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},ti={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ri={properties:{is_read:{type:"boolean"}},type:"object"},oi={properties:{is_read:{type:"boolean"}},type:"object"},ii={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},si={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ai={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ni={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},pi={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},li={enum:["
|
|
9
|
+
`},Lo={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"},Mo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},qo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},Fo={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"},zo={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","relation_status"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Bo={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"},$o={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ko={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Vo={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"},Ho={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Qo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Yo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Wo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Jo={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"},Xo={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"},Zo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ei={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},ti={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ri={properties:{is_read:{type:"boolean"}},type:"object"},oi={properties:{is_read:{type:"boolean"}},type:"object"},ii={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},si={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ai={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ni={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},pi={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},li={enum:["ADMINS","MEMBERS"],type:"string"},ci={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ui={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},di={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
10
10
|
`,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
|
|
11
11
|
`,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
|
|
12
12
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
13
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},mi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},yi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},fi={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},hi={enum:["FACILITY"],type:"string"},gi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},bi={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Pi={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Si={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Oi={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ei={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ri={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ui={enum:["FACILITY_MESSAGE"],type:"string"},Ii={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Ti={properties:{level:{type:"string"}},required:["level"],type:"object"},xi={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Ci={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},vi={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},_i={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"},Di={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ai={enum:["hidden"],type:"string"},Gi={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ki={properties:{message:{description:"The error message",type:"string"}},type:"object"},Ni={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},wi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Li={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Re=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ue=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},_e=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},ke=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Yt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Wt={ACTIVITY:"activity",MATCH:"match"},Jt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Xt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Zt={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},er={ADMINS:"admins",MEMBERS:"members"},tr={FACILITY:"FACILITY"},rr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},or={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},ir={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},sr={HIDDEN:"hidden"};var Ne={};Me(Ne,{addUserSportProfileLevelMutation:()=>us,createFacilityOfferOrderMutation:()=>Fi,createMatchParticipationMutation:()=>$i,createUserSportProfileMutation:()=>ps,deleteUserSportProfileLevelMutation:()=>ds,deleteUserSportProfileMutation:()=>ls,getMatchOptions:()=>Bi,getMatchQueryKey:()=>cr,getMatchUserPriceOptions:()=>Ki,getMatchUserPriceQueryKey:()=>ur,getNotificationByIdOptions:()=>Ji,getNotificationByIdQueryKey:()=>fr,getNotificationsInfiniteOptions:()=>Hi,getNotificationsInfiniteQueryKey:()=>mr,getNotificationsOptions:()=>Vi,getNotificationsPreferencesOptions:()=>Yi,getNotificationsPreferencesQueryKey:()=>yr,getNotificationsQueryKey:()=>dr,getRecommendationsInfiniteOptions:()=>as,getRecommendationsInfiniteQueryKey:()=>Or,getRecommendationsOptions:()=>ss,getRecommendationsQueryKey:()=>Sr,getSportAuthoritiesOptions:()=>Zi,getSportAuthoritiesQueryKey:()=>hr,getUserFacilityPermissionsOptions:()=>os,getUserFacilityPermissionsQueryKey:()=>Pr,getUserSportProfileOptions:()=>cs,getUserSportProfileQueryKey:()=>Rr,getUserSportProfilesOptions:()=>ns,getUserSportProfilesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>qi,listFacilityOffersInfiniteQueryKey:()=>nr,listFacilityOffersOptions:()=>Mi,listFacilityOffersQueryKey:()=>ar,listMatchesInfiniteOptions:()=>ji,listMatchesInfiniteQueryKey:()=>lr,listMatchesOptions:()=>zi,listMatchesQueryKey:()=>pr,registerDeviceMutation:()=>rs,searchUsersInfiniteOptions:()=>ts,searchUsersInfiniteQueryKey:()=>br,searchUsersOptions:()=>es,searchUsersQueryKey:()=>gr,updateAllNotificationsMutation:()=>Qi,updateNotificationMutation:()=>Xi,updateNotificationsPreferencesMutation:()=>Wi,updateUserProfileMutation:()=>is,updateUserSportProfileLevelMutation:()=>ms});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},ar=t=>R("ListFacilityOffers",t),Mi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),se=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},nr=t=>R("ListFacilityOffers",t,!0),qi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield ee(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:nr(t)}),Fi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield fe(m(n(n({},t),r),{throwOnError:!0}));return o})}),pr=t=>R("ListMatches",t),zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),lr=t=>R("ListMatches",t,!0),ji=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield te(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:lr(t)}),cr=t=>R("GetMatch",t),Bi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield he(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),$i=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ur=t=>R("GetMatchUserPrice",t),Ki=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield be(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),dr=t=>R("GetNotifications",t),Vi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t,!0),Hi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield re(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:mr(t)}),Qi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Pe(m(n(n({},t),r),{throwOnError:!0}));return o})}),yr=t=>R("GetNotificationsPreferences",t),Yi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Se(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),Wi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Oe(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationById",t),Ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Re(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("getSportAuthorities",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ue(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),gr=t=>R("searchUsers",t),es=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t,!0),ts=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield oe(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:br(t)}),rs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ie(m(n(n({},t),r),{throwOnError:!0}));return o})}),Pr=t=>R("getUserFacilityPermissions",t),os=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Pr(t)}),is=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield xe(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("GetRecommendations",t),ss=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),Or=t=>R("GetRecommendations",t,!0),as=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield ie(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:Or(t)}),Er=t=>R("getUserSportProfiles",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ce(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Er(t)}),ps=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ve(m(n(n({},t),r),{throwOnError:!0}));return o})}),ls=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield _e(m(n(n({},t),r),{throwOnError:!0}));return o})}),Rr=t=>R("getUserSportProfile",t),cs=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield De(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),us=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ae(m(n(n({},t),r),{throwOnError:!0}));return o})}),ds=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ke(m(n(n({},t),r),{throwOnError:!0}));return o})});export{et as ActivityServiceV1Service,tt as AnonymousService,rt as ApiClientServiceV1Service,z as ApiError,ot as AuthorizedService,it as BookingServiceV1Service,le as CancelError,Y as CancelablePromise,st as CheckoutServiceV1Service,at as CompetitionServiceV1Service,nt as CorsService,pt as LoyaltyServiceV1Service,lt as MembershipServiceV1Service,s as OpenAPI,ct as PlaySessionServiceV1Service,ut as UserServiceV1Service,_t as bookingRestriction,Dt as bookingSubType,qe as bookingSubscription,At as bookingUserStatus,Fe as cancellationPolicy,ze as chat,je as chatCreation,Gt as chatTarget,kt as clientType,Nt as directionParam,wt as months,Be as notificationChatGroup,$e as notificationEntity,Ke as pendingPayment,He as playSessionSettings,Qe as playSessionUser,Lt as playerStatusParam,Ve as playingUserResponse,Mt as userChatStatusParam,qt as userChatTargetParam,Ye as userPunchCard,We as userRelation,Ft as userRelationStatusParam,gt as v1};
|
|
13
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},mi={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},yi={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},fi={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},hi={enum:["FACILITY"],type:"string"},gi={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},bi={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Pi={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Si={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Oi={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ei={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ri={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Ui={enum:["FACILITY_MESSAGE"],type:"string"},Ii={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Ti={properties:{level:{type:"string"}},required:["level"],type:"object"},xi={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Ci={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},vi={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},_i={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"},Di={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Ai={enum:["HIDDEN"],type:"string"},Gi={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ki={properties:{message:{description:"The error message",type:"string"}},type:"object"},Ni={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},wi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Li={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/facilities/{facility_id}/offers"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).post(n({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/matches/{matchId}/participations"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/matches/{matchId}/prices/{userId}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/notifications"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/preferences"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ee=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/notifications/{id}"},t))},Re=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/notifications/{id}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ue=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/sport-authorities"},t))},oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(n({url:"/users/profiles"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/devices"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Te=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/facility-permissions"},t))},xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(n({url:"/users/{user_id}/profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(n({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},_e=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).get(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).post(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))},Ge=t=>{var e;return((e=t.client)!=null?e:h).delete(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},ke=t=>{var e;return((e=t.client)!=null?e:h).put(m(n({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:n({"Content-Type":"application/json"},t.headers)}))};var Yt={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Wt={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},Jt={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Xt={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Zt={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},er={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},tr={FACILITY:"FACILITY"},rr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},or={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},ir={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},sr={HIDDEN:"HIDDEN"};var Ne={};Me(Ne,{addUserSportProfileLevelMutation:()=>us,createFacilityOfferOrderMutation:()=>Fi,createMatchParticipationMutation:()=>$i,createUserSportProfileMutation:()=>ps,deleteUserSportProfileLevelMutation:()=>ds,deleteUserSportProfileMutation:()=>ls,getMatchOptions:()=>Bi,getMatchQueryKey:()=>cr,getMatchUserPriceOptions:()=>Ki,getMatchUserPriceQueryKey:()=>ur,getNotificationByIdOptions:()=>Ji,getNotificationByIdQueryKey:()=>fr,getNotificationsInfiniteOptions:()=>Hi,getNotificationsInfiniteQueryKey:()=>mr,getNotificationsOptions:()=>Vi,getNotificationsPreferencesOptions:()=>Yi,getNotificationsPreferencesQueryKey:()=>yr,getNotificationsQueryKey:()=>dr,getRecommendationsInfiniteOptions:()=>as,getRecommendationsInfiniteQueryKey:()=>Or,getRecommendationsOptions:()=>ss,getRecommendationsQueryKey:()=>Sr,getSportAuthoritiesOptions:()=>Zi,getSportAuthoritiesQueryKey:()=>hr,getUserFacilityPermissionsOptions:()=>os,getUserFacilityPermissionsQueryKey:()=>Pr,getUserSportProfileOptions:()=>cs,getUserSportProfileQueryKey:()=>Rr,getUserSportProfilesOptions:()=>ns,getUserSportProfilesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>qi,listFacilityOffersInfiniteQueryKey:()=>nr,listFacilityOffersOptions:()=>Mi,listFacilityOffersQueryKey:()=>ar,listMatchesInfiniteOptions:()=>ji,listMatchesInfiniteQueryKey:()=>lr,listMatchesOptions:()=>zi,listMatchesQueryKey:()=>pr,registerDeviceMutation:()=>rs,searchUsersInfiniteOptions:()=>ts,searchUsersInfiniteQueryKey:()=>br,searchUsersOptions:()=>es,searchUsersQueryKey:()=>gr,updateAllNotificationsMutation:()=>Qi,updateNotificationMutation:()=>Xi,updateNotificationsPreferencesMutation:()=>Wi,updateUserProfileMutation:()=>is,updateUserSportProfileLevelMutation:()=>ms});var R=(t,e,r,o)=>{var l;let i={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(i._infinite=r),o&&(i.tags=o),e!=null&&e.body&&(i.body=e.body),e!=null&&e.headers&&(i.headers=e.headers),e!=null&&e.path&&(i.path=e.path),e!=null&&e.query&&(i.query=e.query),[i]},ar=t=>R("ListFacilityOffers",t),Mi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ar(t)}),se=(t,e)=>{let r=n({},t[0]);return e.body&&(r.body=n(n({},t[0].body),e.body)),e.headers&&(r.headers=n(n({},t[0].headers),e.headers)),e.path&&(r.path=n(n({},t[0].path),e.path)),e.query&&(r.query=n(n({},t[0].query),e.query)),r},nr=t=>R("ListFacilityOffers",t,!0),qi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield ee(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:nr(t)}),Fi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield fe(m(n(n({},t),r),{throwOnError:!0}));return o})}),pr=t=>R("ListMatches",t),zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:pr(t)}),lr=t=>R("ListMatches",t,!0),ji=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield te(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:lr(t)}),cr=t=>R("GetMatch",t),Bi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield he(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:cr(t)}),$i=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ur=t=>R("GetMatchUserPrice",t),Ki=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield be(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:ur(t)}),dr=t=>R("GetNotifications",t),Vi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield re(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:dr(t)}),mr=t=>R("GetNotifications",t,!0),Hi=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{cursor:e}}),{data:c}=yield re(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:mr(t)}),Qi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Pe(m(n(n({},t),r),{throwOnError:!0}));return o})}),yr=t=>R("GetNotificationsPreferences",t),Yi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Se(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:yr(t)}),Wi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Oe(m(n(n({},t),r),{throwOnError:!0}));return o})}),fr=t=>R("GetNotificationById",t),Ji=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ee(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:fr(t)}),Xi=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Re(m(n(n({},t),r),{throwOnError:!0}));return o})}),hr=t=>R("getSportAuthorities",t),Zi=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ue(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:hr(t)}),gr=t=>R("searchUsers",t),es=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield oe(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:gr(t)}),br=t=>R("searchUsers",t,!0),ts=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield oe(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:br(t)}),rs=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ie(m(n(n({},t),r),{throwOnError:!0}));return o})}),Pr=t=>R("getUserFacilityPermissions",t),os=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Te(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Pr(t)}),is=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield xe(m(n(n({},t),r),{throwOnError:!0}));return o})}),Sr=t=>R("GetRecommendations",t),ss=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield ie(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Sr(t)}),Or=t=>R("GetRecommendations",t,!0),as=t=>({queryFn:i=>f(null,[i],function*({pageParam:e,queryKey:r,signal:o}){let p=se(r,typeof e=="object"?e:{query:{offset:e}}),{data:c}=yield ie(m(n(n({},t),p),{signal:o,throwOnError:!0}));return c}),queryKey:Or(t)}),Er=t=>R("getUserSportProfiles",t),ns=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield Ce(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Er(t)}),ps=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ve(m(n(n({},t),r),{throwOnError:!0}));return o})}),ls=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield _e(m(n(n({},t),r),{throwOnError:!0}));return o})}),Rr=t=>R("getUserSportProfile",t),cs=t=>({queryFn:o=>f(null,[o],function*({queryKey:e,signal:r}){let{data:i}=yield De(m(n(n({},t),e[0]),{signal:r,throwOnError:!0}));return i}),queryKey:Rr(t)}),us=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ae(m(n(n({},t),r),{throwOnError:!0}));return o})}),ds=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield Ge(m(n(n({},t),r),{throwOnError:!0}));return o})}),ms=t=>({mutationFn:r=>f(null,null,function*(){let{data:o}=yield ke(m(n(n({},t),r),{throwOnError:!0}));return o})});export{et as ActivityServiceV1Service,tt as AnonymousService,rt as ApiClientServiceV1Service,z as ApiError,ot as AuthorizedService,it as BookingServiceV1Service,le as CancelError,Y as CancelablePromise,st as CheckoutServiceV1Service,at as CompetitionServiceV1Service,nt as CorsService,pt as LoyaltyServiceV1Service,lt as MembershipServiceV1Service,s as OpenAPI,ct as PlaySessionServiceV1Service,ut as UserServiceV1Service,_t as bookingRestriction,Dt as bookingSubType,qe as bookingSubscription,At as bookingUserStatus,Fe as cancellationPolicy,ze as chat,je as chatCreation,Gt as chatTarget,kt as clientType,Nt as directionParam,wt as months,Be as notificationChatGroup,$e as notificationEntity,Ke as pendingPayment,He as playSessionSettings,Qe as playSessionUser,Lt as playerStatusParam,Ve as playingUserResponse,Mt as userChatStatusParam,qt as userChatTargetParam,Ye as userPunchCard,We as userRelation,Ft as userRelationStatusParam,gt as v1};
|