@matchi/api 0.20241211.1 → 0.20250110.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/README.md CHANGED
@@ -81,3 +81,15 @@ try {
81
81
  // Handle error
82
82
  }
83
83
  ```
84
+
85
+ ## Local version
86
+
87
+ To run the client generation locally, targeting your local backend, you can run the following command.
88
+
89
+ ```sh
90
+ BACKEND_REPO=../matchi-backend bun run build-local
91
+ ```
92
+
93
+ This in turn relies on your checked out backend to have generated the specification required. (Which can be done with `BACKEND_REPO=../matchi-backend make -C ${BACKEND_REPO}/infra/matchiapi generate-spec`.)
94
+
95
+ Having a client for a local backend can be useful any time when you want a client for a backend which is not yet merged to the matchi-backend main.
@@ -536,7 +536,27 @@ type chat = {
536
536
  target: string;
537
537
  targetId: string;
538
538
  createdAt: timeStamp;
539
+ /**
540
+ * * `active` - The user is an active participant of the chat.
541
+ * * `inactive` - The user has either left the chat or has a private profile.
542
+ * * `notConnected` - The user in not connected to the chat due to failed CometChat user registration or failed adding to group chat.
543
+ *
544
+ */
545
+ status: chat.status;
539
546
  };
547
+ declare namespace chat {
548
+ /**
549
+ * * `active` - The user is an active participant of the chat.
550
+ * * `inactive` - The user has either left the chat or has a private profile.
551
+ * * `notConnected` - The user in not connected to the chat due to failed CometChat user registration or failed adding to group chat.
552
+ *
553
+ */
554
+ enum status {
555
+ ACTIVE = "active",
556
+ INACTIVE = "inactive",
557
+ NOT_CONNECTED = "notConnected"
558
+ }
559
+ }
540
560
 
541
561
  type giftCard = {
542
562
  method?: string;
@@ -1641,6 +1661,14 @@ declare class ApiClientServiceV1Service {
1641
1661
  }
1642
1662
 
1643
1663
  declare class AuthorizedService {
1664
+ /**
1665
+ * Get details of an occasion by ID for authorized user
1666
+ * This is the exact same as getActivityOccasion, but requires authorization to give the correct member price, if the user is a member.
1667
+ * @param occasionId ID of the activity occasion
1668
+ * @returns activityOccasion Details about the requested activity occasion
1669
+ * @throws ApiError
1670
+ */
1671
+ static getActivityOccasionForUser(occasionId: number): CancelablePromise<activityOccasion>;
1644
1672
  /**
1645
1673
  * Get price of an occasion by ID
1646
1674
  * @param occasionId ID of the activity occasion
@@ -2682,4 +2710,4 @@ declare class UserServiceV1Service {
2682
2710
  static listUserOfferValueCards(offset?: number, limit?: number): CancelablePromise<userOfferValueCardsResponse>;
2683
2711
  }
2684
2712
 
2685
- export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, access, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type adyenGiftCardOutcome, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, type bookingUser, bookingUserStatus, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type chat, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, createChatResponse, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type endTimesWithRestrictions, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type getChatAuthResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type listChatsResponse, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, playSessionSettings, playSessionUser, type playerLevels, playerStatusParam, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type serviceFee, type timeOfDay, type timeStamp, type usagePlan, userChatStatusParam, type userFacility, type userId, type userInfo, type userMembership, type userOfferPunchCardsResponse, type userOfferValueCardsResponse, type userPublicProfile, userPunchCard, type userValueCard, type valueCardOutcome };
2713
+ export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, access, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type adyenGiftCardOutcome, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, type bookingUser, bookingUserStatus, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, chat, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, createChatResponse, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type endTimesWithRestrictions, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type getChatAuthResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type listChatsResponse, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, playSessionSettings, playSessionUser, type playerLevels, playerStatusParam, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type serviceFee, type timeOfDay, type timeStamp, type usagePlan, userChatStatusParam, type userFacility, type userId, type userInfo, type userMembership, type userOfferPunchCardsResponse, type userOfferValueCardsResponse, type userPublicProfile, userPunchCard, type userValueCard, type valueCardOutcome };
@@ -536,7 +536,27 @@ type chat = {
536
536
  target: string;
537
537
  targetId: string;
538
538
  createdAt: timeStamp;
539
+ /**
540
+ * * `active` - The user is an active participant of the chat.
541
+ * * `inactive` - The user has either left the chat or has a private profile.
542
+ * * `notConnected` - The user in not connected to the chat due to failed CometChat user registration or failed adding to group chat.
543
+ *
544
+ */
545
+ status: chat.status;
539
546
  };
547
+ declare namespace chat {
548
+ /**
549
+ * * `active` - The user is an active participant of the chat.
550
+ * * `inactive` - The user has either left the chat or has a private profile.
551
+ * * `notConnected` - The user in not connected to the chat due to failed CometChat user registration or failed adding to group chat.
552
+ *
553
+ */
554
+ enum status {
555
+ ACTIVE = "active",
556
+ INACTIVE = "inactive",
557
+ NOT_CONNECTED = "notConnected"
558
+ }
559
+ }
540
560
 
541
561
  type giftCard = {
542
562
  method?: string;
@@ -1641,6 +1661,14 @@ declare class ApiClientServiceV1Service {
1641
1661
  }
1642
1662
 
1643
1663
  declare class AuthorizedService {
1664
+ /**
1665
+ * Get details of an occasion by ID for authorized user
1666
+ * This is the exact same as getActivityOccasion, but requires authorization to give the correct member price, if the user is a member.
1667
+ * @param occasionId ID of the activity occasion
1668
+ * @returns activityOccasion Details about the requested activity occasion
1669
+ * @throws ApiError
1670
+ */
1671
+ static getActivityOccasionForUser(occasionId: number): CancelablePromise<activityOccasion>;
1644
1672
  /**
1645
1673
  * Get price of an occasion by ID
1646
1674
  * @param occasionId ID of the activity occasion
@@ -2682,4 +2710,4 @@ declare class UserServiceV1Service {
2682
2710
  static listUserOfferValueCards(offset?: number, limit?: number): CancelablePromise<userOfferValueCardsResponse>;
2683
2711
  }
2684
2712
 
2685
- export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, access, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type adyenGiftCardOutcome, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, type bookingUser, bookingUserStatus, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, type chat, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, createChatResponse, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type endTimesWithRestrictions, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type getChatAuthResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type listChatsResponse, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, playSessionSettings, playSessionUser, type playerLevels, playerStatusParam, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type serviceFee, type timeOfDay, type timeStamp, type usagePlan, userChatStatusParam, type userFacility, type userId, type userInfo, type userMembership, type userOfferPunchCardsResponse, type userOfferValueCardsResponse, type userPublicProfile, userPunchCard, type userValueCard, type valueCardOutcome };
2713
+ export { type ActivityEvent, ActivityServiceV1Service, type AdminOccasionDetails, AnonymousService, ApiClientServiceV1Service, ApiError, AuthorizedService, BookingServiceV1Service, CancelError, CancelablePromise, CheckoutServiceV1Service, CompetitionServiceV1Service, CorsService, type Error$1 as Error, type ExternalServiceProperty, LoyaltyServiceV1Service, MembershipServiceV1Service, type OccasionCourt, OpenAPI, type OpenAPIConfig, type OrderSplitPayments, type OrderSplitPaymentsRow, type OrderSplitPrice, PlaySessionServiceV1Service, UserServiceV1Service, access, type activitiesResponse, type activity, type activityOccasion, type activityType, type actor, type address, type adyenGiftCardOutcome, type apiClient, type apiClientInput, type apiClientListResponse, type article, type articleMetadata, type availability, type booking, type bookingGroup, bookingRestriction, type bookingRestrictions, bookingSubType, bookingSubscription, type bookingSubscriptionPayment, type bookingUser, bookingUserStatus, type bookingUsersResponse, type bookingsResponse, type camera, cancellationPolicy, chat, type checkoutResponse, clientType, type competitionAdminAccount, type config, type configuration, type configurationEntry, type configurationMap, type configurationResource, type coupon, type createBookingEventExternal, createChatResponse, type createPromoCode, type dailyQuota, type days, type deleteBookingEventExternal, directionParam, type endTimePriceDetail, type endTimesWithRestrictions, type exposeOccasions, type facilitiesResponse, type facility, type facilityConfiguration, type facilityDetails, type friendRelationResponse, type friendRelationsResponse, type getChatAuthResponse, type giftCard, type hideFullyBooked, type hours, type internalPaymentMethod, type levelRange, type limitParam, type listChatsResponse, type membershipRequest, type membershipRequestItem, type monthlyUsage, months, type occasionBooking, type occasionParticipant, type offsetParam, type openingHours, type order, type orderSplitBaseResponse, type participants, type payment, type paymentDetails, type paymentInfo, type paymentInterval, type paymentMethods, type paymentType, type paymentsResponse, pendingPayment, type playSession, type playSessionBooking, type playSessionBookingPayment, type playSessionResponse, playSessionSettings, playSessionUser, type playerLevels, playerStatusParam, playingUserResponse, type playingUsersResponse, type playsessionUserDetails, type position, type price, type priceDetails, type priceDetailsActivity, type profile, type promoCode, type promoCodeOutcome, type pspSession, type resource, type resultSet, type serviceFee, type timeOfDay, type timeStamp, type usagePlan, userChatStatusParam, type userFacility, type userId, type userInfo, type userMembership, type userOfferPunchCardsResponse, type userOfferValueCardsResponse, type userPublicProfile, userPunchCard, type userValueCard, type valueCardOutcome };
@@ -0,0 +1 @@
1
+ "use strict";var x=Object.defineProperty,he=Object.defineProperties,Ie=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertyNames,me=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var de=(i,e,r)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,A=(i,e)=>{for(var r in e||(e={}))fe.call(e,r)&&de(i,r,e[r]);if(me)for(var r of me(e))Ce.call(e,r)&&de(i,r,e[r]);return i},ye=(i,e)=>he(i,Te(e));var Pe=(i,e)=>{for(var r in e)x(i,r,{get:e[r],enumerable:!0})},Se=(i,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ee(e))!fe.call(i,s)&&s!==r&&x(i,s,{get:()=>e[s],enumerable:!(a=Ie(e,s))||a.enumerable});return i};var ve=i=>Se(x({},"__esModule",{value:!0}),i);var be=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(be(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,a)=>(be(i,e,"write to private field"),a?a.call(i,r):e.set(i,r),r);var P=(i,e,r)=>new Promise((a,s)=>{var l=u=>{try{p(r.next(u))}catch(d){s(d)}},n=u=>{try{p(r.throw(u))}catch(d){s(d)}},p=u=>u.done?a(u.value):Promise.resolve(u.value).then(l,n);p((r=r.apply(i,e)).next())});var qe={};Pe(qe,{ActivityServiceV1Service:()=>j,AnonymousService:()=>V,ApiClientServiceV1Service:()=>H,ApiError:()=>E,AuthorizedService:()=>F,BookingServiceV1Service:()=>W,CancelError:()=>O,CancelablePromise:()=>v,CheckoutServiceV1Service:()=>Y,CompetitionServiceV1Service:()=>K,CorsService:()=>J,LoyaltyServiceV1Service:()=>$,MembershipServiceV1Service:()=>Q,OpenAPI:()=>t,PlaySessionServiceV1Service:()=>X,UserServiceV1Service:()=>Z,access:()=>ee,bookingRestriction:()=>re,bookingSubType:()=>te,bookingSubscription:()=>k,bookingUserStatus:()=>oe,cancellationPolicy:()=>D,chat:()=>w,clientType:()=>ie,createChatResponse:()=>N,directionParam:()=>se,months:()=>ae,pendingPayment:()=>q,playSessionSettings:()=>L,playSessionUser:()=>B,playerStatusParam:()=>ne,playingUserResponse:()=>z,userChatStatusParam:()=>le,userPunchCard:()=>_});module.exports=ve(qe);var E=class extends Error{constructor(r,a,s){super(s);this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=r}};var O=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,C,U,S,v=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,C,void 0);I(this,U,void 0);I(this,S,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,C,new Promise((r,a)=>{y(this,U,r),y(this,S,a);let s=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,U))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,S))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};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(s,l,n)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return c(this,C).then(e,r)}catch(e){return c(this,C).catch(e)}finally(e){return c(this,C).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,S))==null||e.call(this,new O("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,C=new WeakMap,U=new WeakMap,S=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 ee=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(ee||{});var re=(p=>(p.LIMIT_REACHED="LIMIT_REACHED",p.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",p.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",p.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",p.COURT_GROUP="COURT_GROUP",p.TOO_SOON="TOO_SOON",p.MEMBERS_ONLY="MEMBERS_ONLY",p))(re||{});var k;(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={}))})(k||(k={}));var te=(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))(te||{});var oe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(oe||{});var D;(e=>{let i;(s=>(s.AVAILABILITY="AVAILABILITY",s.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var w;(e=>{let i;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(i=e.status||(e.status={}))})(w||(w={}));var ie=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ie||{});var N;(e=>{let i;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(i=e.type||(e.type={}))})(N||(N={}));var se=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(se||{});var ae=(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))(ae||{});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 ne=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(ne||{});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 L;(e=>{let i;(s=>(s.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",s.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(i=e.joinApproval||(e.joinApproval={}))})(L||(L={}));var B;(e=>{let i;(s=>(s.APPLIED="APPLIED",s.INVITED="INVITED"))(i=e.joiningMethod||(e.joiningMethod={}))})(B||(B={}));var le=(s=>(s.ALL="ALL",s.ACTIVE="ACTIVE",s.INACTIVE="INACTIVE",s.NOT_CONNECTED="NOT_CONNECTED",s))(le||{});var _;(e=>{let i;(s=>(s.UNLIMITED="UNLIMITED",s.NUMBERED="NUMBERED"))(i=e.type||(e.type={}))})(_||(_={}));var ue=i=>i!=null,G=i=>typeof i=="string",pe=i=>G(i)&&i!=="",ce=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]),ge=i=>i instanceof FormData,Re=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},Ae=i=>{let e=[],r=(s,l)=>{e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`)},a=(s,l)=>{ue(l)&&(Array.isArray(l)?l.forEach(n=>{a(s,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{a(`${s}[${n}]`,p)}):r(s,l))};return Object.entries(i).forEach(([s,l])=>{a(s,l)}),e.length>0?`?${e.join("&")}`:""},Oe=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,a=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),s=`${i.BASE}${a}`;return e.query?`${s}${Ae(e.query)}`:s},Ue=i=>{if(i.formData){let e=new FormData,r=(a,s)=>{G(s)||ce(s)?e.append(a,s):e.append(a,JSON.stringify(s))};return Object.entries(i.formData).filter(([a,s])=>ue(s)).forEach(([a,s])=>{Array.isArray(s)?s.forEach(l=>r(a,l)):r(a,s)}),e}},M=(i,e)=>P(void 0,null,function*(){return typeof e=="function"?e(i):e}),Ge=(i,e)=>P(void 0,null,function*(){let r=yield M(e,i.TOKEN),a=yield M(e,i.USERNAME),s=yield M(e,i.PASSWORD),l=yield M(e,i.HEADERS),n=Object.entries(A(A({Accept:"application/json"},l),e.headers)).filter(([p,u])=>ue(u)).reduce((p,[u,d])=>ye(A({},p),{[u]:String(d)}),{});if(pe(r)&&(n.Authorization=`Bearer ${r}`),pe(a)&&pe(s)){let p=Re(`${a}:${s}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:ce(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":G(e.body)?n["Content-Type"]="text/plain":ge(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),xe=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):G(i.body)||ce(i.body)||ge(i.body)?i.body:JSON.stringify(i.body)},ke=(i,e,r,a,s,l,n)=>P(void 0,null,function*(){let p=new AbortController,u={headers:l,body:a!=null?a:s,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),De=(i,e)=>{if(e){let r=i.headers.get(e);if(G(r))return r}},we=i=>P(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(s=>e.toLowerCase().startsWith(s))?yield i.json():yield i.text()}catch(e){console.error(e)}}),Ne=(i,e)=>{var s,l;let a=A({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(a)throw new E(i,e,a);if(!e.ok){let n=(s=e.status)!=null?s:"unknown",p=(l=e.statusText)!=null?l:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new E(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},o=(i,e)=>new v((r,a,s)=>P(void 0,null,function*(){try{let l=Oe(i,e),n=Ue(e),p=xe(e),u=yield Ge(i,e);if(!s.isCancelled){let d=yield ke(i,e,l,p,n,u,s),f=yield we(d),R=De(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:R!=null?R:f};Ne(e,m),r(m.body)}}catch(l){a(l)}}));var j=class{static getAdminActivityOccasions(e,r,a,s,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:a,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}};var V=class{static listActivities(e=!1,r=!1,a,s,l,n,p,u,d,f,R,m=10){return o(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:a,level:s,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,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 o(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,a,s,l){return o(t,{method:"GET",url:"/activities/{activityId}/occasions",path:{activityId:e},query:{hideFullyBooked:r,hidePastOccasions:a,startDate:s,endDate:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasion(e){return o(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,a,s,l,n=10){return o(t,{method:"GET",url:"/admin/activities/{activityId}/occasions",path:{activityId:e},query:{filter:r,startDate:a,endDate:s,offset:l,limit:n},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateCompetitionAccount(e){return o(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,a,s,l,n,p,u,d=10){return o(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:a,latitude:s,longitude:l,radius:n,resourceTypes:p,offset:u,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 o(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 o(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 o(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,a){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities",path:{resourceId:e},query:{startDateTime:r,endDateTime: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 listAvailabilityEndTimes(e,r){return o(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 o(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 o(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 o(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 H=class{static getApiClientList(e,r=10){return o(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 o(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 o(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,a){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:a},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 o(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 F=class{static getActivityOccasionForUser(e){return o(t,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return o(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 o(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,a,s,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:a,promoCode:s,numberOfSlots:l,emails:n,userIds:p},errors:{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,a,s,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:a,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,a,s,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:a,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCancellationPolicy(e,r,a,s){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/cancellation-policy",path:{resourceId:e},query:{startTime:r,endTime:a,locale:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static createPromoCode(e){return o(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 o(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 listChats(e="ALL",r,a=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static addUserToChat(e,r){return o(t,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return o(t,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return o(t,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return o(t,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return o(t,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return o(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 o(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 o(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 o(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 o(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 o(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,a){return o(t,{method:"GET",url:"/users/bookings",query:{offset:e,limit:r,subType: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 createBooking(e){return o(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 o(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 o(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 o(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 o(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 o(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 getUserBookingRestrictions(e){return o(t,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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,a){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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 getUserPlaySessions(e,r=10,a="UPCOMING",s="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:a,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return o(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 o(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,a,s,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:a,sportIds:s,availableSpots: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 addWaitlistOccasion(e){return o(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 o(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 listUserOfferPunchCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return o(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 o(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,a){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:a},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 o(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 o(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 o(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 o(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 o(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 o(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 o(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,a){return o(t,{method:"PUT",url:"/api-client/{clientId}",path:{clientId:e},query:{regenerateKey:a},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 o(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 W=class{static getAvailabilityWithPrice(e,r,a,s,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:a,promoCode:s,numberOfSlots:l,emails:n,userIds:p},errors:{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,a,s,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimes/prices",path:{resourceId:e},query:{startTime:r,numberOfSlots:a,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static listAvailabilityEndTimesWithRestrictions(e,r,a,s,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",path:{resourceId:e},query:{startTime:r,numberOfSlots:a,emails:s,userIds:l},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getBookingUsers(e){return o(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 o(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 o(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 o(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 getUserBookingRestrictions(e){return o(t,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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,a){return o(t,{method:"DELETE",url:"/admin/bookings/time/{bookingId}",path:{bookingId:e},query:{initiator:r,systemIdentifier: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."}})}};var Y=class{static getCheckout(e){return o(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,a){return o(t,{method:"GET",url:"/checkout/{token}/pspsession",path:{token:e},query:{returnUrl:r,enableRecurring:a},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 K=class{static updateCompetitionAccount(e){return o(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 J=class{static options(e){return o(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var $=class{static createPromoCode(e){return o(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 Q=class{static createMembership(e){return o(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 o(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 X=class{static getPlaySessionById(e){return o(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 o(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 o(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 o(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,a){return o(t,{method:"POST",url:"/playsessions/{sessionId}/users/{userId}",path:{sessionId:e,userId:r},body:a,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 o(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 o(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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return o(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 getUserPlaySessions(e,r=10,a="UPCOMING",s="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:a,playerStatus:s},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUserPlaySessionsHistory(e,r=10){return o(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 o(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,a,s,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:a,sportIds:s,availableSpots: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 Z=class{static getUserProfile(e){return o(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 listChats(e="ALL",r,a=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:a},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static addUserToChat(e,r){return o(t,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return o(t,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUsersProfile(){return o(t,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return o(t,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return o(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 o(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 o(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 o(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 o(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."}})}static listUserOfferPunchCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,access,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,clientType,createChatResponse,directionParam,months,pendingPayment,playSessionSettings,playSessionUser,playerStatusParam,playingUserResponse,userChatStatusParam,userPunchCard});
@@ -0,0 +1 @@
1
+ var be=Object.defineProperty,ge=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var oe=(i,e,r)=>e in i?be(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,R=(i,e)=>{for(var r in e||(e={}))Ie.call(e,r)&&oe(i,r,e[r]);if(te)for(var r of te(e))Te.call(e,r)&&oe(i,r,e[r]);return i},ie=(i,e)=>ge(i,he(e));var se=(i,e,r)=>{if(!e.has(i))throw TypeError("Cannot "+r)};var c=(i,e,r)=>(se(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)=>(se(i,e,"write to private field"),s?s.call(i,r):e.set(i,r),r);var C=(i,e,r)=>new Promise((s,a)=>{var l=u=>{try{p(r.next(u))}catch(d){a(d)}},n=u=>{try{p(r.throw(u))}catch(d){a(d)}},p=u=>u.done?s(u.value):Promise.resolve(u.value).then(l,n);p((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 G=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},g,h,b,T,E,O,S,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,E,void 0);I(this,O,void 0);I(this,S,void 0);y(this,g,!1),y(this,h,!1),y(this,b,!1),y(this,T,[]),y(this,E,new Promise((r,s)=>{y(this,O,r),y(this,S,s);let a=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,g,!0),(u=c(this,O))==null||u.call(this,p))},l=p=>{var u;c(this,g)||c(this,h)||c(this,b)||(y(this,h,!0),(u=c(this,S))==null||u.call(this,p))},n=p=>{c(this,g)||c(this,h)||c(this,b)||c(this,T).push(p)};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,E).then(e,r)}catch(e){return c(this,E).catch(e)}finally(e){return c(this,E).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,S))==null||e.call(this,new G("Request aborted"))}}get isCancelled(){return c(this,b)}};g=new WeakMap,h=new WeakMap,b=new WeakMap,T=new WeakMap,E=new WeakMap,O=new WeakMap,S=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 ae=(r=>(r.BOOKING_DETAILS="BOOKING_DETAILS",r.PUBLIC_MATCHES="PUBLIC_MATCHES",r))(ae||{});var ne=(p=>(p.LIMIT_REACHED="LIMIT_REACHED",p.DAY_LIMIT_REACHED="DAY_LIMIT_REACHED",p.MINUTES_OF_BOOKING_LIMIT_REACHED="MINUTES_OF_BOOKING_LIMIT_REACHED",p.MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED="MINUTES_OF_BOOKING_PER_DAY_LIMIT_REACHED",p.COURT_GROUP="COURT_GROUP",p.TOO_SOON="TOO_SOON",p.MEMBERS_ONLY="MEMBERS_ONLY",p))(ne||{});var k;(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={}))})(k||(k={}));var le=(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))(le||{});var pe=(n=>(n.UNAPPROVED="UNAPPROVED",n.UNCONFIRMED="UNCONFIRMED",n.DECLINED="DECLINED",n.PARTICIPANT="PARTICIPANT",n.CO_BOOKER="CO-BOOKER",n.OWNER="OWNER",n))(pe||{});var D;(e=>{let i;(a=>(a.AVAILABILITY="AVAILABILITY",a.OCCASION="OCCASION"))(i=e.itemType||(e.itemType={}))})(D||(D={}));var w;(e=>{let i;(l=>(l.ACTIVE="active",l.INACTIVE="inactive",l.NOT_CONNECTED="notConnected"))(i=e.status||(e.status={}))})(w||(w={}));var ue=(r=>(r.WIDGET="WIDGET",r.API="API",r))(ue||{});var N;(e=>{let i;(l=>(l.PUBLIC="public",l.PRIVATE="private",l.PASSWORD="password"))(i=e.type||(e.type={}))})(N||(N={}));var ce=(r=>(r.UPCOMING="UPCOMING",r.HISTORICAL="HISTORICAL",r))(ce||{});var me=(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))(me||{});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 de=(r=>(r.ALL="ALL",r.PENDING_APPROVAL="PENDING_APPROVAL",r))(de||{});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 L;(e=>{let i;(a=>(a.JOIN_APPROVAL_NONE="JOIN_APPROVAL_NONE",a.JOIN_APPROVAL_REQUIRED_FOR_ALL="JOIN_APPROVAL_REQUIRED_FOR_ALL"))(i=e.joinApproval||(e.joinApproval={}))})(L||(L={}));var B;(e=>{let i;(a=>(a.APPLIED="APPLIED",a.INVITED="INVITED"))(i=e.joiningMethod||(e.joiningMethod={}))})(B||(B={}));var fe=(a=>(a.ALL="ALL",a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a.NOT_CONNECTED="NOT_CONNECTED",a))(fe||{});var _;(e=>{let i;(a=>(a.UNLIMITED="UNLIMITED",a.NUMBERED="NUMBERED"))(i=e.type||(e.type={}))})(_||(_={}));var j=i=>i!=null,U=i=>typeof i=="string",M=i=>U(i)&&i!=="",V=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]),ye=i=>i instanceof FormData,Ee=i=>{try{return btoa(i)}catch(e){return Buffer.from(i).toString("base64")}},Ce=i=>{let e=[],r=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},s=(a,l)=>{j(l)&&(Array.isArray(l)?l.forEach(n=>{s(a,n)}):typeof l=="object"?Object.entries(l).forEach(([n,p])=>{s(`${a}[${n}]`,p)}):r(a,l))};return Object.entries(i).forEach(([a,l])=>{s(a,l)}),e.length>0?`?${e.join("&")}`:""},Pe=(i,e)=>{let r=i.ENCODE_PATH||encodeURI,s=e.url.replace("{api-version}",i.VERSION).replace(/{(.*?)}/g,(l,n)=>{var p;return(p=e.path)!=null&&p.hasOwnProperty(n)?r(String(e.path[n])):l}),a=`${i.BASE}${s}`;return e.query?`${a}${Ce(e.query)}`:a},Se=i=>{if(i.formData){let e=new FormData,r=(s,a)=>{U(a)||V(a)?e.append(s,a):e.append(s,JSON.stringify(a))};return Object.entries(i.formData).filter(([s,a])=>j(a)).forEach(([s,a])=>{Array.isArray(a)?a.forEach(l=>r(s,l)):r(s,a)}),e}},x=(i,e)=>C(void 0,null,function*(){return typeof e=="function"?e(i):e}),ve=(i,e)=>C(void 0,null,function*(){let r=yield x(e,i.TOKEN),s=yield x(e,i.USERNAME),a=yield x(e,i.PASSWORD),l=yield x(e,i.HEADERS),n=Object.entries(R(R({Accept:"application/json"},l),e.headers)).filter(([p,u])=>j(u)).reduce((p,[u,d])=>ie(R({},p),{[u]:String(d)}),{});if(M(r)&&(n.Authorization=`Bearer ${r}`),M(s)&&M(a)){let p=Ee(`${s}:${a}`);n.Authorization=`Basic ${p}`}return e.body&&(e.mediaType?n["Content-Type"]=e.mediaType:V(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":U(e.body)?n["Content-Type"]="text/plain":ye(e.body)||(n["Content-Type"]="application/json")),new Headers(n)}),Re=i=>{var e;if(i.body!==void 0)return(e=i.mediaType)!=null&&e.includes("/json")?JSON.stringify(i.body):U(i.body)||V(i.body)||ye(i.body)?i.body:JSON.stringify(i.body)},Ae=(i,e,r,s,a,l,n)=>C(void 0,null,function*(){let p=new AbortController,u={headers:l,body:s!=null?s:a,method:e.method,signal:p.signal};return i.WITH_CREDENTIALS&&(u.credentials=i.CREDENTIALS),n(()=>p.abort()),yield fetch(r,u)}),Oe=(i,e)=>{if(e){let r=i.headers.get(e);if(U(r))return r}},Ue=i=>C(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)}}),Ge=(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",p=(l=e.statusText)!=null?l:"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch(d){return}})();throw new P(i,e,`Generic Error: status: ${n}; status text: ${p}; body: ${u}`)}},o=(i,e)=>new A((r,s,a)=>C(void 0,null,function*(){try{let l=Pe(i,e),n=Se(e),p=Re(e),u=yield ve(i,e);if(!a.isCancelled){let d=yield Ae(i,e,l,p,n,u,a),f=yield Ue(d),v=Oe(d,e.responseHeader),m={url:l,ok:d.ok,status:d.status,statusText:d.statusText,body:v!=null?v:f};Ge(e,m),r(m.body)}}catch(l){s(l)}}));var H=class{static getAdminActivityOccasions(e,r,s,a,l,n=10){return o(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 F=class{static listActivities(e=!1,r=!1,s,a,l,n,p,u,d,f,v,m=10){return o(t,{method:"GET",url:"/activities",query:{hideFullyBooked:e,exposeOccasions:r,facilityIds:s,level:a,locationSearch:l,categorySearch:n,querySearch:p,resourceTypes:u,startDate:d,endDate:f,offset:v,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 o(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 o(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 o(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 o(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 o(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,p,u,d=10){return o(t,{method:"GET",url:"/facilities",query:{city:e,countryCode:r,name:s,latitude:a,longitude:l,radius:n,resourceTypes:p,offset:u,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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 W=class{static getApiClientList(e,r=10){return o(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 o(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 o(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 o(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 o(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 Y=class{static getActivityOccasionForUser(e){return o(t,{method:"GET",url:"/activities/user-occasions/{occasionId}",path:{occasionId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getActivityOccasionPrice(e,r){return o(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 o(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,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{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 o(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 listAvailabilityEndTimesWithRestrictions(e,r,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",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 o(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 o(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 o(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 listChats(e="ALL",r,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static addUserToChat(e,r){return o(t,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return o(t,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUserInfo(){return o(t,{method:"GET",url:"/users/info",errors:{500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersProfile(){return o(t,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return o(t,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserFavourites(){return o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 getUserBookingRestrictions(e){return o(t,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 getUserPlaySessions(e,r=10,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return o(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 o(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,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 addWaitlistOccasion(e){return o(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 o(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 listUserOfferPunchCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static getCheckout(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 K=class{static getAvailabilityWithPrice(e,r,s,a,l,n,p){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/price",path:{resourceId:e},query:{startTime:r,endTime:s,promoCode:a,numberOfSlots:l,emails:n,userIds:p},errors:{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 o(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 listAvailabilityEndTimesWithRestrictions(e,r,s,a,l){return o(t,{method:"GET",url:"/facilities/resources/{resourceId}/availabilities/endtimeswithrestrictions",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 o(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 o(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 o(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 o(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 getUserBookingRestrictions(e){return o(t,{method:"GET",url:"/users/bookings/{bookingId}/restrictions",path:{bookingId:e},errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",500:"General Error.",503:"Service unavailable, please try again."}})}static getUsersInBooking(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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 o(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 J=class{static getCheckout(e){return o(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 o(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 $=class{static updateCompetitionAccount(e){return o(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 Q=class{static options(e){return o(t,{method:"OPTIONS",url:"/{cors+}",path:{"cors+":e},responseHeader:"Access-Control-Allow-Origin"})}};var X=class{static createPromoCode(e){return o(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 Z=class{static createMembership(e){return o(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 o(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 ee=class{static getPlaySessionById(e){return o(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 o(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 o(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 o(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 o(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 o(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 o(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.",409:"Conflict with the current state of the target resource.",412:"The request does not meet all conditions for intended operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static joinPlaySession(e){return o(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 getUserPlaySessions(e,r=10,s="UPCOMING",a="ALL"){return o(t,{method:"GET",url:"/users/playsessions",query:{offset:e,limit:r,direction:s,playerStatus: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 getUserPlaySessionsHistory(e,r=10){return o(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 o(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,a,l,n=10){return o(t,{method:"GET",url:"/users/playsessions/marketplace",query:{facilityIds:e,startDateTime:r,endDateTime:s,sportIds:a,availableSpots: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 re=class{static getUserProfile(e){return o(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 listChats(e="ALL",r,s=10){return o(t,{method:"GET",url:"/users/chats",query:{userChatStatus:e,offset:r,limit:s},errors:{400:"Illegal input for operation.",500:"General Error.",503:"Service unavailable, please try again."}})}static createChat(e){return o(t,{method:"POST",url:"/users/chats",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",404:"The specified resource was not found.",409:"Conflict with the current state of the target resource.",500:"General Error."}})}static addUserToChat(e,r){return o(t,{method:"POST",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static removeUserFromChat(e,r){return o(t,{method:"DELETE",url:"/users/chats/{chatId}/users/{userId}",path:{chatId:e,userId:r},errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",404:"The specified resource was not found.",500:"General Error."}})}static getChatAuth(){return o(t,{method:"GET",url:"/users/chats/auth",errors:{401:"Unauthorized.",500:"General Error."}})}static getUsersProfile(){return o(t,{method:"GET",url:"/users/profile",errors:{401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static updateUsersProfile(e){return o(t,{method:"PUT",url:"/users/profile",body:e,mediaType:"application/json",errors:{400:"Illegal input for operation.",401:"Unauthorized.",403:"The request was denied due to insufficient permissions.",500:"General Error.",503:"Service unavailable, please try again."}})}static getRelationToFriend(e){return o(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 o(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 o(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 o(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 o(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."}})}static listUserOfferPunchCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/punchcards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}static listUserOfferValueCards(e,r=10){return o(t,{method:"GET",url:"/users/offers/valuecards",query:{offset:e,limit:r},errors:{400:"Illegal input for operation.",401:"Unauthorized.",500:"General Error.",503:"Service unavailable, please try again."}})}};export{H as ActivityServiceV1Service,F as AnonymousService,W as ApiClientServiceV1Service,P as ApiError,Y as AuthorizedService,K as BookingServiceV1Service,G as CancelError,A as CancelablePromise,J as CheckoutServiceV1Service,$ as CompetitionServiceV1Service,Q as CorsService,X as LoyaltyServiceV1Service,Z as MembershipServiceV1Service,t as OpenAPI,ee as PlaySessionServiceV1Service,re as UserServiceV1Service,ae as access,ne as bookingRestriction,le as bookingSubType,k as bookingSubscription,pe as bookingUserStatus,D as cancellationPolicy,w as chat,ue as clientType,N as createChatResponse,ce as directionParam,me as months,q as pendingPayment,L as playSessionSettings,B as playSessionUser,de as playerStatusParam,z as playingUserResponse,fe as userChatStatusParam,_ as userPunchCard};
@@ -0,0 +1,128 @@
1
+ import * as _tanstack_query_core_build_legacy_hydration_ClXcjjG9 from '@tanstack/query-core/build/legacy/hydration-ClXcjjG9';
2
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
3
+ import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData } from '../types.gen.mjs';
4
+ import { Options } from '@hey-api/client-fetch';
5
+ import { InfiniteData, UseMutationOptions } from '@tanstack/react-query';
6
+
7
+ type QueryKey<TOptions extends Options> = [
8
+ Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
9
+ _id: string;
10
+ _infinite?: boolean;
11
+ }
12
+ ];
13
+ declare const findBookingsQueryKey: (options?: Options<FindBookingsData>) => (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
14
+ _id: string;
15
+ _infinite?: boolean | undefined;
16
+ })[];
17
+ declare const findBookingsOptions: (options?: Options<FindBookingsData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<{
18
+ data?: Booking[] | undefined;
19
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
20
+ }, Error, {
21
+ data?: Booking[] | undefined;
22
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
23
+ }, (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
24
+ _id: string;
25
+ _infinite?: boolean | undefined;
26
+ })[]>, "queryFn"> & {
27
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<{
28
+ data?: Booking[] | undefined;
29
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
30
+ }, (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
31
+ _id: string;
32
+ _infinite?: boolean | undefined;
33
+ })[], never> | undefined;
34
+ } & {
35
+ queryKey: (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
36
+ _id: string;
37
+ _infinite?: boolean | undefined;
38
+ })[] & {
39
+ [dataTagSymbol]: {
40
+ data?: Booking[] | undefined;
41
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
42
+ };
43
+ [dataTagErrorSymbol]: Error;
44
+ };
45
+ };
46
+ declare const findBookingsInfiniteQueryKey: (options?: Options<FindBookingsData>) => QueryKey<Options<FindBookingsData>>;
47
+ declare const findBookingsInfiniteOptions: (options?: Options<FindBookingsData>) => _tanstack_react_query_build_legacy_types.UseInfiniteQueryOptions<{
48
+ data?: Booking[] | undefined;
49
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
50
+ }, PkgOpenapiSharedProblemDetails, InfiniteData<{
51
+ data?: Booking[] | undefined;
52
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
53
+ }, unknown>, {
54
+ data?: Booking[] | undefined;
55
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
56
+ }, QueryKey<Options<FindBookingsData>>, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
57
+ _id: string;
58
+ _infinite?: boolean | undefined;
59
+ }, "body" | "path" | "query" | "headers">> & {
60
+ initialData: InfiniteData<{
61
+ data?: Booking[] | undefined;
62
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
63
+ }, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
64
+ _id: string;
65
+ _infinite?: boolean | undefined;
66
+ }, "body" | "path" | "query" | "headers">> | (() => InfiniteData<{
67
+ data?: Booking[] | undefined;
68
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
69
+ }, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
70
+ _id: string;
71
+ _infinite?: boolean | undefined;
72
+ }, "body" | "path" | "query" | "headers">>) | undefined;
73
+ } & {
74
+ queryKey: QueryKey<Options<FindBookingsData>> & {
75
+ [dataTagSymbol]: InfiniteData<{
76
+ data?: Booking[] | undefined;
77
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
78
+ }, unknown>;
79
+ [dataTagErrorSymbol]: PkgOpenapiSharedProblemDetails;
80
+ };
81
+ };
82
+ declare const addBookingQueryKey: (options: Options<AddBookingData>) => (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
83
+ _id: string;
84
+ _infinite?: boolean | undefined;
85
+ })[];
86
+ declare const addBookingOptions: (options: Options<AddBookingData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<Booking, Error, Booking, (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
87
+ _id: string;
88
+ _infinite?: boolean | undefined;
89
+ })[]>, "queryFn"> & {
90
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<Booking, (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
91
+ _id: string;
92
+ _infinite?: boolean | undefined;
93
+ })[], never> | undefined;
94
+ } & {
95
+ queryKey: (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
96
+ _id: string;
97
+ _infinite?: boolean | undefined;
98
+ })[] & {
99
+ [dataTagSymbol]: Booking;
100
+ [dataTagErrorSymbol]: Error;
101
+ };
102
+ };
103
+ declare const addBookingMutation: (options?: Partial<Options<AddBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<AddBookingData>, unknown>;
104
+ declare const deleteBookingMutation: (options?: Partial<Options<DeleteBookingData>>) => UseMutationOptions<void, PkgOpenapiSharedProblemDetails, Options<DeleteBookingData>, unknown>;
105
+ declare const findBookingByIdQueryKey: (options: Options<FindBookingByIdData>) => (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
106
+ _id: string;
107
+ _infinite?: boolean | undefined;
108
+ })[];
109
+ declare const findBookingByIdOptions: (options: Options<FindBookingByIdData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<Booking, Error, Booking, (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
110
+ _id: string;
111
+ _infinite?: boolean | undefined;
112
+ })[]>, "queryFn"> & {
113
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<Booking, (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
114
+ _id: string;
115
+ _infinite?: boolean | undefined;
116
+ })[], never> | undefined;
117
+ } & {
118
+ queryKey: (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
119
+ _id: string;
120
+ _infinite?: boolean | undefined;
121
+ })[] & {
122
+ [dataTagSymbol]: Booking;
123
+ [dataTagErrorSymbol]: Error;
124
+ };
125
+ };
126
+ declare const updateBookingMutation: (options?: Partial<Options<UpdateBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<UpdateBookingData>, unknown>;
127
+
128
+ export { addBookingMutation, addBookingOptions, addBookingQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, updateBookingMutation };