@matchi/api 0.20260227.1 → 0.20260303.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 +6 -0
- package/dist/main/index.d.ts +6 -0
- 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
|
@@ -3669,6 +3669,7 @@ type UpdateUsersProfilesRequest = {
|
|
|
3669
3669
|
birthday?: string;
|
|
3670
3670
|
city?: string;
|
|
3671
3671
|
country?: string;
|
|
3672
|
+
email?: string;
|
|
3672
3673
|
first_name?: string;
|
|
3673
3674
|
gender?: Gender;
|
|
3674
3675
|
language?: string;
|
|
@@ -4765,6 +4766,11 @@ declare const UpdateUsersProfilesRequestSchema: {
|
|
|
4765
4766
|
readonly minLength: 2;
|
|
4766
4767
|
readonly type: "string";
|
|
4767
4768
|
};
|
|
4769
|
+
readonly email: {
|
|
4770
|
+
readonly format: "email";
|
|
4771
|
+
readonly maxLength: 255;
|
|
4772
|
+
readonly type: "string";
|
|
4773
|
+
};
|
|
4768
4774
|
readonly first_name: {
|
|
4769
4775
|
readonly maxLength: 100;
|
|
4770
4776
|
readonly type: "string";
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3669,6 +3669,7 @@ type UpdateUsersProfilesRequest = {
|
|
|
3669
3669
|
birthday?: string;
|
|
3670
3670
|
city?: string;
|
|
3671
3671
|
country?: string;
|
|
3672
|
+
email?: string;
|
|
3672
3673
|
first_name?: string;
|
|
3673
3674
|
gender?: Gender;
|
|
3674
3675
|
language?: string;
|
|
@@ -4765,6 +4766,11 @@ declare const UpdateUsersProfilesRequestSchema: {
|
|
|
4765
4766
|
readonly minLength: 2;
|
|
4766
4767
|
readonly type: "string";
|
|
4767
4768
|
};
|
|
4769
|
+
readonly email: {
|
|
4770
|
+
readonly format: "email";
|
|
4771
|
+
readonly maxLength: 255;
|
|
4772
|
+
readonly type: "string";
|
|
4773
|
+
};
|
|
4768
4774
|
readonly first_name: {
|
|
4769
4775
|
readonly maxLength: 100;
|
|
4770
4776
|
readonly type: "string";
|
package/dist/main/index.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
`);W=(S=Or.pop())!=null?S:"";for(let Yr of Or){let Jr=Yr.split(`
|
|
6
6
|
`),se=[],Pr;for(let C of Jr)if(C.startsWith("data:"))se.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))Pr=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let Qe=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(Qe)||(G=Qe)}let L,Sr=!1;if(se.length){let C=se.join(`
|
|
7
|
-
`);try{L=JSON.parse(C),Sr=!0}catch(Qe){L=C}}Sr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:Pr,id:g,retry:G}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",gr),We.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let oe=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _(H(oe))}}})}()}};var ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},bt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},De=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(gt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ht(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):$({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},$=({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=bt(i),l=Object.entries(o).map(([d,f])=>$({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var Ot=/\{[^{}]+\}/g,Pt=({path:t,url:e})=>{let r=e,i=e.match(Ot);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,De({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,`;${$({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=Pt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function dr(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 Ar=(t,e)=>y(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 Nr=(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=De(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=$({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},kr=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"}},St=(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},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(St(e,p.name))continue;let n=yield Ar(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}}}),fr=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),mr=(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},It=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?It(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}),Et=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Tt={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},ur),{headers:Tt,parseAs:"auto",querySerializer:Et}),t);var yr=(t={})=>{let e=mr(ee(),t),r=()=>c({},e),i=f=>(e=mr(e,f),r()),o=Dr(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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=fr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:dr(u)}),g=new Request(O,h);for(let S of o.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 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 k={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?kr(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},k)}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},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,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},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>y(null,null,function*(){let P=new Request(g,H);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:dr(O),url:h}))});return{buildUrl:fr,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=yr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Ct,FacilityMessagePayloadSchema:()=>Rt,FacilityOfferConditionActivitiesSchema:()=>vt,FacilityOfferConditionCourtsSchema:()=>At,FacilityOfferConditionDateSchema:()=>Nt,FacilityOfferConditionHoursinadvanceSchema:()=>kt,FacilityOfferConditionSchema:()=>xt,FacilityOfferConditionTimeSchema:()=>Gt,FacilityOfferConditionWeekdaysSchema:()=>Dt,FacilityOfferListSchema:()=>wt,FacilityOfferOrderSchema:()=>_t,FacilityOfferSchema:()=>Ut,FacilityPermissionSchema:()=>qt,FacilityPermissionsResponseSchema:()=>Ft,FacilityPunchCardDataSchema:()=>Lt,FacilityValueCardDataSchema:()=>zt,GenderSchema:()=>Bt,MetadataSchema:()=>jt,NotificationPayloadSchema:()=>$t,NotificationRequestBodySchema:()=>Ht,NotificationSchema:()=>Mt,NotificationsFilterSchema:()=>Vt,NotificationsPaginatedResponseSchema:()=>Kt,NotificationsSummarySchema:()=>Wt,PreferenceSchema:()=>Qt,PreferencesResponseSchema:()=>Yt,SourceSchema:()=>Jt,TopicSchema:()=>Xt,UpdatePreferencesRequestBodySchema:()=>Zt,UpdateUsersProfilesRequestSchema:()=>ei,UserProfileSchema:()=>ri,UserRelationSchema:()=>ti,UsersProfilesPaginatedResponseSchema:()=>ii,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>oi,pkgOpenapiSharedErrorSchema:()=>si,pkgOpenapiSharedErrorsSchema:()=>ai,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ni,pkgOpenapiSharedProblemDetailsSchema:()=>pi});var Ct={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Rt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ut={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"},xt={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"},vt={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"},At={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Nt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},kt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Gt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Dt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},wt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},_t={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"},qt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Ft={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Lt={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"},zt={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"},Bt={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},jt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Mt={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"}]},Ht={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Vt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Kt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Wt={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"},Qt={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"},Yt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Jt={enum:["FACILITY"],type:"string"},Xt={enum:["FACILITY_MESSAGE"],type:"string"},Zt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ei={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"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ri={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ti={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"},ii={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},oi={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"},si={properties:{message:{description:"The error message",type:"string"}},type:"object"},ai={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ni={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"},pi={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))},$e=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/users/{user_id}/facility-permissions"},t))},He=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/{user_id}/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Ve={};pe(Ve,{createFacilityOfferOrderMutation:()=>ui,getNotificationByIdOptions:()=>gi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>fi,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>di,getNotificationsPreferencesOptions:()=>yi,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>Si,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ci,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>li,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>Pi,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>Oi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>mi,updateNotificationMutation:()=>bi,updateNotificationsPreferencesMutation:()=>hi,updateUserProfileMutation:()=>Ii});var N=(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]},Lr=t=>N("ListFacilityOffers",t),li=t=>({queryFn:i=>y(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:Lr(t)}),hr=(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},zr=t=>N("ListFacilityOffers",t,!0),ci=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),di=t=>({queryFn:i=>y(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:Br(t)}),jr=t=>N("GetNotifications",t,!0),fi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),yi=t=>({queryFn:i=>y(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:Mr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),gi=t=>({queryFn:i=>y(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:$r(t)}),bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),Oi=t=>({queryFn:i=>y(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)}),Vr=t=>N("searchUsers",t,!0),Pi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Kr=t=>N("getUserFacilityPermissions",t),Si=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield $e(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)}),Ii=t=>({mutationFn:r=>y(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),Sr=!0}catch(Qe){L=C}}Sr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:Pr,id:g,retry:G}),se.length&&(yield L)}}}finally{F.removeEventListener("abort",gr),We.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let oe=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _(H(oe))}}})}()}};var ht=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gt=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},bt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},De=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(gt(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=ht(i),n=o.map(l=>i==="label"||i==="simple"?t?l:encodeURIComponent(l):$({allowReserved:t,name:r,value:l})).join(p);return i==="label"||i==="matrix"?p+n:n},$=({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=bt(i),l=Object.entries(o).map(([d,f])=>$({allowReserved:t,name:i==="deepObject"?`${r}[${d}]`:d,value:f})).join(n);return i==="label"||i==="matrix"?n+l:l};var Ot=/\{[^{}]+\}/g,Pt=({path:t,url:e})=>{let r=e,i=e.match(Ot);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,De({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,`;${$({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=Pt({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function dr(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 Ar=(t,e)=>y(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 Nr=(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=De(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=$({allowReserved:f.allowReserved,name:l,value:d});u&&n.push(u)}}return n.join("&")}},kr=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"}},St=(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},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=Q(i,["security"]);var o;for(let p of t){if(St(e,p.name))continue;let n=yield Ar(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}}}),fr=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),mr=(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},It=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?It(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}),Et=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Tt={"Content-Type":"application/json"},ee=(t={})=>c(m(c({},ur),{headers:Tt,parseAs:"auto",querySerializer:Et}),t);var yr=(t={})=>{let e=mr(ee(),t),r=()=>c({},e),i=f=>(e=mr(e,f),r()),o=Dr(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:_e(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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=fr(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var V;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:dr(u)}),g=new Request(O,h);for(let S of o.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 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 k={request:g,response:P};if(P.ok){let S=(V=u.parseAs==="auto"?kr(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},k)}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},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,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},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,H)=>y(null,null,function*(){let P=new Request(g,H);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:dr(O),url:h}))});return{buildUrl:fr,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=yr(ee({baseUrl:"https://api.matchi.com/v1"}));var qe={};pe(qe,{ChannelsSchema:()=>Ct,FacilityMessagePayloadSchema:()=>Rt,FacilityOfferConditionActivitiesSchema:()=>vt,FacilityOfferConditionCourtsSchema:()=>At,FacilityOfferConditionDateSchema:()=>Nt,FacilityOfferConditionHoursinadvanceSchema:()=>kt,FacilityOfferConditionSchema:()=>xt,FacilityOfferConditionTimeSchema:()=>Gt,FacilityOfferConditionWeekdaysSchema:()=>Dt,FacilityOfferListSchema:()=>wt,FacilityOfferOrderSchema:()=>_t,FacilityOfferSchema:()=>Ut,FacilityPermissionSchema:()=>qt,FacilityPermissionsResponseSchema:()=>Ft,FacilityPunchCardDataSchema:()=>Lt,FacilityValueCardDataSchema:()=>zt,GenderSchema:()=>Bt,MetadataSchema:()=>jt,NotificationPayloadSchema:()=>$t,NotificationRequestBodySchema:()=>Ht,NotificationSchema:()=>Mt,NotificationsFilterSchema:()=>Vt,NotificationsPaginatedResponseSchema:()=>Kt,NotificationsSummarySchema:()=>Wt,PreferenceSchema:()=>Qt,PreferencesResponseSchema:()=>Yt,SourceSchema:()=>Jt,TopicSchema:()=>Xt,UpdatePreferencesRequestBodySchema:()=>Zt,UpdateUsersProfilesRequestSchema:()=>ei,UserProfileSchema:()=>ri,UserRelationSchema:()=>ti,UsersProfilesPaginatedResponseSchema:()=>ii,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>oi,pkgOpenapiSharedErrorSchema:()=>si,pkgOpenapiSharedErrorsSchema:()=>ai,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ni,pkgOpenapiSharedProblemDetailsSchema:()=>pi});var Ct={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Rt={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ut={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"},xt={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"},vt={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"},At={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Nt={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},kt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Gt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Dt={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},wt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},_t={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"},qt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Ft={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Lt={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"},zt={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"},Bt={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},jt={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Mt={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"}]},Ht={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Vt={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Kt={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Wt={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"},Qt={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"},Yt={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},Jt={enum:["FACILITY"],type:"string"},Xt={enum:["FACILITY_MESSAGE"],type:"string"},Zt={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ei={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ri={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ti={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"},ii={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},oi={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"},si={properties:{message:{description:"The error message",type:"string"}},type:"object"},ai={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ni={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"},pi={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))},$e=t=>{var e;return((e=t.client)!=null?e:T).get(c({url:"/users/{user_id}/facility-permissions"},t))},He=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/{user_id}/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Ve={};pe(Ve,{createFacilityOfferOrderMutation:()=>ui,getNotificationByIdOptions:()=>gi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>fi,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>di,getNotificationsPreferencesOptions:()=>yi,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>Si,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ci,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>li,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>Pi,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>Oi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>mi,updateNotificationMutation:()=>bi,updateNotificationsPreferencesMutation:()=>hi,updateUserProfileMutation:()=>Ii});var N=(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]},Lr=t=>N("ListFacilityOffers",t),li=t=>({queryFn:i=>y(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:Lr(t)}),hr=(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},zr=t=>N("ListFacilityOffers",t,!0),ci=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),di=t=>({queryFn:i=>y(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:Br(t)}),jr=t=>N("GetNotifications",t,!0),fi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Le(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),yi=t=>({queryFn:i=>y(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:Mr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Be(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),gi=t=>({queryFn:i=>y(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:$r(t)}),bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Me(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),Oi=t=>({queryFn:i=>y(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)}),Vr=t=>N("searchUsers",t,!0),Pi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=hr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield ie(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Kr=t=>N("getUserFacilityPermissions",t),Si=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield $e(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)}),Ii=t=>({mutationFn:r=>y(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 cr=Object.defineProperty,Xr=Object.defineProperties;var Zr=Object.getOwnProp
|
|
|
4
4
|
|
|
5
5
|
`);K=(S=ar.pop())!=null?S:"";for(let Yr of ar){let Jr=Yr.split(`
|
|
6
6
|
`),oe=[],nr;for(let C of Jr)if(C.startsWith("data:"))oe.push(C.replace(/^data:\s*/,""));else if(C.startsWith("event:"))nr=C.replace(/^event:\s*/,"");else if(C.startsWith("id:"))g=C.replace(/^id:\s*/,"");else if(C.startsWith("retry:")){let Ie=Number.parseInt(C.replace(/^retry:\s*/,""),10);Number.isNaN(Ie)||(G=Ie)}let L,pr=!1;if(oe.length){let C=oe.join(`
|
|
7
|
-
`);try{L=JSON.parse(C),pr=!0}catch(Ie){L=C}}pr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:nr,id:g,retry:G}),oe.length&&(yield L)}}}finally{F.removeEventListener("abort",or),Se.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let ie=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _($(ie))}}})}()}};var dt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ft=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},mt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(ft(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=dt(i),n=o.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: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=mt(i),l=Object.entries(o).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 yt=/\{[^{}]+\}/g,ht=({path:t,url:e})=>{let r=e,i=e.match(yt);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,pe({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,le({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${M({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=ht({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Xe(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 Ar=(t,e)=>y(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 Nr=(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("&")}},kr=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"}},gt=(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},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=W(i,["security"]);var o;for(let p of t){if(gt(e,p.name))continue;let n=yield Ar(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}}}),Ze=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),er=(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},bt=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?bt(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},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}),Ot=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Pt={"Content-Type":"application/json"},Z=(t={})=>c(m(c({},Je),{headers:Pt,parseAs:"auto",querySerializer:Ot}),t);var rr=(t={})=>{let e=er(Z(),t),r=()=>c({},e),i=f=>(e=er(e,f),r()),o=Dr(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:ce(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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=Ze(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var H;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:Xe(u)}),g=new Request(O,h);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 k={request:g,response:P};if(P.ok){let S=(H=u.parseAs==="auto"?kr(P.headers.get("Content-Type")):u.parseAs)!=null?H:"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},k)}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},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,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},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,$)=>y(null,null,function*(){let P=new Request(g,$);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:Xe(O),url:h}))});return{buildUrl:Ze,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=rr(Z({baseUrl:"https://api.matchi.com/v1"}));var ue={};Ee(ue,{ChannelsSchema:()=>St,FacilityMessagePayloadSchema:()=>It,FacilityOfferConditionActivitiesSchema:()=>Ct,FacilityOfferConditionCourtsSchema:()=>Rt,FacilityOfferConditionDateSchema:()=>Ut,FacilityOfferConditionHoursinadvanceSchema:()=>xt,FacilityOfferConditionSchema:()=>Tt,FacilityOfferConditionTimeSchema:()=>vt,FacilityOfferConditionWeekdaysSchema:()=>At,FacilityOfferListSchema:()=>Nt,FacilityOfferOrderSchema:()=>kt,FacilityOfferSchema:()=>Et,FacilityPermissionSchema:()=>Gt,FacilityPermissionsResponseSchema:()=>Dt,FacilityPunchCardDataSchema:()=>wt,FacilityValueCardDataSchema:()=>_t,GenderSchema:()=>qt,MetadataSchema:()=>Ft,NotificationPayloadSchema:()=>zt,NotificationRequestBodySchema:()=>Bt,NotificationSchema:()=>Lt,NotificationsFilterSchema:()=>jt,NotificationsPaginatedResponseSchema:()=>Mt,NotificationsSummarySchema:()=>$t,PreferenceSchema:()=>Ht,PreferencesResponseSchema:()=>Vt,SourceSchema:()=>Kt,TopicSchema:()=>Wt,UpdatePreferencesRequestBodySchema:()=>Qt,UpdateUsersProfilesRequestSchema:()=>Yt,UserProfileSchema:()=>Jt,UserRelationSchema:()=>Xt,UsersProfilesPaginatedResponseSchema:()=>Zt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ei,pkgOpenapiSharedErrorSchema:()=>ri,pkgOpenapiSharedErrorsSchema:()=>ti,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ii,pkgOpenapiSharedProblemDetailsSchema:()=>oi});var St={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},It={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Et={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"},Tt={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"},Ct={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"},Rt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ut={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},xt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},vt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},At={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Nt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},kt={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"},Gt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Dt={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],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","NOT_SPECIFIED"],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"},$t={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"},Ht={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"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Jt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Xt={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"},Zt={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ei={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"},ri={properties:{message:{description:"The error message",type:"string"}},type:"object"},ti={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ii={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"},oi={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).get(c({url:"/users/{user_id}/facility-permissions"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/{user_id}/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Pe={};Ee(Pe,{createFacilityOfferOrderMutation:()=>ni,getNotificationByIdOptions:()=>fi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>li,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>pi,getNotificationsPreferencesOptions:()=>ui,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>gi,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ai,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>si,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>hi,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>yi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ci,updateNotificationMutation:()=>mi,updateNotificationsPreferencesMutation:()=>di,updateUserProfileMutation:()=>bi});var N=(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]},Lr=t=>N("ListFacilityOffers",t),si=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ee(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Lr(t)}),tr=(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},zr=t=>N("ListFacilityOffers",t,!0),ai=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield ee(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),ni=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield de(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),pi=t=>({queryFn:i=>y(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:Br(t)}),jr=t=>N("GetNotifications",t,!0),li=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),ui=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield me(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),di=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield ye(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),fi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield he(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:$r(t)}),mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield ge(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),yi=t=>({queryFn:i=>y(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:Hr(t)}),Vr=t=>N("searchUsers",t,!0),hi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Kr=t=>N("getUserFacilityPermissions",t),gi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield be(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)}),bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Oe(m(c(c({},t),r),{throwOnError:!0}));return i})});export{Le as ActivityServiceV1Service,ze as AnonymousService,Be as ApiClientServiceV1Service,B as ApiError,je as AuthorizedService,Me as BookingServiceV1Service,ae as CancelError,Q as CancelablePromise,$e as CheckoutServiceV1Service,He as CompetitionServiceV1Service,Ve as CorsService,Ke as LoyaltyServiceV1Service,We as MembershipServiceV1Service,s as OpenAPI,Qe as PlaySessionServiceV1Service,Ye as UserServiceV1Service,hr as bookingRestriction,gr as bookingSubType,Te as bookingSubscription,br as bookingUserStatus,Ce as cancellationPolicy,Re as chat,Ue as chatCreation,Or as chatTarget,Pr as clientType,Sr as directionParam,Ir as months,xe as notificationChatGroup,ve as notificationEntity,Ae as pendingPayment,ke as playSessionSettings,Ge as playSessionUser,Er as playerStatusParam,Ne as playingUserResponse,Tr as userChatStatusParam,Cr as userChatTargetParam,De as userPunchCard,we as userRelation,Rr as userRelationStatusParam,ir as v1};
|
|
7
|
+
`);try{L=JSON.parse(C),pr=!0}catch(Ie){L=C}}pr&&(o&&(yield new _(o(L))),i&&(L=yield new _(i(L)))),r==null||r({data:L,event:nr,id:g,retry:G}),oe.length&&(yield L)}}}finally{F.removeEventListener("abort",or),Se.releaseLock()}break}catch(I){if(e==null||e(I),n!==void 0&&x>=n)break;let ie=Math.min(G*2**(x-1),l!=null?l:3e4);yield new _($(ie))}}})}()}};var dt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ft=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},mt=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=({allowReserved:t,explode:e,name:r,style:i,value:o})=>{if(!e){let l=(t?o:o.map(d=>encodeURIComponent(d))).join(ft(i));switch(i){case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;case"simple":return l;default:return`${r}=${l}`}}let p=dt(i),n=o.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: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=mt(i),l=Object.entries(o).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 yt=/\{[^{}]+\}/g,ht=({path:t,url:e})=>{let r=e,i=e.match(yt);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,pe({explode:p,name:n,style:l,value:d}));continue}if(typeof d=="object"){r=r.replace(o,le({explode:p,name:n,style:l,value:d,valueOnly:!0}));continue}if(l==="matrix"){r=r.replace(o,`;${M({name:n,value:d})}`);continue}let f=encodeURIComponent(l==="label"?`.${d}`:d);r=r.replace(o,f)}return r},vr=({baseUrl:t,path:e,query:r,querySerializer:i,url:o})=>{let p=o.startsWith("/")?o:`/${o}`,n=(t!=null?t:"")+p;e&&(n=ht({path:e,url:n}));let l=r?i(r):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(n+=`?${l}`),n};function Xe(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 Ar=(t,e)=>y(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 Nr=(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("&")}},kr=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"}},gt=(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},Gr=r=>y(null,null,function*(){var i=r,{security:t}=i,e=W(i,["security"]);var o;for(let p of t){if(gt(e,p.name))continue;let n=yield Ar(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}}}),Ze=t=>vr({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Nr(t.querySerializer),url:t.url}),er=(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},bt=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?bt(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},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}),Ot=Nr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Pt={"Content-Type":"application/json"},Z=(t={})=>c(m(c({},Je),{headers:Pt,parseAs:"auto",querySerializer:Ot}),t);var rr=(t={})=>{let e=er(Z(),t),r=()=>c({},e),i=f=>(e=er(e,f),r()),o=Dr(),p=f=>y(null,null,function*(){var h,g;let u=m(c(c({},e),f),{fetch:(g=(h=f.fetch)!=null?h:e.fetch)!=null?g:globalThis.fetch,headers:ce(e.headers,f.headers),serializedBody:void 0});u.security&&(yield Gr(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=Ze(u);return{opts:u,url:O}}),n=f=>y(null,null,function*(){var H;let{opts:u,url:O}=yield p(f),h=m(c({redirect:"follow"},u),{body:Xe(u)}),g=new Request(O,h);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 k={request:g,response:P};if(P.ok){let S=(H=u.parseAs==="auto"?kr(P.headers.get("Content-Type")):u.parseAs)!=null?H:"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},k)}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},k)}return S==="json"&&(u.responseValidator&&(yield u.responseValidator(E)),u.responseTransformer&&(E=yield u.responseTransformer(E))),u.responseStyle==="data"?E:c({data:E},k)}let G=yield P.text(),x;try{x=JSON.parse(G)}catch(S){}let F=x!=null?x:G,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},k)}),l=f=>u=>n(m(c({},u),{method:f})),d=f=>u=>y(null,null,function*(){let{opts:O,url:h}=yield p(u);return xr(m(c({},O),{body:O.body,headers:O.headers,method:f,onRequest:(g,$)=>y(null,null,function*(){let P=new Request(g,$);for(let k of o.request.fns)k&&(P=yield k(P,O));return P}),serializedBody:Xe(O),url:h}))});return{buildUrl:Ze,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=rr(Z({baseUrl:"https://api.matchi.com/v1"}));var ue={};Ee(ue,{ChannelsSchema:()=>St,FacilityMessagePayloadSchema:()=>It,FacilityOfferConditionActivitiesSchema:()=>Ct,FacilityOfferConditionCourtsSchema:()=>Rt,FacilityOfferConditionDateSchema:()=>Ut,FacilityOfferConditionHoursinadvanceSchema:()=>xt,FacilityOfferConditionSchema:()=>Tt,FacilityOfferConditionTimeSchema:()=>vt,FacilityOfferConditionWeekdaysSchema:()=>At,FacilityOfferListSchema:()=>Nt,FacilityOfferOrderSchema:()=>kt,FacilityOfferSchema:()=>Et,FacilityPermissionSchema:()=>Gt,FacilityPermissionsResponseSchema:()=>Dt,FacilityPunchCardDataSchema:()=>wt,FacilityValueCardDataSchema:()=>_t,GenderSchema:()=>qt,MetadataSchema:()=>Ft,NotificationPayloadSchema:()=>zt,NotificationRequestBodySchema:()=>Bt,NotificationSchema:()=>Lt,NotificationsFilterSchema:()=>jt,NotificationsPaginatedResponseSchema:()=>Mt,NotificationsSummarySchema:()=>$t,PreferenceSchema:()=>Ht,PreferencesResponseSchema:()=>Vt,SourceSchema:()=>Kt,TopicSchema:()=>Wt,UpdatePreferencesRequestBodySchema:()=>Qt,UpdateUsersProfilesRequestSchema:()=>Yt,UserProfileSchema:()=>Jt,UserRelationSchema:()=>Xt,UsersProfilesPaginatedResponseSchema:()=>Zt,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>ei,pkgOpenapiSharedErrorSchema:()=>ri,pkgOpenapiSharedErrorsSchema:()=>ti,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>ii,pkgOpenapiSharedProblemDetailsSchema:()=>oi});var St={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},It={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Et={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"},Tt={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"},Ct={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"},Rt={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ut={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},xt={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},vt={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},At={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Nt={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},kt={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"},Gt={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Dt={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],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","NOT_SPECIFIED"],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"},$t={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"},Ht={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"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},Jt={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Xt={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"},Zt={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ei={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"},ri={properties:{message:{description:"The error message",type:"string"}},type:"object"},ti={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},ii={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"},oi={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).get(c({url:"/users/{user_id}/facility-permissions"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:T).patch(m(c({url:"/users/{user_id}/profiles"},t),{headers:c({"Content-Type":"application/json"},t.headers)}))};var wr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},_r={FACILITY:"FACILITY"},qr={FACILITY_MESSAGE:"FACILITY_MESSAGE"},Fr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION"};var Pe={};Ee(Pe,{createFacilityOfferOrderMutation:()=>ni,getNotificationByIdOptions:()=>fi,getNotificationByIdQueryKey:()=>$r,getNotificationsInfiniteOptions:()=>li,getNotificationsInfiniteQueryKey:()=>jr,getNotificationsOptions:()=>pi,getNotificationsPreferencesOptions:()=>ui,getNotificationsPreferencesQueryKey:()=>Mr,getNotificationsQueryKey:()=>Br,getUserFacilityPermissionsOptions:()=>gi,getUserFacilityPermissionsQueryKey:()=>Kr,listFacilityOffersInfiniteOptions:()=>ai,listFacilityOffersInfiniteQueryKey:()=>zr,listFacilityOffersOptions:()=>si,listFacilityOffersQueryKey:()=>Lr,searchUsersInfiniteOptions:()=>hi,searchUsersInfiniteQueryKey:()=>Vr,searchUsersOptions:()=>yi,searchUsersQueryKey:()=>Hr,updateAllNotificationsMutation:()=>ci,updateNotificationMutation:()=>mi,updateNotificationsPreferencesMutation:()=>di,updateUserProfileMutation:()=>bi});var N=(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]},Lr=t=>N("ListFacilityOffers",t),si=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield ee(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Lr(t)}),tr=(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},zr=t=>N("ListFacilityOffers",t,!0),ai=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield ee(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:zr(t)}),ni=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield de(m(c(c({},t),r),{throwOnError:!0}));return i})}),Br=t=>N("GetNotifications",t),pi=t=>({queryFn:i=>y(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:Br(t)}),jr=t=>N("GetNotifications",t,!0),li=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{cursor:e}}),{data:l}=yield re(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:jr(t)}),ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield fe(m(c(c({},t),r),{throwOnError:!0}));return i})}),Mr=t=>N("GetNotificationsPreferences",t),ui=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield me(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Mr(t)}),di=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield ye(m(c(c({},t),r),{throwOnError:!0}));return i})}),$r=t=>N("GetNotificationById",t),fi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield he(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:$r(t)}),mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield ge(m(c(c({},t),r),{throwOnError:!0}));return i})}),Hr=t=>N("searchUsers",t),yi=t=>({queryFn:i=>y(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:Hr(t)}),Vr=t=>N("searchUsers",t,!0),hi=t=>({queryFn:o=>y(null,[o],function*({pageParam:e,queryKey:r,signal:i}){let n=tr(r,typeof e=="object"?e:{query:{offset:e}}),{data:l}=yield te(m(c(c({},t),n),{signal:i,throwOnError:!0}));return l}),queryKey:Vr(t)}),Kr=t=>N("getUserFacilityPermissions",t),gi=t=>({queryFn:i=>y(null,[i],function*({queryKey:e,signal:r}){let{data:o}=yield be(m(c(c({},t),e[0]),{signal:r,throwOnError:!0}));return o}),queryKey:Kr(t)}),bi=t=>({mutationFn:r=>y(null,null,function*(){let{data:i}=yield Oe(m(c(c({},t),r),{throwOnError:!0}));return i})});export{Le as ActivityServiceV1Service,ze as AnonymousService,Be as ApiClientServiceV1Service,B as ApiError,je as AuthorizedService,Me as BookingServiceV1Service,ae as CancelError,Q as CancelablePromise,$e as CheckoutServiceV1Service,He as CompetitionServiceV1Service,Ve as CorsService,Ke as LoyaltyServiceV1Service,We as MembershipServiceV1Service,s as OpenAPI,Qe as PlaySessionServiceV1Service,Ye as UserServiceV1Service,hr as bookingRestriction,gr as bookingSubType,Te as bookingSubscription,br as bookingUserStatus,Ce as cancellationPolicy,Re as chat,Ue as chatCreation,Or as chatTarget,Pr as clientType,Sr as directionParam,Ir as months,xe as notificationChatGroup,ve as notificationEntity,Ae as pendingPayment,ke as playSessionSettings,Ge as playSessionUser,Er as playerStatusParam,Ne as playingUserResponse,Tr as userChatStatusParam,Cr as userChatTargetParam,De as userPunchCard,we as userRelation,Rr as userRelationStatusParam,ir as v1};
|