@matchi/api 0.20260121.7 → 0.20260122.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.d.mts +1 -2
- package/dist/main/index.d.ts +1 -2
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -3689,7 +3689,7 @@ type UserProfile = {
|
|
|
3689
3689
|
language: string;
|
|
3690
3690
|
lastname?: string;
|
|
3691
3691
|
membership_facilities?: Array<number>;
|
|
3692
|
-
private_profile?: boolean
|
|
3692
|
+
private_profile?: boolean;
|
|
3693
3693
|
profile_image_url?: string;
|
|
3694
3694
|
telephone?: string;
|
|
3695
3695
|
zipcode?: string;
|
|
@@ -4794,7 +4794,6 @@ declare const UserProfileSchema: {
|
|
|
4794
4794
|
readonly type: "array";
|
|
4795
4795
|
};
|
|
4796
4796
|
readonly private_profile: {
|
|
4797
|
-
readonly nullable: true;
|
|
4798
4797
|
readonly type: "boolean";
|
|
4799
4798
|
};
|
|
4800
4799
|
readonly profile_image_url: {
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3689,7 +3689,7 @@ type UserProfile = {
|
|
|
3689
3689
|
language: string;
|
|
3690
3690
|
lastname?: string;
|
|
3691
3691
|
membership_facilities?: Array<number>;
|
|
3692
|
-
private_profile?: boolean
|
|
3692
|
+
private_profile?: boolean;
|
|
3693
3693
|
profile_image_url?: string;
|
|
3694
3694
|
telephone?: string;
|
|
3695
3695
|
zipcode?: string;
|
|
@@ -4794,7 +4794,6 @@ declare const UserProfileSchema: {
|
|
|
4794
4794
|
readonly type: "array";
|
|
4795
4795
|
};
|
|
4796
4796
|
readonly private_profile: {
|
|
4797
|
-
readonly nullable: true;
|
|
4798
4797
|
readonly type: "boolean";
|
|
4799
4798
|
};
|
|
4800
4799
|
readonly profile_image_url: {
|
package/dist/main/index.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
`);W=(S=br.pop())!=null?S:"";for(let Wr of br){let Qr=Wr.split(`
|
|
6
6
|
`),se=[],Or;for(let C of Qr)if(C.startsWith("data:"))se.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))Or=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let We=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(We)||(k=We)}let L,Pr=!1;if(se.length){let C=se.join(`
|
|
7
|
-
`);try{L=JSON.parse(C),Pr=!0}catch(We){L=C}}Pr&&(o&&(yield new w(o(L))),i&&(L=yield new w(i(L)))),r==null||r({data:L,event:Or,id:g,retry:k}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",hr),Ke.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&U>=n)break;let oe=Math.min(k*2**(U-1),l!=null?l:3e4);yield new w($(oe))}}})}()}};var mt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},yt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ge=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(yt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=mt(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):H({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},H=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},we=({allowReserved:t,explode:e,name:r,style:i,value:o,valueOnly:p})=>{if(o instanceof Date)return p?o.toISOString():`${r}=${o.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(o).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=ht(i),l=Object.entries(o).map(([d,f])=>H({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var gt=/\{[^{}]+\}/g,bt=({path:t,url:e})=>{let r=e,i=e.match(gt);if(i)for(let o of i){let p=!1,n=o.substring(1,o.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(o,Ge({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,we({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${H({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},Ur=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=bt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function ur(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var vr=(t,e)=>h(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Ar=(r={})=>{var i=r,{parameters:t={}}=i,e=Q(i,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=t[l]||e;if(Array.isArray(d)){let u=Ge(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=we(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=H({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},Nr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},Ot=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},kr=r=>h(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(Ot(e,p.name))continue;let n=yield vr(p,e.auth);if(!n)continue;let l=(o=p.name)!=null?o:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),dr=t=>Ur({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Ar(t.querySerializer),url:t.url}),fr=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},Pt=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},_e=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?Pt(r):Object.entries(r);for(let[o,p]of i)if(p===null)e.delete(o);else if(Array.isArray(p))for(let n of p)e.append(o,n);else p!==void 0&&e.set(o,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new Z,request:new Z,response:new Z}),St=Ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),It={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},cr),{headers:It,parseAs:"auto",querySerializer:St}),t);var mr=(t={})=>{let e=fr(ee(),t),r=()=>c({},e),i=f=>(e=fr(e,f),r()),o=Dr(),p=f=>h(null,null,function*(){var y,g;let u=m(c(c({},e),f),{fetch:(g=(y=f.fetch)!=null?y:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield kr(m(c({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=dr(u);return{opts:u,url:O}}),n=f=>h(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),y=m(c({redirect:"follow"},u),{body:ur(u)}),g=new Request(O,y);for(let S of o.request.fns)S&&(g=yield S(g,u));let $=u.fetch,P;try{P=yield $(g)}catch(S){let E=S;for(let I of o.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of o.response.fns)S&&(P=yield S(P,g,u));let N={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?Nr(P.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},N)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},N)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},N)}let k=yield P.text(),U;try{U=JSON.parse(k)}catch(S){}let F=U!=null?U:k,D=F;for(let S of o.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},N)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>h(null,null,function*(){let{opts:O,url:y}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,$)=>h(null,null,function*(){let P=new Request(g,$);for(let N of o.request.fns)N&&(P=yield N(P,O));return P}),serializedBody:ur(O),url:y}))});return{buildUrl:dr,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:o,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:l("TRACE")}};var T=mr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Et,FacilityMessagePayloadSchema:()=>Tt,FacilityOfferConditionActivitiesSchema:()=>xt,FacilityOfferConditionCourtsSchema:()=>Ut,FacilityOfferConditionDateSchema:()=>vt,FacilityOfferConditionHoursinadvanceSchema:()=>At,FacilityOfferConditionSchema:()=>Rt,FacilityOfferConditionTimeSchema:()=>Nt,FacilityOfferConditionWeekdaysSchema:()=>kt,FacilityOfferListSchema:()=>Dt,FacilityOfferOrderSchema:()=>Gt,FacilityOfferSchema:()=>Ct,FacilityPunchCardDataSchema:()=>wt,FacilityValueCardDataSchema:()=>_t,GenderSchema:()=>qt,MetadataSchema:()=>Ft,NotificationPayloadSchema:()=>zt,NotificationRequestBodySchema:()=>Bt,NotificationSchema:()=>Lt,NotificationsFilterSchema:()=>jt,NotificationsPaginatedResponseSchema:()=>Mt,NotificationsSummarySchema:()=>Ht,PreferenceSchema:()=>$t,PreferencesResponseSchema:()=>Vt,SourceSchema:()=>Kt,TopicSchema:()=>Wt,UpdatePreferencesRequestBodySchema:()=>Qt,UpdateUserProfileRequestSchema:()=>Yt,UserProfileSchema:()=>Xt,UserRelationSchema:()=>Zt,UserSchema:()=>Jt,UsersPaginatedResponseSchema:()=>ei,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ri,pkgOpenapiSharedErrorSchema:()=>ti,pkgOpenapiSharedErrorsSchema:()=>ii,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>oi,pkgOpenapiSharedProblemDetailsSchema:()=>si});var Et={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Tt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ct={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},Rt={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},xt={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Ut={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},vt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},At={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Nt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},kt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Dt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Gt={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},wt={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},_t={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},qt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},Ft={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Lt={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},zt={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Bt={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},jt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Mt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Ht={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},$t={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},Vt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Kt={enum:["FACILITY"],type:"string"},Wt={enum:["FACILITY_MESSAGE"],type:"string"},Qt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Yt={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Jt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Xt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{nullable:!0,type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},Zt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},ei={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ri={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ti={properties:{message:{description:"The error message",type:"string"}},type:"object"},ii={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},oi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},si={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/facilities/{facility_id}/offers"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},Le=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},je=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},Me=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},He=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var Gr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},wr={FACILITY:"FACILITY"},_r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},qr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var $e={};pe($e,{createFacilityOfferOrderMutation:()=>pi,getNotificationByIdOptions:()=>mi,getNotificationByIdQueryKey:()=>Mr,getNotificationsInfiniteOptions:()=>ci,getNotificationsInfiniteQueryKey:()=>Br,getNotificationsOptions:()=>li,getNotificationsPreferencesOptions:()=>di,getNotificationsPreferencesQueryKey:()=>jr,getNotificationsQueryKey:()=>zr,listFacilityOffersInfiniteOptions:()=>ni,listFacilityOffersInfiniteQueryKey:()=>Lr,listFacilityOffersOptions:()=>ai,listFacilityOffersQueryKey:()=>Fr,searchUsersInfiniteOptions:()=>gi,searchUsersInfiniteQueryKey:()=>$r,searchUsersOptions:()=>hi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ui,updateNotificationMutation:()=>yi,updateNotificationsPreferencesMutation:()=>fi,updateUserProfileMutation:()=>bi});var q=(t,e,r,i)=>{var p;let o={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(o._infinite=r),i&&(o.tags=i),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},Fr=t=>q("ListFacilityOffers",t),ai=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Fr(t)}),yr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},Lr=t=>q("ListFacilityOffers",t,!0),ni=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Lr(t)}),pi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),zr=t=>q("GetNotifications",t),li=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:zr(t)}),Br=t=>q("GetNotifications",t,!0),ci=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Br(t)}),ui=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),jr=t=>q("GetNotificationsPreferences",t),di=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ze(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:jr(t)}),fi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>q("GetNotificationById",t),mi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield je(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),yi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>q("searchUsers",t),hi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ie(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Hr(t)}),$r=t=>q("searchUsers",t,!0),gi=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:$r(t)}),bi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield He(m(c(c({},t),r),{throwOnError:!0}));return i})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
|
7
|
+
`);try{L=JSON.parse(C),Pr=!0}catch(We){L=C}}Pr&&(o&&(yield new w(o(L))),i&&(L=yield new w(i(L)))),r==null||r({data:L,event:Or,id:g,retry:k}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",hr),Ke.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&U>=n)break;let oe=Math.min(k*2**(U-1),l!=null?l:3e4);yield new w($(oe))}}})}()}};var mt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},yt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ge=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(yt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=mt(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):H({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},H=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},we=({allowReserved:t,explode:e,name:r,style:i,value:o,valueOnly:p})=>{if(o instanceof Date)return p?o.toISOString():`${r}=${o.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(o).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=ht(i),l=Object.entries(o).map(([d,f])=>H({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var gt=/\{[^{}]+\}/g,bt=({path:t,url:e})=>{let r=e,i=e.match(gt);if(i)for(let o of i){let p=!1,n=o.substring(1,o.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(o,Ge({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,we({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${H({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},Ur=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=bt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function ur(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var vr=(t,e)=>h(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Ar=(r={})=>{var i=r,{parameters:t={}}=i,e=Q(i,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=t[l]||e;if(Array.isArray(d)){let u=Ge(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=we(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=H({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},Nr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},Ot=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},kr=r=>h(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(Ot(e,p.name))continue;let n=yield vr(p,e.auth);if(!n)continue;let l=(o=p.name)!=null?o:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),dr=t=>Ur({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Ar(t.querySerializer),url:t.url}),fr=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=_e(t.headers,e.headers),r},Pt=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},_e=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?Pt(r):Object.entries(r);for(let[o,p]of i)if(p===null)e.delete(o);else if(Array.isArray(p))for(let n of p)e.append(o,n);else p!==void 0&&e.set(o,typeof p=="object"?JSON.stringify(p):p)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new Z,request:new Z,response:new Z}),St=Ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),It={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},cr),{headers:It,parseAs:"auto",querySerializer:St}),t);var mr=(t={})=>{let e=fr(ee(),t),r=()=>c({},e),i=f=>(e=fr(e,f),r()),o=Dr(),p=f=>h(null,null,function*(){var y,g;let u=m(c(c({},e),f),{fetch:(g=(y=f.fetch)!=null?y:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield kr(m(c({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=dr(u);return{opts:u,url:O}}),n=f=>h(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),y=m(c({redirect:"follow"},u),{body:ur(u)}),g=new Request(O,y);for(let S of o.request.fns)S&&(g=yield S(g,u));let $=u.fetch,P;try{P=yield $(g)}catch(S){let E=S;for(let I of o.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of o.response.fns)S&&(P=yield S(P,g,u));let N={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?Nr(P.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},N)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},N)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},N)}let k=yield P.text(),U;try{U=JSON.parse(k)}catch(S){}let F=U!=null?U:k,D=F;for(let S of o.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},N)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>h(null,null,function*(){let{opts:O,url:y}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,$)=>h(null,null,function*(){let P=new Request(g,$);for(let N of o.request.fns)N&&(P=yield N(P,O));return P}),serializedBody:ur(O),url:y}))});return{buildUrl:dr,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:o,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:l("TRACE")}};var T=mr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Et,FacilityMessagePayloadSchema:()=>Tt,FacilityOfferConditionActivitiesSchema:()=>xt,FacilityOfferConditionCourtsSchema:()=>Ut,FacilityOfferConditionDateSchema:()=>vt,FacilityOfferConditionHoursinadvanceSchema:()=>At,FacilityOfferConditionSchema:()=>Rt,FacilityOfferConditionTimeSchema:()=>Nt,FacilityOfferConditionWeekdaysSchema:()=>kt,FacilityOfferListSchema:()=>Dt,FacilityOfferOrderSchema:()=>Gt,FacilityOfferSchema:()=>Ct,FacilityPunchCardDataSchema:()=>wt,FacilityValueCardDataSchema:()=>_t,GenderSchema:()=>qt,MetadataSchema:()=>Ft,NotificationPayloadSchema:()=>zt,NotificationRequestBodySchema:()=>Bt,NotificationSchema:()=>Lt,NotificationsFilterSchema:()=>jt,NotificationsPaginatedResponseSchema:()=>Mt,NotificationsSummarySchema:()=>Ht,PreferenceSchema:()=>$t,PreferencesResponseSchema:()=>Vt,SourceSchema:()=>Kt,TopicSchema:()=>Wt,UpdatePreferencesRequestBodySchema:()=>Qt,UpdateUserProfileRequestSchema:()=>Yt,UserProfileSchema:()=>Xt,UserRelationSchema:()=>Zt,UserSchema:()=>Jt,UsersPaginatedResponseSchema:()=>ei,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ri,pkgOpenapiSharedErrorSchema:()=>ti,pkgOpenapiSharedErrorsSchema:()=>ii,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>oi,pkgOpenapiSharedProblemDetailsSchema:()=>si});var Et={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Tt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ct={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},Rt={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},xt={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Ut={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},vt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},At={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Nt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},kt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Dt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Gt={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},wt={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},_t={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},qt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},Ft={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Lt={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},zt={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Bt={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},jt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Mt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Ht={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},$t={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},Vt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Kt={enum:["FACILITY"],type:"string"},Wt={enum:["FACILITY_MESSAGE"],type:"string"},Qt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Yt={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Jt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Xt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},Zt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},ei={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ri={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ti={properties:{message:{description:"The error message",type:"string"}},type:"object"},ii={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},oi={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},si={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/facilities/{facility_id}/offers"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},Le=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},je=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},Me=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},He=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var Gr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},wr={FACILITY:"FACILITY"},_r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},qr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var $e={};pe($e,{createFacilityOfferOrderMutation:()=>pi,getNotificationByIdOptions:()=>mi,getNotificationByIdQueryKey:()=>Mr,getNotificationsInfiniteOptions:()=>ci,getNotificationsInfiniteQueryKey:()=>Br,getNotificationsOptions:()=>li,getNotificationsPreferencesOptions:()=>di,getNotificationsPreferencesQueryKey:()=>jr,getNotificationsQueryKey:()=>zr,listFacilityOffersInfiniteOptions:()=>ni,listFacilityOffersInfiniteQueryKey:()=>Lr,listFacilityOffersOptions:()=>ai,listFacilityOffersQueryKey:()=>Fr,searchUsersInfiniteOptions:()=>gi,searchUsersInfiniteQueryKey:()=>$r,searchUsersOptions:()=>hi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ui,updateNotificationMutation:()=>yi,updateNotificationsPreferencesMutation:()=>fi,updateUserProfileMutation:()=>bi});var q=(t,e,r,i)=>{var p;let o={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(o._infinite=r),i&&(o.tags=i),e!=null&&e.body&&(o.body=e.body),e!=null&&e.headers&&(o.headers=e.headers),e!=null&&e.path&&(o.path=e.path),e!=null&&e.query&&(o.query=e.query),[o]},Fr=t=>q("ListFacilityOffers",t),ai=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Fr(t)}),yr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},Lr=t=>q("ListFacilityOffers",t,!0),ni=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Lr(t)}),pi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),zr=t=>q("GetNotifications",t),li=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:zr(t)}),Br=t=>q("GetNotifications",t,!0),ci=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Br(t)}),ui=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),jr=t=>q("GetNotificationsPreferences",t),di=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ze(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:jr(t)}),fi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>q("GetNotificationById",t),mi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield je(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),yi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>q("searchUsers",t),hi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ie(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Hr(t)}),$r=t=>q("searchUsers",t,!0),gi=t=>({queryFn:o=>h(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=yr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:$r(t)}),bi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield He(m(c(c({},t),r),{throwOnError:!0}));return i})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
package/dist/main/index.mjs
CHANGED
|
@@ -4,4 +4,4 @@ var lr=Object.defineProperty,Yr=Object.defineProperties;var Jr=Object.getOwnProp
|
|
|
4
4
|
|
|
5
5
|
`);K=(S=sr.pop())!=null?S:"";for(let Wr of sr){let Qr=Wr.split(`
|
|
6
6
|
`),oe=[],ar;for(let C of Qr)if(C.startsWith("data:"))oe.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))ar=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let Se=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(Se)||(k=Se)}let L,nr=!1;if(oe.length){let C=oe.join(`
|
|
7
|
-
`);try{L=JSON.parse(C),nr=!0}catch(Se){L=C}}nr&&(a&&(yield new w(a(L))),i&&(L=yield new w(i(L)))),r==null||r({data:L,event:ar,id:g,retry:k}),oe.length&&(yield L)}}}finally{F.removeEventListener("abort",ir),Pe.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&U>=n)break;let ie=Math.min(k*2**(U-1),l!=null?l:3e4);yield new w(H(ie))}}})}()}};var ct=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ut=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},dt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=({allowReserved:t,explode:e,name:r,style:i,value:a})=>{if(!e){let l=(t?a:a.map(d=>encodeURIComponent(d))).join(ut(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ct(i),n=a.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):M({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},M=({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)}`},le=({allowReserved:t,explode:e,name:r,style:i,value:a,valueOnly:p})=>{if(a instanceof Date)return p?a.toISOString():`${r}=${a.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(a).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=dt(i),l=Object.entries(a).map(([d,f])=>M({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var ft=/\{[^{}]+\}/g,mt=({path:t,url:e})=>{let r=e,i=e.match(ft);if(i)for(let a of i){let p=!1,n=a.substring(1,a.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(a,pe({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(a,le({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(a,`;${M({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(a,f)}return r},Ur=({baseUrl:t,path:e,query:r,querySerializer:i,url:a})=>{let p=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+p;e&&(n=mt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Je(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var vr=(t,e)=>h(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Ar=(r={})=>{var i=r,{parameters:t={}}=i,e=W(i,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=t[l]||e;if(Array.isArray(d)){let u=pe(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=le(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=M({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},Nr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},yt=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},kr=r=>h(null,null,function*(){var i=r,{security:t}=i,e=W(i,["security"]);var a;for(let p of t){if(yt(e,p.name))continue;let n=yield vr(p,e.auth);if(!n)continue;let l=(a=p.name)!=null?a:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),Xe=t=>Ur({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Ar(t.querySerializer),url:t.url}),Ze=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=ce(t.headers,e.headers),r},ht=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},ce=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?ht(r):Object.entries(r);for(let[a,p]of i)if(p===null)e.delete(a);else if(Array.isArray(p))for(let n of p)e.append(a,n);else p!==void 0&&e.set(a,typeof p=="object"?JSON.stringify(p):p)}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 i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new X,request:new X,response:new X}),gt=Ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),bt={"Content-Type":"application/json"},Z=(t={})=>c(m(c({},Ye),{headers:bt,parseAs:"auto",querySerializer:gt}),t);var er=(t={})=>{let e=Ze(Z(),t),r=()=>c({},e),i=f=>(e=Ze(e,f),r()),a=Dr(),p=f=>h(null,null,function*(){var y,g;let u=m(c(c({},e),f),{fetch:(g=(y=f.fetch)!=null?y:e.fetch)!=null?g:globalThis.fetch,headers:ce(e.headers,f.headers),serializedBody:void 0});u.security&&(yield kr(m(c({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=Xe(u);return{opts:u,url:O}}),n=f=>h(null,null,function*(){var $;let{opts:u,url:O}=yield p(f),y=m(c({redirect:"follow"},u),{body:Je(u)}),g=new Request(O,y);for(let S of a.request.fns)S&&(g=yield S(g,u));let H=u.fetch,P;try{P=yield H(g)}catch(S){let E=S;for(let I of a.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of a.response.fns)S&&(P=yield S(P,g,u));let N={request:g,response:P};if(P.ok){let S=($=u.parseAs==="auto"?Nr(P.headers.get("Content-Type")):u.parseAs)!=null?$:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},N)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},N)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},N)}let k=yield P.text(),U;try{U=JSON.parse(k)}catch(S){}let F=U!=null?U:k,D=F;for(let S of a.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},N)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>h(null,null,function*(){let{opts:O,url:y}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>h(null,null,function*(){let P=new Request(g,H);for(let N of a.request.fns)N&&(P=yield N(P,O));return P}),serializedBody:Je(O),url:y}))});return{buildUrl:Xe,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:a,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:l("TRACE")}};var T=er(Z({baseUrl:"https://api.matchi.com/v1"}));var ue={};Ie(ue,{ChannelsSchema:()=>Ot,FacilityMessagePayloadSchema:()=>Pt,FacilityOfferConditionActivitiesSchema:()=>Et,FacilityOfferConditionCourtsSchema:()=>Tt,FacilityOfferConditionDateSchema:()=>Ct,FacilityOfferConditionHoursinadvanceSchema:()=>Rt,FacilityOfferConditionSchema:()=>It,FacilityOfferConditionTimeSchema:()=>xt,FacilityOfferConditionWeekdaysSchema:()=>Ut,FacilityOfferListSchema:()=>vt,FacilityOfferOrderSchema:()=>At,FacilityOfferSchema:()=>St,FacilityPunchCardDataSchema:()=>Nt,FacilityValueCardDataSchema:()=>kt,GenderSchema:()=>Dt,MetadataSchema:()=>Gt,NotificationPayloadSchema:()=>_t,NotificationRequestBodySchema:()=>qt,NotificationSchema:()=>wt,NotificationsFilterSchema:()=>Ft,NotificationsPaginatedResponseSchema:()=>Lt,NotificationsSummarySchema:()=>zt,PreferenceSchema:()=>Bt,PreferencesResponseSchema:()=>jt,SourceSchema:()=>Mt,TopicSchema:()=>Ht,UpdatePreferencesRequestBodySchema:()=>$t,UpdateUserProfileRequestSchema:()=>Vt,UserProfileSchema:()=>Wt,UserRelationSchema:()=>Qt,UserSchema:()=>Kt,UsersPaginatedResponseSchema:()=>Yt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Jt,pkgOpenapiSharedErrorSchema:()=>Xt,pkgOpenapiSharedErrorsSchema:()=>Zt,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ei,pkgOpenapiSharedProblemDetailsSchema:()=>ri});var Ot={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Pt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},St={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"},It={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"},Et={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"},Tt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ct={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Rt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},xt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Ut={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},vt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},At={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"},Nt={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"},kt={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"},Dt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},Gt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},wt={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"},_t={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},qt={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ft={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Lt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},zt={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"},Bt={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"},jt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Mt={enum:["FACILITY"],type:"string"},Ht={enum:["FACILITY_MESSAGE"],type:"string"},$t={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Vt={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Kt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Wt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{nullable:!0,type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},Qt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},Yt={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Jt={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"},Xt={properties:{message:{description:"The error message",type:"string"}},type:"object"},Zt={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ei={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"},ri={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:T).get(c({url:"/facilities/{facility_id}/offers"},t))},de=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},fe=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},me=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},ye=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var Gr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},wr={FACILITY:"FACILITY"},_r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},qr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Oe={};Ie(Oe,{createFacilityOfferOrderMutation:()=>oi,getNotificationByIdOptions:()=>ci,getNotificationByIdQueryKey:()=>Mr,getNotificationsInfiniteOptions:()=>ai,getNotificationsInfiniteQueryKey:()=>Br,getNotificationsOptions:()=>si,getNotificationsPreferencesOptions:()=>pi,getNotificationsPreferencesQueryKey:()=>jr,getNotificationsQueryKey:()=>zr,listFacilityOffersInfiniteOptions:()=>ii,listFacilityOffersInfiniteQueryKey:()=>Lr,listFacilityOffersOptions:()=>ti,listFacilityOffersQueryKey:()=>Fr,searchUsersInfiniteOptions:()=>fi,searchUsersInfiniteQueryKey:()=>$r,searchUsersOptions:()=>di,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ni,updateNotificationMutation:()=>ui,updateNotificationsPreferencesMutation:()=>li,updateUserProfileMutation:()=>mi});var q=(t,e,r,i)=>{var p;let a={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(a._infinite=r),i&&(a.tags=i),e!=null&&e.body&&(a.body=e.body),e!=null&&e.headers&&(a.headers=e.headers),e!=null&&e.path&&(a.path=e.path),e!=null&&e.query&&(a.query=e.query),[a]},Fr=t=>q("ListFacilityOffers",t),ti=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield ee(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Fr(t)}),rr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},Lr=t=>q("ListFacilityOffers",t,!0),ii=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield ee(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Lr(t)}),oi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield de(m(c(c({},t),r),{throwOnError:!0}));return i})}),zr=t=>q("GetNotifications",t),si=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:zr(t)}),Br=t=>q("GetNotifications",t,!0),ai=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Br(t)}),ni=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),jr=t=>q("GetNotificationsPreferences",t),pi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield me(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:jr(t)}),li=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ye(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>q("GetNotificationById",t),ci=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield he(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Mr(t)}),ui=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ge(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>q("searchUsers",t),di=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Hr(t)}),$r=t=>q("searchUsers",t,!0),fi=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:$r(t)}),mi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield be(m(c(c({},t),r),{throwOnError:!0}));return i})});export{Fe as ActivityServiceV1Service,Le as AnonymousService,ze as ApiClientServiceV1Service,B as ApiError,Be as AuthorizedService,je as BookingServiceV1Service,ae as CancelError,Q as CancelablePromise,Me as CheckoutServiceV1Service,He as CompetitionServiceV1Service,$e as CorsService,Ve as LoyaltyServiceV1Service,Ke as MembershipServiceV1Service,o as OpenAPI,We as PlaySessionServiceV1Service,Qe as UserServiceV1Service,yr as bookingRestriction,hr as bookingSubType,Ee as bookingSubscription,gr as bookingUserStatus,Te as cancellationPolicy,Ce as chat,Re as chatCreation,br as chatTarget,Or as clientType,Pr as directionParam,Sr as months,xe as notificationChatGroup,Ue as notificationEntity,ve as pendingPayment,Ne as playSessionSettings,ke as playSessionUser,Ir as playerStatusParam,Ae as playingUserResponse,Er as userChatStatusParam,Tr as userChatTargetParam,De as userPunchCard,Ge as userRelation,Cr as userRelationStatusParam,tr as v1};
|
|
7
|
+
`);try{L=JSON.parse(C),nr=!0}catch(Se){L=C}}nr&&(a&&(yield new w(a(L))),i&&(L=yield new w(i(L)))),r==null||r({data:L,event:ar,id:g,retry:k}),oe.length&&(yield L)}}}finally{F.removeEventListener("abort",ir),Pe.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&U>=n)break;let ie=Math.min(k*2**(U-1),l!=null?l:3e4);yield new w(H(ie))}}})}()}};var ct=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ut=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},dt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=({allowReserved:t,explode:e,name:r,style:i,value:a})=>{if(!e){let l=(t?a:a.map(d=>encodeURIComponent(d))).join(ut(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ct(i),n=a.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):M({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},M=({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)}`},le=({allowReserved:t,explode:e,name:r,style:i,value:a,valueOnly:p})=>{if(a instanceof Date)return p?a.toISOString():`${r}=${a.toISOString()}`;if(i!=="deepObject"&&!e){let d=[];Object.entries(a).forEach(([u,O])=>{d=[...d,u,t?O:encodeURIComponent(O)]});let f=d.join(",");switch(i){case"form":return`${r}=${f}`;case"label":return`.${f}`;case"matrix":return`;${r}=${f}`;default:return f}}let n=dt(i),l=Object.entries(a).map(([d,f])=>M({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var ft=/\{[^{}]+\}/g,mt=({path:t,url:e})=>{let r=e,i=e.match(ft);if(i)for(let a of i){let p=!1,n=a.substring(1,a.length-1),l="simple";n.endsWith("*")&&(p=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(n=n.substring(1),l="label"):n.startsWith(";")&&(n=n.substring(1),l="matrix");let d=t[n];if(d==null)continue;if(Array.isArray(d)){r=r.replace(a,pe({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(a,le({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(a,`;${M({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(a,f)}return r},Ur=({baseUrl:t,path:e,query:r,querySerializer:i,url:a})=>{let p=a.startsWith("/")?a:`/${a}`,n=(t!=null?t:"")+p;e&&(n=mt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Je(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var vr=(t,e)=>h(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var Ar=(r={})=>{var i=r,{parameters:t={}}=i,e=W(i,["parameters"]);return p=>{let n=[];if(p&&typeof p=="object")for(let l in p){let d=p[l];if(d==null)continue;let f=t[l]||e;if(Array.isArray(d)){let u=pe(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"form",value:d},f.array));u&&n.push(u)}else if(typeof d=="object"){let u=le(c({allowReserved:f.allowReserved,explode:!0,name:l,style:"deepObject",value:d},f.object));u&&n.push(u)}else{let u=M({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},Nr=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(i=>e.startsWith(i)))return"blob";if(e.startsWith("text/"))return"text"}},yt=(t,e)=>{var r,i;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(i=t.headers.get("Cookie"))!=null&&i.includes(`${e}=`)):!1},kr=r=>h(null,null,function*(){var i=r,{security:t}=i,e=W(i,["security"]);var a;for(let p of t){if(yt(e,p.name))continue;let n=yield vr(p,e.auth);if(!n)continue;let l=(a=p.name)!=null?a:"Authorization";switch(p.in){case"query":e.query||(e.query={}),e.query[l]=n;break;case"cookie":e.headers.append("Cookie",`${l}=${n}`);break;default:e.headers.set(l,n);break}}}),Xe=t=>Ur({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Ar(t.querySerializer),url:t.url}),Ze=(t,e)=>{var i;let r=c(c({},t),e);return(i=r.baseUrl)!=null&&i.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=ce(t.headers,e.headers),r},ht=t=>{let e=[];return t.forEach((r,i)=>{e.push([i,r])}),e},ce=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let i=r instanceof Headers?ht(r):Object.entries(r);for(let[a,p]of i)if(p===null)e.delete(a);else if(Array.isArray(p))for(let n of p)e.append(a,n);else p!==void 0&&e.set(a,typeof p=="object"?JSON.stringify(p):p)}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 i=this.getInterceptorIndex(e);return this.fns[i]?(this.fns[i]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Dr=()=>({error:new X,request:new X,response:new X}),gt=Ar({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),bt={"Content-Type":"application/json"},Z=(t={})=>c(m(c({},Ye),{headers:bt,parseAs:"auto",querySerializer:gt}),t);var er=(t={})=>{let e=Ze(Z(),t),r=()=>c({},e),i=f=>(e=Ze(e,f),r()),a=Dr(),p=f=>h(null,null,function*(){var y,g;let u=m(c(c({},e),f),{fetch:(g=(y=f.fetch)!=null?y:e.fetch)!=null?g:globalThis.fetch,headers:ce(e.headers,f.headers),serializedBody:void 0});u.security&&(yield kr(m(c({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let O=Xe(u);return{opts:u,url:O}}),n=f=>h(null,null,function*(){var $;let{opts:u,url:O}=yield p(f),y=m(c({redirect:"follow"},u),{body:Je(u)}),g=new Request(O,y);for(let S of a.request.fns)S&&(g=yield S(g,u));let H=u.fetch,P;try{P=yield H(g)}catch(S){let E=S;for(let I of a.error.fns)I&&(E=yield I(S,void 0,g,u));if(E=E||{},u.throwOnError)throw E;return u.responseStyle==="data"?void 0:{error:E,request:g,response:void 0}}for(let S of a.response.fns)S&&(P=yield S(P,g,u));let N={request:g,response:P};if(P.ok){let S=($=u.parseAs==="auto"?Nr(P.headers.get("Content-Type")):u.parseAs)!=null?$:"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let I;switch(S){case"arrayBuffer":case"blob":case"text":I=yield P[S]();break;case"formData":I=new FormData;break;case"stream":I=P.body;break;default:I={};break}return u.responseStyle==="data"?I:c({data:I},N)}let E;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":E=yield P[S]();break;case"json":{let I=yield P.text();E=I?JSON.parse(I):{};break}case"stream":return u.responseStyle==="data"?P.body:c({data:P.body},N)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},N)}let k=yield P.text(),U;try{U=JSON.parse(k)}catch(S){}let F=U!=null?U:k,D=F;for(let S of a.error.fns)S&&(D=yield S(F,P,g,u));if(D=D||{},u.throwOnError)throw D;return u.responseStyle==="data"?void 0:c({error:D},N)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>h(null,null,function*(){let{opts:O,url:y}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>h(null,null,function*(){let P=new Request(g,H);for(let N of a.request.fns)N&&(P=yield N(P,O));return P}),serializedBody:Je(O),url:y}))});return{buildUrl:Xe,connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),getConfig:r,head:l("HEAD"),interceptors:a,options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),request:n,setConfig:i,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:l("TRACE")}};var T=er(Z({baseUrl:"https://api.matchi.com/v1"}));var ue={};Ie(ue,{ChannelsSchema:()=>Ot,FacilityMessagePayloadSchema:()=>Pt,FacilityOfferConditionActivitiesSchema:()=>Et,FacilityOfferConditionCourtsSchema:()=>Tt,FacilityOfferConditionDateSchema:()=>Ct,FacilityOfferConditionHoursinadvanceSchema:()=>Rt,FacilityOfferConditionSchema:()=>It,FacilityOfferConditionTimeSchema:()=>xt,FacilityOfferConditionWeekdaysSchema:()=>Ut,FacilityOfferListSchema:()=>vt,FacilityOfferOrderSchema:()=>At,FacilityOfferSchema:()=>St,FacilityPunchCardDataSchema:()=>Nt,FacilityValueCardDataSchema:()=>kt,GenderSchema:()=>Dt,MetadataSchema:()=>Gt,NotificationPayloadSchema:()=>_t,NotificationRequestBodySchema:()=>qt,NotificationSchema:()=>wt,NotificationsFilterSchema:()=>Ft,NotificationsPaginatedResponseSchema:()=>Lt,NotificationsSummarySchema:()=>zt,PreferenceSchema:()=>Bt,PreferencesResponseSchema:()=>jt,SourceSchema:()=>Mt,TopicSchema:()=>Ht,UpdatePreferencesRequestBodySchema:()=>$t,UpdateUserProfileRequestSchema:()=>Vt,UserProfileSchema:()=>Wt,UserRelationSchema:()=>Qt,UserSchema:()=>Kt,UsersPaginatedResponseSchema:()=>Yt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Jt,pkgOpenapiSharedErrorSchema:()=>Xt,pkgOpenapiSharedErrorsSchema:()=>Zt,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ei,pkgOpenapiSharedProblemDetailsSchema:()=>ri});var Ot={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Pt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},St={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"},It={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"},Et={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"},Tt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ct={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Rt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},xt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Ut={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},vt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},At={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"},Nt={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"},kt={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"},Dt={enum:["MALE","FEMALE","OTHER","PREFER_NOT_TO_SAY"],type:"string"},Gt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},wt={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"},_t={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},qt={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ft={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Lt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},zt={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"},Bt={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"},jt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Mt={enum:["FACILITY"],type:"string"},Ht={enum:["FACILITY_MESSAGE"],type:"string"},$t={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Vt={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},firstname:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},lastname:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{example:"+46701234567",pattern:"^\\+?[1-9]\\d{1,14}$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Kt={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Wt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},firstname:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},keycloak_id:{format:"uuid",type:"string"},language:{type:"string"},lastname:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},telephone:{type:"string"},zipcode:{type:"string"}},required:["keycloak_id","firstname","language","email"],type:"object"},Qt={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION"],type:"string"},Yt={properties:{items:{items:{$ref:"#/components/schemas/User"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Jt={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"},Xt={properties:{message:{description:"The error message",type:"string"}},type:"object"},Zt={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ei={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"},ri={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:T).get(c({url:"/facilities/{facility_id}/offers"},t))},de=t=>{var e;return((e=t.client)!=null?e:T).post(c({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/notifications"},t))},fe=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},me=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},ye=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/preferences"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/notifications/{id}"},t))},ge=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/notifications/{id}"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))},te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:T).get(c({url:"/users/profiles"},t))},be=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var Gr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",PREFER_NOT_TO_SAY:"PREFER_NOT_TO_SAY"},wr={FACILITY:"FACILITY"},_r={FACILITY_MESSAGE:"FACILITY_MESSAGE"},qr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Oe={};Ie(Oe,{createFacilityOfferOrderMutation:()=>oi,getNotificationByIdOptions:()=>ci,getNotificationByIdQueryKey:()=>Mr,getNotificationsInfiniteOptions:()=>ai,getNotificationsInfiniteQueryKey:()=>Br,getNotificationsOptions:()=>si,getNotificationsPreferencesOptions:()=>pi,getNotificationsPreferencesQueryKey:()=>jr,getNotificationsQueryKey:()=>zr,listFacilityOffersInfiniteOptions:()=>ii,listFacilityOffersInfiniteQueryKey:()=>Lr,listFacilityOffersOptions:()=>ti,listFacilityOffersQueryKey:()=>Fr,searchUsersInfiniteOptions:()=>fi,searchUsersInfiniteQueryKey:()=>$r,searchUsersOptions:()=>di,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ni,updateNotificationMutation:()=>ui,updateNotificationsPreferencesMutation:()=>li,updateUserProfileMutation:()=>mi});var q=(t,e,r,i)=>{var p;let a={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((p=e==null?void 0:e.client)!=null?p:T).getConfig().baseUrl};return r&&(a._infinite=r),i&&(a.tags=i),e!=null&&e.body&&(a.body=e.body),e!=null&&e.headers&&(a.headers=e.headers),e!=null&&e.path&&(a.path=e.path),e!=null&&e.query&&(a.query=e.query),[a]},Fr=t=>q("ListFacilityOffers",t),ti=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield ee(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Fr(t)}),rr=(t,e)=>{let r=c({},t[0]);return e.body&&(r.body=c(c({},t[0].body),e.body)),e.headers&&(r.headers=c(c({},t[0].headers),e.headers)),e.path&&(r.path=c(c({},t[0].path),e.path)),e.query&&(r.query=c(c({},t[0].query),e.query)),r},Lr=t=>q("ListFacilityOffers",t,!0),ii=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield ee(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Lr(t)}),oi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield de(m(c(c({},t),r),{throwOnError:!0}));return i})}),zr=t=>q("GetNotifications",t),si=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield re(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:zr(t)}),Br=t=>q("GetNotifications",t,!0),ai=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Br(t)}),ni=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),jr=t=>q("GetNotificationsPreferences",t),pi=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield me(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:jr(t)}),li=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ye(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>q("GetNotificationById",t),ci=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield he(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Mr(t)}),ui=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield ge(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>q("searchUsers",t),di=t=>({queryFn:i=>h(null,[i],function*({queryKey:e,signal:r}){let{data:a}=yield te(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return a}),queryKey:Hr(t)}),$r=t=>q("searchUsers",t,!0),fi=t=>({queryFn:a=>h(null,[a],function*({pageParam:e,queryKey:r,signal:i}){let n=rr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:$r(t)}),mi=t=>({mutationFn:r=>h(null,null,function*(){let{data:i}=yield be(m(c(c({},t),r),{throwOnError:!0}));return i})});export{Fe as ActivityServiceV1Service,Le as AnonymousService,ze as ApiClientServiceV1Service,B as ApiError,Be as AuthorizedService,je as BookingServiceV1Service,ae as CancelError,Q as CancelablePromise,Me as CheckoutServiceV1Service,He as CompetitionServiceV1Service,$e as CorsService,Ve as LoyaltyServiceV1Service,Ke as MembershipServiceV1Service,o as OpenAPI,We as PlaySessionServiceV1Service,Qe as UserServiceV1Service,yr as bookingRestriction,hr as bookingSubType,Ee as bookingSubscription,gr as bookingUserStatus,Te as cancellationPolicy,Ce as chat,Re as chatCreation,br as chatTarget,Or as clientType,Pr as directionParam,Sr as months,xe as notificationChatGroup,Ue as notificationEntity,ve as pendingPayment,Ne as playSessionSettings,ke as playSessionUser,Ir as playerStatusParam,Ae as playingUserResponse,Er as userChatStatusParam,Tr as userChatTargetParam,De as userPunchCard,Ge as userRelation,Cr as userRelationStatusParam,tr as v1};
|