@matchi/api 0.20240430.1 → 0.20240516.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/index.d.mts +27 -9
- package/dist/index.d.ts +27 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -398,11 +398,11 @@ type bookingUser = {
|
|
|
398
398
|
email?: string;
|
|
399
399
|
/**
|
|
400
400
|
* Booking status.
|
|
401
|
-
* * `UNAPPROVED` - User
|
|
401
|
+
* * `UNAPPROVED` - User with a request that hasn’t been yet approved by the OWNER when approval is required.
|
|
402
402
|
* * `UNCONFIRMED` - User has been added directly by the OWNER or has been approved by the OWNER following a request to join. User is required to confirm to claim to become PARTICIPANT or CO-BOOKER.
|
|
403
|
-
* * `
|
|
404
|
-
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
405
|
-
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order. Cannot be removed by anyone.
|
|
403
|
+
* * `DECLINED` - User has been declined by the OWNER fallowing a request to join.
|
|
404
|
+
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
405
|
+
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order or was a customer at the venue at the time the booking was created. Cannot be removed by anyone.
|
|
406
406
|
* * `OWNER` - The one responsible for the booking. Cannot be removed by anyone.
|
|
407
407
|
*
|
|
408
408
|
*/
|
|
@@ -411,18 +411,18 @@ type bookingUser = {
|
|
|
411
411
|
declare namespace bookingUser {
|
|
412
412
|
/**
|
|
413
413
|
* Booking status.
|
|
414
|
-
* * `UNAPPROVED` - User
|
|
414
|
+
* * `UNAPPROVED` - User with a request that hasn’t been yet approved by the OWNER when approval is required.
|
|
415
415
|
* * `UNCONFIRMED` - User has been added directly by the OWNER or has been approved by the OWNER following a request to join. User is required to confirm to claim to become PARTICIPANT or CO-BOOKER.
|
|
416
|
-
* * `
|
|
417
|
-
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
418
|
-
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order. Cannot be removed by anyone.
|
|
416
|
+
* * `DECLINED` - User has been declined by the OWNER fallowing a request to join.
|
|
417
|
+
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
418
|
+
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order or was a customer at the venue at the time the booking was created. Cannot be removed by anyone.
|
|
419
419
|
* * `OWNER` - The one responsible for the booking. Cannot be removed by anyone.
|
|
420
420
|
*
|
|
421
421
|
*/
|
|
422
422
|
enum status {
|
|
423
423
|
UNAPPROVED = "UNAPPROVED",
|
|
424
424
|
UNCONFIRMED = "UNCONFIRMED",
|
|
425
|
-
|
|
425
|
+
DECLINED = "DECLINED",
|
|
426
426
|
PARTICIPANT = "PARTICIPANT",
|
|
427
427
|
CO_BOOKER = "CO-BOOKER",
|
|
428
428
|
OWNER = "OWNER"
|
|
@@ -1684,6 +1684,15 @@ declare class AuthorizedService {
|
|
|
1684
1684
|
* @throws ApiError
|
|
1685
1685
|
*/
|
|
1686
1686
|
static getUserPlaySessionsUpcoming(): CancelablePromise<Array<playSession>>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Get active open play sessions
|
|
1689
|
+
* @param facilityIds String ID of the facilities
|
|
1690
|
+
* @param startDateTime String start DateTime (UTC) for filter sessions
|
|
1691
|
+
* @param endDateTime String end DateTime (UTC) for filter sessions
|
|
1692
|
+
* @returns playSession List of open play session available for the user
|
|
1693
|
+
* @throws ApiError
|
|
1694
|
+
*/
|
|
1695
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp): CancelablePromise<Array<playSession>>;
|
|
1687
1696
|
/**
|
|
1688
1697
|
* Add user to waitlist on occasion with id
|
|
1689
1698
|
* @param id Activity occasion id
|
|
@@ -2091,6 +2100,15 @@ declare class PlaySessionServiceV1Service {
|
|
|
2091
2100
|
* @throws ApiError
|
|
2092
2101
|
*/
|
|
2093
2102
|
static getUserPlaySessionsUpcoming(): CancelablePromise<Array<playSession>>;
|
|
2103
|
+
/**
|
|
2104
|
+
* Get active open play sessions
|
|
2105
|
+
* @param facilityIds String ID of the facilities
|
|
2106
|
+
* @param startDateTime String start DateTime (UTC) for filter sessions
|
|
2107
|
+
* @param endDateTime String end DateTime (UTC) for filter sessions
|
|
2108
|
+
* @returns playSession List of open play session available for the user
|
|
2109
|
+
* @throws ApiError
|
|
2110
|
+
*/
|
|
2111
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp): CancelablePromise<Array<playSession>>;
|
|
2094
2112
|
}
|
|
2095
2113
|
|
|
2096
2114
|
declare class UserServiceV1Service {
|
package/dist/index.d.ts
CHANGED
|
@@ -398,11 +398,11 @@ type bookingUser = {
|
|
|
398
398
|
email?: string;
|
|
399
399
|
/**
|
|
400
400
|
* Booking status.
|
|
401
|
-
* * `UNAPPROVED` - User
|
|
401
|
+
* * `UNAPPROVED` - User with a request that hasn’t been yet approved by the OWNER when approval is required.
|
|
402
402
|
* * `UNCONFIRMED` - User has been added directly by the OWNER or has been approved by the OWNER following a request to join. User is required to confirm to claim to become PARTICIPANT or CO-BOOKER.
|
|
403
|
-
* * `
|
|
404
|
-
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
405
|
-
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order. Cannot be removed by anyone.
|
|
403
|
+
* * `DECLINED` - User has been declined by the OWNER fallowing a request to join.
|
|
404
|
+
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
405
|
+
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order or was a customer at the venue at the time the booking was created. Cannot be removed by anyone.
|
|
406
406
|
* * `OWNER` - The one responsible for the booking. Cannot be removed by anyone.
|
|
407
407
|
*
|
|
408
408
|
*/
|
|
@@ -411,18 +411,18 @@ type bookingUser = {
|
|
|
411
411
|
declare namespace bookingUser {
|
|
412
412
|
/**
|
|
413
413
|
* Booking status.
|
|
414
|
-
* * `UNAPPROVED` - User
|
|
414
|
+
* * `UNAPPROVED` - User with a request that hasn’t been yet approved by the OWNER when approval is required.
|
|
415
415
|
* * `UNCONFIRMED` - User has been added directly by the OWNER or has been approved by the OWNER following a request to join. User is required to confirm to claim to become PARTICIPANT or CO-BOOKER.
|
|
416
|
-
* * `
|
|
417
|
-
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
418
|
-
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order. Cannot be removed by anyone.
|
|
416
|
+
* * `DECLINED` - User has been declined by the OWNER fallowing a request to join.
|
|
417
|
+
* * `PARTICIPANT` - User has confirmed participation in the booking without paying being required.
|
|
418
|
+
* * `CO-BOOKER` - User has confirmed participation in the booking by paying a part of the order or was a customer at the venue at the time the booking was created. Cannot be removed by anyone.
|
|
419
419
|
* * `OWNER` - The one responsible for the booking. Cannot be removed by anyone.
|
|
420
420
|
*
|
|
421
421
|
*/
|
|
422
422
|
enum status {
|
|
423
423
|
UNAPPROVED = "UNAPPROVED",
|
|
424
424
|
UNCONFIRMED = "UNCONFIRMED",
|
|
425
|
-
|
|
425
|
+
DECLINED = "DECLINED",
|
|
426
426
|
PARTICIPANT = "PARTICIPANT",
|
|
427
427
|
CO_BOOKER = "CO-BOOKER",
|
|
428
428
|
OWNER = "OWNER"
|
|
@@ -1684,6 +1684,15 @@ declare class AuthorizedService {
|
|
|
1684
1684
|
* @throws ApiError
|
|
1685
1685
|
*/
|
|
1686
1686
|
static getUserPlaySessionsUpcoming(): CancelablePromise<Array<playSession>>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Get active open play sessions
|
|
1689
|
+
* @param facilityIds String ID of the facilities
|
|
1690
|
+
* @param startDateTime String start DateTime (UTC) for filter sessions
|
|
1691
|
+
* @param endDateTime String end DateTime (UTC) for filter sessions
|
|
1692
|
+
* @returns playSession List of open play session available for the user
|
|
1693
|
+
* @throws ApiError
|
|
1694
|
+
*/
|
|
1695
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp): CancelablePromise<Array<playSession>>;
|
|
1687
1696
|
/**
|
|
1688
1697
|
* Add user to waitlist on occasion with id
|
|
1689
1698
|
* @param id Activity occasion id
|
|
@@ -2091,6 +2100,15 @@ declare class PlaySessionServiceV1Service {
|
|
|
2091
2100
|
* @throws ApiError
|
|
2092
2101
|
*/
|
|
2093
2102
|
static getUserPlaySessionsUpcoming(): CancelablePromise<Array<playSession>>;
|
|
2103
|
+
/**
|
|
2104
|
+
* Get active open play sessions
|
|
2105
|
+
* @param facilityIds String ID of the facilities
|
|
2106
|
+
* @param startDateTime String start DateTime (UTC) for filter sessions
|
|
2107
|
+
* @param endDateTime String end DateTime (UTC) for filter sessions
|
|
2108
|
+
* @returns playSession List of open play session available for the user
|
|
2109
|
+
* @throws ApiError
|
|
2110
|
+
*/
|
|
2111
|
+
static getUserPlaySessionsMarketplace(facilityIds: Array<string>, startDateTime: timeStamp, endDateTime: timeStamp): CancelablePromise<Array<playSession>>;
|
|
2094
2112
|
}
|
|
2095
2113
|
|
|
2096
2114
|
declare class UserServiceV1Service {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty,le=Object.defineProperties,pe=Object.getOwnPropertyDescriptor,ue=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var te=(o,e,r)=>e in o?O(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e)=>{for(var r in e||(e={}))ie.call(e,r)&&te(o,r,e[r]);if(oe)for(var r of oe(e))me.call(e,r)&&te(o,r,e[r]);return o},se=(o,e)=>le(o,ue(e));var de=(o,e)=>{for(var r in e)O(o,r,{get:e[r],enumerable:!0})},fe=(o,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ce(e))!ie.call(o,a)&&a!==r&&O(o,a,{get:()=>e[a],enumerable:!(s=pe(e,a))||s.enumerable});return o};var ye=o=>fe(O({},"__esModule",{value:!0}),o);var ae=(o,e,r)=>{if(!e.has(o))throw TypeError("Cannot "+r)};var c=(o,e,r)=>(ae(o,e,"read from private field"),r?r.call(o):e.get(o)),I=(o,e,r)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,r)},y=(o,e,r,s)=>(ae(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r);var P=(o,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(o,e)).next())});var Re={};de(Re,{ActivityServiceV1Service:()=>N,AnonymousService:()=>L,ApiClientServiceV1Service:()=>j,ApiError:()=>S,AuthorizedService:()=>M,BookingServiceV1Service:()=>_,CancelError:()=>k,CancelablePromise:()=>C,CheckoutServiceV1Service:()=>F,CompetitionServiceV1Service:()=>H,CorsService:()=>W,LoyaltyServiceV1Service:()=>Y,MembershipServiceV1Service:()=>$,OpenAPI:()=>t,PlaySessionServiceV1Service:()=>V,UserServiceV1Service:()=>K,bookingSubType:()=>J,bookingSubscription:()=>G,bookingUser:()=>w,cancellationPolicy:()=>D,clientType:()=>Q,months:()=>X,pendingPayment:()=>q,playingUserResponse:()=>z});module.exports=ye(Re);var S=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var k=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,v,U,E,C=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,v,void 0);I(this,U,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,v,new Promise((r,s)=>{y(this,U,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,U))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,v).then(e,r)}catch(e){return c(this,v).catch(e)}finally(e){return c(this,v).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new k("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,v=new WeakMap,U=new WeakMap,E=new WeakMap;var t={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let o;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(o=e.weekday||(e.weekday={}))})(G||(G={}));var J=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(J||{});var w;(e=>{let o;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DELETED="DELETED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(o=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let o;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(o=e.itemType||(e.itemType={}))})(D||(D={}));var Q=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Q||{});var X=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(X||{});var q;(e=>{let o;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(o=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let o;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(o=e.status||(e.status={}))})(z||(z={}));var ee=o=>o!=null,x=o=>typeof o=="string",Z=o=>x(o)&&o!=="",re=o=>typeof o=="object"&&typeof o.type=="string"&&typeof o.stream=="function"&&typeof o.arrayBuffer=="function"&&typeof o.constructor=="function"&&typeof o.constructor.name=="string"&&/^(Blob|File)$/.test(o.constructor.name)&&/^(Blob|File)$/.test(o[Symbol.toStringTag]),ne=o=>o instanceof FormData,be=o=>{try{return btoa(o)}catch(e){return Buffer.from(o).toString("base64")}},ge=o=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{ee(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(o).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},he=(o,e)=>{let r=o.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",o.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${o.BASE}${s}`;return e.query?`${a}${ge(e.query)}`:a},Ie=o=>{if(o.formData){let e=new FormData,r=(s,a)=>{x(a)||re(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(o.formData).filter(([s,a])=>ee(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},B=(o,e)=>P(void 0,null,function*(){return typeof e=="function"?e(o):e}),Te=(o,e)=>P(void 0,null,function*(){let r=yield B(e,o.TOKEN),s=yield B(e,o.USERNAME),a=yield B(e,o.PASSWORD),l=yield B(e,o.HEADERS),n=Object.entries(A(A({Accept:"application/json"},l),e.headers)).filter(([u,p])=>ee(p)).reduce((u,[p,d])=>se(A({},u),{[p]:String(d)}),{});if(Z(r)&&(n.Authorization=`Bearer ${r}`),Z(s)&&Z(a)){let u=be(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:re(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":x(e.body)?n["Content-Type"]="text/plain":ne(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Se=o=>{var e;if(o.body!==void 0)return(e=o.mediaType)!=null&&e.includes("/json")?JSON.stringify(o.body):x(o.body)||re(o.body)||ne(o.body)?o.body:JSON.stringify(o.body)},ve=(o,e,r,s,a,l,n)=>P(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return o.WITH_CREDENTIALS&&(p.credentials=o.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),Pe=(o,e)=>{if(e){let r=o.headers.get(e);if(x(r))return r}},Ee=o=>P(void 0,null,function*(){if(o.status!==204)try{let e=o.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield o.json():yield o.text()}catch(e){console.error(e)}}),Ce=(o,e)=>{var a,l;let s=A({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},o.errors)[e.status];if(s)throw new S(o,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new S(o,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},i=(o,e)=>new C((r,s,a)=>P(void 0,null,function*(){try{let l=he(o,e),n=Ie(e),u=Se(e),p=yield Te(o,e);if(!a.isCancelled){let d=yield ve(o,e,l,u,n,p,a),f=yield Ee(d),R=Pe(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:R!=null?R:f};Ce(e,m),r(m.body)}}catch(l){s(l)}}));var N=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var L=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,R,m=10){return i(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:R,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return i(t,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return i(t,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return i(t,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return i(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return i(t,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return i(t,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return i(t,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return i(t,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(t,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static getApiClientList(e,r=10){return i(t,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(t,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(t,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(t,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static getActivityOccasionPrice(e,r){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return i(t,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(t,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return i(t,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return i(t,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return i(t,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return i(t,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return i(t,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return i(t,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return i(t,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return i(t,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return i(t,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return i(t,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return i(t,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(t,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(t,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return i(t,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return i(t,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return i(t,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(t,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(t,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(t,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(t,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return i(t,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return i(t,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return i(t,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return i(t,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return i(t,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return i(t,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return i(t,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return i(t,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return i(t,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(t,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(t,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(t,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(t,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(t,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(t,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(t,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(t,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getCheckout(e){return i(t,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static updateCompetitionAccount(e){return i(t,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static options(e){return i(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Y=class{static createPromoCode(e){return i(t,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static createMembership(e){return i(t,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return i(t,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var V=class{static getPlaySessionById(e){return i(t,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return i(t,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return i(t,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return i(t,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return i(t,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return i(t,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return i(t,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return i(t,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(t,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(t,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static getUserProfile(e){return i(t,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(t,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return i(t,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return i(t,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return i(t,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return i(t,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingSubType,bookingSubscription,bookingUser,cancellationPolicy,clientType,months,pendingPayment,playingUserResponse});
|
|
1
|
+
"use strict";var O=Object.defineProperty,le=Object.defineProperties,pe=Object.getOwnPropertyDescriptor,ue=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertyNames,oe=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var te=(o,e,r)=>e in o?O(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e)=>{for(var r in e||(e={}))ie.call(e,r)&&te(o,r,e[r]);if(oe)for(var r of oe(e))me.call(e,r)&&te(o,r,e[r]);return o},se=(o,e)=>le(o,ue(e));var de=(o,e)=>{for(var r in e)O(o,r,{get:e[r],enumerable:!0})},fe=(o,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ce(e))!ie.call(o,a)&&a!==r&&O(o,a,{get:()=>e[a],enumerable:!(s=pe(e,a))||s.enumerable});return o};var ye=o=>fe(O({},"__esModule",{value:!0}),o);var ae=(o,e,r)=>{if(!e.has(o))throw TypeError("Cannot "+r)};var c=(o,e,r)=>(ae(o,e,"read from private field"),r?r.call(o):e.get(o)),I=(o,e,r)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,r)},y=(o,e,r,s)=>(ae(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r);var P=(o,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(o,e)).next())});var Re={};de(Re,{ActivityServiceV1Service:()=>N,AnonymousService:()=>L,ApiClientServiceV1Service:()=>j,ApiError:()=>S,AuthorizedService:()=>M,BookingServiceV1Service:()=>_,CancelError:()=>k,CancelablePromise:()=>C,CheckoutServiceV1Service:()=>F,CompetitionServiceV1Service:()=>H,CorsService:()=>W,LoyaltyServiceV1Service:()=>Y,MembershipServiceV1Service:()=>$,OpenAPI:()=>t,PlaySessionServiceV1Service:()=>V,UserServiceV1Service:()=>K,bookingSubType:()=>J,bookingSubscription:()=>G,bookingUser:()=>w,cancellationPolicy:()=>D,clientType:()=>Q,months:()=>X,pendingPayment:()=>q,playingUserResponse:()=>z});module.exports=ye(Re);var S=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var k=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,v,U,E,C=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,v,void 0);I(this,U,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,v,new Promise((r,s)=>{y(this,U,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,U))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,v).then(e,r)}catch(e){return c(this,v).catch(e)}finally(e){return c(this,v).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new k("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,v=new WeakMap,U=new WeakMap,E=new WeakMap;var t={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let o;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(o=e.weekday||(e.weekday={}))})(G||(G={}));var J=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(J||{});var w;(e=>{let o;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DECLINED="DECLINED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(o=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let o;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(o=e.itemType||(e.itemType={}))})(D||(D={}));var Q=(r=>(r.WIDGET="WIDGET",r.API="API",r))(Q||{});var X=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(X||{});var q;(e=>{let o;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(o=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let o;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(o=e.status||(e.status={}))})(z||(z={}));var ee=o=>o!=null,x=o=>typeof o=="string",Z=o=>x(o)&&o!=="",re=o=>typeof o=="object"&&typeof o.type=="string"&&typeof o.stream=="function"&&typeof o.arrayBuffer=="function"&&typeof o.constructor=="function"&&typeof o.constructor.name=="string"&&/^(Blob|File)$/.test(o.constructor.name)&&/^(Blob|File)$/.test(o[Symbol.toStringTag]),ne=o=>o instanceof FormData,be=o=>{try{return btoa(o)}catch(e){return Buffer.from(o).toString("base64")}},ge=o=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{ee(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(o).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},he=(o,e)=>{let r=o.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",o.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${o.BASE}${s}`;return e.query?`${a}${ge(e.query)}`:a},Ie=o=>{if(o.formData){let e=new FormData,r=(s,a)=>{x(a)||re(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(o.formData).filter(([s,a])=>ee(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},B=(o,e)=>P(void 0,null,function*(){return typeof e=="function"?e(o):e}),Te=(o,e)=>P(void 0,null,function*(){let r=yield B(e,o.TOKEN),s=yield B(e,o.USERNAME),a=yield B(e,o.PASSWORD),l=yield B(e,o.HEADERS),n=Object.entries(A(A({Accept:"application/json"},l),e.headers)).filter(([u,p])=>ee(p)).reduce((u,[p,d])=>se(A({},u),{[p]:String(d)}),{});if(Z(r)&&(n.Authorization=`Bearer ${r}`),Z(s)&&Z(a)){let u=be(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:re(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":x(e.body)?n["Content-Type"]="text/plain":ne(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Se=o=>{var e;if(o.body!==void 0)return(e=o.mediaType)!=null&&e.includes("/json")?JSON.stringify(o.body):x(o.body)||re(o.body)||ne(o.body)?o.body:JSON.stringify(o.body)},ve=(o,e,r,s,a,l,n)=>P(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return o.WITH_CREDENTIALS&&(p.credentials=o.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),Pe=(o,e)=>{if(e){let r=o.headers.get(e);if(x(r))return r}},Ee=o=>P(void 0,null,function*(){if(o.status!==204)try{let e=o.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield o.json():yield o.text()}catch(e){console.error(e)}}),Ce=(o,e)=>{var a,l;let s=A({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},o.errors)[e.status];if(s)throw new S(o,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new S(o,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},i=(o,e)=>new C((r,s,a)=>P(void 0,null,function*(){try{let l=he(o,e),n=Ie(e),u=Se(e),p=yield Te(o,e);if(!a.isCancelled){let d=yield ve(o,e,l,u,n,p,a),f=yield Ee(d),R=Pe(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:R!=null?R:f};Ce(e,m),r(m.body)}}catch(l){s(l)}}));var N=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var L=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,R,m=10){return i(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:R,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return i(t,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return i(t,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return i(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return i(t,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return i(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return i(t,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return i(t,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return i(t,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return i(t,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(t,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var j=class{static getApiClientList(e,r=10){return i(t,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(t,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(t,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(t,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static getActivityOccasionPrice(e,r){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return i(t,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return i(t,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(t,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return i(t,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return i(t,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return i(t,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return i(t,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return i(t,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return i(t,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return i(t,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return i(t,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return i(t,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return i(t,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return i(t,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(t,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(t,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return i(t,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return i(t,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return i(t,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(t,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(t,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(t,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(t,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s){return i(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return i(t,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return i(t,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return i(t,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return i(t,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return i(t,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return i(t,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return i(t,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return i(t,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return i(t,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return i(t,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return i(t,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return i(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return i(t,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return i(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return i(t,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return i(t,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return i(t,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return i(t,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return i(t,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return i(t,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return i(t,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return i(t,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return i(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getCheckout(e){return i(t,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return i(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static updateCompetitionAccount(e){return i(t,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static options(e){return i(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var Y=class{static createPromoCode(e){return i(t,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static createMembership(e){return i(t,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return i(t,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var V=class{static getPlaySessionById(e){return i(t,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return i(t,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return i(t,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return i(t,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return i(t,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return i(t,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return i(t,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return i(t,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return i(t,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return i(t,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s){return i(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static getUserProfile(e){return i(t,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return i(t,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return i(t,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return i(t,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return i(t,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return i(t,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingSubType,bookingSubscription,bookingUser,cancellationPolicy,clientType,months,pendingPayment,playingUserResponse});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ae=Object.defineProperty,ne=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Z=(i,e,r)=>e in i?ae(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))pe.call(e,r)&&Z(i,r,e[r]);if(X)for(var r of X(e))ue.call(e,r)&&Z(i,r,e[r]);return i},ee=(i,e)=>ne(i,le(e));var re=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(re(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(re(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var v=(i,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(i,e)).next())});var P=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var x=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,S,k,E,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,S,void 0);I(this,k,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,S,new Promise((r,s)=>{y(this,k,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,k))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,S).then(e,r)}catch(e){return c(this,S).catch(e)}finally(e){return c(this,S).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new x("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,S=new WeakMap,k=new WeakMap,E=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(G||(G={}));var oe=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(oe||{});var w;(e=>{let i;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DELETED="DELETED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(i=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var te=(r=>(r.WIDGET="WIDGET",r.API="API",r))(te||{});var ie=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(ie||{});var q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var N=i=>i!=null,U=i=>typeof i=="string",B=i=>U(i)&&i!=="",L=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),se=i=>i instanceof FormData,ce=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},me=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{N(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},de=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${me(e.query)}`:a},fe=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{U(a)||L(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>N(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},O=(i,e)=>v(void 0,null,function*(){return typeof e=="function"?e(i):e}),ye=(i,e)=>v(void 0,null,function*(){let r=yield O(e,i.TOKEN),s=yield O(e,i.USERNAME),a=yield O(e,i.PASSWORD),l=yield O(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([u,p])=>N(p)).reduce((u,[p,d])=>ee(R({},u),{[p]:String(d)}),{});if(B(r)&&(n.Authorization=`Bearer ${r}`),B(s)&&B(a)){let u=ce(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:L(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":U(e.body)?n["Content-Type"]="text/plain":se(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),be=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):U(i.body)||L(i.body)||se(i.body)?i.body:JSON.stringify(i.body)},ge=(i,e,r,s,a,l,n)=>v(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return i.WITH_CREDENTIALS&&(p.credentials=i.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),he=(i,e)=>{if(e){let r=i.headers.get(e);if(U(r))return r}},Ie=i=>v(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Te=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new P(i,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},t=(i,e)=>new A((r,s,a)=>v(void 0,null,function*(){try{let l=de(i,e),n=fe(e),u=be(e),p=yield ye(i,e);if(!a.isCancelled){let d=yield ge(i,e,l,u,n,p,a),f=yield Ie(d),C=he(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:C!=null?C:f};Te(e,m),r(m.body)}}catch(l){s(l)}}));var j=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,C,m=10){return t(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:C,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return t(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return t(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return t(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return t(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return t(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return t(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getActivityOccasionPrice(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return t(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return t(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return t(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return t(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return t(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return t(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return t(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return t(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return t(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return t(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return t(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return t(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return t(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return t(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return t(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return t(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return t(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return t(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var Y=class{static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static options(e){return t(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var V=class{static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return t(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var J=class{static getPlaySessionById(e){return t(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return t(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return t(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return t(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return t(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return t(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var Q=class{static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return t(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return t(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};export{j as ActivityServiceV1Service,M as AnonymousService,_ as ApiClientServiceV1Service,P as ApiError,F as AuthorizedService,H as BookingServiceV1Service,x as CancelError,A as CancelablePromise,W as CheckoutServiceV1Service,Y as CompetitionServiceV1Service,$ as CorsService,V as LoyaltyServiceV1Service,K as MembershipServiceV1Service,o as OpenAPI,J as PlaySessionServiceV1Service,Q as UserServiceV1Service,oe as bookingSubType,G as bookingSubscription,w as bookingUser,D as cancellationPolicy,te as clientType,ie as months,q as pendingPayment,z as playingUserResponse};
|
|
1
|
+
var ae=Object.defineProperty,ne=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Z=(i,e,r)=>e in i?ae(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))pe.call(e,r)&&Z(i,r,e[r]);if(X)for(var r of X(e))ue.call(e,r)&&Z(i,r,e[r]);return i},ee=(i,e)=>ne(i,le(e));var re=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(re(i,e,"read from private field"),r?r.call(i):e.get(i)),I=(i,e,r)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,r)},y=(i,e,r,s)=>(re(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var v=(i,e,r)=>new Promise((s,a)=>{var l=p=>{try{u(r.next(p))}catch(d){a(d)}},n=p=>{try{u(r.throw(p))}catch(d){a(d)}},u=p=>p.done?s(p.value):Promise.resolve(p.value).then(l,n);u((r=r.apply(i,e)).next())});var P=class extends Error{constructor(r,s,a){super(a);this.name="ApiError",this.url=s.url,this.status=s.status,this.statusText=s.statusText,this.body=s.body,this.request=r}};var x=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,S,k,E,A=class{constructor(e){I(this,g,void 0);I(this,h,void 0);I(this,b,void 0);I(this,T,void 0);I(this,S,void 0);I(this,k,void 0);I(this,E,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,S,new Promise((r,s)=>{y(this,k,r),y(this,E,s);let a=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(p=c(this,k))==null||p.call(this,u))},l=u=>{var p;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(p=c(this,E))==null||p.call(this,u))},n=u=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(u)};return Object.defineProperty(n,"isResolved",{get:()=>c(this,g)}),Object.defineProperty(n,"isRejected",{get:()=>c(this,h)}),Object.defineProperty(n,"isCancelled",{get:()=>c(this,b)}),e(a,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,S).then(e,r)}catch(e){return c(this,S).catch(e)}finally(e){return c(this,S).finally(e)}cancel(){var e;if(!(c(this,g)||c(this,h)||c(this,b))){if(y(this,b,!0),c(this,T).length)try{for(let r of c(this,T))r()}catch(r){console.warn("Cancellation threw an error",r);return}c(this,T).length=0,(e=c(this,E))==null||e.call(this,new x("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,S=new WeakMap,k=new WeakMap,E=new WeakMap;var o={BASE:"https://api.dev.matchi.com",VERSION:"1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var G;(e=>{let i;(f=>(f.MONDAY="MONDAY",f.TUESDAY="TUESDAY",f.WEDNESDAY="WEDNESDAY",f.THURSDAY="THURSDAY",f.FRIDAY="FRIDAY",f.SATURDAY="SATURDAY",f.SUNDAY="SUNDAY",f.UNKNOWN="UNKNOWN"))(i=e.weekday||(e.weekday={}))})(G||(G={}));var oe=(n=>(n.BOOKING="booking",n.BOOKING_PLAYER="booking_player",n.ACTIVITY="activity",n.SPLIT="split",n.SPLIT_MAIN="split_main",n.SPLIT_INVITE="split_invite",n))(oe||{});var w;(e=>{let i;(p=>(p.UNAPPROVED="UNAPPROVED",p.UNCONFIRMED="UNCONFIRMED",p.DECLINED="DECLINED",p.PARTICIPANT="PARTICIPANT",p.CO_BOOKER="CO-BOOKER",p.OWNER="OWNER"))(i=e.status||(e.status={}))})(w||(w={}));var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var te=(r=>(r.WIDGET="WIDGET",r.API="API",r))(te||{});var ie=(m=>(m.JANUARY="January",m.FEBRUARY="February",m.MARCH="March",m.APRIL="April",m.MAY="May",m.JUNE="June",m.JULY="July",m.AUGUST="August",m.SEPTEMBER="September",m.OCTOBER="October",m.NOVEMBER="November",m.DECEMBER="December",m))(ie||{});var q;(e=>{let i;(n=>(n.BOOKING="BOOKING",n.ACTIVITY="ACTIVITY",n.MEMBERSHIP="MEMBERSHIP",n.SUBSCRIPTION="SUBSCRIPTION"))(i=e.type||(e.type={}))})(q||(q={}));var z;(e=>{let i;(n=>(n.PAID="PAID",n.INVITED="INVITED",n.JOINED="JOINED",n.BOOKER="BOOKER"))(i=e.status||(e.status={}))})(z||(z={}));var N=i=>i!=null,U=i=>typeof i=="string",B=i=>U(i)&&i!=="",L=i=>typeof i=="object"&&typeof i.type=="string"&&typeof i.stream=="function"&&typeof i.arrayBuffer=="function"&&typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&/^(Blob|File)$/.test(i.constructor.name)&&/^(Blob|File)$/.test(i[Symbol.toStringTag]),se=i=>i instanceof FormData,ce=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},me=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{N(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,u])=>{s(`${a}[${n}]`,u)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},de=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var u;return(u=e.path)!=null&&u.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${me(e.query)}`:a},fe=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{U(a)||L(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>N(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},O=(i,e)=>v(void 0,null,function*(){return typeof e=="function"?e(i):e}),ye=(i,e)=>v(void 0,null,function*(){let r=yield O(e,i.TOKEN),s=yield O(e,i.USERNAME),a=yield O(e,i.PASSWORD),l=yield O(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([u,p])=>N(p)).reduce((u,[p,d])=>ee(R({},u),{[p]:String(d)}),{});if(B(r)&&(n.Authorization=`Bearer ${r}`),B(s)&&B(a)){let u=ce(`${s}:${a}`);n.Authorization=`Basic ${u}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:L(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":U(e.body)?n["Content-Type"]="text/plain":se(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),be=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):U(i.body)||L(i.body)||se(i.body)?i.body:JSON.stringify(i.body)},ge=(i,e,r,s,a,l,n)=>v(void 0,null,function*(){let u=new AbortController,p={headers:l,body:s!=null?s:a,method:e.method,signal:u.signal};return i.WITH_CREDENTIALS&&(p.credentials=i.CREDENTIALS),n(()=>u.abort()),yield fetch(r,p)}),he=(i,e)=>{if(e){let r=i.headers.get(e);if(U(r))return r}},Ie=i=>v(void 0,null,function*(){if(i.status!==204)try{let e=i.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Te=(i,e)=>{var a,l;let s=R({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},i.errors)[e.status];if(s)throw new P(i,e,s);if(!e.ok){let n=(a=e.status)!=null?a:"unknown",u=(l=e.statusText)!=null?l:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${u}; body: ${p}`)}},t=(i,e)=>new A((r,s,a)=>v(void 0,null,function*(){try{let l=de(i,e),n=fe(e),u=be(e),p=yield ye(i,e);if(!a.isCancelled){let d=yield ge(i,e,l,u,n,p,a),f=yield Ie(d),C=he(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:C!=null?C:f};Te(e,m),r(m.body)}}catch(l){s(l)}}));var j=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var M=class{static listActivities(e=!1,r=!1,s,a,l,n,u,p,d,f,C,m=10){return t(o,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:u,resourceTypes:p,startDate:d,endDate:f,offset:C,limit:m},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivity(e){return t(o,{method:"GET",url:"/activities/{activityId}",path:{activityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listActivitiesOccasions(e,r=!1,s,a,l){return t(o,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:s,startDate:a,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityOccasion(e){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAdminActivityOccasions(e,r,s,a,l,n=10){return t(o,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:s,endDate:a,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}static listFacilities(e,r,s,a,l,n,u,p,d=10){return t(o,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:u,offset:p,limit:d},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getFacility(e){return t(o,{method:"GET",url:"/facilities/{facilityId}",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listResources(e){return t(o,{method:"GET",url:"/facilities/{facilityId}/resources",path:{facilityId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getResource(e){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}",path:{resourceId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilities(e,r,s){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimes(e,r){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes",path:{resourceId:e},query:{startDateTime:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getConfig(e){return t(o,{method:"GET",url:"/config/{locale}",path:{locale:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var _=class{static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var F=class{static getActivityOccasionPrice(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/price",path:{occasionId:e},query:{promoCode:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityCancellationPolicy(e,r){return t(o,{method:"GET",url:"/activities/occasions/{occasionId}/cancellation-policy",path:{occasionId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getCancellationPolicy(e,r,s,a){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:s,locale:a},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserInfo(){return t(o,{method:"GET",url:"/users/info",errors:{500:"General Error",503:"Service unavailable, please try again"}})}static listUserFavourites(){return t(o,{method:"GET",url:"/users/favourites",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserMemberships(){return t(o,{method:"GET",url:"/users/memberships",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPayments(e,r=10){return t(o,{method:"GET",url:"/users/payments",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPayment(e){return t(o,{method:"GET",url:"/users/payments/{paymentId}",path:{paymentId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserPendingPayments(){return t(o,{method:"GET",url:"/users/payments/pending",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listUserBookings(e,r=10,s){return t(o,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBooking(e){return t(o,{method:"POST",url:"/users/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingDetails(e){return t(o,{method:"GET",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/time/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createActivityBooking(e){return t(o,{method:"POST",url:"/users/bookings/activity",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getActivityDetails(e){return t(o,{method:"GET",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteActivityBooking(e){return t(o,{method:"DELETE",url:"/users/bookings/activity/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addWaitlistOccasion(e){return t(o,{method:"POST",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeWaitlistOccasion(e){return t(o,{method:"DELETE",url:"/users/waitlist/occasions/{id}",path:{id:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createCheckoutBooking(e,r){return t(o,{method:"POST",url:"/checkout/{token}",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static applyValueCard(e,r){return t(o,{method:"POST",url:"/checkout/{token}/valuecard",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyValueCard(e,r){return t(o,{method:"DELETE",url:"/checkout/{token}/valuecard/{customerCouponId}",path:{token:e,customerCouponId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static applyPromoCode(e,r){return t(o,{method:"POST",url:"/checkout/{token}/promocode",path:{token:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static unapplyPromocode(e){return t(o,{method:"DELETE",url:"/checkout/{token}/promocode",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientList(e,r=10){return t(o,{method:"GET",url:"/api-client",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static createApiClient(e){return t(o,{method:"POST",url:"/api-client",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The specified resource identifier already exists",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientById(e){return t(o,{method:"GET",url:"/api-client/{clientId}",path:{clientId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateApiClientById(e,r,s){return t(o,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:s},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getApiClientUsageById(e,r){return t(o,{method:"GET",url:"/api-client/{clientId}/usage",path:{clientId:e},query:{month:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var H=class{static getAvailabilityWithPrice(e,r,s,a,l,n,u){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:u},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listAvailabilityEndTimesWithPrices(e,r,s,a,l){return t(o,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:s,emails:a,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingUsers(e){return t(o,{method:"GET",url:"/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListUpcoming(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/upcoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionsListHistory(e,r=10){return t(o,{method:"GET",url:"/users/bookings/subscriptions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getBookingSubscriptionDetails(e){return t(o,{method:"GET",url:"/users/bookings/subscriptions/{subscriptionId}",path:{subscriptionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUsersInBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/users",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPriceOfOrderSplitBooking(e){return t(o,{method:"GET",url:"/users/bookings/{bookingId}/price",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static inviteUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/invite/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserToBooking(e,r){return t(o,{method:"POST",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static removeUserFromBooking(e,r){return t(o,{method:"DELETE",url:"/users/bookings/{bookingId}/users/{userId}",path:{bookingId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static createBookingsAdmin(e){return t(o,{method:"POST",url:"/admin/bookings/time",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updateBookingAdmin(e,r){return t(o,{method:"PATCH",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteBookingAdmin(e,r,s){return t(o,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var W=class{static getCheckout(e){return t(o,{method:"GET",url:"/checkout/{token}",path:{token:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPspSession(e,r,s){return t(o,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}};var Y=class{static updateCompetitionAccount(e){return t(o,{method:"PUT",url:"/admin/competition/account/update",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",403:"The request was denied due to insufficient permissions.",500:"General Error",503:"Service unavailable, please try again"}})}};var $=class{static options(e){return t(o,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var V=class{static createPromoCode(e){return t(o,{method:"POST",url:"/admin/loyalty/promo-codes",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var K=class{static createMembership(e){return t(o,{method:"POST",url:"/users/memberships",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static cancellationPolicy(e,r){return t(o,{method:"GET",url:"/users/memberships/{membershipTypeId}/cancellation-policy",path:{membershipTypeId:e},query:{locale:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var J=class{static getPlaySessionById(e){return t(o,{method:"GET",url:"/playsessions/{sessionId}",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getPlaySessionByBookingId(e){return t(o,{method:"GET",url:"/playsessions/by-bookingid/{bookingId}",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addPlayerWithUserId(e,r){return t(o,{method:"POST",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserId(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-userid/{userId}",path:{sessionId:e,userId:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addUserWithId(e,r,s){return t(o,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:s,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static removePlayerWithUserEmail(e,r){return t(o,{method:"DELETE",url:"/playsessions/{sessionId}/players/by-email/{userEmail}",path:{sessionId:e,userEmail:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static updatePlaySessionSettings(e,r){return t(o,{method:"PUT",url:"/playsessions/{sessionId}/settings",path:{sessionId:e},body:r,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static joinPlaySession(e){return t(o,{method:"POST",url:"/users/playsessions/{sessionId}/join",path:{sessionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsHistory(e,r=10){return t(o,{method:"GET",url:"/users/playsessions/history",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsUpcoming(){return t(o,{method:"GET",url:"/users/playsessions/upcoming",errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getUserPlaySessionsMarketplace(e,r,s){return t(o,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};var Q=class{static getUserProfile(e){return t(o,{method:"GET",url:"/profiles/users/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static getRelationToFriend(e){return t(o,{method:"GET",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static addRelationToFriend(e){return t(o,{method:"POST",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error",503:"Service unavailable, please try again"}})}static deleteRelationToFriend(e){return t(o,{method:"DELETE",url:"/users/relations/friends/{userId}",path:{userId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listFriends(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}static listIncomingFriendRequests(e,r=10){return t(o,{method:"GET",url:"/users/relations/friends/incoming",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized",404:"The specified resource was not found.",500:"General Error",503:"Service unavailable, please try again"}})}};export{j as ActivityServiceV1Service,M as AnonymousService,_ as ApiClientServiceV1Service,P as ApiError,F as AuthorizedService,H as BookingServiceV1Service,x as CancelError,A as CancelablePromise,W as CheckoutServiceV1Service,Y as CompetitionServiceV1Service,$ as CorsService,V as LoyaltyServiceV1Service,K as MembershipServiceV1Service,o as OpenAPI,J as PlaySessionServiceV1Service,Q as UserServiceV1Service,oe as bookingSubType,G as bookingSubscription,w as bookingUser,D as cancellationPolicy,te as clientType,ie as months,q as pendingPayment,z as playingUserResponse};
|